19if(!defined(
"SEC_FILE")){define(
"SEC_FILE",
'/framework/secure.php' );}
20if (defined(
'LEPTON_PATH')) {
21 include LEPTON_PATH.SEC_FILE;
26 while ((
$level < 10) && (!file_exists(
$root.SEC_FILE))) {
30 if (file_exists(
$root.SEC_FILE)) {
31 include
$root.SEC_FILE;
33 trigger_error(sprintf(
"[ <b>%s</b> ] Can't include secure.php!", $_SERVER[
'SCRIPT_NAME']), E_USER_ERROR);
53 if (
true === is_dir($dirsource))
55 if (
false === is_dir($dirdest))
57 LEPTON_core::make_dir($dirdest);
60 $dir = dir($dirsource);
61 while ( $file = $dir->read() )
65 if( !is_dir($dirsource.
"/".$file) )
67 copy ($dirsource.
"/".$file, $dirdest.
"/".$file);
68 LEPTON_core::change_mode($dirdest.
"/".$file);
72 LEPTON_core::make_dir($dirdest.
"/".$file);
rename_recursive_dirs(string $dirsource, string $dirdest, int $deep=0)
rm_full_dir(string $directory)