Ejemplo n.º 1
0
margin-left: 0;
padding: 0;
width:72%;
}
/*]]>*/
</style>
';
}
///// right side /////////////////////
///// ceklogin /////////////////////
ob_start();
include "content/ceklogin.php";
$ceklogin = ob_get_contents();
ob_end_clean();
///// menusisfohrd /////////////////////
ob_start();
include "content/menusisfohrd.php";
$menusisfohrd = ob_get_contents();
ob_end_clean();
echo $cek;
$style_include_out = !isset($style_include) ? '' : implode("", $style_include);
$script_include_out = !isset($script_include) ? '' : implode("", $script_include);
$rightside = !isset($rightside) ? '' : $rightside;
$leftside = !isset($leftside) ? '' : $leftside;
$ceklogin = !isset($ceklogin) ? '' : $ceklogin;
$menusisfohrd = !isset($menusisfohrd) ? '' : $menusisfohrd;
$define = array('menusisfohrd' => $menusisfohrd, 'leftside' => $leftside, 'ceklogin' => $ceklogin, 'url' => $url_situs, 'content' => $content, 'rightside' => $rightside, 'judul_situs' => $judul_situs, 'style_include' => $style_include_out, 'script_include' => $script_include_out, 'meta_description' => $_META['description'], 'meta_keywords' => $_META['keywords'], 'timer' => $timer->stop());
//$tpl = new template ('themes/'.$theme.'/'.$theme.'.html');
$tpl = new template('themes/administrator/administrator.html');
$tpl->define_tag($define);
$tpl->cetak();
Ejemplo n.º 2
0
        if (!eregi("{$self}", $HTTP_REFERER) and $HTTP_REFERER != "") {
            die("<h1>Access denied</h1><p>Try to <a href=\"?action=logout\">logout</a> and then login again. To turn off this security check, change \$config_check_referer in index.php to FALSE</p>");
        }
    }
    // ********************************************************************************
    // Include System Module
    // ********************************************************************************
    //name of mod   //access
    $system_modules = array('addnews' => 'user', 'editnews' => 'user', 'main' => 'user', 'options' => 'user', 'editusers' => 'admin', 'editcomments' => 'admin', 'tools' => 'admin', 'ipban' => 'admin', 'about' => 'user', 'preview' => 'user', 'categories' => 'admin', 'massactions' => 'user', 'help' => 'user', 'snr' => 'admin', 'xfields' => 'any', 'credits' => 'any', 'rss' => 'admin');
    run_actions('admin-page');
    $mod = htmlspecialchars(urldecode($mod));
    if ($mod == "") {
        require "./inc/main.mdu";
    } elseif ($system_modules[$mod]) {
        if ($system_modules[$mod] == "user") {
            require "./inc/" . $mod . ".mdu";
        } elseif ($system_modules[$mod] == "admin" and $member_db[1] == 1) {
            require "./inc/" . $mod . ".mdu";
        } elseif ($system_modules[$mod] == "admin" and $member_db[1] != 1) {
            msg("error", "Access denied", "Only admin can access this module");
            exit;
        } elseif ($system_modules[$mod] == "any") {
            require "./inc/{$mod}.mdu";
        } else {
            die("Module access must be set to <strong>user</strong> or <strong>admin</strong>");
        }
    } else {
        die("{$mod} is NOT a valid module");
    }
}
echo "<!-- execution time: " . $Timer->stop() . " -->";
Ejemplo n.º 3
0
///// right side /////////////////////
if ($_GET['aksi'] == 'logout') {
    logout();
}
///// ceklogin /////////////////////
ob_start();
include "content/ceklogin.php";
$ceklogin = ob_get_contents();
ob_end_clean();
///////////////// MENU ATAS////////////
ob_start();
include "content/menuatas.php";
$topmenu = ob_get_contents();
ob_end_clean();
// FOOTER
ob_start();
include "content/footer.php";
$footer = ob_get_contents();
ob_end_clean();
$style_include_out = !isset($style_include) ? '' : implode("", $style_include);
$script_include_out = !isset($script_include) ? '' : implode("", $script_include);
$topmenu = !isset($topmenu) ? '' : $topmenu;
$rightside = !isset($rightside) ? '' : $rightside;
$leftside = !isset($leftside) ? '' : $leftside;
$ceklogin = !isset($ceklogin) ? '' : $ceklogin;
$leftmenu = !isset($leftmenu) ? '' : $leftmenu;
$footer = !isset($footer) ? '' : $footer;
$define = array('footer' => $footer, 'topmenu' => $topmenu, 'leftmenu' => $leftmenu, 'ceklogin' => $ceklogin, 'leftside' => $leftside, 'url' => $url_situs, 'content' => $content, 'rightside' => $rightside, 'judul_situs' => $judul_situs, 'style_include' => $style_include_out, 'script_include' => $script_include_out, 'meta_description' => $_META['description'], 'meta_keywords' => $_META['keywords'], 'meta_author' => $_META['author'], 'timer' => $timer->stop());
$tpl = new template('themes/' . $theme . '/' . $theme . '.html');
$tpl->define_tag($define);
$tpl->cetak();
Ejemplo n.º 4
0
</style>';
}
//===== HEADLINE =====
//===== iklanslideratas =====
ob_start();
include "content/iklanslideratas.php";
$iklanslideratas = ob_get_contents();
ob_end_clean();
//===== iklanslideratas =====
//===== widget =====
ob_start();
include "content/widget.php";
$widget = ob_get_contents();
ob_end_clean();
//===== widget =====
$style_include_out = !isset($style_include) ? '' : implode("", $style_include);
$script_include_out = !isset($script_include) ? '' : implode("", $script_include);
$rightside = !isset($rightside) ? '' : $rightside;
$leftside = !isset($leftside) ? '' : $leftside;
$login = !isset($login) ? '' : $login;
$leftmenu = !isset($leftmenu) ? '' : $leftmenu;
$headline = !isset($headline) ? '' : $headline;
$menukat = !isset($menukat) ? '' : $menukat;
$slideshow = !isset($slideshow) ? '' : $slideshow;
$members = !isset($members) ? '' : $members;
$iklanslideratas = !isset($iklanslideratas) ? '' : $iklanslideratas;
$widget = !isset($widget) ? '' : $widget;
$define = array('widget' => $widget, 'iklanslideratas' => $iklanslideratas, 'leftmenu' => $leftmenu, 'headline' => $headline, 'menukat' => $menukat, 'login' => $login, 'slideshow' => $slideshow, 'members' => $members, 'leftside' => $leftside, 'theme' => $theme, 'url' => $url_situs, 'content' => $content, 'rightside' => $rightside, 'judul_situs' => $judul_situs, 'slogan' => $slogan, 'style_include' => $style_include_out, 'script_include' => $script_include_out, 'meta_description' => $_META['description'], 'meta_keywords' => $_META['keywords'], 'meta_author' => $_META['author'], 'timer' => $timer->stop());
$tpl = new template('themes/' . $theme . '/' . $theme . '.html');
$tpl->define_tag($define);
$tpl->cetak();
Ejemplo n.º 5
0
ob_end_clean();

