@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | if(!$modx->hasPermission('web_access_permissions')) { |
| 6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | // web access group processor. |
@@ -20,111 +20,111 @@ discard block |
||
| 20 | 20 | $operation = $_REQUEST['operation']; |
| 21 | 21 | |
| 22 | 22 | switch ($operation) { |
| 23 | - case "add_user_group" : |
|
| 24 | - $newgroup = $_REQUEST['newusergroup']; |
|
| 25 | - if(empty($newgroup)) { |
|
| 26 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 27 | - } else { |
|
| 28 | - $id = $modx->getDatabase()->insert(array('name'=>$modx->getDatabase()->escape($newgroup)), $tbl_webgroup_names); |
|
| 23 | + case "add_user_group" : |
|
| 24 | + $newgroup = $_REQUEST['newusergroup']; |
|
| 25 | + if(empty($newgroup)) { |
|
| 26 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 27 | + } else { |
|
| 28 | + $id = $modx->getDatabase()->insert(array('name'=>$modx->getDatabase()->escape($newgroup)), $tbl_webgroup_names); |
|
| 29 | 29 | |
| 30 | - // invoke OnWebCreateGroup event |
|
| 31 | - $modx->invokeEvent('OnWebCreateGroup', array( |
|
| 32 | - 'groupid' => $id, |
|
| 33 | - 'groupname' => $newgroup, |
|
| 34 | - )); |
|
| 35 | - } |
|
| 36 | - break; |
|
| 37 | - case "add_document_group" : |
|
| 38 | - $newgroup = $_REQUEST['newdocgroup']; |
|
| 39 | - if(empty($newgroup)) { |
|
| 40 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 41 | - } else { |
|
| 42 | - $id = $modx->getDatabase()->insert(array('name'=>$modx->getDatabase()->escape($newgroup)), $tbl_documentgroup_names); |
|
| 30 | + // invoke OnWebCreateGroup event |
|
| 31 | + $modx->invokeEvent('OnWebCreateGroup', array( |
|
| 32 | + 'groupid' => $id, |
|
| 33 | + 'groupname' => $newgroup, |
|
| 34 | + )); |
|
| 35 | + } |
|
| 36 | + break; |
|
| 37 | + case "add_document_group" : |
|
| 38 | + $newgroup = $_REQUEST['newdocgroup']; |
|
| 39 | + if(empty($newgroup)) { |
|
| 40 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 41 | + } else { |
|
| 42 | + $id = $modx->getDatabase()->insert(array('name'=>$modx->getDatabase()->escape($newgroup)), $tbl_documentgroup_names); |
|
| 43 | 43 | |
| 44 | - // invoke OnCreateDocGroup event |
|
| 45 | - $modx->invokeEvent('OnCreateDocGroup', array( |
|
| 46 | - 'groupid' => $id, |
|
| 47 | - 'groupname' => $newgroup, |
|
| 48 | - )); |
|
| 49 | - } |
|
| 50 | - break; |
|
| 51 | - case "delete_user_group" : |
|
| 52 | - $updategroupaccess = true; |
|
| 53 | - $usergroup = (int)$_REQUEST['usergroup']; |
|
| 54 | - if(empty($usergroup)) { |
|
| 55 | - $modx->webAlertAndQuit("No user group id specified for deletion."); |
|
| 56 | - } else { |
|
| 57 | - $modx->getDatabase()->delete($tbl_webgroup_names, "id='{$usergroup}'"); |
|
| 44 | + // invoke OnCreateDocGroup event |
|
| 45 | + $modx->invokeEvent('OnCreateDocGroup', array( |
|
| 46 | + 'groupid' => $id, |
|
| 47 | + 'groupname' => $newgroup, |
|
| 48 | + )); |
|
| 49 | + } |
|
| 50 | + break; |
|
| 51 | + case "delete_user_group" : |
|
| 52 | + $updategroupaccess = true; |
|
| 53 | + $usergroup = (int)$_REQUEST['usergroup']; |
|
| 54 | + if(empty($usergroup)) { |
|
| 55 | + $modx->webAlertAndQuit("No user group id specified for deletion."); |
|
| 56 | + } else { |
|
| 57 | + $modx->getDatabase()->delete($tbl_webgroup_names, "id='{$usergroup}'"); |
|
| 58 | 58 | |
| 59 | - $modx->getDatabase()->delete($tbl_webgroup_access, "webgroup='{$usergroup}'"); |
|
| 59 | + $modx->getDatabase()->delete($tbl_webgroup_access, "webgroup='{$usergroup}'"); |
|
| 60 | 60 | |
| 61 | - $modx->getDatabase()->delete($tbl_web_groups, "webuser='{$usergroup}'"); |
|
| 62 | - } |
|
| 63 | - break; |
|
| 64 | - case "delete_document_group" : |
|
| 65 | - $group = (int)$_REQUEST['documentgroup']; |
|
| 66 | - if(empty($group)) { |
|
| 67 | - $modx->webAlertAndQuit("No document group id specified for deletion."); |
|
| 68 | - } else { |
|
| 69 | - $modx->getDatabase()->delete($tbl_documentgroup_names, "id='{$group}'"); |
|
| 61 | + $modx->getDatabase()->delete($tbl_web_groups, "webuser='{$usergroup}'"); |
|
| 62 | + } |
|
| 63 | + break; |
|
| 64 | + case "delete_document_group" : |
|
| 65 | + $group = (int)$_REQUEST['documentgroup']; |
|
| 66 | + if(empty($group)) { |
|
| 67 | + $modx->webAlertAndQuit("No document group id specified for deletion."); |
|
| 68 | + } else { |
|
| 69 | + $modx->getDatabase()->delete($tbl_documentgroup_names, "id='{$group}'"); |
|
| 70 | 70 | |
| 71 | - $modx->getDatabase()->delete($tbl_webgroup_access, "documentgroup='{$group}'"); |
|
| 71 | + $modx->getDatabase()->delete($tbl_webgroup_access, "documentgroup='{$group}'"); |
|
| 72 | 72 | |
| 73 | - $modx->getDatabase()->delete($tbl_document_groups, "document_group='{$group}'"); |
|
| 74 | - } |
|
| 75 | - break; |
|
| 76 | - case "rename_user_group" : |
|
| 77 | - $newgroupname = $_REQUEST['newgroupname']; |
|
| 78 | - if(empty($newgroupname)) { |
|
| 79 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 80 | - } |
|
| 81 | - $groupid = (int)$_REQUEST['groupid']; |
|
| 82 | - if(empty($groupid)) { |
|
| 83 | - $modx->webAlertAndQuit("No user group id specified for rename."); |
|
| 84 | - } |
|
| 85 | - $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_webgroup_names, "id='{$groupid}'"); |
|
| 86 | - break; |
|
| 87 | - case "rename_document_group" : |
|
| 88 | - $newgroupname = $_REQUEST['newgroupname']; |
|
| 89 | - if(empty($newgroupname)) { |
|
| 90 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 91 | - } |
|
| 92 | - $groupid = (int)$_REQUEST['groupid']; |
|
| 93 | - if(empty($groupid)) { |
|
| 94 | - $modx->webAlertAndQuit("No document group id specified for rename."); |
|
| 95 | - } |
|
| 96 | - $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_documentgroup_names, "id='{$groupid}'"); |
|
| 97 | - break; |
|
| 98 | - case "add_document_group_to_user_group" : |
|
| 99 | - $updategroupaccess = true; |
|
| 100 | - $usergroup = (int)$_REQUEST['usergroup']; |
|
| 101 | - $docgroup = (int)$_REQUEST['docgroup']; |
|
| 102 | - $rs = $modx->getDatabase()->select('COUNT(*)', $tbl_webgroup_access, "webgroup='{$usergroup}' AND documentgroup='{$docgroup}'"); |
|
| 103 | - $limit = $modx->getDatabase()->getValue($rs); |
|
| 104 | - if($limit<=0) { |
|
| 105 | - $modx->getDatabase()->insert(array('webgroup'=>$usergroup, 'documentgroup'=>$docgroup), $tbl_webgroup_access); |
|
| 106 | - } else { |
|
| 107 | - //alert user that coupling already exists? |
|
| 108 | - } |
|
| 109 | - break; |
|
| 110 | - case "remove_document_group_from_user_group" : |
|
| 111 | - $updategroupaccess = true; |
|
| 112 | - $coupling = (int)$_REQUEST['coupling']; |
|
| 113 | - $modx->getDatabase()->delete($tbl_webgroup_access, "id='{$coupling}'"); |
|
| 114 | - break; |
|
| 115 | - default : |
|
| 116 | - $modx->webAlertAndQuit("No operation set in request."); |
|
| 73 | + $modx->getDatabase()->delete($tbl_document_groups, "document_group='{$group}'"); |
|
| 74 | + } |
|
| 75 | + break; |
|
| 76 | + case "rename_user_group" : |
|
| 77 | + $newgroupname = $_REQUEST['newgroupname']; |
|
| 78 | + if(empty($newgroupname)) { |
|
| 79 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 80 | + } |
|
| 81 | + $groupid = (int)$_REQUEST['groupid']; |
|
| 82 | + if(empty($groupid)) { |
|
| 83 | + $modx->webAlertAndQuit("No user group id specified for rename."); |
|
| 84 | + } |
|
| 85 | + $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_webgroup_names, "id='{$groupid}'"); |
|
| 86 | + break; |
|
| 87 | + case "rename_document_group" : |
|
| 88 | + $newgroupname = $_REQUEST['newgroupname']; |
|
| 89 | + if(empty($newgroupname)) { |
|
| 90 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 91 | + } |
|
| 92 | + $groupid = (int)$_REQUEST['groupid']; |
|
| 93 | + if(empty($groupid)) { |
|
| 94 | + $modx->webAlertAndQuit("No document group id specified for rename."); |
|
| 95 | + } |
|
| 96 | + $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_documentgroup_names, "id='{$groupid}'"); |
|
| 97 | + break; |
|
| 98 | + case "add_document_group_to_user_group" : |
|
| 99 | + $updategroupaccess = true; |
|
| 100 | + $usergroup = (int)$_REQUEST['usergroup']; |
|
| 101 | + $docgroup = (int)$_REQUEST['docgroup']; |
|
| 102 | + $rs = $modx->getDatabase()->select('COUNT(*)', $tbl_webgroup_access, "webgroup='{$usergroup}' AND documentgroup='{$docgroup}'"); |
|
| 103 | + $limit = $modx->getDatabase()->getValue($rs); |
|
| 104 | + if($limit<=0) { |
|
| 105 | + $modx->getDatabase()->insert(array('webgroup'=>$usergroup, 'documentgroup'=>$docgroup), $tbl_webgroup_access); |
|
| 106 | + } else { |
|
| 107 | + //alert user that coupling already exists? |
|
| 108 | + } |
|
| 109 | + break; |
|
| 110 | + case "remove_document_group_from_user_group" : |
|
| 111 | + $updategroupaccess = true; |
|
| 112 | + $coupling = (int)$_REQUEST['coupling']; |
|
| 113 | + $modx->getDatabase()->delete($tbl_webgroup_access, "id='{$coupling}'"); |
|
| 114 | + break; |
|
| 115 | + default : |
|
| 116 | + $modx->webAlertAndQuit("No operation set in request."); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | // secure web documents - flag as private |
| 120 | 120 | if($updategroupaccess==true){ |
| 121 | - include MODX_MANAGER_PATH."includes/secure_web_documents.inc.php"; |
|
| 122 | - secureWebDocument(); |
|
| 121 | + include MODX_MANAGER_PATH."includes/secure_web_documents.inc.php"; |
|
| 122 | + secureWebDocument(); |
|
| 123 | 123 | |
| 124 | - // Update the private group column |
|
| 125 | - $modx->getDatabase()->update( |
|
| 126 | - 'dgn.private_webgroup = (wga.webgroup IS NOT NULL)', |
|
| 127 | - "{$tbl_documentgroup_names} AS dgn LEFT JOIN {$tbl_webgroup_access} AS wga ON wga.documentgroup = dgn.id"); |
|
| 124 | + // Update the private group column |
|
| 125 | + $modx->getDatabase()->update( |
|
| 126 | + 'dgn.private_webgroup = (wga.webgroup IS NOT NULL)', |
|
| 127 | + "{$tbl_documentgroup_names} AS dgn LEFT JOIN {$tbl_webgroup_access} AS wga ON wga.documentgroup = dgn.id"); |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | $header = "Location: index.php?a=91"; |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | if(!$modx->hasPermission('export_static')) { |
| 6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | $maxtime = (is_numeric($_POST['maxtime'])) ? $_POST['maxtime'] : 30; |
@@ -15,11 +15,11 @@ discard block |
||
| 15 | 15 | $modx->getExportSite()->targetDir = $export_dir; |
| 16 | 16 | |
| 17 | 17 | if(strpos($modx->config['base_path'],"{$export_dir}/")===0 && 0 <= strlen(str_replace("{$export_dir}/",'',$modx->config['base_path']))) |
| 18 | - return $_lang['export_site.static.php6']; |
|
| 18 | + return $_lang['export_site.static.php6']; |
|
| 19 | 19 | elseif($modx->config['rb_base_dir'] === $export_dir . '/') |
| 20 | - return $modx->parsePlaceholder($_lang['export_site.static.php7'],'rb_base_url=' . $modx->config['base_url'] . $modx->config['rb_base_url']); |
|
| 20 | + return $modx->parsePlaceholder($_lang['export_site.static.php7'],'rb_base_url=' . $modx->config['base_url'] . $modx->config['rb_base_url']); |
|
| 21 | 21 | elseif(!is_writable($export_dir)) |
| 22 | - return $_lang['export_site_target_unwritable']; |
|
| 22 | + return $_lang['export_site_target_unwritable']; |
|
| 23 | 23 | |
| 24 | 24 | $modx->getExportSite()->generate_mode = $_POST['generate_mode']; |
| 25 | 25 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | ||$includenoncache!==$_POST['includenoncache'] |
| 36 | 36 | ||$repl_before!==$_POST['repl_before'] |
| 37 | 37 | ||$repl_after !==$_POST['repl_after']) { |
| 38 | - $modx->clearCache('full'); |
|
| 38 | + $modx->clearCache('full'); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | $total = $modx->getExportSite()->getTotal($_POST['ignore_ids'], $modx->config['export_includenoncache']); |
@@ -3,33 +3,33 @@ |
||
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | if(!($modx->hasPermission('settings') && ($modx->hasPermission('logs')||$modx->hasPermission('bk_manager')))) { |
| 6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | if (isset($_REQUEST['t'])) { |
| 10 | 10 | |
| 11 | - if (empty($_REQUEST['t'])) { |
|
| 12 | - $modx->webAlertAndQuit($_lang["error_no_optimise_tablename"]); |
|
| 13 | - } |
|
| 11 | + if (empty($_REQUEST['t'])) { |
|
| 12 | + $modx->webAlertAndQuit($_lang["error_no_optimise_tablename"]); |
|
| 13 | + } |
|
| 14 | 14 | |
| 15 | - // Set the item name for logger |
|
| 16 | - $_SESSION['itemname'] = $_REQUEST['t']; |
|
| 15 | + // Set the item name for logger |
|
| 16 | + $_SESSION['itemname'] = $_REQUEST['t']; |
|
| 17 | 17 | |
| 18 | - $modx->getDatabase()->optimize($_REQUEST['t']); |
|
| 18 | + $modx->getDatabase()->optimize($_REQUEST['t']); |
|
| 19 | 19 | |
| 20 | 20 | } elseif (isset($_REQUEST['u'])) { |
| 21 | 21 | |
| 22 | - if (empty($_REQUEST['u'])) { |
|
| 23 | - $modx->webAlertAndQuit($_lang["error_no_truncate_tablename"]); |
|
| 24 | - } |
|
| 22 | + if (empty($_REQUEST['u'])) { |
|
| 23 | + $modx->webAlertAndQuit($_lang["error_no_truncate_tablename"]); |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - // Set the item name for logger |
|
| 27 | - $_SESSION['itemname'] = $_REQUEST['u']; |
|
| 26 | + // Set the item name for logger |
|
| 27 | + $_SESSION['itemname'] = $_REQUEST['u']; |
|
| 28 | 28 | |
| 29 | - $modx->getDatabase()->truncate($_REQUEST['u']); |
|
| 29 | + $modx->getDatabase()->truncate($_REQUEST['u']); |
|
| 30 | 30 | |
| 31 | 31 | } else { |
| 32 | - $modx->webAlertAndQuit($_lang["error_no_optimise_tablename"]); |
|
| 32 | + $modx->webAlertAndQuit($_lang["error_no_optimise_tablename"]); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | $mode = (int)$_REQUEST['mode']; |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | if(!$modx->hasPermission('access_permissions')) { |
| 6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | // access group processor. |
@@ -20,113 +20,113 @@ discard block |
||
| 20 | 20 | $operation = $_REQUEST['operation']; |
| 21 | 21 | |
| 22 | 22 | switch ($operation) { |
| 23 | - case "add_user_group" : |
|
| 24 | - $newgroup = $_REQUEST['newusergroup']; |
|
| 25 | - if(empty($newgroup)) { |
|
| 26 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 27 | - } else { |
|
| 28 | - $id = $modx->getDatabase()->insert(array('name' => $modx->getDatabase()->escape($newgroup)), $tbl_membergroup_names); |
|
| 23 | + case "add_user_group" : |
|
| 24 | + $newgroup = $_REQUEST['newusergroup']; |
|
| 25 | + if(empty($newgroup)) { |
|
| 26 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 27 | + } else { |
|
| 28 | + $id = $modx->getDatabase()->insert(array('name' => $modx->getDatabase()->escape($newgroup)), $tbl_membergroup_names); |
|
| 29 | 29 | |
| 30 | - // invoke OnManagerCreateGroup event |
|
| 31 | - $modx->invokeEvent('OnManagerCreateGroup', array( |
|
| 32 | - 'groupid' => $id, |
|
| 33 | - 'groupname' => $newgroup, |
|
| 34 | - )); |
|
| 35 | - } |
|
| 36 | - break; |
|
| 37 | - case "add_document_group" : |
|
| 38 | - $newgroup = $_REQUEST['newdocgroup']; |
|
| 39 | - if(empty($newgroup)) { |
|
| 40 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 41 | - } else { |
|
| 42 | - $id = $modx->getDatabase()->insert(array('name' => $modx->getDatabase()->escape($newgroup)), $tbl_documentgroup_names); |
|
| 30 | + // invoke OnManagerCreateGroup event |
|
| 31 | + $modx->invokeEvent('OnManagerCreateGroup', array( |
|
| 32 | + 'groupid' => $id, |
|
| 33 | + 'groupname' => $newgroup, |
|
| 34 | + )); |
|
| 35 | + } |
|
| 36 | + break; |
|
| 37 | + case "add_document_group" : |
|
| 38 | + $newgroup = $_REQUEST['newdocgroup']; |
|
| 39 | + if(empty($newgroup)) { |
|
| 40 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 41 | + } else { |
|
| 42 | + $id = $modx->getDatabase()->insert(array('name' => $modx->getDatabase()->escape($newgroup)), $tbl_documentgroup_names); |
|
| 43 | 43 | |
| 44 | - // invoke OnCreateDocGroup event |
|
| 45 | - $modx->invokeEvent('OnCreateDocGroup', array( |
|
| 46 | - 'groupid' => $id, |
|
| 47 | - 'groupname' => $newgroup, |
|
| 48 | - )); |
|
| 49 | - } |
|
| 50 | - break; |
|
| 51 | - case "delete_user_group" : |
|
| 52 | - $updategroupaccess = true; |
|
| 53 | - $usergroup = (int)$_REQUEST['usergroup']; |
|
| 54 | - if(empty($usergroup)) { |
|
| 55 | - $modx->webAlertAndQuit("No user group id specified for deletion."); |
|
| 56 | - } else { |
|
| 57 | - $modx->getDatabase()->delete($tbl_membergroup_names, "id='{$usergroup}'"); |
|
| 44 | + // invoke OnCreateDocGroup event |
|
| 45 | + $modx->invokeEvent('OnCreateDocGroup', array( |
|
| 46 | + 'groupid' => $id, |
|
| 47 | + 'groupname' => $newgroup, |
|
| 48 | + )); |
|
| 49 | + } |
|
| 50 | + break; |
|
| 51 | + case "delete_user_group" : |
|
| 52 | + $updategroupaccess = true; |
|
| 53 | + $usergroup = (int)$_REQUEST['usergroup']; |
|
| 54 | + if(empty($usergroup)) { |
|
| 55 | + $modx->webAlertAndQuit("No user group id specified for deletion."); |
|
| 56 | + } else { |
|
| 57 | + $modx->getDatabase()->delete($tbl_membergroup_names, "id='{$usergroup}'"); |
|
| 58 | 58 | |
| 59 | - $modx->getDatabase()->delete($tbl_membergroup_access, "membergroup='{$usergroup}'"); |
|
| 59 | + $modx->getDatabase()->delete($tbl_membergroup_access, "membergroup='{$usergroup}'"); |
|
| 60 | 60 | |
| 61 | - $modx->getDatabase()->delete($tbl_member_groups, "user_group='{$usergroup}'"); |
|
| 62 | - } |
|
| 63 | - break; |
|
| 64 | - case "delete_document_group" : |
|
| 65 | - $group = (int)$_REQUEST['documentgroup']; |
|
| 66 | - if(empty($group)) { |
|
| 67 | - $modx->webAlertAndQuit("No document group id specified for deletion."); |
|
| 68 | - } else { |
|
| 69 | - $modx->getDatabase()->delete($tbl_documentgroup_names, "id='{$group}'"); |
|
| 61 | + $modx->getDatabase()->delete($tbl_member_groups, "user_group='{$usergroup}'"); |
|
| 62 | + } |
|
| 63 | + break; |
|
| 64 | + case "delete_document_group" : |
|
| 65 | + $group = (int)$_REQUEST['documentgroup']; |
|
| 66 | + if(empty($group)) { |
|
| 67 | + $modx->webAlertAndQuit("No document group id specified for deletion."); |
|
| 68 | + } else { |
|
| 69 | + $modx->getDatabase()->delete($tbl_documentgroup_names, "id='{$group}'"); |
|
| 70 | 70 | |
| 71 | - $modx->getDatabase()->delete($tbl_membergroup_access, "documentgroup='{$group}'"); |
|
| 71 | + $modx->getDatabase()->delete($tbl_membergroup_access, "documentgroup='{$group}'"); |
|
| 72 | 72 | |
| 73 | - $modx->getDatabase()->delete($tbl_document_groups, "document_group='{$group}'"); |
|
| 74 | - } |
|
| 75 | - break; |
|
| 76 | - case "rename_user_group" : |
|
| 77 | - $newgroupname = $_REQUEST['newgroupname']; |
|
| 78 | - if(empty($newgroupname)) { |
|
| 79 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 80 | - } |
|
| 81 | - $groupid = (int)$_REQUEST['groupid']; |
|
| 82 | - if(empty($groupid)) { |
|
| 83 | - $modx->webAlertAndQuit("No group id specified for rename."); |
|
| 84 | - } |
|
| 73 | + $modx->getDatabase()->delete($tbl_document_groups, "document_group='{$group}'"); |
|
| 74 | + } |
|
| 75 | + break; |
|
| 76 | + case "rename_user_group" : |
|
| 77 | + $newgroupname = $_REQUEST['newgroupname']; |
|
| 78 | + if(empty($newgroupname)) { |
|
| 79 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 80 | + } |
|
| 81 | + $groupid = (int)$_REQUEST['groupid']; |
|
| 82 | + if(empty($groupid)) { |
|
| 83 | + $modx->webAlertAndQuit("No group id specified for rename."); |
|
| 84 | + } |
|
| 85 | 85 | |
| 86 | - $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_membergroup_names, "id='{$groupid}'"); |
|
| 87 | - break; |
|
| 88 | - case "rename_document_group" : |
|
| 89 | - $newgroupname = $_REQUEST['newgroupname']; |
|
| 90 | - if(empty($newgroupname)) { |
|
| 91 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 92 | - } |
|
| 93 | - $groupid = (int)$_REQUEST['groupid']; |
|
| 94 | - if(empty($groupid)) { |
|
| 95 | - $modx->webAlertAndQuit("No group id specified for rename."); |
|
| 96 | - } |
|
| 86 | + $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_membergroup_names, "id='{$groupid}'"); |
|
| 87 | + break; |
|
| 88 | + case "rename_document_group" : |
|
| 89 | + $newgroupname = $_REQUEST['newgroupname']; |
|
| 90 | + if(empty($newgroupname)) { |
|
| 91 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 92 | + } |
|
| 93 | + $groupid = (int)$_REQUEST['groupid']; |
|
| 94 | + if(empty($groupid)) { |
|
| 95 | + $modx->webAlertAndQuit("No group id specified for rename."); |
|
| 96 | + } |
|
| 97 | 97 | |
| 98 | - $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_documentgroup_names, "id='{$groupid}'"); |
|
| 99 | - break; |
|
| 100 | - case "add_document_group_to_user_group" : |
|
| 101 | - $updategroupaccess = true; |
|
| 102 | - $usergroup = (int)$_REQUEST['usergroup']; |
|
| 103 | - $docgroup = (int)$_REQUEST['docgroup']; |
|
| 104 | - $rs = $modx->getDatabase()->select('COUNT(*)', $tbl_membergroup_access, "membergroup='{$usergroup}' AND documentgroup='{$docgroup}'"); |
|
| 105 | - $limit = $modx->getDatabase()->getValue($rs); |
|
| 106 | - if($limit<=0) { |
|
| 107 | - $modx->getDatabase()->insert(array('membergroup' => $usergroup, 'documentgroup' => $docgroup), $tbl_membergroup_access); |
|
| 108 | - } else { |
|
| 109 | - //alert user that coupling already exists? |
|
| 110 | - } |
|
| 111 | - break; |
|
| 112 | - case "remove_document_group_from_user_group" : |
|
| 113 | - $updategroupaccess = true; |
|
| 114 | - $coupling = (int)$_REQUEST['coupling']; |
|
| 115 | - $modx->getDatabase()->delete($tbl_membergroup_access, "id='{$coupling}'"); |
|
| 116 | - break; |
|
| 117 | - default : |
|
| 118 | - $modx->webAlertAndQuit("No operation set in request."); |
|
| 98 | + $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_documentgroup_names, "id='{$groupid}'"); |
|
| 99 | + break; |
|
| 100 | + case "add_document_group_to_user_group" : |
|
| 101 | + $updategroupaccess = true; |
|
| 102 | + $usergroup = (int)$_REQUEST['usergroup']; |
|
| 103 | + $docgroup = (int)$_REQUEST['docgroup']; |
|
| 104 | + $rs = $modx->getDatabase()->select('COUNT(*)', $tbl_membergroup_access, "membergroup='{$usergroup}' AND documentgroup='{$docgroup}'"); |
|
| 105 | + $limit = $modx->getDatabase()->getValue($rs); |
|
| 106 | + if($limit<=0) { |
|
| 107 | + $modx->getDatabase()->insert(array('membergroup' => $usergroup, 'documentgroup' => $docgroup), $tbl_membergroup_access); |
|
| 108 | + } else { |
|
| 109 | + //alert user that coupling already exists? |
|
| 110 | + } |
|
| 111 | + break; |
|
| 112 | + case "remove_document_group_from_user_group" : |
|
| 113 | + $updategroupaccess = true; |
|
| 114 | + $coupling = (int)$_REQUEST['coupling']; |
|
| 115 | + $modx->getDatabase()->delete($tbl_membergroup_access, "id='{$coupling}'"); |
|
| 116 | + break; |
|
| 117 | + default : |
|
| 118 | + $modx->webAlertAndQuit("No operation set in request."); |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | // secure manager documents - flag as private |
| 122 | 122 | if($updategroupaccess==true){ |
| 123 | - include MODX_MANAGER_PATH."includes/secure_mgr_documents.inc.php"; |
|
| 124 | - secureMgrDocument(); |
|
| 123 | + include MODX_MANAGER_PATH."includes/secure_mgr_documents.inc.php"; |
|
| 124 | + secureMgrDocument(); |
|
| 125 | 125 | |
| 126 | - // Update the private group column |
|
| 127 | - $modx->getDatabase()->update( |
|
| 128 | - 'dgn.private_memgroup = (mga.membergroup IS NOT NULL)', |
|
| 129 | - "{$tbl_documentgroup_names} AS dgn LEFT JOIN {$tbl_membergroup_access} AS mga ON mga.documentgroup = dgn.id"); |
|
| 126 | + // Update the private group column |
|
| 127 | + $modx->getDatabase()->update( |
|
| 128 | + 'dgn.private_memgroup = (mga.membergroup IS NOT NULL)', |
|
| 129 | + "{$tbl_documentgroup_names} AS dgn LEFT JOIN {$tbl_membergroup_access} AS mga ON mga.documentgroup = dgn.id"); |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | $header = "Location: index.php?a=40"; |
@@ -60,22 +60,22 @@ discard block |
||
| 60 | 60 | $site_hostnames_path = $base_path . 'assets/cache/siteHostnames.php'; |
| 61 | 61 | if(is_file($site_hostnames_path)) include_once($site_hostnames_path); |
| 62 | 62 | if(!defined('MGR_DIR') || MGR_DIR!==$mgr_dir) { |
| 63 | - $src = "<?php\n"; |
|
| 64 | - $src .= "define('MGR_DIR', '{$mgr_dir}');\n"; |
|
| 65 | - $rs = file_put_contents($site_mgr_path,$src); |
|
| 66 | - if(!$rs) { |
|
| 67 | - echo 'siteManager.php write error'; |
|
| 68 | - exit; |
|
| 69 | - } |
|
| 70 | - sleep(1); |
|
| 71 | - header('Location:' . $_SERVER['REQUEST_URI']); |
|
| 72 | - exit; |
|
| 63 | + $src = "<?php\n"; |
|
| 64 | + $src .= "define('MGR_DIR', '{$mgr_dir}');\n"; |
|
| 65 | + $rs = file_put_contents($site_mgr_path,$src); |
|
| 66 | + if(!$rs) { |
|
| 67 | + echo 'siteManager.php write error'; |
|
| 68 | + exit; |
|
| 69 | + } |
|
| 70 | + sleep(1); |
|
| 71 | + header('Location:' . $_SERVER['REQUEST_URI']); |
|
| 72 | + exit; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | // we use this to make sure files are accessed through |
| 76 | 76 | // the manager instead of seperately. |
| 77 | 77 | if ( ! defined('IN_MANAGER_MODE')) { |
| 78 | - define('IN_MANAGER_MODE', true); |
|
| 78 | + define('IN_MANAGER_MODE', true); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | // harden it |
@@ -96,16 +96,16 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | // check PHP version. EVO is compatible with php 5 (5.0.0+) |
| 98 | 98 | $php_ver_comp = version_compare(phpversion(), "5.0.0"); |
| 99 | - // -1 if left is less, 0 if equal, +1 if left is higher |
|
| 99 | + // -1 if left is less, 0 if equal, +1 if left is higher |
|
| 100 | 100 | if($php_ver_comp < 0) { |
| 101 | - echo sprintf($_lang['php_version_check'], phpversion()); |
|
| 102 | - exit; |
|
| 101 | + echo sprintf($_lang['php_version_check'], phpversion()); |
|
| 102 | + exit; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | // check if iconv is installed |
| 106 | 106 | if(!function_exists('iconv')) { |
| 107 | - echo $_lang['iconv_not_available']; |
|
| 108 | - exit; |
|
| 107 | + echo $_lang['iconv_not_available']; |
|
| 108 | + exit; |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | // set some runtime options |
@@ -118,15 +118,15 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | // set the document_root :| |
| 120 | 120 | if(!isset($_SERVER['DOCUMENT_ROOT']) || empty($_SERVER['DOCUMENT_ROOT'])) { |
| 121 | - $_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['PATH_INFO'], "", preg_replace("/\\\\/", "/", $_SERVER['PATH_TRANSLATED']))."/"; |
|
| 121 | + $_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['PATH_INFO'], "", preg_replace("/\\\\/", "/", $_SERVER['PATH_TRANSLATED']))."/"; |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | // include_once config file |
| 125 | 125 | $config_filename = "./includes/config.inc.php"; |
| 126 | 126 | if (!file_exists($config_filename)) { |
| 127 | - echo "<h3>Unable to load configuration settings</h3>"; |
|
| 128 | - echo "Please run the EVO <a href='../install'>install utility</a>"; |
|
| 129 | - exit; |
|
| 127 | + echo "<h3>Unable to load configuration settings</h3>"; |
|
| 128 | + echo "Please run the EVO <a href='../install'>install utility</a>"; |
|
| 129 | + exit; |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | // include the database configuration file |
@@ -154,25 +154,25 @@ discard block |
||
| 154 | 154 | |
| 155 | 155 | // now include_once different language file as english |
| 156 | 156 | if(!isset($manager_language) || !file_exists(MODX_MANAGER_PATH."includes/lang/".$manager_language.".inc.php")) { |
| 157 | - $manager_language = "english"; // if not set, get the english language file. |
|
| 157 | + $manager_language = "english"; // if not set, get the english language file. |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | // $length_eng_lang = count($_lang); // Not used for now, required for difference-check with other languages than english (i.e. inside installer) |
| 161 | 161 | |
| 162 | 162 | if($manager_language!="english" && file_exists(MODX_MANAGER_PATH."includes/lang/".$manager_language.".inc.php")) { |
| 163 | - include_once "lang/".$manager_language.".inc.php"; |
|
| 163 | + include_once "lang/".$manager_language.".inc.php"; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | // allow custom language overrides not altered by future EVO-updates |
| 167 | 167 | if(file_exists(MODX_MANAGER_PATH."includes/lang/override/".$manager_language.".inc.php")) { |
| 168 | - include_once "lang/override/".$manager_language.".inc.php"; |
|
| 168 | + include_once "lang/override/".$manager_language.".inc.php"; |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | $s = array('[+MGR_DIR+]'); |
| 172 | 172 | $r = array(MGR_DIR); |
| 173 | 173 | foreach($_lang as $k=>$v) |
| 174 | 174 | { |
| 175 | - if(strpos($v,'[+')!==false) $_lang[$k] = str_replace($s, $r, $v); |
|
| 175 | + if(strpos($v,'[+')!==false) $_lang[$k] = str_replace($s, $r, $v); |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | // send the charset header |
@@ -187,19 +187,19 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | // double check the session |
| 189 | 189 | if(!isset($_SESSION['mgrValidated'])){ |
| 190 | - echo "Not Logged In!"; |
|
| 191 | - exit; |
|
| 190 | + echo "Not Logged In!"; |
|
| 191 | + exit; |
|
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | // include_once the style variables file |
| 195 | 195 | if(isset($manager_theme) && !isset($_style)) { |
| 196 | - $_style = array(); |
|
| 197 | - include_once "media/style/".$manager_theme."/style.php"; |
|
| 196 | + $_style = array(); |
|
| 197 | + include_once "media/style/".$manager_theme."/style.php"; |
|
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | // check if user is allowed to access manager interface |
| 201 | 201 | if(isset($allow_manager_access) && $allow_manager_access==0) { |
| 202 | - include_once "manager.lockout.inc.php"; |
|
| 202 | + include_once "manager.lockout.inc.php"; |
|
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | // Initialize System Alert Message Queque |
@@ -208,13 +208,13 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | // first we check to see if this is a frameset request |
| 210 | 210 | if(!isset($_POST['a']) && !isset($_GET['a']) && !isset($_POST['updateMsgCount'])) { |
| 211 | - // this looks to be a top-level frameset request, so let's serve up a frameset |
|
| 212 | - if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/frames/1.php")) { |
|
| 213 | - include_once "media/style/".$manager_theme."/frames/1.php"; |
|
| 214 | - }else{ |
|
| 215 | - include_once "frames/1.php"; |
|
| 216 | - } |
|
| 217 | - exit; |
|
| 211 | + // this looks to be a top-level frameset request, so let's serve up a frameset |
|
| 212 | + if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/frames/1.php")) { |
|
| 213 | + include_once "media/style/".$manager_theme."/frames/1.php"; |
|
| 214 | + }else{ |
|
| 215 | + include_once "frames/1.php"; |
|
| 216 | + } |
|
| 217 | + exit; |
|
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | // OK, let's retrieve the action directive from the request |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | else $action = null; |
| 226 | 226 | |
| 227 | 227 | if (isset($_POST['updateMsgCount']) && $modx->hasPermission('messages')) { |
| 228 | - include_once 'messageCount.inc.php'; |
|
| 228 | + include_once 'messageCount.inc.php'; |
|
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | // save page to manager object |
@@ -233,19 +233,19 @@ discard block |
||
| 233 | 233 | |
| 234 | 234 | // attempt to foil some simple types of CSRF attacks |
| 235 | 235 | if (isset($modx->config['validate_referer']) && (int)$modx->config['validate_referer']) { |
| 236 | - if (isset($_SERVER['HTTP_REFERER'])) { |
|
| 237 | - $referer = $_SERVER['HTTP_REFERER']; |
|
| 238 | - |
|
| 239 | - if (!empty($referer)) { |
|
| 240 | - if (!preg_match('/^'.preg_quote(MODX_SITE_URL, '/').'/i', $referer)) { |
|
| 241 | - $modx->webAlertAndQuit("A possible CSRF attempt was detected from referer: {$referer}.", "index.php"); |
|
| 242 | - } |
|
| 243 | - } else { |
|
| 244 | - $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the client.", "index.php"); |
|
| 245 | - } |
|
| 246 | - } else { |
|
| 247 | - $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the server.", "index.php"); |
|
| 248 | - } |
|
| 236 | + if (isset($_SERVER['HTTP_REFERER'])) { |
|
| 237 | + $referer = $_SERVER['HTTP_REFERER']; |
|
| 238 | + |
|
| 239 | + if (!empty($referer)) { |
|
| 240 | + if (!preg_match('/^'.preg_quote(MODX_SITE_URL, '/').'/i', $referer)) { |
|
| 241 | + $modx->webAlertAndQuit("A possible CSRF attempt was detected from referer: {$referer}.", "index.php"); |
|
| 242 | + } |
|
| 243 | + } else { |
|
| 244 | + $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the client.", "index.php"); |
|
| 245 | + } |
|
| 246 | + } else { |
|
| 247 | + $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the server.", "index.php"); |
|
| 248 | + } |
|
| 249 | 249 | } |
| 250 | 250 | |
| 251 | 251 | // invoke OnManagerPageInit event |
@@ -253,13 +253,13 @@ discard block |
||
| 253 | 253 | |
| 254 | 254 | // return element filepath |
| 255 | 255 | function includeFileProcessor ($filepath,$manager_theme) { |
| 256 | - $element = ""; |
|
| 257 | - if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath)) { |
|
| 258 | - $element = MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath; |
|
| 259 | - }else{ |
|
| 260 | - $element = $filepath; |
|
| 261 | - } |
|
| 262 | - return $element; |
|
| 256 | + $element = ""; |
|
| 257 | + if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath)) { |
|
| 258 | + $element = MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath; |
|
| 259 | + }else{ |
|
| 260 | + $element = $filepath; |
|
| 261 | + } |
|
| 262 | + return $element; |
|
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | $managerTheme = new EvolutionCMS\ManagerTheme($modx, $manager_theme); |
@@ -269,713 +269,713 @@ discard block |
||
| 269 | 269 | /********************************************************************/ |
| 270 | 270 | /* frame management - show the requested frame */ |
| 271 | 271 | /********************************************************************/ |
| 272 | - case 1 : |
|
| 273 | - // get the requested frame |
|
| 274 | - $frame = preg_replace('/[^a-z0-9]/i','',$_REQUEST['f']); |
|
| 275 | - if($frame>9) { |
|
| 276 | - $enable_debug=false; // this is to stop the debug thingy being attached to the framesets |
|
| 277 | - } |
|
| 278 | - include_once(includeFileProcessor("frames/".$frame.".php",$manager_theme)); |
|
| 279 | - break; |
|
| 272 | + case 1 : |
|
| 273 | + // get the requested frame |
|
| 274 | + $frame = preg_replace('/[^a-z0-9]/i','',$_REQUEST['f']); |
|
| 275 | + if($frame>9) { |
|
| 276 | + $enable_debug=false; // this is to stop the debug thingy being attached to the framesets |
|
| 277 | + } |
|
| 278 | + include_once(includeFileProcessor("frames/".$frame.".php",$manager_theme)); |
|
| 279 | + break; |
|
| 280 | 280 | /********************************************************************/ |
| 281 | 281 | /* show the homepage */ |
| 282 | 282 | /********************************************************************/ |
| 283 | - case 2: |
|
| 284 | - // get the home page |
|
| 285 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 286 | - include_once(includeFileProcessor("actions/welcome.static.php",$manager_theme)); |
|
| 287 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 288 | - break; |
|
| 283 | + case 2: |
|
| 284 | + // get the home page |
|
| 285 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 286 | + include_once(includeFileProcessor("actions/welcome.static.php",$manager_theme)); |
|
| 287 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 288 | + break; |
|
| 289 | 289 | /********************************************************************/ |
| 290 | 290 | /* document data */ |
| 291 | 291 | /********************************************************************/ |
| 292 | - case 3: |
|
| 293 | - // get the page to show document's data |
|
| 294 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 295 | - include_once(includeFileProcessor("actions/document_data.static.php",$manager_theme)); |
|
| 296 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 297 | - break; |
|
| 292 | + case 3: |
|
| 293 | + // get the page to show document's data |
|
| 294 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 295 | + include_once(includeFileProcessor("actions/document_data.static.php",$manager_theme)); |
|
| 296 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 297 | + break; |
|
| 298 | 298 | /********************************************************************/ |
| 299 | 299 | /* content management */ |
| 300 | 300 | /********************************************************************/ |
| 301 | - case 85: |
|
| 302 | - // get the mutate page for adding a folder |
|
| 303 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 304 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 305 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 306 | - break; |
|
| 307 | - case 27: |
|
| 308 | - // get the mutate page for changing content |
|
| 309 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 310 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 311 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 312 | - break; |
|
| 313 | - case 4: |
|
| 314 | - // get the mutate page for adding content |
|
| 315 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 316 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 317 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 318 | - break; |
|
| 319 | - case 5: |
|
| 320 | - // get the save processor |
|
| 321 | - include_once(includeFileProcessor("processors/save_content.processor.php",$manager_theme)); |
|
| 322 | - break; |
|
| 323 | - case 6: |
|
| 324 | - // get the delete processor |
|
| 325 | - include_once(includeFileProcessor("processors/delete_content.processor.php",$manager_theme)); |
|
| 326 | - break; |
|
| 327 | - case 63: |
|
| 328 | - // get the undelete processor |
|
| 329 | - include_once(includeFileProcessor("processors/undelete_content.processor.php",$manager_theme)); |
|
| 330 | - break; |
|
| 331 | - case 51: |
|
| 332 | - // get the move action |
|
| 333 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 334 | - include_once(includeFileProcessor("actions/move_document.dynamic.php",$manager_theme)); |
|
| 335 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 336 | - break; |
|
| 337 | - case 52: |
|
| 338 | - // get the move document processor |
|
| 339 | - include_once(includeFileProcessor("processors/move_document.processor.php",$manager_theme)); |
|
| 340 | - break; |
|
| 341 | - case 61: |
|
| 342 | - // get the processor for publishing content |
|
| 343 | - include_once(includeFileProcessor("processors/publish_content.processor.php",$manager_theme)); |
|
| 344 | - break; |
|
| 345 | - case 62: |
|
| 346 | - // get the processor for publishing content |
|
| 347 | - include_once(includeFileProcessor("processors/unpublish_content.processor.php",$manager_theme)); |
|
| 348 | - break; |
|
| 349 | - case 56: |
|
| 350 | - // get the sort menuindex action |
|
| 351 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 352 | - include_once(includeFileProcessor("actions/mutate_menuindex_sort.dynamic.php",$manager_theme)); |
|
| 353 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 354 | - break; |
|
| 301 | + case 85: |
|
| 302 | + // get the mutate page for adding a folder |
|
| 303 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 304 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 305 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 306 | + break; |
|
| 307 | + case 27: |
|
| 308 | + // get the mutate page for changing content |
|
| 309 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 310 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 311 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 312 | + break; |
|
| 313 | + case 4: |
|
| 314 | + // get the mutate page for adding content |
|
| 315 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 316 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 317 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 318 | + break; |
|
| 319 | + case 5: |
|
| 320 | + // get the save processor |
|
| 321 | + include_once(includeFileProcessor("processors/save_content.processor.php",$manager_theme)); |
|
| 322 | + break; |
|
| 323 | + case 6: |
|
| 324 | + // get the delete processor |
|
| 325 | + include_once(includeFileProcessor("processors/delete_content.processor.php",$manager_theme)); |
|
| 326 | + break; |
|
| 327 | + case 63: |
|
| 328 | + // get the undelete processor |
|
| 329 | + include_once(includeFileProcessor("processors/undelete_content.processor.php",$manager_theme)); |
|
| 330 | + break; |
|
| 331 | + case 51: |
|
| 332 | + // get the move action |
|
| 333 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 334 | + include_once(includeFileProcessor("actions/move_document.dynamic.php",$manager_theme)); |
|
| 335 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 336 | + break; |
|
| 337 | + case 52: |
|
| 338 | + // get the move document processor |
|
| 339 | + include_once(includeFileProcessor("processors/move_document.processor.php",$manager_theme)); |
|
| 340 | + break; |
|
| 341 | + case 61: |
|
| 342 | + // get the processor for publishing content |
|
| 343 | + include_once(includeFileProcessor("processors/publish_content.processor.php",$manager_theme)); |
|
| 344 | + break; |
|
| 345 | + case 62: |
|
| 346 | + // get the processor for publishing content |
|
| 347 | + include_once(includeFileProcessor("processors/unpublish_content.processor.php",$manager_theme)); |
|
| 348 | + break; |
|
| 349 | + case 56: |
|
| 350 | + // get the sort menuindex action |
|
| 351 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 352 | + include_once(includeFileProcessor("actions/mutate_menuindex_sort.dynamic.php",$manager_theme)); |
|
| 353 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 354 | + break; |
|
| 355 | 355 | /********************************************************************/ |
| 356 | 356 | /* show the wait page - gives the tree time to refresh (hopefully) */ |
| 357 | 357 | /********************************************************************/ |
| 358 | - case 7: |
|
| 359 | - // get the wait page (so the tree can reload) |
|
| 360 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 361 | - include_once(includeFileProcessor("actions/wait.static.php",$manager_theme)); |
|
| 362 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 363 | - break; |
|
| 358 | + case 7: |
|
| 359 | + // get the wait page (so the tree can reload) |
|
| 360 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 361 | + include_once(includeFileProcessor("actions/wait.static.php",$manager_theme)); |
|
| 362 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 363 | + break; |
|
| 364 | 364 | /********************************************************************/ |
| 365 | 365 | /* let the user log out */ |
| 366 | 366 | /********************************************************************/ |
| 367 | - case 8: |
|
| 368 | - // get the logout processor |
|
| 369 | - include_once(includeFileProcessor("processors/logout.processor.php",$manager_theme)); |
|
| 370 | - break; |
|
| 367 | + case 8: |
|
| 368 | + // get the logout processor |
|
| 369 | + include_once(includeFileProcessor("processors/logout.processor.php",$manager_theme)); |
|
| 370 | + break; |
|
| 371 | 371 | /********************************************************************/ |
| 372 | 372 | /* user management */ |
| 373 | 373 | /********************************************************************/ |
| 374 | - case 87: |
|
| 375 | - // get the new web user page |
|
| 376 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 377 | - include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php",$manager_theme)); |
|
| 378 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 379 | - break; |
|
| 380 | - case 88: |
|
| 381 | - // get the edit web user page |
|
| 382 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 383 | - include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php",$manager_theme)); |
|
| 384 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 385 | - break; |
|
| 386 | - case 89: |
|
| 387 | - // get the save web user processor |
|
| 388 | - include_once(includeFileProcessor("processors/save_web_user.processor.php",$manager_theme)); |
|
| 389 | - break; |
|
| 390 | - case 90: |
|
| 391 | - // get the delete web user page |
|
| 392 | - include_once(includeFileProcessor("processors/delete_web_user.processor.php",$manager_theme)); |
|
| 393 | - break; |
|
| 394 | - case 11: |
|
| 395 | - // get the new user page |
|
| 396 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 397 | - include_once(includeFileProcessor("actions/mutate_user.dynamic.php",$manager_theme)); |
|
| 398 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 399 | - break; |
|
| 400 | - case 12: |
|
| 401 | - // get the edit user page |
|
| 402 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 403 | - include_once(includeFileProcessor("actions/mutate_user.dynamic.php",$manager_theme)); |
|
| 404 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 405 | - break; |
|
| 406 | - case 32: |
|
| 407 | - // get the save user processor |
|
| 408 | - include_once(includeFileProcessor("processors/save_user.processor.php",$manager_theme)); |
|
| 409 | - break; |
|
| 410 | - case 28: |
|
| 411 | - // get the change password page |
|
| 412 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 413 | - include_once(includeFileProcessor("actions/mutate_password.dynamic.php",$manager_theme)); |
|
| 414 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 415 | - break; |
|
| 416 | - case 34: |
|
| 417 | - // get the save new password page |
|
| 418 | - include_once(includeFileProcessor("processors/save_password.processor.php",$manager_theme)); |
|
| 419 | - break; |
|
| 420 | - case 33: |
|
| 421 | - // get the delete user page |
|
| 422 | - include_once(includeFileProcessor("processors/delete_user.processor.php",$manager_theme)); |
|
| 423 | - break; |
|
| 374 | + case 87: |
|
| 375 | + // get the new web user page |
|
| 376 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 377 | + include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php",$manager_theme)); |
|
| 378 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 379 | + break; |
|
| 380 | + case 88: |
|
| 381 | + // get the edit web user page |
|
| 382 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 383 | + include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php",$manager_theme)); |
|
| 384 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 385 | + break; |
|
| 386 | + case 89: |
|
| 387 | + // get the save web user processor |
|
| 388 | + include_once(includeFileProcessor("processors/save_web_user.processor.php",$manager_theme)); |
|
| 389 | + break; |
|
| 390 | + case 90: |
|
| 391 | + // get the delete web user page |
|
| 392 | + include_once(includeFileProcessor("processors/delete_web_user.processor.php",$manager_theme)); |
|
| 393 | + break; |
|
| 394 | + case 11: |
|
| 395 | + // get the new user page |
|
| 396 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 397 | + include_once(includeFileProcessor("actions/mutate_user.dynamic.php",$manager_theme)); |
|
| 398 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 399 | + break; |
|
| 400 | + case 12: |
|
| 401 | + // get the edit user page |
|
| 402 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 403 | + include_once(includeFileProcessor("actions/mutate_user.dynamic.php",$manager_theme)); |
|
| 404 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 405 | + break; |
|
| 406 | + case 32: |
|
| 407 | + // get the save user processor |
|
| 408 | + include_once(includeFileProcessor("processors/save_user.processor.php",$manager_theme)); |
|
| 409 | + break; |
|
| 410 | + case 28: |
|
| 411 | + // get the change password page |
|
| 412 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 413 | + include_once(includeFileProcessor("actions/mutate_password.dynamic.php",$manager_theme)); |
|
| 414 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 415 | + break; |
|
| 416 | + case 34: |
|
| 417 | + // get the save new password page |
|
| 418 | + include_once(includeFileProcessor("processors/save_password.processor.php",$manager_theme)); |
|
| 419 | + break; |
|
| 420 | + case 33: |
|
| 421 | + // get the delete user page |
|
| 422 | + include_once(includeFileProcessor("processors/delete_user.processor.php",$manager_theme)); |
|
| 423 | + break; |
|
| 424 | 424 | /********************************************************************/ |
| 425 | 425 | /* role management */ |
| 426 | 426 | /********************************************************************/ |
| 427 | - case 38: |
|
| 428 | - // get the new role page |
|
| 429 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 430 | - include_once(includeFileProcessor("actions/mutate_role.dynamic.php",$manager_theme)); |
|
| 431 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 432 | - break; |
|
| 433 | - case 35: |
|
| 434 | - // get the edit role page |
|
| 435 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 436 | - include_once(includeFileProcessor("actions/mutate_role.dynamic.php",$manager_theme)); |
|
| 437 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 438 | - break; |
|
| 439 | - case 36: |
|
| 440 | - // get the save role page |
|
| 441 | - include_once(includeFileProcessor("processors/save_role.processor.php",$manager_theme)); |
|
| 442 | - break; |
|
| 443 | - case 37: |
|
| 444 | - // get the delete role page |
|
| 445 | - include_once(includeFileProcessor("processors/delete_role.processor.php",$manager_theme)); |
|
| 446 | - break; |
|
| 427 | + case 38: |
|
| 428 | + // get the new role page |
|
| 429 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 430 | + include_once(includeFileProcessor("actions/mutate_role.dynamic.php",$manager_theme)); |
|
| 431 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 432 | + break; |
|
| 433 | + case 35: |
|
| 434 | + // get the edit role page |
|
| 435 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 436 | + include_once(includeFileProcessor("actions/mutate_role.dynamic.php",$manager_theme)); |
|
| 437 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 438 | + break; |
|
| 439 | + case 36: |
|
| 440 | + // get the save role page |
|
| 441 | + include_once(includeFileProcessor("processors/save_role.processor.php",$manager_theme)); |
|
| 442 | + break; |
|
| 443 | + case 37: |
|
| 444 | + // get the delete role page |
|
| 445 | + include_once(includeFileProcessor("processors/delete_role.processor.php",$manager_theme)); |
|
| 446 | + break; |
|
| 447 | 447 | /********************************************************************/ |
| 448 | 448 | /* category management */ |
| 449 | 449 | /********************************************************************/ |
| 450 | - case 120: |
|
| 451 | - // get the edit category page |
|
| 452 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 453 | - include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 454 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 455 | - break; |
|
| 456 | - case 121: |
|
| 457 | - // for ajax-requests |
|
| 458 | - include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 459 | - break; |
|
| 450 | + case 120: |
|
| 451 | + // get the edit category page |
|
| 452 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 453 | + include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 454 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 455 | + break; |
|
| 456 | + case 121: |
|
| 457 | + // for ajax-requests |
|
| 458 | + include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 459 | + break; |
|
| 460 | 460 | /********************************************************************/ |
| 461 | 461 | /* template management */ |
| 462 | 462 | /********************************************************************/ |
| 463 | - case 16: |
|
| 464 | - // get the edit template action |
|
| 465 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 466 | - include_once(includeFileProcessor("actions/mutate_templates.dynamic.php",$manager_theme)); |
|
| 467 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 468 | - break; |
|
| 469 | - case 19: |
|
| 470 | - // get the new template action |
|
| 471 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 472 | - include_once(includeFileProcessor("actions/mutate_templates.dynamic.php",$manager_theme)); |
|
| 473 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 474 | - break; |
|
| 475 | - case 20: |
|
| 476 | - // get the save processor |
|
| 477 | - include_once(includeFileProcessor("processors/save_template.processor.php",$manager_theme)); |
|
| 478 | - break; |
|
| 479 | - case 21: |
|
| 480 | - // get the delete processor |
|
| 481 | - include_once(includeFileProcessor("processors/delete_template.processor.php",$manager_theme)); |
|
| 482 | - break; |
|
| 483 | - case 96: |
|
| 484 | - // get the duplicate template processor |
|
| 485 | - include_once(includeFileProcessor("processors/duplicate_template.processor.php",$manager_theme)); |
|
| 486 | - break; |
|
| 487 | - case 117: |
|
| 488 | - // change the tv rank for selected template |
|
| 489 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 490 | - include_once(includeFileProcessor("actions/mutate_template_tv_rank.dynamic.php",$manager_theme)); |
|
| 491 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 492 | - break; |
|
| 463 | + case 16: |
|
| 464 | + // get the edit template action |
|
| 465 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 466 | + include_once(includeFileProcessor("actions/mutate_templates.dynamic.php",$manager_theme)); |
|
| 467 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 468 | + break; |
|
| 469 | + case 19: |
|
| 470 | + // get the new template action |
|
| 471 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 472 | + include_once(includeFileProcessor("actions/mutate_templates.dynamic.php",$manager_theme)); |
|
| 473 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 474 | + break; |
|
| 475 | + case 20: |
|
| 476 | + // get the save processor |
|
| 477 | + include_once(includeFileProcessor("processors/save_template.processor.php",$manager_theme)); |
|
| 478 | + break; |
|
| 479 | + case 21: |
|
| 480 | + // get the delete processor |
|
| 481 | + include_once(includeFileProcessor("processors/delete_template.processor.php",$manager_theme)); |
|
| 482 | + break; |
|
| 483 | + case 96: |
|
| 484 | + // get the duplicate template processor |
|
| 485 | + include_once(includeFileProcessor("processors/duplicate_template.processor.php",$manager_theme)); |
|
| 486 | + break; |
|
| 487 | + case 117: |
|
| 488 | + // change the tv rank for selected template |
|
| 489 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 490 | + include_once(includeFileProcessor("actions/mutate_template_tv_rank.dynamic.php",$manager_theme)); |
|
| 491 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 492 | + break; |
|
| 493 | 493 | /********************************************************************/ |
| 494 | 494 | /* snippet management */ |
| 495 | 495 | /********************************************************************/ |
| 496 | - case 22: |
|
| 497 | - // get the edit snippet action |
|
| 498 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 499 | - include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php",$manager_theme)); |
|
| 500 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 501 | - break; |
|
| 502 | - case 23: |
|
| 503 | - // get the new snippet action |
|
| 504 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 505 | - include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php",$manager_theme)); |
|
| 506 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 507 | - break; |
|
| 508 | - case 24: |
|
| 509 | - // get the save processor |
|
| 510 | - include_once(includeFileProcessor("processors/save_snippet.processor.php",$manager_theme)); |
|
| 511 | - break; |
|
| 512 | - case 25: |
|
| 513 | - // get the delete processor |
|
| 514 | - include_once(includeFileProcessor("processors/delete_snippet.processor.php",$manager_theme)); |
|
| 515 | - break; |
|
| 516 | - case 98: |
|
| 517 | - // get the duplicate processor |
|
| 518 | - include_once(includeFileProcessor("processors/duplicate_snippet.processor.php",$manager_theme)); |
|
| 519 | - break; |
|
| 496 | + case 22: |
|
| 497 | + // get the edit snippet action |
|
| 498 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 499 | + include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php",$manager_theme)); |
|
| 500 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 501 | + break; |
|
| 502 | + case 23: |
|
| 503 | + // get the new snippet action |
|
| 504 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 505 | + include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php",$manager_theme)); |
|
| 506 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 507 | + break; |
|
| 508 | + case 24: |
|
| 509 | + // get the save processor |
|
| 510 | + include_once(includeFileProcessor("processors/save_snippet.processor.php",$manager_theme)); |
|
| 511 | + break; |
|
| 512 | + case 25: |
|
| 513 | + // get the delete processor |
|
| 514 | + include_once(includeFileProcessor("processors/delete_snippet.processor.php",$manager_theme)); |
|
| 515 | + break; |
|
| 516 | + case 98: |
|
| 517 | + // get the duplicate processor |
|
| 518 | + include_once(includeFileProcessor("processors/duplicate_snippet.processor.php",$manager_theme)); |
|
| 519 | + break; |
|
| 520 | 520 | /********************************************************************/ |
| 521 | 521 | /* htmlsnippet management */ |
| 522 | 522 | /********************************************************************/ |
| 523 | - case 78: |
|
| 524 | - // get the edit snippet action |
|
| 525 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 526 | - include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php",$manager_theme)); |
|
| 527 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 528 | - break; |
|
| 529 | - case 77: |
|
| 530 | - // get the new snippet action |
|
| 531 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 532 | - include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php",$manager_theme)); |
|
| 533 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 534 | - break; |
|
| 535 | - case 79: |
|
| 536 | - // get the save processor |
|
| 537 | - include_once(includeFileProcessor("processors/save_htmlsnippet.processor.php",$manager_theme)); |
|
| 538 | - break; |
|
| 539 | - case 80: |
|
| 540 | - // get the delete processor |
|
| 541 | - include_once(includeFileProcessor("processors/delete_htmlsnippet.processor.php",$manager_theme)); |
|
| 542 | - break; |
|
| 543 | - case 97: |
|
| 544 | - // get the duplicate processor |
|
| 545 | - include_once(includeFileProcessor("processors/duplicate_htmlsnippet.processor.php",$manager_theme)); |
|
| 546 | - break; |
|
| 523 | + case 78: |
|
| 524 | + // get the edit snippet action |
|
| 525 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 526 | + include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php",$manager_theme)); |
|
| 527 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 528 | + break; |
|
| 529 | + case 77: |
|
| 530 | + // get the new snippet action |
|
| 531 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 532 | + include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php",$manager_theme)); |
|
| 533 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 534 | + break; |
|
| 535 | + case 79: |
|
| 536 | + // get the save processor |
|
| 537 | + include_once(includeFileProcessor("processors/save_htmlsnippet.processor.php",$manager_theme)); |
|
| 538 | + break; |
|
| 539 | + case 80: |
|
| 540 | + // get the delete processor |
|
| 541 | + include_once(includeFileProcessor("processors/delete_htmlsnippet.processor.php",$manager_theme)); |
|
| 542 | + break; |
|
| 543 | + case 97: |
|
| 544 | + // get the duplicate processor |
|
| 545 | + include_once(includeFileProcessor("processors/duplicate_htmlsnippet.processor.php",$manager_theme)); |
|
| 546 | + break; |
|
| 547 | 547 | /********************************************************************/ |
| 548 | 548 | /* show the credits page */ |
| 549 | 549 | /********************************************************************/ |
| 550 | - case 18: |
|
| 551 | - // get the credits page |
|
| 552 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 553 | - include_once(includeFileProcessor("actions/credits.static.php",$manager_theme)); |
|
| 554 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 555 | - break; |
|
| 550 | + case 18: |
|
| 551 | + // get the credits page |
|
| 552 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 553 | + include_once(includeFileProcessor("actions/credits.static.php",$manager_theme)); |
|
| 554 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 555 | + break; |
|
| 556 | 556 | /********************************************************************/ |
| 557 | 557 | /* empty cache & synchronisation */ |
| 558 | 558 | /********************************************************************/ |
| 559 | - case 26: |
|
| 560 | - // get the cache emptying processor |
|
| 561 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 562 | - include_once(includeFileProcessor("actions/refresh_site.dynamic.php",$manager_theme)); |
|
| 563 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 564 | - break; |
|
| 559 | + case 26: |
|
| 560 | + // get the cache emptying processor |
|
| 561 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 562 | + include_once(includeFileProcessor("actions/refresh_site.dynamic.php",$manager_theme)); |
|
| 563 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 564 | + break; |
|
| 565 | 565 | /********************************************************************/ |
| 566 | 566 | /* Module management */ |
| 567 | 567 | /********************************************************************/ |
| 568 | - case 106: |
|
| 569 | - // get module management |
|
| 570 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 571 | - include_once(includeFileProcessor("actions/modules.static.php",$manager_theme)); |
|
| 572 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 573 | - break; |
|
| 574 | - case 107: |
|
| 575 | - // get the new module action |
|
| 576 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 577 | - include_once(includeFileProcessor("actions/mutate_module.dynamic.php",$manager_theme)); |
|
| 578 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 579 | - break; |
|
| 580 | - case 108: |
|
| 581 | - // get the edit module action |
|
| 582 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 583 | - include_once(includeFileProcessor("actions/mutate_module.dynamic.php",$manager_theme)); |
|
| 584 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 585 | - break; |
|
| 586 | - case 109: |
|
| 587 | - // get the save processor |
|
| 588 | - include_once(includeFileProcessor("processors/save_module.processor.php",$manager_theme)); |
|
| 589 | - break; |
|
| 590 | - case 110: |
|
| 591 | - // get the delete processor |
|
| 592 | - include_once(includeFileProcessor("processors/delete_module.processor.php",$manager_theme)); |
|
| 593 | - break; |
|
| 594 | - case 111: |
|
| 595 | - // get the duplicate processor |
|
| 596 | - include_once(includeFileProcessor("processors/duplicate_module.processor.php",$manager_theme)); |
|
| 597 | - break; |
|
| 598 | - case 112: |
|
| 599 | - // execute/run the module |
|
| 600 | - //include_once "header.inc.php"; |
|
| 601 | - include_once(includeFileProcessor("processors/execute_module.processor.php",$manager_theme)); |
|
| 602 | - //include_once "footer.inc.php"; |
|
| 603 | - break; |
|
| 604 | - case 113: |
|
| 605 | - // get the module resources (dependencies) action |
|
| 606 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 607 | - include_once(includeFileProcessor("actions/mutate_module_resources.dynamic.php",$manager_theme)); |
|
| 608 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 609 | - break; |
|
| 568 | + case 106: |
|
| 569 | + // get module management |
|
| 570 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 571 | + include_once(includeFileProcessor("actions/modules.static.php",$manager_theme)); |
|
| 572 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 573 | + break; |
|
| 574 | + case 107: |
|
| 575 | + // get the new module action |
|
| 576 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 577 | + include_once(includeFileProcessor("actions/mutate_module.dynamic.php",$manager_theme)); |
|
| 578 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 579 | + break; |
|
| 580 | + case 108: |
|
| 581 | + // get the edit module action |
|
| 582 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 583 | + include_once(includeFileProcessor("actions/mutate_module.dynamic.php",$manager_theme)); |
|
| 584 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 585 | + break; |
|
| 586 | + case 109: |
|
| 587 | + // get the save processor |
|
| 588 | + include_once(includeFileProcessor("processors/save_module.processor.php",$manager_theme)); |
|
| 589 | + break; |
|
| 590 | + case 110: |
|
| 591 | + // get the delete processor |
|
| 592 | + include_once(includeFileProcessor("processors/delete_module.processor.php",$manager_theme)); |
|
| 593 | + break; |
|
| 594 | + case 111: |
|
| 595 | + // get the duplicate processor |
|
| 596 | + include_once(includeFileProcessor("processors/duplicate_module.processor.php",$manager_theme)); |
|
| 597 | + break; |
|
| 598 | + case 112: |
|
| 599 | + // execute/run the module |
|
| 600 | + //include_once "header.inc.php"; |
|
| 601 | + include_once(includeFileProcessor("processors/execute_module.processor.php",$manager_theme)); |
|
| 602 | + //include_once "footer.inc.php"; |
|
| 603 | + break; |
|
| 604 | + case 113: |
|
| 605 | + // get the module resources (dependencies) action |
|
| 606 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 607 | + include_once(includeFileProcessor("actions/mutate_module_resources.dynamic.php",$manager_theme)); |
|
| 608 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 609 | + break; |
|
| 610 | 610 | /********************************************************************/ |
| 611 | 611 | /* plugin management */ |
| 612 | 612 | /********************************************************************/ |
| 613 | - case 100: |
|
| 614 | - // change the plugin priority |
|
| 615 | - //include_once "header.inc.php"; - in action file |
|
| 616 | - include_once(includeFileProcessor("actions/mutate_plugin_priority.dynamic.php",$manager_theme)); |
|
| 617 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 618 | - break; |
|
| 619 | - case 101: |
|
| 620 | - // get the new plugin action |
|
| 621 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 622 | - include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php",$manager_theme)); |
|
| 623 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 624 | - break; |
|
| 625 | - case 102: |
|
| 626 | - // get the edit plugin action |
|
| 627 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 628 | - include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php",$manager_theme)); |
|
| 629 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 630 | - break; |
|
| 631 | - case 103: |
|
| 632 | - // get the save processor |
|
| 633 | - include_once(includeFileProcessor("processors/save_plugin.processor.php",$manager_theme)); |
|
| 634 | - break; |
|
| 635 | - case 104: |
|
| 636 | - // get the delete processor |
|
| 637 | - include_once(includeFileProcessor("processors/delete_plugin.processor.php",$manager_theme)); |
|
| 638 | - break; |
|
| 639 | - case 105: |
|
| 640 | - // get the duplicate processor |
|
| 641 | - include_once(includeFileProcessor("processors/duplicate_plugin.processor.php",$manager_theme)); |
|
| 642 | - break; |
|
| 643 | - case 119: |
|
| 644 | - // get the purge processor |
|
| 645 | - include_once(includeFileProcessor("processors/purge_plugin.processor.php",$manager_theme)); |
|
| 646 | - break; |
|
| 613 | + case 100: |
|
| 614 | + // change the plugin priority |
|
| 615 | + //include_once "header.inc.php"; - in action file |
|
| 616 | + include_once(includeFileProcessor("actions/mutate_plugin_priority.dynamic.php",$manager_theme)); |
|
| 617 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 618 | + break; |
|
| 619 | + case 101: |
|
| 620 | + // get the new plugin action |
|
| 621 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 622 | + include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php",$manager_theme)); |
|
| 623 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 624 | + break; |
|
| 625 | + case 102: |
|
| 626 | + // get the edit plugin action |
|
| 627 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 628 | + include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php",$manager_theme)); |
|
| 629 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 630 | + break; |
|
| 631 | + case 103: |
|
| 632 | + // get the save processor |
|
| 633 | + include_once(includeFileProcessor("processors/save_plugin.processor.php",$manager_theme)); |
|
| 634 | + break; |
|
| 635 | + case 104: |
|
| 636 | + // get the delete processor |
|
| 637 | + include_once(includeFileProcessor("processors/delete_plugin.processor.php",$manager_theme)); |
|
| 638 | + break; |
|
| 639 | + case 105: |
|
| 640 | + // get the duplicate processor |
|
| 641 | + include_once(includeFileProcessor("processors/duplicate_plugin.processor.php",$manager_theme)); |
|
| 642 | + break; |
|
| 643 | + case 119: |
|
| 644 | + // get the purge processor |
|
| 645 | + include_once(includeFileProcessor("processors/purge_plugin.processor.php",$manager_theme)); |
|
| 646 | + break; |
|
| 647 | 647 | /********************************************************************/ |
| 648 | 648 | /* view phpinfo */ |
| 649 | 649 | /********************************************************************/ |
| 650 | - case 200: |
|
| 651 | - // show phpInfo |
|
| 652 | - if($modx->hasPermission('logs')) { |
|
| 653 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 654 | - include_once(includeFileProcessor("actions/phpinfo.static.php",$manager_theme)); |
|
| 655 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 656 | - } |
|
| 657 | - break; |
|
| 650 | + case 200: |
|
| 651 | + // show phpInfo |
|
| 652 | + if($modx->hasPermission('logs')) { |
|
| 653 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 654 | + include_once(includeFileProcessor("actions/phpinfo.static.php",$manager_theme)); |
|
| 655 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 656 | + } |
|
| 657 | + break; |
|
| 658 | 658 | /********************************************************************/ |
| 659 | 659 | /* errorpage */ |
| 660 | 660 | /********************************************************************/ |
| 661 | - case 29: |
|
| 662 | - // get the error page |
|
| 663 | - include_once(includeFileProcessor("actions/error_dialog.static.php",$manager_theme)); |
|
| 664 | - break; |
|
| 661 | + case 29: |
|
| 662 | + // get the error page |
|
| 663 | + include_once(includeFileProcessor("actions/error_dialog.static.php",$manager_theme)); |
|
| 664 | + break; |
|
| 665 | 665 | /********************************************************************/ |
| 666 | 666 | /* file manager */ |
| 667 | 667 | /********************************************************************/ |
| 668 | - case 31: |
|
| 669 | - // get the page to manage files |
|
| 670 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 671 | - include_once(includeFileProcessor("actions/files.dynamic.php",$manager_theme)); |
|
| 672 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 673 | - break; |
|
| 668 | + case 31: |
|
| 669 | + // get the page to manage files |
|
| 670 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 671 | + include_once(includeFileProcessor("actions/files.dynamic.php",$manager_theme)); |
|
| 672 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 673 | + break; |
|
| 674 | 674 | /********************************************************************/ |
| 675 | 675 | /* access permissions */ |
| 676 | 676 | /********************************************************************/ |
| 677 | - case 40: |
|
| 678 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 679 | - include_once(includeFileProcessor("actions/access_permissions.dynamic.php",$manager_theme)); |
|
| 680 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 681 | - break; |
|
| 682 | - case 91: |
|
| 683 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 684 | - include_once(includeFileProcessor("actions/web_access_permissions.dynamic.php",$manager_theme)); |
|
| 685 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 686 | - break; |
|
| 677 | + case 40: |
|
| 678 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 679 | + include_once(includeFileProcessor("actions/access_permissions.dynamic.php",$manager_theme)); |
|
| 680 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 681 | + break; |
|
| 682 | + case 91: |
|
| 683 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 684 | + include_once(includeFileProcessor("actions/web_access_permissions.dynamic.php",$manager_theme)); |
|
| 685 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 686 | + break; |
|
| 687 | 687 | /********************************************************************/ |
| 688 | 688 | /* access groups processor */ |
| 689 | 689 | /********************************************************************/ |
| 690 | - case 41: |
|
| 691 | - include_once(includeFileProcessor("processors/access_groups.processor.php",$manager_theme)); |
|
| 692 | - break; |
|
| 693 | - case 92: |
|
| 694 | - include_once(includeFileProcessor("processors/web_access_groups.processor.php",$manager_theme)); |
|
| 695 | - break; |
|
| 690 | + case 41: |
|
| 691 | + include_once(includeFileProcessor("processors/access_groups.processor.php",$manager_theme)); |
|
| 692 | + break; |
|
| 693 | + case 92: |
|
| 694 | + include_once(includeFileProcessor("processors/web_access_groups.processor.php",$manager_theme)); |
|
| 695 | + break; |
|
| 696 | 696 | /********************************************************************/ |
| 697 | 697 | /* settings editor */ |
| 698 | 698 | /********************************************************************/ |
| 699 | - case 17: |
|
| 700 | - // get the settings editor |
|
| 701 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 702 | - include_once(includeFileProcessor("actions/mutate_settings.dynamic.php",$manager_theme)); |
|
| 703 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 704 | - break; |
|
| 705 | - case 118: |
|
| 706 | - // call settings ajax include |
|
| 707 | - ob_clean(); |
|
| 708 | - include_once(includeFileProcessor("includes/mutate_settings.ajax.php",$manager_theme)); |
|
| 709 | - break; |
|
| 699 | + case 17: |
|
| 700 | + // get the settings editor |
|
| 701 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 702 | + include_once(includeFileProcessor("actions/mutate_settings.dynamic.php",$manager_theme)); |
|
| 703 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 704 | + break; |
|
| 705 | + case 118: |
|
| 706 | + // call settings ajax include |
|
| 707 | + ob_clean(); |
|
| 708 | + include_once(includeFileProcessor("includes/mutate_settings.ajax.php",$manager_theme)); |
|
| 709 | + break; |
|
| 710 | 710 | /********************************************************************/ |
| 711 | 711 | /* save settings */ |
| 712 | 712 | /********************************************************************/ |
| 713 | - case 30: |
|
| 714 | - // get the save settings processor |
|
| 715 | - include_once(includeFileProcessor("processors/save_settings.processor.php",$manager_theme)); |
|
| 716 | - break; |
|
| 713 | + case 30: |
|
| 714 | + // get the save settings processor |
|
| 715 | + include_once(includeFileProcessor("processors/save_settings.processor.php",$manager_theme)); |
|
| 716 | + break; |
|
| 717 | 717 | /********************************************************************/ |
| 718 | 718 | /* system information */ |
| 719 | 719 | /********************************************************************/ |
| 720 | - case 53: |
|
| 721 | - // get the settings editor |
|
| 722 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 723 | - include_once(includeFileProcessor("actions/sysinfo.static.php",$manager_theme)); |
|
| 724 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 725 | - break; |
|
| 720 | + case 53: |
|
| 721 | + // get the settings editor |
|
| 722 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 723 | + include_once(includeFileProcessor("actions/sysinfo.static.php",$manager_theme)); |
|
| 724 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 725 | + break; |
|
| 726 | 726 | /********************************************************************/ |
| 727 | 727 | /* optimise table */ |
| 728 | 728 | /********************************************************************/ |
| 729 | - case 54: |
|
| 730 | - // get the table optimizer/truncate processor |
|
| 731 | - include_once(includeFileProcessor("processors/optimize_table.processor.php",$manager_theme)); |
|
| 732 | - break; |
|
| 729 | + case 54: |
|
| 730 | + // get the table optimizer/truncate processor |
|
| 731 | + include_once(includeFileProcessor("processors/optimize_table.processor.php",$manager_theme)); |
|
| 732 | + break; |
|
| 733 | 733 | /********************************************************************/ |
| 734 | 734 | /* view logging */ |
| 735 | 735 | /********************************************************************/ |
| 736 | - case 13: |
|
| 737 | - // view logging |
|
| 738 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 739 | - include_once(includeFileProcessor("actions/logging.static.php",$manager_theme)); |
|
| 740 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 741 | - break; |
|
| 736 | + case 13: |
|
| 737 | + // view logging |
|
| 738 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 739 | + include_once(includeFileProcessor("actions/logging.static.php",$manager_theme)); |
|
| 740 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 741 | + break; |
|
| 742 | 742 | /********************************************************************/ |
| 743 | 743 | /* empty logs */ |
| 744 | 744 | /********************************************************************/ |
| 745 | - case 55: |
|
| 746 | - // get the settings editor |
|
| 747 | - include_once(includeFileProcessor("processors/empty_table.processor.php",$manager_theme)); |
|
| 748 | - break; |
|
| 745 | + case 55: |
|
| 746 | + // get the settings editor |
|
| 747 | + include_once(includeFileProcessor("processors/empty_table.processor.php",$manager_theme)); |
|
| 748 | + break; |
|
| 749 | 749 | /********************************************************************/ |
| 750 | 750 | /* calls test page */ |
| 751 | 751 | /********************************************************************/ |
| 752 | - case 999: |
|
| 753 | - // get the test page |
|
| 754 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 755 | - include_once(includeFileProcessor("test_page.php",$manager_theme)); |
|
| 756 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 757 | - break; |
|
| 752 | + case 999: |
|
| 753 | + // get the test page |
|
| 754 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 755 | + include_once(includeFileProcessor("test_page.php",$manager_theme)); |
|
| 756 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 757 | + break; |
|
| 758 | 758 | /********************************************************************/ |
| 759 | 759 | /* Empty recycle bin */ |
| 760 | 760 | /********************************************************************/ |
| 761 | - case 64: |
|
| 762 | - // get the Recycle bin emptier |
|
| 763 | - include_once(includeFileProcessor("processors/remove_content.processor.php",$manager_theme)); |
|
| 764 | - break; |
|
| 761 | + case 64: |
|
| 762 | + // get the Recycle bin emptier |
|
| 763 | + include_once(includeFileProcessor("processors/remove_content.processor.php",$manager_theme)); |
|
| 764 | + break; |
|
| 765 | 765 | /********************************************************************/ |
| 766 | 766 | /* Messages */ |
| 767 | 767 | /********************************************************************/ |
| 768 | - case 10: |
|
| 769 | - // get the messages page |
|
| 770 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 771 | - include_once(includeFileProcessor("actions/messages.static.php",$manager_theme)); |
|
| 772 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 773 | - break; |
|
| 768 | + case 10: |
|
| 769 | + // get the messages page |
|
| 770 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 771 | + include_once(includeFileProcessor("actions/messages.static.php",$manager_theme)); |
|
| 772 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 773 | + break; |
|
| 774 | 774 | /********************************************************************/ |
| 775 | 775 | /* Delete a message */ |
| 776 | 776 | /********************************************************************/ |
| 777 | - case 65: |
|
| 778 | - // get the message deleter |
|
| 779 | - include_once(includeFileProcessor("processors/delete_message.processor.php",$manager_theme)); |
|
| 780 | - break; |
|
| 777 | + case 65: |
|
| 778 | + // get the message deleter |
|
| 779 | + include_once(includeFileProcessor("processors/delete_message.processor.php",$manager_theme)); |
|
| 780 | + break; |
|
| 781 | 781 | /********************************************************************/ |
| 782 | 782 | /* Send a message */ |
| 783 | 783 | /********************************************************************/ |
| 784 | - case 66: |
|
| 785 | - // get the message deleter |
|
| 786 | - include_once(includeFileProcessor("processors/send_message.processor.php",$manager_theme)); |
|
| 787 | - break; |
|
| 784 | + case 66: |
|
| 785 | + // get the message deleter |
|
| 786 | + include_once(includeFileProcessor("processors/send_message.processor.php",$manager_theme)); |
|
| 787 | + break; |
|
| 788 | 788 | /********************************************************************/ |
| 789 | 789 | /* Remove locks */ |
| 790 | 790 | /********************************************************************/ |
| 791 | - case 67: |
|
| 792 | - // get the lock remover |
|
| 793 | - include_once(includeFileProcessor("processors/remove_locks.processor.php",$manager_theme)); |
|
| 794 | - break; |
|
| 791 | + case 67: |
|
| 792 | + // get the lock remover |
|
| 793 | + include_once(includeFileProcessor("processors/remove_locks.processor.php",$manager_theme)); |
|
| 794 | + break; |
|
| 795 | 795 | /********************************************************************/ |
| 796 | 796 | /* Site schedule */ |
| 797 | 797 | /********************************************************************/ |
| 798 | - case 70: |
|
| 799 | - // get the schedule page |
|
| 800 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 801 | - include_once(includeFileProcessor("actions/site_schedule.static.php",$manager_theme)); |
|
| 802 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 803 | - break; |
|
| 798 | + case 70: |
|
| 799 | + // get the schedule page |
|
| 800 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 801 | + include_once(includeFileProcessor("actions/site_schedule.static.php",$manager_theme)); |
|
| 802 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 803 | + break; |
|
| 804 | 804 | /********************************************************************/ |
| 805 | 805 | /* Search */ |
| 806 | 806 | /********************************************************************/ |
| 807 | - case 71: |
|
| 808 | - // get the search page |
|
| 809 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 810 | - include_once(includeFileProcessor("actions/search.static.php",$manager_theme)); |
|
| 811 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 812 | - break; |
|
| 807 | + case 71: |
|
| 808 | + // get the search page |
|
| 809 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 810 | + include_once(includeFileProcessor("actions/search.static.php",$manager_theme)); |
|
| 811 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 812 | + break; |
|
| 813 | 813 | /********************************************************************/ |
| 814 | 814 | /* About */ |
| 815 | 815 | /********************************************************************/ |
| 816 | - case 59: |
|
| 817 | - // get the about page |
|
| 818 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 819 | - include_once(includeFileProcessor("actions/about.static.php",$manager_theme)); |
|
| 820 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 821 | - break; |
|
| 816 | + case 59: |
|
| 817 | + // get the about page |
|
| 818 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 819 | + include_once(includeFileProcessor("actions/about.static.php",$manager_theme)); |
|
| 820 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 821 | + break; |
|
| 822 | 822 | /********************************************************************/ |
| 823 | 823 | /* Add weblink */ |
| 824 | 824 | /********************************************************************/ |
| 825 | - case 72: |
|
| 826 | - // get the weblink page |
|
| 827 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 828 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 829 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 830 | - break; |
|
| 825 | + case 72: |
|
| 826 | + // get the weblink page |
|
| 827 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 828 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 829 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 830 | + break; |
|
| 831 | 831 | /********************************************************************/ |
| 832 | 832 | /* User management */ |
| 833 | 833 | /********************************************************************/ |
| 834 | - case 75: |
|
| 835 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 836 | - include_once(includeFileProcessor("actions/user_management.static.php",$manager_theme)); |
|
| 837 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 838 | - break; |
|
| 839 | - case 99: |
|
| 840 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 841 | - include_once(includeFileProcessor("actions/web_user_management.static.php",$manager_theme)); |
|
| 842 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 843 | - break; |
|
| 844 | - case 86: |
|
| 845 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 846 | - include_once(includeFileProcessor("actions/role_management.static.php",$manager_theme)); |
|
| 847 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 848 | - break; |
|
| 834 | + case 75: |
|
| 835 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 836 | + include_once(includeFileProcessor("actions/user_management.static.php",$manager_theme)); |
|
| 837 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 838 | + break; |
|
| 839 | + case 99: |
|
| 840 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 841 | + include_once(includeFileProcessor("actions/web_user_management.static.php",$manager_theme)); |
|
| 842 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 843 | + break; |
|
| 844 | + case 86: |
|
| 845 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 846 | + include_once(includeFileProcessor("actions/role_management.static.php",$manager_theme)); |
|
| 847 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 848 | + break; |
|
| 849 | 849 | /********************************************************************/ |
| 850 | 850 | /* template/ snippet management */ |
| 851 | 851 | /********************************************************************/ |
| 852 | - case 76: |
|
| 853 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 854 | - include_once(includeFileProcessor("actions/resources.static.php",$manager_theme)); |
|
| 855 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 856 | - break; |
|
| 852 | + case 76: |
|
| 853 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 854 | + include_once(includeFileProcessor("actions/resources.static.php",$manager_theme)); |
|
| 855 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 856 | + break; |
|
| 857 | 857 | /********************************************************************/ |
| 858 | 858 | /* Export to file */ |
| 859 | 859 | /********************************************************************/ |
| 860 | - case 83: |
|
| 861 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 862 | - include_once(includeFileProcessor("actions/export_site.static.php",$manager_theme)); |
|
| 863 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 864 | - break; |
|
| 860 | + case 83: |
|
| 861 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 862 | + include_once(includeFileProcessor("actions/export_site.static.php",$manager_theme)); |
|
| 863 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 864 | + break; |
|
| 865 | 865 | /********************************************************************/ |
| 866 | 866 | /* Resource Selector */ |
| 867 | 867 | /********************************************************************/ |
| 868 | - case 84: |
|
| 869 | - include_once(includeFileProcessor("actions/resource_selector.static.php",$manager_theme)); |
|
| 870 | - break; |
|
| 868 | + case 84: |
|
| 869 | + include_once(includeFileProcessor("actions/resource_selector.static.php",$manager_theme)); |
|
| 870 | + break; |
|
| 871 | 871 | /********************************************************************/ |
| 872 | 872 | /* Backup Manager */ |
| 873 | 873 | /********************************************************************/ |
| 874 | - case 93: |
|
| 875 | - # header and footer will be handled interally |
|
| 876 | - include_once(includeFileProcessor("actions/bkmanager.static.php",$manager_theme)); |
|
| 877 | - break; |
|
| 874 | + case 93: |
|
| 875 | + # header and footer will be handled interally |
|
| 876 | + include_once(includeFileProcessor("actions/bkmanager.static.php",$manager_theme)); |
|
| 877 | + break; |
|
| 878 | 878 | /********************************************************************/ |
| 879 | 879 | /* Duplicate Document */ |
| 880 | 880 | /********************************************************************/ |
| 881 | - case 94: |
|
| 882 | - // get the duplicate processor |
|
| 883 | - include_once(includeFileProcessor("processors/duplicate_content.processor.php",$manager_theme)); |
|
| 884 | - break; |
|
| 881 | + case 94: |
|
| 882 | + // get the duplicate processor |
|
| 883 | + include_once(includeFileProcessor("processors/duplicate_content.processor.php",$manager_theme)); |
|
| 884 | + break; |
|
| 885 | 885 | /********************************************************************/ |
| 886 | 886 | /* Import Document from file */ |
| 887 | 887 | /********************************************************************/ |
| 888 | - case 95: |
|
| 889 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 890 | - include_once(includeFileProcessor("actions/import_site.static.php",$manager_theme)); |
|
| 891 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 892 | - break; |
|
| 888 | + case 95: |
|
| 889 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 890 | + include_once(includeFileProcessor("actions/import_site.static.php",$manager_theme)); |
|
| 891 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 892 | + break; |
|
| 893 | 893 | /********************************************************************/ |
| 894 | 894 | /* Help */ |
| 895 | 895 | /********************************************************************/ |
| 896 | - case 9: |
|
| 897 | - // get the help page |
|
| 898 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 899 | - include_once(includeFileProcessor("actions/help.static.php",$manager_theme)); |
|
| 900 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 901 | - break; |
|
| 896 | + case 9: |
|
| 897 | + // get the help page |
|
| 898 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 899 | + include_once(includeFileProcessor("actions/help.static.php",$manager_theme)); |
|
| 900 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 901 | + break; |
|
| 902 | 902 | /********************************************************************/ |
| 903 | 903 | /* Template Variables - Based on Apodigm's Docvars */ |
| 904 | 904 | /********************************************************************/ |
| 905 | - case 300: |
|
| 906 | - // get the new document variable action |
|
| 907 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 908 | - include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php",$manager_theme)); |
|
| 909 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 910 | - break; |
|
| 911 | - case 301: |
|
| 912 | - // get the edit document variable action |
|
| 913 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 914 | - include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php",$manager_theme)); |
|
| 915 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 916 | - break; |
|
| 917 | - case 302: |
|
| 918 | - // get the save processor |
|
| 919 | - include_once(includeFileProcessor("processors/save_tmplvars.processor.php",$manager_theme)); |
|
| 920 | - break; |
|
| 921 | - case 303: |
|
| 922 | - // get the delete processor |
|
| 923 | - include_once(includeFileProcessor("processors/delete_tmplvars.processor.php",$manager_theme)); |
|
| 924 | - break; |
|
| 925 | - case 304: |
|
| 926 | - // get the duplicate processor |
|
| 927 | - include_once(includeFileProcessor("processors/duplicate_tmplvars.processor.php",$manager_theme)); |
|
| 928 | - break; |
|
| 929 | - case 305: |
|
| 930 | - // get the tv-rank action |
|
| 931 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 932 | - include_once(includeFileProcessor("actions/mutate_tv_rank.dynamic.php",$manager_theme)); |
|
| 933 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 934 | - break; |
|
| 905 | + case 300: |
|
| 906 | + // get the new document variable action |
|
| 907 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 908 | + include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php",$manager_theme)); |
|
| 909 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 910 | + break; |
|
| 911 | + case 301: |
|
| 912 | + // get the edit document variable action |
|
| 913 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 914 | + include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php",$manager_theme)); |
|
| 915 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 916 | + break; |
|
| 917 | + case 302: |
|
| 918 | + // get the save processor |
|
| 919 | + include_once(includeFileProcessor("processors/save_tmplvars.processor.php",$manager_theme)); |
|
| 920 | + break; |
|
| 921 | + case 303: |
|
| 922 | + // get the delete processor |
|
| 923 | + include_once(includeFileProcessor("processors/delete_tmplvars.processor.php",$manager_theme)); |
|
| 924 | + break; |
|
| 925 | + case 304: |
|
| 926 | + // get the duplicate processor |
|
| 927 | + include_once(includeFileProcessor("processors/duplicate_tmplvars.processor.php",$manager_theme)); |
|
| 928 | + break; |
|
| 929 | + case 305: |
|
| 930 | + // get the tv-rank action |
|
| 931 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 932 | + include_once(includeFileProcessor("actions/mutate_tv_rank.dynamic.php",$manager_theme)); |
|
| 933 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 934 | + break; |
|
| 935 | 935 | /********************************************************************/ |
| 936 | 936 | /* Event viewer: show event message log */ |
| 937 | 937 | /********************************************************************/ |
| 938 | - case 114: |
|
| 939 | - // get event logs |
|
| 940 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 941 | - include_once(includeFileProcessor("actions/eventlog.dynamic.php",$manager_theme)); |
|
| 942 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 943 | - break; |
|
| 944 | - case 115: |
|
| 945 | - // get event log details viewer |
|
| 946 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 947 | - include_once(includeFileProcessor("actions/eventlog_details.dynamic.php",$manager_theme)); |
|
| 948 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 949 | - break; |
|
| 950 | - case 116: |
|
| 951 | - // get the event log delete processor |
|
| 952 | - include_once(includeFileProcessor("processors/delete_eventlog.processor.php",$manager_theme)); |
|
| 953 | - break; |
|
| 954 | - |
|
| 955 | - case 501: |
|
| 956 | - //delete category |
|
| 957 | - include_once(includeFileProcessor("processors/delete_category.processor.php",$manager_theme)); |
|
| 958 | - break; |
|
| 938 | + case 114: |
|
| 939 | + // get event logs |
|
| 940 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 941 | + include_once(includeFileProcessor("actions/eventlog.dynamic.php",$manager_theme)); |
|
| 942 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 943 | + break; |
|
| 944 | + case 115: |
|
| 945 | + // get event log details viewer |
|
| 946 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 947 | + include_once(includeFileProcessor("actions/eventlog_details.dynamic.php",$manager_theme)); |
|
| 948 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 949 | + break; |
|
| 950 | + case 116: |
|
| 951 | + // get the event log delete processor |
|
| 952 | + include_once(includeFileProcessor("processors/delete_eventlog.processor.php",$manager_theme)); |
|
| 953 | + break; |
|
| 954 | + |
|
| 955 | + case 501: |
|
| 956 | + //delete category |
|
| 957 | + include_once(includeFileProcessor("processors/delete_category.processor.php",$manager_theme)); |
|
| 958 | + break; |
|
| 959 | 959 | /********************************************************************/ |
| 960 | 960 | /* default action: show not implemented message */ |
| 961 | 961 | /********************************************************************/ |
| 962 | - default : |
|
| 963 | - // say that what was requested doesn't do anything yet |
|
| 964 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 965 | - echo " |
|
| 962 | + default : |
|
| 963 | + // say that what was requested doesn't do anything yet |
|
| 964 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 965 | + echo " |
|
| 966 | 966 | <div class='sectionHeader'>".$_lang['functionnotimpl']."</div> |
| 967 | 967 | <div class='sectionBody'> |
| 968 | 968 | <p>".$_lang['functionnotimpl_message']."</p> |
| 969 | 969 | </div> |
| 970 | 970 | "; |
| 971 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 971 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 972 | 972 | } |
| 973 | 973 | |
| 974 | 974 | /********************************************************************/ |
| 975 | 975 | // log action, unless it's a frame request |
| 976 | 976 | if($action!=1 && $action!=7 && $action!=2) { |
| 977 | - $log = new EvolutionCMS\Legacy\LogHandler; |
|
| 978 | - $log->initAndWriteLog(); |
|
| 977 | + $log = new EvolutionCMS\Legacy\LogHandler; |
|
| 978 | + $log->initAndWriteLog(); |
|
| 979 | 979 | } |
| 980 | 980 | /********************************************************************/ |
| 981 | 981 | // show debug |
@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | if(is_file($base_path . 'assets/cache/siteManager.php')) |
| 51 | 51 | include_once($base_path . 'assets/cache/siteManager.php'); |
| 52 | 52 | if(!defined('MGR_DIR') && is_dir("{$base_path}manager")) |
| 53 | - define('MGR_DIR', 'manager'); |
|
| 53 | + define('MGR_DIR', 'manager'); |
|
| 54 | 54 | if(is_file($base_path . 'assets/cache/siteHostnames.php')) |
| 55 | 55 | include_once($base_path . 'assets/cache/siteHostnames.php'); |
| 56 | 56 | if(!defined('MODX_SITE_HOSTNAMES')) |
| 57 | - define('MODX_SITE_HOSTNAMES', ''); |
|
| 57 | + define('MODX_SITE_HOSTNAMES', ''); |
|
| 58 | 58 | |
| 59 | 59 | // get start time |
| 60 | 60 | $mstart = memory_get_usage(); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | define('IN_PARSER_MODE', true); |
| 80 | 80 | if ( ! defined('IN_MANAGER_MODE')) { |
| 81 | - define('IN_MANAGER_MODE', false); |
|
| 81 | + define('IN_MANAGER_MODE', false); |
|
| 82 | 82 | } |
| 83 | 83 | if (!defined('MODX_API_MODE')) { |
| 84 | 84 | define('MODX_API_MODE', false); |
@@ -1,10 +1,10 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
| 3 | - die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
| 3 | + die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | if(!$modx->hasPermission('edit_module')) { |
| 7 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 7 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | $id = isset($_REQUEST['id']) ? (int)$_REQUEST['id'] : 0; |
@@ -26,91 +26,91 @@ discard block |
||
| 26 | 26 | // check to see the editor isn't locked |
| 27 | 27 | $rs = $modx->getDatabase()->select('username', $tbl_active_users, "action=108 AND id='{$id}' AND internalKey!='" . $modx->getLoginUserID() . "'"); |
| 28 | 28 | if($username = $modx->getDatabase()->getValue($rs)) { |
| 29 | - $modx->webAlertAndQuit(sprintf($_lang['lock_msg'], $username, 'module')); |
|
| 29 | + $modx->webAlertAndQuit(sprintf($_lang['lock_msg'], $username, 'module')); |
|
| 30 | 30 | } |
| 31 | 31 | // end check for lock |
| 32 | 32 | |
| 33 | 33 | // take action |
| 34 | 34 | switch($_REQUEST['op']) { |
| 35 | - case 'add': |
|
| 36 | - // convert ids to numbers |
|
| 37 | - $opids = array_filter(array_map('intval', explode(',', $_REQUEST['newids']))); |
|
| 38 | - |
|
| 39 | - if(count($opids) > 0) { |
|
| 40 | - // 1-snips, 2-tpls, 3-tvs, 4-chunks, 5-plugins, 6-docs |
|
| 41 | - $rt = strtolower($_REQUEST["rt"]); |
|
| 42 | - if($rt == 'chunk') { |
|
| 43 | - $type = 10; |
|
| 44 | - } |
|
| 45 | - if($rt == 'doc') { |
|
| 46 | - $type = 20; |
|
| 47 | - } |
|
| 48 | - if($rt == 'plug') { |
|
| 49 | - $type = 30; |
|
| 50 | - } |
|
| 51 | - if($rt == 'snip') { |
|
| 52 | - $type = 40; |
|
| 53 | - } |
|
| 54 | - if($rt == 'tpl') { |
|
| 55 | - $type = 50; |
|
| 56 | - } |
|
| 57 | - if($rt == 'tv') { |
|
| 58 | - $type = 60; |
|
| 59 | - } |
|
| 60 | - $modx->getDatabase()->delete($tbl_site_module_depobj, "module='{$id}' AND resource IN (" . implode(',', $opids) . ") AND type='{$type}'"); |
|
| 61 | - foreach($opids as $opid) { |
|
| 62 | - $modx->getDatabase()->insert(array( |
|
| 63 | - 'module' => $id, |
|
| 64 | - 'resource' => $opid, |
|
| 65 | - 'type' => $type, |
|
| 66 | - ), $tbl_site_module_depobj); |
|
| 67 | - } |
|
| 68 | - } |
|
| 69 | - break; |
|
| 70 | - case 'del': |
|
| 71 | - // convert ids to numbers |
|
| 72 | - $opids = array_filter(array_map('intval', $_REQUEST['depid'])); |
|
| 73 | - |
|
| 74 | - // get resources that needs to be removed |
|
| 75 | - $ds = $modx->getDatabase()->select('*', $tbl_site_module_depobj, "id IN (" . implode(",", $opids) . ")"); |
|
| 76 | - // loop through resources and look for plugins and snippets |
|
| 77 | - $plids = array(); |
|
| 78 | - $snid = array(); |
|
| 79 | - while($row = $modx->getDatabase()->getRow($ds)) { |
|
| 80 | - if($row['type'] == '30') { |
|
| 81 | - $plids[$i] = $row['resource']; |
|
| 82 | - } |
|
| 83 | - if($row['type'] == '40') { |
|
| 84 | - $snids[$i] = $row['resource']; |
|
| 85 | - } |
|
| 86 | - } |
|
| 87 | - // get guid |
|
| 88 | - $ds = $modx->getDatabase()->select('guid', $tbl_site_modules, "id='{$id}'"); |
|
| 89 | - $guid = $modx->getDatabase()->getValue($ds); |
|
| 90 | - // reset moduleguid for deleted resources |
|
| 91 | - if(($cp = count($plids)) || ($cs = count($snids))) { |
|
| 92 | - if($cp) { |
|
| 93 | - $modx->getDatabase()->update(array('moduleguid' => ''), $tbl_site_plugins, "id IN (" . implode(',', $plids) . ") AND moduleguid='{$guid}'"); |
|
| 94 | - } |
|
| 95 | - if($cs) { |
|
| 96 | - $modx->getDatabase()->update(array('moduleguid' => ''), $tbl_site_plugins, "id IN (" . implode(',', $snids) . ") AND moduleguid='{$guid}'"); |
|
| 97 | - } |
|
| 98 | - // reset cache |
|
| 99 | - $modx->clearCache('full'); |
|
| 100 | - } |
|
| 101 | - $modx->getDatabase()->delete($tbl_site_module_depobj, "id IN (" . implode(',', $opids) . ")"); |
|
| 102 | - break; |
|
| 35 | + case 'add': |
|
| 36 | + // convert ids to numbers |
|
| 37 | + $opids = array_filter(array_map('intval', explode(',', $_REQUEST['newids']))); |
|
| 38 | + |
|
| 39 | + if(count($opids) > 0) { |
|
| 40 | + // 1-snips, 2-tpls, 3-tvs, 4-chunks, 5-plugins, 6-docs |
|
| 41 | + $rt = strtolower($_REQUEST["rt"]); |
|
| 42 | + if($rt == 'chunk') { |
|
| 43 | + $type = 10; |
|
| 44 | + } |
|
| 45 | + if($rt == 'doc') { |
|
| 46 | + $type = 20; |
|
| 47 | + } |
|
| 48 | + if($rt == 'plug') { |
|
| 49 | + $type = 30; |
|
| 50 | + } |
|
| 51 | + if($rt == 'snip') { |
|
| 52 | + $type = 40; |
|
| 53 | + } |
|
| 54 | + if($rt == 'tpl') { |
|
| 55 | + $type = 50; |
|
| 56 | + } |
|
| 57 | + if($rt == 'tv') { |
|
| 58 | + $type = 60; |
|
| 59 | + } |
|
| 60 | + $modx->getDatabase()->delete($tbl_site_module_depobj, "module='{$id}' AND resource IN (" . implode(',', $opids) . ") AND type='{$type}'"); |
|
| 61 | + foreach($opids as $opid) { |
|
| 62 | + $modx->getDatabase()->insert(array( |
|
| 63 | + 'module' => $id, |
|
| 64 | + 'resource' => $opid, |
|
| 65 | + 'type' => $type, |
|
| 66 | + ), $tbl_site_module_depobj); |
|
| 67 | + } |
|
| 68 | + } |
|
| 69 | + break; |
|
| 70 | + case 'del': |
|
| 71 | + // convert ids to numbers |
|
| 72 | + $opids = array_filter(array_map('intval', $_REQUEST['depid'])); |
|
| 73 | + |
|
| 74 | + // get resources that needs to be removed |
|
| 75 | + $ds = $modx->getDatabase()->select('*', $tbl_site_module_depobj, "id IN (" . implode(",", $opids) . ")"); |
|
| 76 | + // loop through resources and look for plugins and snippets |
|
| 77 | + $plids = array(); |
|
| 78 | + $snid = array(); |
|
| 79 | + while($row = $modx->getDatabase()->getRow($ds)) { |
|
| 80 | + if($row['type'] == '30') { |
|
| 81 | + $plids[$i] = $row['resource']; |
|
| 82 | + } |
|
| 83 | + if($row['type'] == '40') { |
|
| 84 | + $snids[$i] = $row['resource']; |
|
| 85 | + } |
|
| 86 | + } |
|
| 87 | + // get guid |
|
| 88 | + $ds = $modx->getDatabase()->select('guid', $tbl_site_modules, "id='{$id}'"); |
|
| 89 | + $guid = $modx->getDatabase()->getValue($ds); |
|
| 90 | + // reset moduleguid for deleted resources |
|
| 91 | + if(($cp = count($plids)) || ($cs = count($snids))) { |
|
| 92 | + if($cp) { |
|
| 93 | + $modx->getDatabase()->update(array('moduleguid' => ''), $tbl_site_plugins, "id IN (" . implode(',', $plids) . ") AND moduleguid='{$guid}'"); |
|
| 94 | + } |
|
| 95 | + if($cs) { |
|
| 96 | + $modx->getDatabase()->update(array('moduleguid' => ''), $tbl_site_plugins, "id IN (" . implode(',', $snids) . ") AND moduleguid='{$guid}'"); |
|
| 97 | + } |
|
| 98 | + // reset cache |
|
| 99 | + $modx->clearCache('full'); |
|
| 100 | + } |
|
| 101 | + $modx->getDatabase()->delete($tbl_site_module_depobj, "id IN (" . implode(',', $opids) . ")"); |
|
| 102 | + break; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | // load record |
| 106 | 106 | $rs = $modx->getDatabase()->select('*', $tbl_site_modules, "id = '{$id}'"); |
| 107 | 107 | $content = $modx->getDatabase()->getRow($rs); |
| 108 | 108 | if(!$content) { |
| 109 | - $modx->webAlertAndQuit("Module not found for id '{$id}'."); |
|
| 109 | + $modx->webAlertAndQuit("Module not found for id '{$id}'."); |
|
| 110 | 110 | } |
| 111 | 111 | $_SESSION['itemname'] = $content['name']; |
| 112 | 112 | if($content['locked'] == 1 && $_SESSION['mgrRole'] != 1) { |
| 113 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 113 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | ?> |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | <tr> |
| 204 | 204 | <td valign="top" align="left"> |
| 205 | 205 | <?php |
| 206 | - $ds = $modx->getDatabase()->select("smd.id,COALESCE(ss.name,st.templatename,sv.name,sc.name,sp.name,sd.pagetitle) as name, |
|
| 206 | + $ds = $modx->getDatabase()->select("smd.id,COALESCE(ss.name,st.templatename,sv.name,sc.name,sp.name,sd.pagetitle) as name, |
|
| 207 | 207 | CASE smd.type |
| 208 | 208 | WHEN 10 THEN 'Chunk' |
| 209 | 209 | WHEN 20 THEN 'Document' |
@@ -218,17 +218,17 @@ discard block |
||
| 218 | 218 | LEFT JOIN {$tbl_site_snippets} AS ss ON ss.id = smd.resource AND smd.type = '40' |
| 219 | 219 | LEFT JOIN {$tbl_site_templates} AS st ON st.id = smd.resource AND smd.type = '50' |
| 220 | 220 | LEFT JOIN {$tbl_site_tmplvars} AS sv ON sv.id = smd.resource AND smd.type = '60'", "smd.module={$id}", "smd.type,name"); |
| 221 | - $grd = new \EvolutionCMS\Support\DataGrid('', $ds, 0); // set page size to 0 t show all items |
|
| 222 | - $grd->noRecordMsg = $_lang["no_records_found"]; |
|
| 223 | - $grd->cssClass = "grid"; |
|
| 224 | - $grd->columnHeaderClass = "gridHeader"; |
|
| 225 | - $grd->itemClass = "gridItem"; |
|
| 226 | - $grd->altItemClass = "gridAltItem"; |
|
| 227 | - $grd->columns = $_lang["element_name"] . " ," . $_lang["type"]; |
|
| 228 | - $grd->colTypes = "template:<input type='checkbox' name='depid[]' value='[+id+]'> [+value+]"; |
|
| 229 | - $grd->fields = "name,type"; |
|
| 230 | - echo $grd->render(); |
|
| 231 | - ?> |
|
| 221 | + $grd = new \EvolutionCMS\Support\DataGrid('', $ds, 0); // set page size to 0 t show all items |
|
| 222 | + $grd->noRecordMsg = $_lang["no_records_found"]; |
|
| 223 | + $grd->cssClass = "grid"; |
|
| 224 | + $grd->columnHeaderClass = "gridHeader"; |
|
| 225 | + $grd->itemClass = "gridItem"; |
|
| 226 | + $grd->altItemClass = "gridAltItem"; |
|
| 227 | + $grd->columns = $_lang["element_name"] . " ," . $_lang["type"]; |
|
| 228 | + $grd->colTypes = "template:<input type='checkbox' name='depid[]' value='[+id+]'> [+value+]"; |
|
| 229 | + $grd->fields = "name,type"; |
|
| 230 | + echo $grd->render(); |
|
| 231 | + ?> |
|
| 232 | 232 | </td> |
| 233 | 233 | <td valign="top" style="width: 150px;"> |
| 234 | 234 | <a class="btn btn-block btn-danger text-left" style="margin-bottom:10px;" href="javascript:;" onclick="removeDependencies();return false;"><i class="<?php echo $_style["actions_delete"] ?>"></i> <?php echo $_lang['remove']; ?></a> |
@@ -1,20 +1,20 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
|
| 3 | - die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
|
|
| 3 | + die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
|
|
| 4 | 4 | } |
| 5 | 5 | switch($modx->getManagerApi()->action) {
|
| 6 | - case 107: |
|
| 7 | - if(!$modx->hasPermission('new_module')) {
|
|
| 8 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 9 | - } |
|
| 10 | - break; |
|
| 11 | - case 108: |
|
| 12 | - if(!$modx->hasPermission('edit_module')) {
|
|
| 13 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 14 | - } |
|
| 15 | - break; |
|
| 16 | - default: |
|
| 17 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 6 | + case 107: |
|
| 7 | + if(!$modx->hasPermission('new_module')) {
|
|
| 8 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 9 | + } |
|
| 10 | + break; |
|
| 11 | + case 108: |
|
| 12 | + if(!$modx->hasPermission('edit_module')) {
|
|
| 13 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 14 | + } |
|
| 15 | + break; |
|
| 16 | + default: |
|
| 17 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 18 | 18 | } |
| 19 | 19 | $id = isset($_REQUEST['id']) ? (int)$_REQUEST['id'] : 0; |
| 20 | 20 | // Get table names (alphabetical) |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | // check to see the module editor isn't locked |
| 34 | 34 | if($lockedEl = $modx->elementIsLocked(6, $id)) {
|
| 35 | - $modx->webAlertAndQuit(sprintf($_lang['lock_msg'], $lockedEl['username'], $_lang['module'])); |
|
| 35 | + $modx->webAlertAndQuit(sprintf($_lang['lock_msg'], $lockedEl['username'], $_lang['module'])); |
|
| 36 | 36 | } |
| 37 | 37 | // end check for lock |
| 38 | 38 | |
@@ -40,22 +40,22 @@ discard block |
||
| 40 | 40 | $modx->lockElement(6, $id); |
| 41 | 41 | |
| 42 | 42 | if(isset($_GET['id'])) {
|
| 43 | - $rs = $modx->getDatabase()->select('*', $tbl_site_modules, "id='{$id}'");
|
|
| 44 | - $content = $modx->getDatabase()->getRow($rs); |
|
| 45 | - if(!$content) {
|
|
| 46 | - $modx->webAlertAndQuit("Module not found for id '{$id}'.");
|
|
| 47 | - } |
|
| 48 | - $content['properties'] = str_replace("&", "&", $content['properties']);
|
|
| 49 | - $_SESSION['itemname'] = $content['name']; |
|
| 50 | - if($content['locked'] == 1 && $_SESSION['mgrRole'] != 1) {
|
|
| 51 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 52 | - } |
|
| 43 | + $rs = $modx->getDatabase()->select('*', $tbl_site_modules, "id='{$id}'");
|
|
| 44 | + $content = $modx->getDatabase()->getRow($rs); |
|
| 45 | + if(!$content) {
|
|
| 46 | + $modx->webAlertAndQuit("Module not found for id '{$id}'.");
|
|
| 47 | + } |
|
| 48 | + $content['properties'] = str_replace("&", "&", $content['properties']);
|
|
| 49 | + $_SESSION['itemname'] = $content['name']; |
|
| 50 | + if($content['locked'] == 1 && $_SESSION['mgrRole'] != 1) {
|
|
| 51 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 52 | + } |
|
| 53 | 53 | } else {
|
| 54 | - $_SESSION['itemname'] = $_lang["new_module"]; |
|
| 55 | - $content['wrap'] = '1'; |
|
| 54 | + $_SESSION['itemname'] = $_lang["new_module"]; |
|
| 55 | + $content['wrap'] = '1'; |
|
| 56 | 56 | } |
| 57 | 57 | if($modx->getManagerApi()->hasFormValues()) {
|
| 58 | - $modx->getManagerApi()->loadFormValues(); |
|
| 58 | + $modx->getManagerApi()->loadFormValues(); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | // Add lock-element JS-Script |
@@ -426,18 +426,18 @@ discard block |
||
| 426 | 426 | |
| 427 | 427 | <form name="mutate" id="mutate" class="module" method="post" action="index.php?a=109"> |
| 428 | 428 | <?php |
| 429 | - // invoke OnModFormPrerender event |
|
| 430 | - $evtOut = $modx->invokeEvent('OnModFormPrerender', array('id' => $id));
|
|
| 431 | - if(is_array($evtOut)) {
|
|
| 432 | - echo implode('', $evtOut);
|
|
| 433 | - } |
|
| 434 | - |
|
| 435 | - // Prepare internal params & info-tab via parseDocBlock |
|
| 436 | - $modulecode = isset($content['modulecode']) ? $modx->getDatabase()->escape($content['modulecode']) : ''; |
|
| 437 | - $docBlock = $modx->parseDocBlockFromString($modulecode); |
|
| 438 | - $docBlockList = $modx->convertDocBlockIntoList($docBlock); |
|
| 439 | - $internal = array(); |
|
| 440 | - ?> |
|
| 429 | + // invoke OnModFormPrerender event |
|
| 430 | + $evtOut = $modx->invokeEvent('OnModFormPrerender', array('id' => $id));
|
|
| 431 | + if(is_array($evtOut)) {
|
|
| 432 | + echo implode('', $evtOut);
|
|
| 433 | + } |
|
| 434 | + |
|
| 435 | + // Prepare internal params & info-tab via parseDocBlock |
|
| 436 | + $modulecode = isset($content['modulecode']) ? $modx->getDatabase()->escape($content['modulecode']) : ''; |
|
| 437 | + $docBlock = $modx->parseDocBlockFromString($modulecode); |
|
| 438 | + $docBlockList = $modx->convertDocBlockIntoList($docBlock); |
|
| 439 | + $internal = array(); |
|
| 440 | + ?> |
|
| 441 | 441 | <input type="hidden" name="id" value="<?= $content['id'] ?>"> |
| 442 | 442 | <input type="hidden" name="mode" value="<?= $modx->getManagerApi()->action ?>"> |
| 443 | 443 | |
@@ -490,11 +490,11 @@ discard block |
||
| 490 | 490 | <select name="categoryid" class="form-control" onchange="documentDirty=true;"> |
| 491 | 491 | <option> </option> |
| 492 | 492 | <?php |
| 493 | - include_once(MODX_MANAGER_PATH . 'includes/categories.inc.php'); |
|
| 494 | - foreach(getCategories() as $n => $v) {
|
|
| 495 | - echo "\t\t\t" . '<option value="' . $v['id'] . '"' . ($content['category'] == $v['id'] ? ' selected="selected"' : '') . '>' . $modx->getPhpCompat()->htmlspecialchars($v['category']) . "</option>\n"; |
|
| 496 | - } |
|
| 497 | - ?> |
|
| 493 | + include_once(MODX_MANAGER_PATH . 'includes/categories.inc.php'); |
|
| 494 | + foreach(getCategories() as $n => $v) {
|
|
| 495 | + echo "\t\t\t" . '<option value="' . $v['id'] . '"' . ($content['category'] == $v['id'] ? ' selected="selected"' : '') . '>' . $modx->getPhpCompat()->htmlspecialchars($v['category']) . "</option>\n"; |
|
| 496 | + } |
|
| 497 | + ?> |
|
| 498 | 498 | </select> |
| 499 | 499 | </div> |
| 500 | 500 | </div> |
@@ -601,7 +601,7 @@ discard block |
||
| 601 | 601 | <i class="<?= $_style["actions_save"] ?>"></i> <?= $_lang['manage_depends'] ?></a> |
| 602 | 602 | </div> |
| 603 | 603 | <?php |
| 604 | - $ds = $modx->getDatabase()->select("smd.id, COALESCE(ss.name,st.templatename,sv.name,sc.name,sp.name,sd.pagetitle) AS name,
|
|
| 604 | + $ds = $modx->getDatabase()->select("smd.id, COALESCE(ss.name,st.templatename,sv.name,sc.name,sp.name,sd.pagetitle) AS name,
|
|
| 605 | 605 | CASE smd.type |
| 606 | 606 | WHEN 10 THEN 'Chunk' |
| 607 | 607 | WHEN 20 THEN 'Document' |
@@ -617,16 +617,16 @@ discard block |
||
| 617 | 617 | LEFT JOIN {$tbl_site_templates} AS st ON st.id = smd.resource AND smd.type = 50
|
| 618 | 618 | LEFT JOIN {$tbl_site_tmplvars} AS sv ON sv.id = smd.resource AND smd.type = 60", "smd.module='{$id}'", 'smd.type,name');
|
| 619 | 619 | |
| 620 | - $grd = new \EvolutionCMS\Support\DataGrid('', $ds, 0); // set page size to 0 t show all items
|
|
| 621 | - $grd->noRecordMsg = $_lang['no_records_found']; |
|
| 622 | - $grd->cssClass = 'grid'; |
|
| 623 | - $grd->columnHeaderClass = 'gridHeader'; |
|
| 624 | - $grd->itemClass = 'gridItem'; |
|
| 625 | - $grd->altItemClass = 'gridAltItem'; |
|
| 626 | - $grd->columns = $_lang['element_name'] . " ," . $_lang['type']; |
|
| 627 | - $grd->fields = "name,type"; |
|
| 628 | - echo $grd->render(); |
|
| 629 | - ?> |
|
| 620 | + $grd = new \EvolutionCMS\Support\DataGrid('', $ds, 0); // set page size to 0 t show all items
|
|
| 621 | + $grd->noRecordMsg = $_lang['no_records_found']; |
|
| 622 | + $grd->cssClass = 'grid'; |
|
| 623 | + $grd->columnHeaderClass = 'gridHeader'; |
|
| 624 | + $grd->itemClass = 'gridItem'; |
|
| 625 | + $grd->altItemClass = 'gridAltItem'; |
|
| 626 | + $grd->columns = $_lang['element_name'] . " ," . $_lang['type']; |
|
| 627 | + $grd->fields = "name,type"; |
|
| 628 | + echo $grd->render(); |
|
| 629 | + ?> |
|
| 630 | 630 | </div> |
| 631 | 631 | </div> |
| 632 | 632 | <?php endif; ?> |
@@ -638,12 +638,12 @@ discard block |
||
| 638 | 638 | <div class="container container-body"> |
| 639 | 639 | <?php if($use_udperms == 1) : ?> |
| 640 | 640 | <?php |
| 641 | - // fetch user access permissions for the module |
|
| 642 | - $rs = $modx->getDatabase()->select('usergroup', $tbl_site_module_access, "module='{$id}'");
|
|
| 643 | - $groupsarray = $modx->getDatabase()->getColumn('usergroup', $rs);
|
|
| 641 | + // fetch user access permissions for the module |
|
| 642 | + $rs = $modx->getDatabase()->select('usergroup', $tbl_site_module_access, "module='{$id}'");
|
|
| 643 | + $groupsarray = $modx->getDatabase()->getColumn('usergroup', $rs);
|
|
| 644 | 644 | |
| 645 | - if($modx->hasPermission('access_permissions')) {
|
|
| 646 | - ?> |
|
| 645 | + if($modx->hasPermission('access_permissions')) {
|
|
| 646 | + ?> |
|
| 647 | 647 | <!-- User Group Access Permissions --> |
| 648 | 648 | <script type="text/javascript"> |
| 649 | 649 | function makePublic(b) {
|
@@ -667,28 +667,28 @@ discard block |
||
| 667 | 667 | </script> |
| 668 | 668 | <p><?= $_lang['module_group_access_msg'] ?></p> |
| 669 | 669 | <?php |
| 670 | - } |
|
| 671 | - $chk = ''; |
|
| 672 | - $rs = $modx->getDatabase()->select('name, id', $tbl_membergroup_names, '', 'name');
|
|
| 673 | - while($row = $modx->getDatabase()->getRow($rs)) {
|
|
| 674 | - $groupsarray = is_numeric($id) && $id > 0 ? $groupsarray : array(); |
|
| 675 | - $checked = in_array($row['id'], $groupsarray); |
|
| 676 | - if($modx->hasPermission('access_permissions')) {
|
|
| 677 | - if($checked) {
|
|
| 678 | - $notPublic = true; |
|
| 679 | - } |
|
| 680 | - $chks .= '<label><input type="checkbox" name="usrgroups[]" value="' . $row['id'] . '"' . ($checked ? ' checked="checked"' : '') . ' onclick="makePublic(false)" /> ' . $row['name'] . "</label><br />\n"; |
|
| 681 | - } else {
|
|
| 682 | - if($checked) {
|
|
| 683 | - $chks = '<input type="hidden" name="usrgroups[]" value="' . $row['id'] . '" />' . "\n" . $chks; |
|
| 684 | - } |
|
| 685 | - } |
|
| 686 | - } |
|
| 687 | - if($modx->hasPermission('access_permissions')) {
|
|
| 688 | - $chks = '<label><input type="checkbox" name="chkallgroups"' . (!$notPublic ? ' checked="checked"' : '') . ' onclick="makePublic(true)" /><span class="warning"> ' . $_lang['all_usr_groups'] . '</span></label><br />' . "\n" . $chks; |
|
| 689 | - } |
|
| 690 | - echo $chks; |
|
| 691 | - ?> |
|
| 670 | + } |
|
| 671 | + $chk = ''; |
|
| 672 | + $rs = $modx->getDatabase()->select('name, id', $tbl_membergroup_names, '', 'name');
|
|
| 673 | + while($row = $modx->getDatabase()->getRow($rs)) {
|
|
| 674 | + $groupsarray = is_numeric($id) && $id > 0 ? $groupsarray : array(); |
|
| 675 | + $checked = in_array($row['id'], $groupsarray); |
|
| 676 | + if($modx->hasPermission('access_permissions')) {
|
|
| 677 | + if($checked) {
|
|
| 678 | + $notPublic = true; |
|
| 679 | + } |
|
| 680 | + $chks .= '<label><input type="checkbox" name="usrgroups[]" value="' . $row['id'] . '"' . ($checked ? ' checked="checked"' : '') . ' onclick="makePublic(false)" /> ' . $row['name'] . "</label><br />\n"; |
|
| 681 | + } else {
|
|
| 682 | + if($checked) {
|
|
| 683 | + $chks = '<input type="hidden" name="usrgroups[]" value="' . $row['id'] . '" />' . "\n" . $chks; |
|
| 684 | + } |
|
| 685 | + } |
|
| 686 | + } |
|
| 687 | + if($modx->hasPermission('access_permissions')) {
|
|
| 688 | + $chks = '<label><input type="checkbox" name="chkallgroups"' . (!$notPublic ? ' checked="checked"' : '') . ' onclick="makePublic(true)" /><span class="warning"> ' . $_lang['all_usr_groups'] . '</span></label><br />' . "\n" . $chks; |
|
| 689 | + } |
|
| 690 | + echo $chks; |
|
| 691 | + ?> |
|
| 692 | 692 | <?php endif; ?> |
| 693 | 693 | </div> |
| 694 | 694 | </div> |
@@ -704,11 +704,11 @@ discard block |
||
| 704 | 704 | |
| 705 | 705 | <input type="submit" name="save" style="display:none;"> |
| 706 | 706 | <?php |
| 707 | - // invoke OnModFormRender event |
|
| 708 | - $evtOut = $modx->invokeEvent('OnModFormRender', array('id' => $id));
|
|
| 709 | - if(is_array($evtOut)) {
|
|
| 710 | - echo implode('', $evtOut);
|
|
| 711 | - } |
|
| 712 | - ?> |
|
| 707 | + // invoke OnModFormRender event |
|
| 708 | + $evtOut = $modx->invokeEvent('OnModFormRender', array('id' => $id));
|
|
| 709 | + if(is_array($evtOut)) {
|
|
| 710 | + echo implode('', $evtOut);
|
|
| 711 | + } |
|
| 712 | + ?> |
|
| 713 | 713 | </form> |
| 714 | 714 | <script type="text/javascript">setTimeout('showParameters();', 10);</script>
|
@@ -1,9 +1,9 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
|
| 3 | - die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
|
|
| 3 | + die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
|
|
| 4 | 4 | } |
| 5 | 5 | if(!$modx->hasPermission('view_eventlog')) {
|
| 6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | // Get table Names (alphabetical) |
@@ -16,14 +16,14 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | // get and save search string |
| 18 | 18 | if($_REQUEST['op'] == 'reset') {
|
| 19 | - $sqlQuery = $query = ''; |
|
| 20 | - $_PAGE['vs']['search'] = ''; |
|
| 19 | + $sqlQuery = $query = ''; |
|
| 20 | + $_PAGE['vs']['search'] = ''; |
|
| 21 | 21 | } else {
|
| 22 | - $sqlQuery = $query = isset($_REQUEST['search']) ? $_REQUEST['search'] : $_PAGE['vs']['search']; |
|
| 23 | - if(!is_numeric($sqlQuery)) {
|
|
| 24 | - $sqlQuery = $modx->getDatabase()->escape($query); |
|
| 25 | - } |
|
| 26 | - $_PAGE['vs']['search'] = $query; |
|
| 22 | + $sqlQuery = $query = isset($_REQUEST['search']) ? $_REQUEST['search'] : $_PAGE['vs']['search']; |
|
| 23 | + if(!is_numeric($sqlQuery)) {
|
|
| 24 | + $sqlQuery = $modx->getDatabase()->escape($query); |
|
| 25 | + } |
|
| 26 | + $_PAGE['vs']['search'] = $query; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | // get & save listmode |
@@ -124,32 +124,32 @@ discard block |
||
| 124 | 124 | <div class="row"> |
| 125 | 125 | <div class="table-responsive"> |
| 126 | 126 | <?php |
| 127 | - $ds = $modx->getDatabase()->select("el.id, ELT(el.type , 'text-info {$_style['actions_info']}' , 'text-warning {$_style['actions_triangle']}' , 'text-danger {$_style['actions_error']}' ) as icon, el.createdon, el.source, el.eventid,IFNULL(wu.username,mu.username) as username", "{$tbl_event_log} AS el
|
|
| 127 | + $ds = $modx->getDatabase()->select("el.id, ELT(el.type , 'text-info {$_style['actions_info']}' , 'text-warning {$_style['actions_triangle']}' , 'text-danger {$_style['actions_error']}' ) as icon, el.createdon, el.source, el.eventid,IFNULL(wu.username,mu.username) as username", "{$tbl_event_log} AS el
|
|
| 128 | 128 | LEFT JOIN {$tbl_manager_users} AS mu ON mu.id=el.user AND el.usertype=0
|
| 129 | 129 | LEFT JOIN {$tbl_web_users} AS wu ON wu.id=el.user AND el.usertype=1", ($sqlQuery ? "" . (is_numeric($sqlQuery) ? "(eventid='{$sqlQuery}') OR " : '') . "(source LIKE '%{$sqlQuery}%') OR (description LIKE '%{$sqlQuery}%')" : ""), "createdon DESC");
|
| 130 | - $grd = new \EvolutionCMS\Support\DataGrid('', $ds, $number_of_results); // set page size to 0 t show all items
|
|
| 131 | - $grd->pagerClass = ''; |
|
| 132 | - $grd->pageClass = 'page-item'; |
|
| 133 | - $grd->selPageClass = 'page-item active'; |
|
| 134 | - $grd->noRecordMsg = $_lang['no_records_found']; |
|
| 135 | - $grd->cssClass = "table data nowrap"; |
|
| 136 | - $grd->columnHeaderClass = "tableHeader"; |
|
| 137 | - $grd->itemClass = "tableItem"; |
|
| 138 | - $grd->altItemClass = "tableAltItem"; |
|
| 139 | - $grd->fields = "type,source,createdon,eventid,username"; |
|
| 140 | - $grd->columns = $_lang['type'] . " ," . $_lang['source'] . " ," . $_lang['date'] . " ," . $_lang['event_id'] . " ," . $_lang['sysinfo_userid']; |
|
| 141 | - $grd->colWidths = "1%,,1%,1%,1%"; |
|
| 142 | - $grd->colAligns = "center,,,center,center"; |
|
| 143 | - $grd->colTypes = "template:<a class='gridRowIcon' href='javascript:;' onclick='return showContentMenu([+id+],event);' title='" . $_lang['click_to_context'] . "'><i class='[+icon+]'></i></a>||template:<a href='index.php?a=115&id=[+id+]' title='" . $_lang['click_to_view_details'] . "'>[+source+]</a>||date: " . $modx->toDateFormat(null, 'formatOnly') . ' %I:%M %p'; |
|
| 144 | - if($listmode == '1') {
|
|
| 145 | - $grd->pageSize = 0; |
|
| 146 | - } |
|
| 147 | - if($_REQUEST['op'] == 'reset') {
|
|
| 148 | - $grd->pageNumber = 1; |
|
| 149 | - } |
|
| 150 | - // render grid |
|
| 151 | - echo $grd->render(); |
|
| 152 | - ?> |
|
| 130 | + $grd = new \EvolutionCMS\Support\DataGrid('', $ds, $number_of_results); // set page size to 0 t show all items
|
|
| 131 | + $grd->pagerClass = ''; |
|
| 132 | + $grd->pageClass = 'page-item'; |
|
| 133 | + $grd->selPageClass = 'page-item active'; |
|
| 134 | + $grd->noRecordMsg = $_lang['no_records_found']; |
|
| 135 | + $grd->cssClass = "table data nowrap"; |
|
| 136 | + $grd->columnHeaderClass = "tableHeader"; |
|
| 137 | + $grd->itemClass = "tableItem"; |
|
| 138 | + $grd->altItemClass = "tableAltItem"; |
|
| 139 | + $grd->fields = "type,source,createdon,eventid,username"; |
|
| 140 | + $grd->columns = $_lang['type'] . " ," . $_lang['source'] . " ," . $_lang['date'] . " ," . $_lang['event_id'] . " ," . $_lang['sysinfo_userid']; |
|
| 141 | + $grd->colWidths = "1%,,1%,1%,1%"; |
|
| 142 | + $grd->colAligns = "center,,,center,center"; |
|
| 143 | + $grd->colTypes = "template:<a class='gridRowIcon' href='javascript:;' onclick='return showContentMenu([+id+],event);' title='" . $_lang['click_to_context'] . "'><i class='[+icon+]'></i></a>||template:<a href='index.php?a=115&id=[+id+]' title='" . $_lang['click_to_view_details'] . "'>[+source+]</a>||date: " . $modx->toDateFormat(null, 'formatOnly') . ' %I:%M %p'; |
|
| 144 | + if($listmode == '1') {
|
|
| 145 | + $grd->pageSize = 0; |
|
| 146 | + } |
|
| 147 | + if($_REQUEST['op'] == 'reset') {
|
|
| 148 | + $grd->pageNumber = 1; |
|
| 149 | + } |
|
| 150 | + // render grid |
|
| 151 | + echo $grd->render(); |
|
| 152 | + ?> |
|
| 153 | 153 | </div> |
| 154 | 154 | </div> |
| 155 | 155 | </div> |