コード例 #1
0
        }
    }
}
?>
              
        </div><!--  headSubMen -->
    </div><!--  headOut -->
    <div id="contOut" class="contOut">
		<div id="contIn" class="contIn">    
<?php 
if ($_g->page == '404' || $_g->page == 'logout') {
    include "../pages/" . $_g->page . ".php";
} else {
    if ($_g->sys_admin == 1 || $_g->access_level <= $_g->curr_page['access_level']) {
        $sqlstring = 'INSERT INTO log (uid, ip, page, url) VALUES (' . $_g->uid . ',"' . $_SERVER['REMOTE_ADDR'] . '","' . $_g->page . '","' . $_SERVER["REQUEST_URI"] . '") ;';
        $_g->upsert($sqlstring, array(), 'sd');
        $_SESSION['login_time'] = time();
        if ($_g->curr_page['parent'] != 'admin' && $_g->page != 'admin' || $_g->sys_admin == 1) {
            include "../pages/" . $_g->page . ".php";
        } else {
            include "../pages/dash.php";
        }
    }
}
?>
<br />&nbsp;
<div style=" position:absolute; left:990px; top:0px; float:right;"><a id="print_preview_btn" href="javascript:void(0);"><img src="px/icon_small_print.gif" width="21" height="22" alt="Print Preview" title="Print Preview" /></a></div>

<?php 
if (0 && $_g->uid == 139 && $_g->sys_admin == 1) {
    ?>