config(); break; case 'list': view(); break; case 'edit': edit(); break; case 'add': add(); break; case 'codegen': codegen(); break; case 'fileupload': fileupload(); break; case 'logout': logout(); break; default: menu(); break; } function dateselect($name, $date) { global $bannerAdsTime; $month = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); if ($date == '99999999') { $date = $bannerAdsTime; }
} function deleteFile(file) { if (confirmDelete()) { window.location.href="index.php?a=31&mode=delete&path="+current_path+'/'+file+"&token=<?php echo $newToken; ?> "; return false; } } </script> <?php if (!empty($_FILES['userfile'])) { $information = fileupload(); } elseif ($_POST['mode'] == 'save') { echo textsave(); } elseif ($_REQUEST['mode'] == 'delete') { echo delete_file(); } if (in_array($startpath, $proteted_path)) { $modx->webAlertAndQuit($_lang["files.dynamic.php2"]); } $tpl = '<img src="[+style_path+]tree/[+image+]" align="absmiddle" alt="" />[+subject+] '; $ph = array(); $ph['style_path'] = $theme_image_path; // To Top Level with folder icon to the left if ($startpath == $filemanager_path || $startpath . '/' == $filemanager_path) { $ph['image'] = 'deletedfolder.gif'; $ph['subject'] = '<span style="color:#bbb;cursor:default;">Top</span>';