$value){ unset($$key); } foreach($_POST as $key => $value){ unset($$key); } foreach($_GET as $key => $value){ unset($$key); } # Set some variables and include the config.php include("./config.php"); $login_error = "
"; $home_error = ""; if(!isset($site_subdir)){ if(strtolower(substr($_SERVER["SCRIPT_NAME"],-14)) == "/cms/index.php"){ $site_subdir = substr($_SERVER["SCRIPT_NAME"],0,-14); }elseif(strtolower(substr($_SERVER["SCRIPT_NAME"],-5)) == "/cms/"){ $site_subdir = substr($_SERVER["SCRIPT_NAME"],0,-5); }elseif(strtolower(substr($_SERVER["SCRIPT_NAME"],-4)) == "/cms"){ $site_subdir = substr($_SERVER["SCRIPT_NAME"],0,-4); }else{ $site_subdir = $_SERVER["SCRIPT_NAME"]; } } if(!isset($website)){ $website = "http://" . $_SERVER["SERVER_NAME"] . $site_subdir . "/"; } if(!isset($root_directory)){ $root_directory = str_replace("//","/",str_replace("\\","/",$_SERVER["SCRIPT_FILENAME"])); if(strtolower(substr($root_directory,-14)) == "/cms/index.php"){ $root_directory = substr($root_directory,0,-14); }elseif(strtolower(substr($root_directory,-5)) == "/cms/"){ $root_directory = substr($root_directory,0,-5); }elseif(strtolower(substr($root_directory,-4)) == "/cms"){ $root_directory = substr($root_directory,0,-4); } $root_directory .= "/"; } if(!isset($language)){ $language = "english"; } if(!isset($simple_mode) || !is_numeric($simple_mode)){ $simple_mode = 1; } if(!isset($editor_css)){ $editor_css = ""; } if(!isset($editor_quick_css)){ $editor_quick_css = ""; } if(!isset($dir_size) || !is_numeric($dir_size)){ $dir_size = 1; } if(!isset($region_syntax)){ $region_syntax = "%s"; } if(!isset($collapse_all) || !is_numeric($collapse_all)){ $collapse_all = 1; } if(!isset($date_format)){ $date_format = "d-m-Y H:i"; } if(!isset($header_text)){ $header_text = "Mini File CMS"; }else{ $header_text = strip_tags($header_text); $header_text = str_replace("©","",$header_text); $header_text = str_replace("copyright","",$header_text); $header_text = str_replace("Copyright","",$header_text); } if(!isset($footer_text)){ $footer_text = "© MiniCMS.eu 2006"; }else{ $footer_text = strip_tags($footer_text); $footer_text = str_replace("©","",$footer_text); $footer_text = str_replace("copyright","",$footer_text); $footer_text = str_replace("Copyright","",$footer_text); } if(isset($hide_directories)){ $hide_directories = explode(",",$hide_directories); foreach($hide_directories as $index => $directory){ $hide_directories[$index] = trim($directory); } $hide_directories[] = "cms"; }else{ $hide_directories = array("cms"); } if(isset($allowed_extentions)){ $allowed_extentions = explode(",",$allowed_extentions); foreach($allowed_extentions as $index => $extention){ $allowed_extentions[$index] = trim($extention); } }else{ $allowed_extentions = array("htm","html","php","asp","php2","php3","php4","phtm","phtml","inc"); } # Define all functions. # Handle the quotes in a string function HandleQuotes($string){ if(get_magic_quotes_gpc()){ return stripslashes($string); }else{ return $string; } } # Encode the HTML for the WYSIWYG-editor function encodeHTML($sHTML){ $sHTML = ereg_replace("&","&",$sHTML); $sHTML = ereg_replace("<","<",$sHTML); $sHTML = ereg_replace(">",">",$sHTML); return $sHTML; } # Return the filesize in kb/mb etc. function actual_size($size){ if($size >= 1024*1024){ $size = vsprintf("%1.2f Mb", $size/(1024*1024)); }elseif($size >= 1024){ $size = vsprintf("%1.2f Kb",$size/1024); }else{ $size = $size . " Bytes"; } return $size; } # Return the number of editable files inside function dir_editable_files($directory){ $editable_files = 0; global $root_directory, $_SESSION, $region_syntax, $files_regions, $allowed_extentions, $directories; if($dir = @opendir($root_directory . $_SESSION["current_directory"] . $directory)){ while(($name = readdir($dir)) !== false){ if($name != ".." && $name != "."){ if(is_file($root_directory . $_SESSION["current_directory"] . $directory . "/" . $name)){ $contents = file_get_contents($root_directory . $_SESSION["current_directory"] . $directory . "/" . $name); if(preg_match_all("/" . sprintf($region_syntax,"(.*?)","(.*?)") . "/is", $contents, $match) && is_writable($root_directory . $_SESSION["current_directory"] . $directory . "/" . $name)) { if(in_array("*",$allowed_extentions)){ $editable_files++; }elseif(strrpos($name,".") !== false){ if(in_array(strtolower(trim(substr($name,strrpos($name,".")+1))),$allowed_extentions)){ $editable_files++; } } } }elseif(is_dir($root_directory . "/" . $_SESSION["current_directory"] . $directory . "/" . $name) && ($_SESSION["current_directory"] . $directory . "/" . $name) != "cms"){ if(dir_editable_files($directory . "/" . $name) > 0){ $editable_files = $editable_files + dir_editable_files($directory . "/" . $name); } } } } closedir($dir); } return $editable_files; } # Return the number of editable files inside function dirmtime($directory){ if(substr($directory,-1) == "/"){ $directory = substr($directory,0,-1); } $updated = 0; global $root_directory, $_SESSION, $region_syntax, $files_regions, $allowed_extentions, $directories; if($dir = @opendir($directory)){ while(($name = readdir($dir)) !== false){ if($name != ".." && $name != "."){ if(is_file($directory . "/" . $name)){ $contents = file_get_contents($directory . "/" . $name); if(preg_match_all("/" . sprintf($region_syntax,"(.*?)","(.*?)") . "/is", $contents, $match) && is_writable($directory . "/" . $name)) { if(in_array("*",$allowed_extentions)){ if(filemtime($directory . "/" . $name) > $updated){ $updated = filemtime($directory . "/" . $name); } }elseif(strrpos($name,".") !== false){ if(in_array(strtolower(trim(substr($name,strrpos($name,".")+1))),$allowed_extentions)){ if(filemtime($directory . "/" . $name) > $updated){ $updated = filemtime($directory . "/" . $name); } } } } }elseif(is_dir($directory . "/" . $name)){ $dir_updated = dirmtime($directory . "/" . $name); if($dir_updated > $updated){ $updated = $dir_updated; } } } } closedir($dir); } return $updated; } # Return the size of a directory. function dir_size($dir){ if(substr($dir,-1) == "/"){ $dir = substr($dir,0,-1); } $dp = opendir($dir); $size = 0; while (($file = readdir($dp)) != false){ if ($file != "." && $file != ".."){ $path = $dir . "/" . $file; if (is_dir($path)){ $size = $size + dir_size($path); }else if (is_file($path)){ $size = $size + filesize($path); } } } closedir($dp); return $size; } # Return the updated text for a timestamp. function updated($timestamp){ global $date_format; if($timestamp == 0 || $timestamp == ""){ return ""; }else{ return date($date_format,$timestamp); } } # Check the license key on the remote server function check_license_key(){ global $license_key, $site_subdir; $host = "213.132.186.58"; $script = "/crs/check_license.php"; $port = 80; srand((double)microtime()*1000000); $boundary = "---------------------".substr(md5(rand(0,32000)),0,10); // Build the header $header = "POST " . $script . " HTTP/1.0\r\n"; $header .= "Host: " . $host . "\r\n"; $header .= "Content-type: multipart/form-data, boundary=" . $boundary . "\r\n"; // attach URL vars $data ="--" . $boundary . "\r\n"; $data .= "Content-Disposition: form-data; name=\"url\"\r\n"; $data .= "\r\n" . $_SERVER["HTTP_HOST"] . $site_subdir . "\r\n"; $data .="--" . $boundary . "\r\n"; // attach License Key vars $data .="--" . $boundary . "\r\n"; $data .= "Content-Disposition: form-data; name=\"license_key\"\r\n"; $data .= "\r\n" . $license_key . "\r\n"; $data .="--" . $boundary . "\r\n"; // attach License type vars $data .="--" . $boundary . "\r\n"; $data .= "Content-Disposition: form-data; name=\"type\"\r\n"; $data .= "\r\nfile\r\n"; $data .="--" . $boundary . "\r\n"; $header .= "Content-length: " . strlen($data) . "\r\n\r\n"; // Open the connection $fp = @fsockopen($host, $port); if(!$fp){ return "valid"; }else{ // then just write to the server fputs($fp, $header . $data); # get and echo the response $response = ""; while(!feof($fp)){ $response .= fgets($fp, 128); } fclose($fp); $error_msg = "HTTP/1.1 404"; if(substr($response,0,strlen($error_msg)) == $error_msg || substr($response, strrpos($response,"\n")+1) == ""){ return "valid"; }else{ # Last word $response = substr($response, strrpos($response,"\n")+1); return $response; } } } # Set some text-variables in the defined language. if($language == "dutch"){ # index $lang_index_js_warning = "!Waarschuwing! Javascript moet aanstaan voor correcte werking van het CMS!"; # login $lang_login_login = "Inloggen"; $lang_login_security = "Beveiliging"; $lang_login_username = "Gebruikersnaam"; $lang_login_password = "Wachtwoord"; $lang_login_invalid_login_attempt = "De ingevoerde gebruikersnaam en wachtwoord zijn niet correct!"; $lang_login_invalid_license_key = "De licentie code %s is niet geldig!"; $lang_login_locked_license_key = "De licentie code %s is geblokkeerd!"; $lang_login_invalid_url_license_key = "De licentie code %s wordt reeds gebruikt voor:

