XOOPS  2.6.0
utils.php File Reference

Go to the source code of this file.

Functions

 base_url ()
 
 check_files_extensions_on_path ($path, $ext)
 
 check_files_extensions_on_phar ($phar, &$files, $basepath, $ext)
 
 config_loading ($current_path, $fld)
 
 create_folder ($path=false, $path_thumbs=false)
 
 create_img ($imgfile, $imgthumb, $newwidth, $newheight="")
 
 create_img_gd ($imgfile, $imgthumb, $newwidth, $newheight="")
 
 debugger ($input, $trace=FALSE, $halt=FALSE)
 
 deleteDir ($dir)
 
 duplicate_file ($old_path, $name)
 
 endsWith ($haystack, $needle)
 
 filescount ($path)
 
 fix_dirname ($str)
 
 fix_filename ($str, $transliteration)
 
 fix_get_params ($str)
 
 fix_path ($path, $transliteration)
 
 fix_strtolower ($str)
 
 fix_strtoupper ($str)
 
 foldersize ($path)
 
 get_file_by_url ($url)
 
 image_check_memory_usage ($img, $max_breedte, $max_hoogte)
 
 is_function_callable ($name)
 
 is_really_writable ($dir)
 
 makeSize ($size)
 
 new_thumbnails_creation ($targetPath, $targetFile, $name, $current_path, $relative_image_creation, $relative_path_from_current_pos, $relative_image_creation_name_to_prepend, $relative_image_creation_name_to_append, $relative_image_creation_width, $relative_image_creation_height, $fixed_image_creation, $fixed_path_from_filemanager, $fixed_image_creation_name_to_prepend, $fixed_image_creation_to_append, $fixed_image_creation_width, $fixed_image_creation_height)
 
 rcopy ($source, $destination, $is_rec=FALSE)
 
 rename_file ($old_path, $name, $transliteration)
 
 rename_folder ($old_path, $name, $transliteration)
 
 rrename ($source, $destination, $is_rec=FALSE)
 
 rrename_after_cleaner ($source)
 

Function Documentation

base_url ( )

Definition at line 220 of file utils.php.

References $_SERVER.

check_files_extensions_on_path (   $path,
  $ext 
)

Definition at line 128 of file utils.php.

References $ext, $file, $files, and $path.

check_files_extensions_on_phar (   $phar,
$files,
  $basepath,
  $ext 
)

Definition at line 141 of file utils.php.

References $ext, $file, and $files.

config_loading (   $current_path,
  $fld 
)

Definition at line 228 of file utils.php.

References $current_path, $parent, and fix_dirname().

Here is the call graph for this function:

create_folder (   $path = false,
  $path_thumbs = false 
)

Definition at line 119 of file utils.php.

References $path.

Referenced by new_thumbnails_creation().

Here is the caller graph for this function:

create_img (   $imgfile,
  $imgthumb,
  $newwidth,
  $newheight = "" 
)

Definition at line 54 of file utils.php.

References image_check_memory_usage().

Referenced by new_thumbnails_creation().

Here is the call graph for this function:

Here is the caller graph for this function:

create_img_gd (   $imgfile,
  $imgthumb,
  $newwidth,
  $newheight = "" 
)

Definition at line 43 of file utils.php.

References image_check_memory_usage().

Here is the call graph for this function:

debugger (   $input,
  $trace = FALSE,
  $halt = FALSE 
)

Definition at line 456 of file utils.php.

References exit.

deleteDir (   $dir)

Definition at line 5 of file utils.php.

References $dir.

duplicate_file (   $old_path,
  $name 
)

Definition at line 15 of file utils.php.

References $info, and $name.

endsWith (   $haystack,
  $needle 
)

Definition at line 270 of file utils.php.

Referenced by new_thumbnails_creation().

Here is the caller graph for this function:

filescount (   $path)

Definition at line 98 of file utils.php.

References $files, and $path.

fix_dirname (   $str)

Definition at line 191 of file utils.php.

Referenced by config_loading(), JUpload\receive_uploaded_files(), and rename_folder().

Here is the caller graph for this function:

fix_filename (   $str,
  $transliteration 
)

Definition at line 163 of file utils.php.

References $transliteration.

Referenced by fix_path(), rename_file(), and rename_folder().

Here is the caller graph for this function:

fix_get_params (   $str)

Definition at line 159 of file utils.php.

fix_path (   $path,
  $transliteration 
)

Definition at line 210 of file utils.php.

References $info, $path, $transliteration, and fix_filename().

Here is the call graph for this function:

fix_strtolower (   $str)

Definition at line 203 of file utils.php.

Referenced by imageLib\__construct(), imageLib\getCropPlacing(), imageLib\resizeImage(), and JUpload\tobytes().

Here is the caller graph for this function:

fix_strtoupper (   $str)

Definition at line 195 of file utils.php.

foldersize (   $path)

Definition at line 76 of file utils.php.

References $files, and $path.

get_file_by_url (   $url)

Definition at line 305 of file utils.php.

References $url.

image_check_memory_usage (   $img,
  $max_breedte,
  $max_hoogte 
)

Definition at line 242 of file utils.php.

Referenced by create_img(), and create_img_gd().

Here is the caller graph for this function:

is_function_callable (   $name)

Check if a function is callable. Some servers disable copy,rename etc.

Returns TRUE if callable and everything is OK Otherwise returns FALSE

Definition at line 361 of file utils.php.

References $name.

is_really_writable (   $dir)

Definition at line 326 of file utils.php.

References $dir, and DIRECTORY_SEPARATOR.

makeSize (   $size)

Definition at line 66 of file utils.php.

new_thumbnails_creation (   $targetPath,
  $targetFile,
  $name,
  $current_path,
  $relative_image_creation,
  $relative_path_from_current_pos,
  $relative_image_creation_name_to_prepend,
  $relative_image_creation_name_to_append,
  $relative_image_creation_width,
  $relative_image_creation_height,
  $fixed_image_creation,
  $fixed_path_from_filemanager,
  $fixed_image_creation_name_to_prepend,
  $fixed_image_creation_to_append,
  $fixed_image_creation_width,
  $fixed_image_creation_height 
)
rcopy (   $source,
  $destination,
  $is_rec = FALSE 
)

Definition at line 368 of file utils.php.

References $file, $files, and DIRECTORY_SEPARATOR.

rename_file (   $old_path,
  $name,
  $transliteration 
)

Definition at line 24 of file utils.php.

References $info, $name, $transliteration, and fix_filename().

Here is the call graph for this function:

rename_folder (   $old_path,
  $name,
  $transliteration 
)

Definition at line 34 of file utils.php.

References $name, $transliteration, fix_dirname(), and fix_filename().

Here is the call graph for this function:

rrename (   $source,
  $destination,
  $is_rec = FALSE 
)

Definition at line 404 of file utils.php.

References $file, $files, and DIRECTORY_SEPARATOR.

rrename_after_cleaner (   $source)

Definition at line 439 of file utils.php.

References $file, and $files.