diff options
author | M.Gergo | 2019-03-08 21:20:34 +0100 |
---|---|---|
committer | M.Gergo | 2019-03-08 21:20:34 +0100 |
commit | f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (patch) | |
tree | e13e60e4b94a3b58f1e2bfbe271102c8f04b67bd /mayor-orig/www/include/alert/base.php | |
parent | c76a004b0135786f2742283f8d5f917106f58bd8 (diff) | |
download | mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.tar.gz mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.zip |
további rendrakás
Diffstat (limited to 'mayor-orig/www/include/alert/base.php')
-rw-r--r-- | mayor-orig/www/include/alert/base.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/mayor-orig/www/include/alert/base.php b/mayor-orig/www/include/alert/base.php deleted file mode 100644 index 3c886dcf..00000000 --- a/mayor-orig/www/include/alert/base.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php -# -# MaYoR keretrendszer - figyelmeztető üzenetek -# - -// Base -if (file_exists('include/alert/'.$lang.'/base.php')) { - require_once('include/alert/'.$lang.'/base.php'); -} elseif (file_exists('include/alert/'._DEFAULT_LANG.'/base.php')) { - require_once('include/alert/'._DEFAULT_LANG.'/base.php'); -} - -// Policy - Backend -if (file_exists('include/alert/'.$lang.'/'.$AUTH[$policy]['backend'].'.php')) { - require_once('include/alert/'.$lang.'/'.$AUTH[$policy]['backend'].'.php'); -} elseif (file_exists('include/alert/'._DEFAULT_LANG.'/'.$AUTH[$policy]['backend'].'.php')) { - require_once('include/alert/'._DEFAULT_LANG.'/'.$AUTH[$policy]['backend'].'.php'); -} - -// Module(s) - 2016 -try { - $_dirlist = scandir('include/alert/'.$lang.'/'); - for ($i=0; $i<count($_dirlist); $i++) { - list($_filename,$_ext) = explode('.',$_dirlist[$i]); - list($_prefix,$_module) = explode('-',$_filename); - if (substr($_filename,0,7)==='module-' && $_ext == 'php' && in_array($_module,$VALID_MODULES)) { - if (file_exists('include/alert/'.$lang.'/module-'.$_module.'.php')) { - require_once('include/alert/'.$lang.'/module-'.$_module.'.php'); - } elseif (file_exists('include/alert/'._DEFAULT_LANG.'/module-'.$_module.'.php')) { - require_once('include/alert/'._DEFAULT_LANG.'/module-'.$_module.'.php'); - } - } - } -} catch (Exception $e) { - $_SESSION['alert'][] = 'info:'.$e->getMessage(); -} - -?> |