%s"; $lang_login_contact_us = "Neem contact op met uw webmaster."; # edit $lang_edit_open_file_failed = "Er is een fout opgetreden bij het openen van het bestand %s om naar te schrijven."; $lang_edit_write_file_failed = "Er is een fout opgetreden bij het schrijven naar het bestand %s."; $lang_edit_cancel = "Annuleren"; # home $lang_home_invalid_dir = "De map %s bestaat niet!"; $lang_home_logout = "Uitloggen"; $lang_home_browse = "Verkennen"; $lang_home_name = "Naam"; $lang_home_size = "Grootte"; $lang_home_updated = "Laatst aangepast"; $lang_home_preview = "Klik hier om het bestand `%s` te zien"; $lang_home_expand = "Uitklappen"; $lang_home_collapse = "Inklappen"; $lang_home_region = "aanpasbare regio"; $lang_home_regions = "aanpasbare regio's"; $lang_home_region_preview_content = "( Voorbeeld tekst ) Klik om te bewerken!"; $lang_home_directories = "mappen"; $lang_home_directory = "map"; $lang_home_and = " en "; $lang_home_files = "bestanden"; $lang_home_file = "bestand"; }elseif($language == "french"){ # index $lang_index_js_warning = "!Attention! Javascript doit être activé pour que le CMS fonctionne correctement"; # login $lang_login_login = "Ouvrez une session"; $lang_login_security = "Sécurité"; $lang_login_username = "Nom d'utilisateur"; $lang_login_password = "Mot de passe"; $lang_login_invalid_login_attempt = "Le nom d'utilisateur et le mot de passe ne sont pas corrects !"; $lang_login_invalid_license_key = "Le code de licence %s n'est pas valide !"; $lang_login_locked_license_key = "Le code de licence %s est bloqué !"; $lang_login_invalid_url_license_key = "Le code de licence %s a déjà été utilisé pour :

