<link rel="icon" type="image/png" href="<?php echo _SPPATH; ?> kcfinder/favicon.ico" /> <style> body { padding-top: 10px; padding-bottom: 40px; background-color: #75863f; color: white; font-size: 18px; <?php $active_theme = ThemeItem::getTheme(); global $themepath; $sem = $themepath; $themepath = $active_theme; $bgcolor = ThemeReg::mod("index_bodybg", "#ffffff", "color"); $bgimage = ThemeReg::mod("index_bodybgimage", _SPPATH . "images/forrest.jpg", "image"); $strbgimage = ''; if ($bgimage != "") { $strbgimage = 'background-image: url("' . $bgimage . '"); background-repeat: repeat; background-attachment: fixed;'; } ?> background: <?php echo $bgcolor; ?> ;
$selected_lang = Lang::getLang(); if (!isset($selected_lang) || $selected_lang == "" || is_object($selected_lang)) { $selected_lang = "en"; } //pr($selected_lang); //echo "lang/".strtolower($selected_lang).".php"; require_once "lang/" . strtolower($selected_lang) . ".php"; //get globals $db = $init->getDB(); $params = $init->getParams(); $template = $init->getTemplate(); //theme selection if (strpos($_GET['url'], 'EfiHome') !== false || $_GET['url'] == "index") { $themepath = 'adminlte2'; } else { $themepath = ThemeItem::getTheme(); } $init->setThemeDynamic($themepath); //include the functions foreach ($files2Load as $file) { //penambahan mold if (strpos($file, 'BPlugin') && strpos($file, 'functions.php')) { require_once $file; } //echo $file;echo "<br>"; } //set session for photopath and photourl $_SESSION['photopath'] = _PHOTOPATH; $_SESSION['photourl'] = _SPPATH . _PHOTOURL; define('_LANGPATH', _SPPATH); //coba di load websettingnya
public function activate() { //pr($_GET); $id = isset($_GET['id']) ? addslashes($_GET['id']) : die("NO ID"); $active = isset($_GET['active']) ? addslashes($_GET['active']) : die("NO ID"); $json = array(); $json['bool'] = 0; if ($active) { ThemeItem::nonActiveAll(); $tm = new ThemeItem(); $tm->getByID($id); $tm->theme_active = $active; $tm->load = 1; $json['bool'] = $tm->save(); } echo json_encode($json); }