佳木斯湛栽影视文化发展公司

主頁(yè) > 知識(shí)庫(kù) > 杰奇登錄后的東西都是在session里面的

杰奇登錄后的東西都是在session里面的

熱門標(biāo)簽:阿里云 網(wǎng)站建設(shè) 百度競(jìng)價(jià)點(diǎn)擊價(jià)格的計(jì)算公式 檢查注冊(cè)表項(xiàng) 智能手機(jī) 使用U盤裝系統(tǒng) 美圖手機(jī) 硅谷的囚徒呼叫中心
都是在session里面的

$_SESSION['jieqiUserId'] = $user->getVar('uid', 'n');
    $_SESSION['jieqiUserUname'] = $user->getVar('uname', 'n');
    $_SESSION['jieqiUserName'] = (strlen($user->getVar('name', 'n')) > 0) ? $user->getVar('name', 'n') : $user->getVar('uname', 'n');
    $_SESSION['jieqiUserGroup'] = $user->getVar('groupid', 'n');
    $_SESSION['jieqiUserEmail'] = $user->getVar('email', 'n');
    $_SESSION['jieqiUserAvatar'] = $user->getVar('avatar', 'n');
    $_SESSION['jieqiUserScore'] = $user->getVar('score', 'n');
    $_SESSION['jieqiUserExperience'] = $user->getVar('experience', 'n');
    $_SESSION['jieqiUserVip'] = $user->getVar('isvip', 'n');
    $_SESSION['jieqiUserEgold'] = ($user->getVar('egold', 'n')>0 || $user->getVar('esilver', 'n')>0) ? 1 : 0;
    jieqi_getconfigs('system', 'honors'); //頭銜
    $honorid=intval(jieqi_gethonorid($user->getVar('score'), $jieqiHonors));
    $_SESSION['jieqiUserHonorid'] = $honorid;
    $_SESSION['jieqiUserHonor'] = isset($jieqiHonors[$honorid]['name'][intval($user->getVar('workid', 'n'))]) ? $jieqiHonors[$honorid]['name'][intval($user->getVar('workid', 'n'))] : $jieqiHonors[$honorid]['caption'];
具體的應(yīng)用
<?php
require_once('global.php');
include_once( JIEQI_ROOT_PATH."/class/users.php" );
$users_handler =& jieqiusershandler::getinstance( "JieqiUsersHandler" );
$jieqiUsers = $users_handler->get($_SESSION['jieqiUserId']);
$charset=$_GET['charset'];
if(!$charset) {
    $charset="gb2312";
}else{
}
$checkit=$_GET['checkit'];
include("configs/obook/sort.php");
include("modules/obook/baoyuedata.php");
?>
<?php
$flag=intval($_GET['flag']);
$pagesize=intval($_GET['pagesize']);
$link=mysql_connect("localhost","username","password")
or die("無(wú)法連接到mysql數(shù)據(jù)庫(kù)".mysql_error());
mysql_select_db("ycxhxswcom",$link);
mysql_query("SET NAMES 'gb2312'",$link);
$day30=time()-60*60*24*30;
$day3=time()-60*60*24*3;
$offset=0;
if(!$pagesize) $pagesize=19;
//echo $idall;
$result=mysql_query("SELECT articleid,obookid,obookname,lastchapterid,lastchapter,lastupdate,author,sortid,baoyuedateline FROM jieqi_obook_obook where obookid in (".$baoyuebooksid.") and display=0 order by obookid desc limit $offset,$pagesize") or die("查詢".$database."數(shù)據(jù)庫(kù)出錯(cuò)".mysql_error());
//$result=mysql_query("SELECT obookid,obookname,lastchapterid,lastchapter,lastupdate,author,sortid,baoyuedateline FROM jieqi_obook_obook where display=0 order by obookid desc limit $offset,$pagesize") or die("查詢".$database."數(shù)據(jù)庫(kù)出錯(cuò)".mysql_error());
//echo "document.write('<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">');";
$iii=0;
function getchapter($dateline,$oid){
$sql="select chaptername,lastupdate,ochapterid from jieqi_obook_ochapter where obookid=".$oid." order by lastupdate desc limit 1";
$oresult=mysql_query($sql);
$orow=mysql_fetch_array($oresult);
$dxyarr=array();
$dxyarr[]=$orow['chaptername'];
$dxyarr[]=$orow['ochapterid'];
$dxyarr[]=$orow['lastupdate'];
return $dxyarr;
mysql_free_result($oresult);
}
while($row=mysql_fetch_array($result)){
    $iii++;
$obookname=$row['obookname'];
$theid=$row['obookid'];
//$chapid=$row['lastchapterid'];
$lastchapter=$row['lastchapter'];
$baoyuedateline=$row['baoyuedateline'];
$lastchapters=getchapter($baoyuedateline,$theid);
//var_dump($lastchapters);
$lastchapter2=$lastchapters[0];
$chapid=$lastchapters[1];
$artid=$row['articleid'];
$ml=floor($artid/1000);
$articleurl="http://yc.xhxsw.com/files/article/info/".$ml."/".$artid.".htm";
$artm="http://yc.xhxsw.com/modules/article/articlemanage.php?id=".$artid;
$vipm="http://yc.xhxsw.com/modules/obook/obookmanage.php?id=".$theid;
$url_obookinfo="http://yc.xhxsw.com/modules/obook/reader.php?aid=".$theid."&cid=".$chapid."";
$obookinfo="http://yc.xhxsw.com/modules/obook/obookinfo_baoyue.php?id=".$theid;
if ($lastchapter2==''){
$lastchapter2="此書暫時(shí)不支持包月";
$url_obookinfo=$obookinfo;
}
$lastupdate=date("m-d",$row['lastupdate']);
//$lastupdate=date("m-d",$lastchapters[2]);
$author=$row['author'];
$leibie=$row['sortid'];
?>
              <tr>
                <td height="17" bgcolor="#FFFFFF" align="center"><a href="<?=$artcleurl?>" target="_blank"><?=$obookname?></a></td>
<td bgcolor="#FFFFFF"><a href="<?=$url_obookinfo?>" target="_blank"><?=$lastchapter2?></a></td>
                <td bgcolor="#FFFFFF" align="center"><?=$lastupdate?></td>
                <td bgcolor="#FFFFFF"><a href="<?=$artm?>" target="_blank"><?=$obookname?>[公眾]</a></td>
                <td bgcolor="#FFFFFF"><a href="<?=$vipm?>" target="_blank"><?=$obookname?>[<font color="red">vip</font>]</a></td>
              </tr>
              <?php
}
mysql_free_result($result);
mysql_close();
//echo "document.write('</table>');";
function mygb2big5($s)
{
    //return $s; 
    //var_dump($s);
    $s = iconv('gb2312','big5',$s);
    //var_dump($s);
    return $s; 
}
?>

標(biāo)簽:山南 煙臺(tái) 懷化 湘潭 湖北 通遼 賀州 黃山

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《杰奇登錄后的東西都是在session里面的》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    海伦市| 松阳县| 峨眉山市| 顺平县| 三门县| 平谷区| 宜兰市| 南宫市| 曲阜市| 嘉善县| 迭部县| 重庆市| 敖汉旗| 新蔡县| 温宿县| 哈尔滨市| 罗平县| 温泉县| 乌鲁木齐市| 陆川县| 墨竹工卡县| 阜新市| 高要市| 山东省| 庆元县| 永泰县| 邓州市| 锡林浩特市| 武乡县| 怀安县| 游戏| 尉氏县| 赣州市| 大厂| 乐都县| 沧州市| 宁远县| 沙河市| 克什克腾旗| 长乐市| 明水县|