%s"; $lang_login_contact_us = "Prenez contact avec votre webmaster."; # edit $lang_edit_open_file_failed = "Une erreur est survenue lors de l'ouverture du fichier %s pour inscription."; $lang_edit_write_file_failed = "Une erreur est survenue lors de l'écriture du fichier %s."; $lang_edit_cancel = "Annuler"; # home $lang_home_invalid_dir = "Le dossier %s n'existe pas !"; $lang_home_logout = "Fermer la session"; $lang_home_browse = "Explorer"; $lang_home_name = "Nom"; $lang_home_size = "Taille"; $lang_home_updated = "Dernière modification"; $lang_home_preview = "Cliquez ici pour visualiser le fichier `%s`"; $lang_home_expand = "Dérouler"; $lang_home_collapse = "Masquer"; $lang_home_region = "région adaptable"; $lang_home_regions = "régions adaptables"; $lang_home_region_preview_content = "( Exemple de texte ) Cliquez pour adapter !"; $lang_home_directories = "dossiers"; $lang_home_directory = "dossier"; $lang_home_and = " et "; $lang_home_files = "fichiers"; $lang_home_file = "fichier"; }elseif($language == "german"){ # index $lang_index_js_warning = "!Warnung! Javascript muss eingeschaltet sein für ein korrektes Funktionieren des CMS"; # login $lang_login_security = "Sperrung"; $lang_login_invalid_license_key = "Der Lizenz Kode %s ist nicht gültig!"; $lang_login_locked_license_key = "Der Lizenz Kode %s ist blockiert!"; $lang_login_invalid_url_license_key = "Der Lizenz Kode %s wird bereits benutzt für:

