3 or ($member_db[1] != 1 and $action == "doimagedelete")){ msg("error", "Access Denied", "You don't have permission to manage images"); } /////////////////////////////////////////// //Configuration $files_per_page = $config_files_per_page; $show_download_size = $config_files_downlowad_size; $show_download_counter = $config_files_downlowad_count; $download_counter_text = $config_download_counter_text; /////////////////////////////////////////// $config_path_file_upload = "./data/files"; //Create upload directory if(!file_exists($config_path_file_upload)) mkdir($config_path_file_upload); //Create data/files.txt if(!file_exists('./data/files.txt')) touch('./data/files.txt'); //Create .htaccess file if(!file_exists($config_path_file_upload.'/.htaccess')){ $ht_file = fopen($config_path_file_upload.'/.htaccess', w); $htaccess = "Order Deny,Allow\nAllow from all"; fwrite($ht_file, $htaccess); fclose($config_path_file_upload.'/.htaccess'); } // ******************************************************************************** // Show Images List // ******************************************************************************** if($action != "doimagedelete") { if($action == "quick") { echo"