X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=testing%2FMCTXWeb%2Fpublic_html%2Fusers%2Foriginal%2Fadmin_configuration.php;fp=testing%2FMCTXWeb%2Fpublic_html%2Fusers%2Foriginal%2Fadmin_configuration.php;h=0000000000000000000000000000000000000000;hb=2c8de693e6380c83b68eff4bf647422cde79548d;hp=01fa76a9e92b95901d30a5312d5dc4f55a9d226c;hpb=828cdbf49f52572e93c5c5a48e05277525a4055f;p=matches%2FMCTX3420.git diff --git a/testing/MCTXWeb/public_html/users/original/admin_configuration.php b/testing/MCTXWeb/public_html/users/original/admin_configuration.php deleted file mode 100644 index 01fa76a..0000000 --- a/testing/MCTXWeb/public_html/users/original/admin_configuration.php +++ /dev/null @@ -1,237 +0,0 @@ - 72 OR $newResend_activation_threshold < 0) - { - $errors[] = lang("CONFIG_ACTIVATION_RESEND_RANGE",array(0,72)); - } - else if (count($errors) == 0) { - $cfgId[] = 5; - $cfgValue[5] = $newResend_activation_threshold; - $resend_activation_threshold = $newResend_activation_threshold; - } - } - - //Validate new language selection - if ($newSettings[6] != $language) { - $newLanguage = $newSettings[6]; - if(minMaxRange(1,150,$language)) - { - $errors[] = lang("CONFIG_LANGUAGE_CHAR_LIMIT",array(1,150)); - } - elseif (!file_exists($newLanguage)) { - $errors[] = lang("CONFIG_LANGUAGE_INVALID",array($newLanguage)); - } - else if (count($errors) == 0) { - $cfgId[] = 6; - $cfgValue[6] = $newLanguage; - $language = $newLanguage; - } - } - - //Validate new template selection - if ($newSettings[7] != $template) { - $newTemplate = $newSettings[7]; - if(minMaxRange(1,150,$template)) - { - $errors[] = lang("CONFIG_TEMPLATE_CHAR_LIMIT",array(1,150)); - } - elseif (!file_exists($newTemplate)) { - $errors[] = lang("CONFIG_TEMPLATE_INVALID",array($newTemplate)); - } - else if (count($errors) == 0) { - $cfgId[] = 7; - $cfgValue[7] = $newTemplate; - $template = $newTemplate; - } - } - - //Update configuration table with new settings - if (count($errors) == 0 AND count($cfgId) > 0) { - updateConfig($cfgId, $cfgValue); - $successes[] = lang("CONFIG_UPDATE_SUCCESSFUL"); - } -} - -$languages = getLanguageFiles(); //Retrieve list of language files -$templates = getTemplateFiles(); //Retrieve list of template files -$permissionData = fetchAllPermissions(); //Retrieve list of all permission levels -require_once("models/header.php"); - -echo " - -
-
-
-

UserCake

-

Admin Configuration

-
"; - -include("left-nav.php"); - -echo " -
-
"; - -echo resultBlock($errors,$successes); - -echo " -
-
-

- - -

-

- - -

-

- - -

-

- - -

-

- - -

-

- -"; -} -else { - echo " - - - "; -} - -echo "

-

- - -

- -
-
-
-
-
- -"; - -?>