查看文件: index.php
大小: 1.83 KB
类型: application/octet-stream
<? require_once('../Connections/BE2.php'); if (!isset($_SESSION)){ session_start(); } $Msg_diff = $GLOBALS; if(! isset($_SESSION['login_memid']) || $_SESSION['login_memid']=='0'){ ?> <script>alert('請記的先登入');location.href = '/';</script> <? exit; } if( $_SESSION['mem_free']=='0'){ ?> <script>location.href = '/user/';</script> <? exit; } // 通知 未讀 mysql_select_db($database_BE2, $BE2); $query_Rtc = sprintf("SELECT count(if(gstate=1,1,NULL)) as nrdc FROM guestdoc WHERE guid='%s'",$_SESSION['login_memid']); $Rtc = mysql_query($query_Rtc, $BE2) or die(mysql_error()); $row_Rtc = mysql_fetch_assoc($Rtc); $Msg_diff=$row_Rtc['nrdc']; mysql_free_result($Rtc); // $_SESSION['login_memid']=1; $choice=0; $menu=isset($_GET['menu'])?$_GET['menu']:'index'; // $smenu=array("index","signupmember","gallery","login","fblogin","qrdata","logout","privacypolicy","details","gallery1"); // $stitle=array("首頁","報單管理","gallery","login","fblogin","qrdata","logout","privacypolicy","details","gallery1"); ?> <? include "Header.php"; ?> <? if(isset($_SESSION['login_memid']) && $_SESSION['login_memid']>0){ ?> <!-- start: Header --> <? include "topheader.php"; ?> <!-- end: Header --> <div id="myfullcontent" class="container-fluid content"> <div class="row"> <!-- start: Main Menu --> <? include "MainMenu.php"; ?> <!-- end: Main Menu --> <!-- start: Content --> <? include "body_".$menu.".php" ; ?> <!-- end: Content --> </div> <br><br><br> </div><!--/container--> <? } else if( $menu=="forget_password"){ include "body_".$menu.".php" ; } else { include "body_login.php"; } include "Footer.php"; ?>
保存
取消
返回文件列表