%s"; $lang_login_contact_us = "Nehmen Sie Kontakt auf mit Ihrem Webmaster."; $lang_login_login = "Anmelden"; $lang_login_username = "Benutzername"; $lang_login_password = "Kennwort"; $lang_login_invalid_login_attempt = "Der eingetragene Benutzername und Kennwort sind nicht korrekt!"; # edit $lang_edit_open_file_failed = "Es ist ein Fehler aufgetreten beim Öffnen der Datei %s um dorthin zu schreiben."; $lang_edit_write_file_failed = "Es ist ein Fehler aufgetreten beim Schreiben zur Datei %s."; $lang_edit_cancel = "Annullieren"; # home $lang_home_invalid_dir = "Der Ordner %s existiert nicht!"; $lang_home_logout = "Abmelden"; $lang_home_browse = "Erforschen"; $lang_home_name = "Name"; $lang_home_size = "Größe"; $lang_home_updated = "Zuletzt angepasst"; $lang_home_preview = "Klicke hier um die Datei `%s` zu sehen"; $lang_home_expand = "Ausklappen"; $lang_home_collapse = "Einklappen"; $lang_home_region = "anpassbare Region"; $lang_home_regions = "anpassbare Regionen"; $lang_home_region_preview_content = "( Vorbild Text ) Klicke um zu bearbeiten!"; $lang_home_directories = "Ordner"; $lang_home_directory = "Ordner"; $lang_home_and = " und "; $lang_home_files = "Dateien"; $lang_home_file = "Datei"; }elseif($language == "spanish"){ # index $lang_index_js_warning = "¡Advertencia! Javascript tiene que asegurar el correcto funcionamiento del CMS"; # login $lang_login_security = "Protección"; $lang_login_invalid_license_key = "¡El código de licencia %s no es válido!"; $lang_login_locked_license_key = "El código de licencia %s está bloqueado!"; $lang_login_invalid_url_license_key = "El código de licencia %s ya se utiliza para:

%s"; $lang_login_contact_us = "Contacte con su webmaster."; $lang_login_login = "Introducirse"; $lang_login_username = "Nombre del usuario"; $lang_login_password = "Contraseña"; $lang_login_invalid_login_attempt = "¡El nombre del usuario y la contraseña no son correctos!"; # edit $lang_edit_open_file_failed = "Se ha producido un error al abrir el fichero %s para escribir."; $lang_edit_write_file_failed = "Se ha producido un error al escribir al fichero %s."; $lang_edit_cancel = "Anular"; # home $lang_home_invalid_dir = "¡La carpeta %s no existe!"; $lang_home_browse = "Explorar"; $lang_home_size = "Tamaño"; $lang_home_preview = "Haga clic aquí para ver el fichero `%s`"; $lang_home_name = "Nombre"; $lang_home_updated = "Ultima adaptación"; $lang_home_logout = "Salir"; $lang_home_expand = "Abrirse"; $lang_home_collapse = "Cerrarse"; $lang_home_region = "región adaptable"; $lang_home_regions = "regiones adaptables"; $lang_home_region_preview_content = "( Ejemplo texto ) ¡Haga clic para editar!"; $lang_home_directories = "carpetas"; $lang_home_directory = "carpeta"; $lang_home_and = " y "; $lang_home_files = "ficheros"; $lang_home_file = "fichero"; }else{ # index $lang_index_js_warning = "!Warning! Javascript must be enabled for proper operation of the CMS!"; # login $lang_login_login = "Login"; $lang_login_security = "Security"; $lang_login_username = "Username"; $lang_login_password = "Password"; $lang_login_invalid_login_attempt = "The username and password you entered are not correct!"; $lang_login_invalid_license_key = "The license key %s is invalid!"; $lang_login_locked_license_key = "The license key %s is locked!"; $lang_login_invalid_url_license_key = "The license key %s is allready being used for:

