| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | $app->tpl->setVar(array('module' => $module,'lang_file' => $lang_file, 'lang' => $lang, 'msg' => $msg)); |
| | | |
| | | if($module == 'global') { |
| | | include(ISPC_LIB_PATH."/lang/$lang_file"); |
| | | include ISPC_LIB_PATH."/lang/$lang_file"; |
| | | $file_path = ISPC_LIB_PATH."/lang/$lang_file"; |
| | | } else { |
| | | include(ISPC_WEB_PATH."/$module/lib/lang/$lang_file"); |
| | | include ISPC_WEB_PATH."/$module/lib/lang/$lang_file"; |
| | | $file_path = ISPC_WEB_PATH."/$module/lib/lang/$lang_file"; |
| | | } |
| | | $app->tpl->setVar("file_path", $file_path); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_edit.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |