:::

9. header.php

<?php
//載入XOOPS主設定檔(必要)
include_once "../../mainfile.php";
//載入自訂的共同函數檔
include_once "function.php";
//載入工具選單設定檔(亦可將 interface_menu.php 的內容複製到此檔下方,並刪除 interface_menu.php)
include_once "interface_menu.php";

if($xoopsUser and !isset($_SESSION['uid_signup'])){
  $uid=$xoopsUser->uid();
  $tbl=$xoopsDB->prefix('signups');
  $sql="SELECT `action_id` FROM `{$tbl}` WHERE `uid`='{$uid}'";
  $result = $xoopsDB->query($sql) or web_error($sql);
  $uid_signup=[];
  // while(list($action_id)=$xoopsDB->fetchRow($result)){
  //     $uid_signup[]=$action_id;
  // }
  while($data=$xoopsDB->fetchArray($result)){
      $uid_signup[]=$data['action_id'];
  }
  $_SESSION['uid_signup']=$uid_signup;
}

// var_export($_SESSION['uid_signup']);

 


:::

書籍目錄

展開 | 闔起

快速登入


https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D926%26tbsn%3D31

計數器

今天: 5027502750275027
昨天: 2489248924892489
總計: 8027009802700980270098027009802700980270098027009