From 6e6b9a464b8a1e9011b4b85e5f09e862ab97be74 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Fri, 18 Sep 2020 09:24:23 -0500 Subject: [PATCH] convert enoperm function to php file --- web/ajax/modal.php | 4 ---- web/ajax/modals/enoperm.php | 24 +++++++++++++++++++++ web/skins/classic/includes/functions.php | 27 ------------------------ 3 files changed, 24 insertions(+), 31 deletions(-) create mode 100644 web/ajax/modals/enoperm.php diff --git a/web/ajax/modal.php b/web/ajax/modal.php index 7436548b6..8c1af9c74 100644 --- a/web/ajax/modal.php +++ b/web/ajax/modal.php @@ -5,14 +5,10 @@ if ( empty($_REQUEST['modal']) ) { return; } -//global $OLANG; $modal = validJsStr($_REQUEST['modal']); $data = array(); switch ( $modal ) { - case 'enoperm' : - $data['html'] = getENoPermHTML(); - break; case 'delconfirm' : $data['html'] = getDelConfirmHTML(); break; diff --git a/web/ajax/modals/enoperm.php b/web/ajax/modals/enoperm.php new file mode 100644 index 000000000..6fd2fbe23 --- /dev/null +++ b/web/ajax/modals/enoperm.php @@ -0,0 +1,24 @@ + + + diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index 29d4b9cbb..61de0559e 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -754,33 +754,6 @@ function runtimeStatus($running=null) { return $running ? ($state ? $state : translate('Running')) : translate('Stopped'); } -// Return an Error No Permissions Modal -function getENoPermHTML() { - $result = ''; - - $result .= ''.PHP_EOL; - - return $result; -} - function getStatsTableHTML($eid, $fid, $row='') { if ( !canView('Events') ) return; $result = '';