%s"; $lang_login_contact_us = "Please contact your webmaster."; # edit $lang_edit_open_file_failed = "There was an error opening the file %s for writing."; $lang_edit_write_file_failed = "There was an error writing to the file %s."; $lang_edit_cancel = "Cancel"; # home $lang_home_invalid_dir = "The directory %s doesn't exist!"; $lang_home_logout = "Logout"; $lang_home_browse = "Browse"; $lang_home_name = "Name"; $lang_home_size = "Size"; $lang_home_updated = "Updated"; $lang_home_preview = "Click here to see the file `%s`"; $lang_home_expand = "Expand"; $lang_home_collapse = "Collapse"; $lang_home_region = "editable region"; $lang_home_regions = "editable regions"; $lang_home_region_preview_content = "( Example text ) Click to edit!"; $lang_home_directories = "directories"; $lang_home_directory = "directory"; $lang_home_and = " and "; $lang_home_files = "files"; $lang_home_file = "file"; } # Check if the user is logged in. If logged in, the session variable $_SESSION["logged_in"] must be true and the variable $_SESSION["website"] must match. if(isset($_SESSION["logged_in"]) && isset($_SESSION["website"]) && $_SESSION["logged_in"] == true && md5($website) == $_SESSION["website"]){ # If the user is logged in $page = "home"; if(isset($_GET["action"])){ if($_GET["action"] == "logout"){ # Logout session_unset(); header("Location: ../"); exit; }elseif($_GET["action"] == "browse" && isset($_GET["current_directory"])){ # The cannot be a .. in the current_directory. if(strpos($_GET["current_directory"],"..") !== false){ $_GET["current_directory"] = ""; } # Change the current directory if($_GET["current_directory"] == "" || strpos($_GET["current_directory"],"..") !== false){ $_SESSION["current_directory"] = ""; }else{ $_SESSION["current_directory"] = $_GET["current_directory"] ."/"; } if(strpos($_SESSION["deepest_directory"],$_GET["current_directory"] ."/") === false && $_GET["current_directory"] != ""){ $_SESSION["deepest_directory"] = $_GET["current_directory"] ."/"; } header("Location: ./"); exit; }elseif($_GET["action"] == "edit"){ if($_POST){ $content = preg_replace("/" . sprintf($region_syntax,$_POST["region"],"(.*?)") . "/is", sprintf($region_syntax,$_POST["region"],HandleQuotes($_POST["content"])), file_get_contents($root_directory . $_SESSION["current_directory"] . $_POST["filename"])); if(!$handle = @fopen($root_directory . $_SESSION["current_directory"] . $_POST["filename"], "w+")){ $home_error = sprintf($lang_edit_open_file_failed,$_POST["filename"]); } if(!@fwrite($handle, $content)){ $home_error = sprintf($lang_edit_write_file_failed,$_POST["filename"]); @fclose($handle); }else{ @fclose($handle); header("Location: ./"); exit; } }else{ if(file_exists($root_directory . $_SESSION["current_directory"] . $_GET["filename"])){ $page = "edit"; }else{ header("Location: ./"); exit; } } }elseif($_GET["action"] == "expand" && isset($_GET["filename"])){ # File must exist if(is_file($root_directory . $_SESSION["current_directory"] . $_GET["filename"])){ if(array_key_exists($_SESSION["current_directory"] . $_GET["filename"],$_SESSION["collapsed"])){ # This file is allready in the array 'collapsed'. unset($_SESSION["collapsed"][$_SESSION["current_directory"] . $_GET["filename"]]); # Add this file to the array 'expanded'. $_SESSION["expanded"][$_SESSION["current_directory"] . $_GET["filename"]] = 1; }elseif(!array_key_exists($_SESSION["current_directory"] . $_GET["filename"],$_SESSION["expanded"])){ # This file is not yet in the array 'collapsed' or 'expanded' so add this file to the array 'expanded'. $_SESSION["expanded"][$_SESSION["current_directory"] . $_GET["filename"]] = 1; } } header("Location: ./"); exit; }elseif($_GET["action"] == "collapse" && isset($_GET["filename"])){ # File must exist if(is_file($root_directory . $_SESSION["current_directory"] . $_GET["filename"])){ if(array_key_exists($_SESSION["current_directory"] . $_GET["filename"],$_SESSION["expanded"])){ # This file is allready in the array 'expanded'. unset($_SESSION["expanded"][$_SESSION["current_directory"] . $_GET["filename"]]); # Add this file to the array 'collapsed'. $_SESSION["collapsed"][$_SESSION["current_directory"] . $_GET["filename"]] = 1; }elseif(!array_key_exists($_SESSION["current_directory"] . $_GET["filename"],$_SESSION["collapsed"])){ # This file is not yet in the array 'collapsed' or 'expanded' so add this file to the array 'collapsed'. $_SESSION["collapsed"][$_SESSION["current_directory"] . $_GET["filename"]] = 1; } } header("Location: ./"); exit; } } }else{ # If the user is not logged in. $page = "login"; if($_POST && isset($_POST["username"]) && isset($_POST["password"])){ # Check if the submitted username and password are the same as in the config. if($username == $_POST["username"] && $password == $_POST["password"]){ # The username and password are correctly filled in, so set the SESSION variables. $_SESSION["logged_in"] = true; $_SESSION["license_key"] = $license_key; $_SESSION["deepest_directory"] = ""; $_SESSION["current_directory"] = ""; $_SESSION["collapsed"] = array(); $_SESSION["expanded"] = array(); $_SESSION["website"] = md5($website); header("Location: ./"); exit; }else{ # The username and password are NOT correctl, so unset the SESSION variables and echo an error. session_unset(); $login_error = "
" . $lang_login_invalid_login_attempt . ""; } } } ?> Mini File CMS


