[ Index ] |
|
Code source de CMS made simple 1.0.5 |
[Code source] [Imprimer] [Statistiques]
Misc functions
Poids: | 1333 lignes (32 kb) |
Inclus ou requis: | 3 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
redirect($to, $noappend=false) X-Ref |
Redirects to relative URL on the current site author: http://www.edoceo.com/ |
redirect_to_alias($alias) X-Ref |
Given a page ID or an alias, redirect to it |
microtime_diff($a, $b) X-Ref |
Shows the difference in seconds between two microtime() values |
cms_join_path() X-Ref |
Joins a path together using proper directory separators Taken from: http://www.php.net/manual/en/ref.dir.php |
ErrorHandler404() X-Ref |
Shows a very close approximation of an Apache generated 404 error. Shows a very close approximation of an Apache generated 404 error. It also sends the actual header along as well, so that generic browser error pages (like what IE does) will be displayed. |
parse_template($template, $tpl_array, $warn=0) X-Ref |
Simple template parser |
cms_htmlentities($string, $param=ENT_QUOTES, $charset="UTF-8") X-Ref |
Pas de description |
cms_calculate_url() X-Ref |
Figures out the page name from the uri string. Has to use different logic based on the type of httpd server. |
my_htmlentities($val) X-Ref |
Enter description here... param: unknown $val param: integer $quote_style return: unknown |
cms_utf8entities($val) X-Ref |
Enter description here... param: unknown $val return: unknown |
nl2pnbr( $text ) X-Ref |
Pas de description |
debug_bt() X-Ref |
Pas de description |
debug_display($var, $title="", $echo_to_screen = true, $use_html = true) X-Ref |
Debug function to display $var nicely in html. param: mixed $var param: string $title (optional) param: boolean $echo_to_screen (optional) return: string |
debug_output($var, $title="") X-Ref |
Display $var nicely only if $config["debug"] is set param: mixed $var param: string $title |
debug_to_log($var, $title='') X-Ref |
Pas de description |
debug_buffer($var, $title="") X-Ref |
Display $var nicely to the $gCms->errors array if $config['debug'] is set param: mixed $var param: string $title |
debug_sql($str, $newline) X-Ref |
Pas de description |
get_request_value($value, $default_value = '', $session_key = '') X-Ref |
Retrieve value from $_REQUEST. Returns $default_value if value is not in $_REQUEST or is not the same basic type as $default_value. If $session_key is set, then will return session value in preference to $default_value if $_REQUEST[$value] is not set. param: string $value param: mixed $default_value (optional) param: string $session_key (optional) return: mixed |
get_value_with_default($value, $default_value = '', $session_key = '') X-Ref |
Return $value if it's set and same basic type as $default_value, otherwise return $default_value. Note. Also will trim($value) if $value is not numeric. param: string $value param: mixed $default_value return: mixed |
get_parameter_value($parameters, $value, $default_value = '', $session_key = '') X-Ref |
Retrieve the $value from the $parameters array checking for $parameters[$value] and $params[$id.$value]. Returns $default if $value is not in $params array. Note: This function will also trim() string values. param: array $parameters param: string $value param: mixed $default_value param: string $session_key return: mixed |
create_encoding_dropdown($name = 'encoding', $selected = '') X-Ref |
Pas de description |
cms_mapi_create_permission($cms, $permission_name, $permission_text) X-Ref |
Pas de description |
filespec_is_excluded( $file, $excludes ) X-Ref |
Pas de description |
is_directory_writable( $path ) X-Ref |
Check the permissions of a directory recursively to make sure that we have write permission to all files ¶m path start path |
get_recursive_file_list( $path , $excludes, $maxdepth = -1 , $mode = "FULL" , $d = 0 ) X-Ref |
Return an array containing a list of files in a directory performs a recursive serach param: path start path param: maxdepth how deep to browse (-1=unlimited) param: mode "FULL"|"DIRS"|"FILES" param: d for internal use only |
recursive_delete( $dirname ) X-Ref |
Pas de description |
chmod_r( $path, $mode ) X-Ref |
Pas de description |
SerializeObject(&$object) X-Ref |
Pas de description |
UnserializeObject(&$serialized) X-Ref |
Pas de description |
startswith( $str, $sub ) X-Ref |
Pas de description |
endswith( $str, $sub ) X-Ref |
Pas de description |
showmem($string = '') X-Ref |
Pas de description |
munge_string_to_url($alias, $tolower = false) X-Ref |
Pas de description |
file_get_contents($filename) X-Ref |
Pas de description |
array_walk_recursive(&$input, $funcname, $userdata = "") X-Ref |
Pas de description |
cleanValue($val) X-Ref |
Pas de description |
cleanHtml($string, $remove = false) X-Ref |
Pas de description |
GetModuleParameters($id) X-Ref |
Returns all parameters sent that are destined for the module with the given $id |
can_users_upload() X-Ref |
Pas de description |
can_admin_upload() X-Ref |
Pas de description |
interpret_permissions($perms) X-Ref |
Pas de description |
Généré le : Tue Apr 3 18:50:37 2007 | par Balluche grâce à PHPXref 0.7 |