示例#1
0
function select_themes($log, $stat = NULL)
{
    $themePath = siteConfig('admin_theme');
    define("AdminPath", "themes/{$themePath}");
    if ($log == "login") {
        $file = "themes/{$themePath}/login.php";
        if (file_exists($file)) {
            require $file;
        } else {
            echo "Failed to load AdminTheme";
        }
        forgot_password();
    } else {
        if ($log == "index" and $_SESSION['USER_LEVEL'] <= 3) {
            $file = "themes/{$themePath}/index.php";
            if (isset($_GET['theme']) and $_GET['theme'] == 'blank') {
                loadAdminApps();
                $end_time = microtime(TRUE);
                $n = substr($end_time - _START_TIME_, 0, 7);
                echo "<input type='hidden' value='{$n}' class='load-time'>";
            } else {
                if (file_exists($file)) {
                    require $file;
                } else {
                    echo "Failed to load AdminTheme";
                }
            }
        } else {
            redirect(FUrl);
        }
    }
}
示例#2
0
文件: index.php 项目: mul14/FiyoCMS
            <div class="inner">
				<div id="alert_top"></div>				
				<div class="crumbs"> 
					  <ul id="breadcrumbs" class="breadcrumb stats"> 
						<li><a href="index.php"><i class="icon-home"></i>Dashboard</a></li>
					  </ul> 
					  <span class="calendar"> 
							<?php 
echo date("l, d F Y");
?>
					  </span> 
				</div>
				
				<div id="mainApps">
				<?php 
loadAdminApps();
?>
				</div>
				<div class="line-bottom">
					<div class="crumbs"> 
						<span class="right "><a href="http://www.fiyo.org/" target="_blank"><i class=" icon-globe"></i><?php 
echo Comunity;
?>
</a> <span style="color:#ccc; margin: 2px;">//</span> 
						<a href="http://docs.fiyo.org/" target="_blank"><i class="icon-book"></i><?php 
echo Documentation;
?>
</a> <span style="color:#ccc; margin: 2px;">//</span> 
						
						<?php 
echo Version;