查看文件: index.php
大小: 2.05 KB
类型: application/octet-stream
<? require_once('../Connections/BE2.php'); if (!isset($_SESSION)){ session_start(); } $Msg_diff = $GLOBALS; $menu=isset($_GET['menu'])?$_GET['menu']:'index'; if(substr($menu,0,-1) =='addapiuser'){ //tel name mail //https://www.skybni.com/user/addapiuser.html?name=yskin&mobile=0912591892&mail=yskin@gmail.com if($menu =='addapiuser'){ include "apiuser.php"; } else if($menu =='addapiuserg'){ include "apiuserg.php"; } else if($menu =='addapiuserp'){ include "apiuserp.php"; } exit; } if(! isset($_SESSION['login_memid']) || $_SESSION['login_memid']=='0'){ ?> <script>alert('請記的先登入');location.href = '/';</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; // $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 "user_MainMenu.php"; ?> <!-- end: Main Menu --> <!-- start: Content --> <? include "user_".$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"; ?>
保存
取消
返回文件列表