echo $cek;
$style_include_out = !isset($style_include) ? '' : implode("",$style_include);
$script_include_out = !isset($script_include) ? '' : implode("",$script_include);
$rightside = !isset($rightside) ? '' : $rightside;
$leftside = !isset($leftside) ? '' : $leftside;
$ceklogin = !isset($ceklogin) ? '' : $ceklogin;
$menupos = !isset($menupos) ? '' : $menupos;

$define = array ('menupos'    => $menupos,
				'leftside'    => $leftside,
				 'ceklogin'    => $ceklogin,
				 'url'     => $url_situs,
				 'content'     => $content,
				 'rightside'  => $rightside,
				 'judul_situs' => $judul_situs,
				 'style_include' => $style_include_out,
				 'script_include' => $script_include_out,
				 'meta_description' => $_META['description'],
				 'meta_keywords' => $_META['keywords'],
				 'timer' => $timer->stop()
                );
                
//$tpl = new template ('themes/'.$theme.'/'.$theme.'.html');

$tpl = new template ('themes/administrator/administrator.html');
$tpl-> define_tag($define);

$tpl-> cetak();
?>
Ejemplo n.º 6
0
/*<![CDATA[*/
#main {
float: left;
	margin: 0 0 5px 10px;
padding: 0;
width: 60%px;
}
/*<![CDATA[*/
#slider {
display:none;
}
/*]]>*/
</style>
';
}
$style_include_out = !isset($style_include) ? '' : implode("", $style_include);
$script_include_out = !isset($script_include) ? '' : implode("", $script_include);
$menuatas = !isset($menuatas) ? '' : $menuatas;
$rightside = !isset($rightside) ? '' : $rightside;
$leftside = !isset($leftside) ? '' : $leftside;
$ceklogin = !isset($ceklogin) ? '' : $ceklogin;
$leftmenu = !isset($leftmenu) ? '' : $leftmenu;
$slider = !isset($slider) ? '' : $slider;
$footer = !isset($footer) ? '' : $footer;
$menukat = !isset($menukat) ? '' : $menukat;
$galleryrandom = !isset($galleryrandom) ? '' : $galleryrandom;
$tentangkami = !isset($tentangkami) ? '' : $tentangkami;
$define = array('beritakat' => $beritakat, 'menuatas' => $menuatas, 'galleryrandom' => $galleryrandom, 'themes' => $theme, 'menukat' => $menukat, 'footer' => $footer, 'slider' => $slider, 'leftmenu' => $leftmenu, 'ceklogin' => $ceklogin, 'leftside' => $leftside, 'url' => $url_situs, 'content' => $content, 'rightside' => $rightside, 'judul_situs' => $judul_situs, 'toko' => $toko, 'webmastercode' => $webmastercode, 'analyticcode' => $analyticcode, 'style_include' => $style_include_out, 'script_include' => $script_include_out, 'meta_description' => $_META['description'], 'meta_keywords' => $_META['keywords'], 'meta_author' => $_META['author'], 'timer' => $timer->stop());
$tpl = new template('themes/' . $theme . '/' . $theme . '.html');
$tpl->define_tag($define);
$tpl->cetak();