public function __construct() { parent::__construct(); global $mobile_cfg; if ($mobile_cfg == null) { $mobile_cfg = (require_once APP_ROOT_PATH . "system/mobile_cfg/" . APP_TYPE . "/webnav_cfg.php"); } check_install(); //重新处理后台的语言加载机制,后台语言环境配置于后台config.php文件 $langSet = conf('DEFAULT_LANG'); // 定义当前语言 define('LANG_SET', strtolower($langSet)); // 读取项目公共语言包 if (is_file(LANG_PATH . $langSet . '/common.php')) { L(include LANG_PATH . $langSet . '/common.php'); $this->lang_pack = (require LANG_PATH . $langSet . '/common.php'); if (!file_exists(APP_ROOT_PATH . "public/runtime/admin/lang.js")) { $str = "var LANG = {"; foreach ($this->lang_pack as $k => $lang) { $str .= "\"" . $k . "\":\"" . $lang . "\","; } $str = substr($str, 0, -1); $str .= "};"; file_put_contents(APP_ROOT_PATH . "public/runtime/admin/lang.js", $str); } } es_session::close(); }
public function __construct() { parent::__construct(); check_install(); //重新处理后台的语言加载机制,后台语言环境配置于后台config.php文件 $langSet = conf('DEFAULT_LANG'); // 定义当前语言 define('LANG_SET', strtolower($langSet)); // 读取项目公共语言包 if (is_file(LANG_PATH . $langSet . '/common.php')) { L(include LANG_PATH . $langSet . '/common.php'); $this->lang_pack = (require LANG_PATH . $langSet . '/common.php'); if (is_file(LANG_PATH . $langSet . '/weixin.php')) { L(include LANG_PATH . $langSet . '/weixin.php'); $weixin_lang = (require LANG_PATH . $langSet . '/weixin.php'); $this->lang_pack = array_merge($this->lang_pack, $weixin_lang); } if (!file_exists(APP_ROOT_PATH . "public/runtime/admin/lang.js")) { $str = "var LANG = {"; foreach ($this->lang_pack as $k => $lang) { $str .= "\"" . $k . "\":\"" . $lang . "\","; } $str = substr($str, 0, -1); $str .= "};"; file_put_contents(APP_ROOT_PATH . "public/runtime/admin/lang.js", $str); } } }
public function __construct() { parent::__construct(); check_install(); //重新处理后台的语言加载机制,后台语言环境配置于后台config.php文件 $langSet = conf('DEFAULT_LANG'); // 定义当前语言 define('LANG_SET', strtolower($langSet)); // 读取项目公共语言包 if (is_file(LANG_PATH . $langSet . '/common.php')) { L(include LANG_PATH . $langSet . '/common.php'); $this->lang_pack = (require LANG_PATH . $langSet . '/common.php'); if (!file_exists(APP_ROOT_PATH . "public/runtime/admin/lang.js")) { $str = "var LANG = {"; foreach ($this->lang_pack as $k => $lang) { $str .= "\"" . $k . "\":\"" . $lang . "\","; } $str = substr($str, 0, -1); $str .= "};"; file_put_contents(APP_ROOT_PATH . "public/runtime/admin/lang.js", $str); } } // 主菜单列表 $main_menu = M('Menu')->where("`pid` = 0 and `tip` = 'business'")->order("sort")->select(); //当前显示的菜单 $current_menu = array(); // 从菜单列表 foreach ($main_menu as $key => $value) { $main_menu[$key]['below_menu'] = $this->getBelowMenu($value['id']); if (strstr($value['url'], MODULE_NAME)) { $current_menu = $main_menu[$key]; } } $urls = array(); if ($current_menu) { $urls[] = $current_menu; foreach ($current_menu['below_menu'] as $key => $value) { if ($_SERVER['REQUEST_URI'] == $value['url'] . '&' || $_SERVER['REQUEST_URI'] == $value['url']) { $urls[] = $value; } } } else { //显示首页 $current_menu = array("title" => '首页', "url" => '/'); $urls[] = $current_menu; $current_menu['below_menu'] = $main_menu; } $this->generate_url($urls); $this->assign('estatemenu1', $main_menu); $this->assign('currentmenu', $current_menu); }
@version 2.6.0 @author Rodolfo BerrÃos A. <http://rodolfoberrios.com/> <*****@*****.**> Copyright (c) Rodolfo Berrios <*****@*****.**> Licensed under the MIT license http://opensource.org/licenses/MIT --------------------------------------------------------------------- */ if (!defined('access') or !access) { die('This file cannot be directly accessed.'); } // Always test the current installation check_install(); /** * Returns the current script version */ function get_chevereto_version($full = true) { if ($full) { return __CHV_VERSION__; } else { preg_match('/\\d\\.\\d/', __CHV_VERSION__, $return); return $return[0]; } } register_show_function('get_chevereto_version', '$full=true'); /** * debug
/** * center * * @since 1.2.1 * @deprecated 2.0.0 * * @package Redaxscript * @category Install * @author Henry Ruhs */ function center() { /* check token */ if ($_POST && $_POST['token'] != TOKEN) { $output = '<div class="box_note note_error">' . l('token_incorrect') . l('point') . '</div>'; echo $output; return; } /* routing */ install_notification(); if (check_install() == 1) { install(); } else { install_form(); } }
</head> <body> <!-- Cabecera con la imagen de logo y el lema de la página --> <div class="container-fluid clearfix" id="toplogo"></div> <!-- Menú superior de navegación fijo --> <nav class="navbar navbar-inverse" data-spy="affix" data-offset-top="77" id="nav01"></nav> <div class="container-fluid"> <h3 class="bg-3">Instalación completada</h3> <?php if ($_GET[instalacion] === "si") { echo "La aplicación se ha instalado correctamente." . "<br><br>"; echo "Ahora se recomienda <a href='admin/activar.php'>activar un curso</a> con datos reales, " . "o el <a href='admin/prueba.php'>curso de prueba</a>."; } elseif (!check_install()) { header("Location: " . $urlbase . "instalar/instalar.php"); } else { echo "La aplicación ya está instalada y configurada." . "<br><br>"; if (!check_curso()) { echo "Ahora se recomienda <a href='admin/activar.php'>activar un curso</a> con datos reales, " . "o el <a href='admin/prueba.php'>curso de prueba</a>."; } else { echo "Ya hay un curso activo, ahora el <a href='jefe/jefe.php'>jefe de estudios</a> " . "puede proceder a introducir notas y realizar gráficos y estadísticas."; } } ?> </div> <!-- Pie de página --> <div class="container-fluid bg-4 text-center" id='foot01'></div> <script src="script/script.js"></script>
$eh = new EH(); $sess = new Session(); $cblog = new CBLogs(); $imgObj = new ResizeImage(); $cbvideo = $cbvid = new CBvideo(); $cbplayer = new CBPlayer(); $cbemail = new CBEmail(); $cbsearch = new CBSearch(); $cbpm = new cb_pm(); $cbpage = new cbpage(); $cbindex = new CBreindex(); $cbcollection = new Collections(); $cbphoto = new CBPhotos(); $cbfeeds = new cbfeeds(); // $cbmenu = new MenuHandler(); check_install('after'); @(include "clipbucket.php"); $Cbucket->cbinfo = array("version" => VERSION, "state" => STATE, "rev" => REV, "release_date" => RELEASED); //Holds Advertisment IDS that are being Viewed $ads_array = array(); if (phpversion() < '5.2.0') { require_once $Cbucket->BASEDIR . '/includes/classes/Services_JSON.php'; $json = new Services_JSON(); } //Website Details define('CB_VERSION', $row['version']); define('TITLE', $row['site_title']); if (!defined('SLOGAN')) { define('SLOGAN', $row['site_slogan']); } //Seo URLS
include_once $include_dir . '/function.check.php'; $mid = intval($_GET['m_id']); check_active('iShark_Modules', 'module_id', $mid); //loggolas logger($act, NULL, ''); header('Location: admin.php?p=modules&field=' . $field . '&ord=' . $ord); exit; } //aktivalas vege /** * ha telepitjuk valamelyik modult */ if ($act == "ins") { include_once $include_dir . '/function.check.php'; $mid = intval($_GET['m_id']); check_install($mid, 'modules'); //loggolas logger($act, '', ''); header('Location: admin.php?p=modules&field=' . $field . '&ord=' . $ord . '&pageID=' . $page_id); exit; } //telepites vege if ($act == "lst") { include_once $include_dir . '/modules.inc'; //lekerdezzuk az adatbazisbol, hogy melyik szerepel mar benne es melyik nem if (isset($modules) && is_array($modules)) { foreach ($modules as $sorszam => $modtomb) { //ha fizikailag is letezik a file, csak akkor tesszük betölthetõvé if ($modtomb['type'] == "admin" && file_exists('admin/' . $modtomb['file'] . $modtomb['ext']) || $modtomb['type'] == "index" && file_exists('modules/' . $modtomb['file'] . $modtomb['ext'])) { $query = "\n\t\t\t\t\tSELECT module_name \n\t\t\t\t\tFROM iShark_Modules \n\t\t\t\t\tWHERE file_name = '" . $modtomb['file'] . "' AND type = '" . $modtomb['type'] . "'\n\t\t\t\t"; $result = $mdb2->query($query);