| | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | |
| | | // Checking permissions for the module |
| | | if(!stristr($_SESSION['s']['user']['modules'],$_SESSION['s']['module']['name'])) { |
| | | header('Location: ../index.php'); |
| | | exit; |
| | | } |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('designer'); |
| | | |
| | | $app->uses('tpl'); |
| | | |
| | |
| | | while ($file = @readdir ($handle)) { |
| | | if ($file != '.' && $file != '..') { |
| | | if(@is_dir(ISPC_WEB_PATH."/$file")) { |
| | | if(ISPC_WEB_PATH.'/'.$file.'/lib/module.conf.php') and $file != 'login') { |
| | | if(is_file(ISPC_WEB_PATH.'/'.$file.'/lib/module.conf.php') and $file != 'login') { |
| | | if(@is_dir(ISPC_WEB_PATH."/$file/form")) { |
| | | $handle2 = opendir(ISPC_WEB_PATH."/$file/form"); |
| | | while ($form_file = @readdir ($handle2)) { |