"; echo $lang_login_contact_us; ?>




" . $dir . ""; } echo " "; } } ?>
" . $root_dir . ""; }else{ echo $root_dir; } ?>
" . $dir . "

" . sprintf($lang_home_invalid_dir, $root_directory . $_SESSION["current_directory"]) . ""; }else{ # The table with all the directories and files in it. ?> 0){ $directories[] = $name; } } } } closedir($dir); } # Show all directories natcasesort($directories); foreach($directories as $dirname){ echo " "; if($dir_size){ echo " "; }else{ echo " "; } echo " "; } # Show all files natcasesort($files); foreach($files as $index => $filename){ $regions = $files_regions[$index]; if(count($regions) == 1){ $region_text = "1 " . $lang_home_region; }else{ $region_text = count($regions) . " " . $lang_home_regions; } # Get the extention and dertemine the icon $extention_icon = array( "htm" => "html", "php2" => "php", "php3" => "php", "php4" => "php", "phtm" => "php", "phtml" => "php", "inc" => "txt" ); if(strpos($filename,".") !== false){ $extention = trim(substr($filename,strrpos($filename,".")+1)); if(file_exists("images/mime/" . $extention . ".gif")){ $icon = $extention; }elseif(array_key_exists($extention,$extention_icon)){ $icon = $extention_icon[$extention]; }else{ $icon = "ukn"; } }else{ $icon = "ukn"; } if(array_key_exists($_SESSION["current_directory"] . $filename, $_SESSION["collapsed"])){ $collapse_expand_action = "expand"; $file_image = "right"; $file_title = $lang_home_expand; }elseif(array_key_exists($_SESSION["current_directory"] . $filename, $_SESSION["expanded"])){ $collapse_expand_action = "collapse"; $file_image = "bottom"; $file_title = $lang_home_collapse; }elseif($collapse_all){ $collapse_expand_action = "expand"; $file_image = "right"; $file_title = $lang_home_expand; }else{ $collapse_expand_action = "collapse"; $file_image = "bottom"; $file_title = $lang_home_collapse; } # Show the file echo " "; # Show the regions of this file if the status is not collapsed if($collapse_expand_action == "collapse"){ $i = 1; foreach($regions as $name){ preg_match("/" . sprintf($region_syntax,$name,"(.*?)") . "/is", file_get_contents($root_directory . $_SESSION["current_directory"] . $filename), $match); $preview_content = substr(strip_tags($match[1]),0,300); echo " "; $i++; } } } ?>
" . $dirname . "" . actual_size(dir_size($root_directory . $_SESSION["current_directory"] . $dirname)) . "" . updated(dirmtime($root_directory . $_SESSION["current_directory"] . $dirname)) . "
" . $filename . " (" . $region_text . ") " . actual_size(filesize($root_directory . $_SESSION["current_directory"] . $filename)) . " " . updated(filemtime($root_directory . $_SESSION["current_directory"] . $filename)) . "
" . $lang_home_region_preview_content . "

" . addslashes(str_replace("\r","",str_replace("\n","",str_replace("\"","'",$preview_content)))) . "')\" onmouseout=\"return show_hide_box(this, 400, 110, '" . $lang_home_region_preview_content . "

" . addslashes(str_replace("\r","",str_replace("\n","",str_replace("\"","'",$preview_content)))) . "')\">" . $name . "

" . $home_error; } ?>
" /> " />

Mini File CMS