getDebugger()->setTimer('ProductooApp'); if($_GET['module'] == 'setting'): $module_file = 'modules/setting/index.php'; if (file_exists($module_file)): require($module_file); endif; elseif($_GET['module'] == 'attachments'): $module_file = 'modules/attachments/index.php'; if (file_exists($module_file)): require($module_file); endif; elseif($_GET['module'] == 'core'): $module_file = 'modules/core/index.php'; if (file_exists($module_file)): require($module_file); endif; else: $module = mysql_real_escape_string(stripslashes(trim($_GET['module']))); $sql = 'SELECT module FROM '.DB_BACKOFFICE_MODULES.' WHERE module = :module'; $stmt = $db->prepare($sql); $stmt->bindParam('module', $_GET['module'], PDO::PARAM_STR); $stmt->execute(); if($stmt->rowCount() == 1): //echo $bootstrap->getModule($module, 'registerBackendIndex'); $module_file = '../modules/'.$module.'/backend/'.$bootstrap->getModule($module, 'registerBackendIndex'); if (file_exists($module_file)) { require $module_file; } endif; endif; exit(); else: require_once('../init_bootstrap.php'); //BOOSTRAP pro PRODUCTOO, kde není načítán přes stránku admin.php include '../inc/connect.php'; extract($_GET, EXTR_OVERWRITE); include './inc/functions.php'; error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE); endif; include './inc/config.inc'; include './inc/tracing.php'; include('./plugins/easythumb/easyphpthumbnail.class.php'); if ($action=='') { //$action = $_productoo["default_action"]; $cmd = $_productoo["default_cmd"]; if($_productoo['user_id'] > 0): \App\Redirect::_($db, PageBackEnd::getLink('dashboard', 'dashboard', 'list')); endif; } elseif ($action=='logout') { $redir = 'scripts/_user_login.php?action=logout'; header("Location: $redir"); } elseif ($action=='autologout') { $redir = 'scripts/_user_login.php?action=autologout'; header("Location: $redir"); } $action = StrToLower($action); if ($_productoo["user_id"]>0) { $pageTitle = $_productoo["title"]; /************************************************* Instance třídy Locale pro načítání jazyka **************************************************/ $_translation = App\Locale::getTranslationArray($_productoo["backoffice_lang"]); } else { $query = "select * from contact"; @$result = mysql_query($query); @$res = mysql_fetch_array($result); $query0 = "select ".App\Locale::I18N('setting.i18n_title', new App\Locale($db, App\Locale::getPKidByINTid($_productoo['default_lang'])))." AS title from setting limit 0,1"; @$result0 = mysql_query($query0); @$res0 = mysql_fetch_array($result0); $_productoo["title"] = $res0["title"]; $query2 = "select * from backoffice_setting"; @$result2 = mysql_query($query2); @$res2 = mysql_fetch_array($result2); $_productoo["backoffice_version"] = $res2["backoffice_version"]; $query1 = "select * from backoffice_lang order by order_no limit 0,1"; @$result1 = mysql_query($query1); @$res1 = mysql_fetch_array($result1); $_productoo["backoffice_lang"] = $res1["backoffice_lang_id"]; $_productoo["backoffice_lang_code"] = $res1["code"]; /************************************************* Instance třídy Locale pro načítání jazyka **************************************************/ $_translation = App\Locale::getTranslationArray($_productoo["backoffice_lang"]); //$translationPath = 'translations/'.$_productoo["backoffice_lang_code"].'.php'; //include $translationPath; } ?> PRODUCTOO <? echo $_productoo["backoffice_version"].' | '.$_productoo["title"]; ?> 0) { foreach ($_pmodules as $key => $value) { if ($value==1) { $jfPath = './modules/'.$key.'/jquery.functions.php'; if (file_exists($jfPath)) { echo ' '; } $gfPath = './modules/'.$key.'/functions.php'; if (file_exists($gfPath)) { include($gfPath); } $mtPath = './modules/'.$key.'/translation.'.$_productoo["backoffice_lang_code"].'.php'; if (file_exists($mtPath)) { include($mtPath); } $bcPath = './modules/'.$key.'/breadcrumb.php'; if (file_exists($bcPath)) { include($bcPath); } } } if ($_pmodules["setting"]==1) { $tagsPath = './modules/setting/tags.css'; if (file_exists($tagsPath)) { echo ' '; } } } ?>
 
0) { /*$translationPath = 'translations/'.$_productoo["backoffice_lang_code"].'.php'; include $translationPath;*/ include './inc/permission_check.php'; if ($permissionPass==1) { ?>