<?php
include DISCUZ_ROOT.'./source/plugin/zywx/config.php';
include template('common/header');
ob_start();
$appkey = $_G['setting']['zywxappkey'];
if(empty($appkey)) {
echo '<script>alert("站长还没有发布下载包");history.go(-1);</script>';
}
//$appkey = "f5a1dba3-f4d6-40e9-bd9f-5f1420c85f2b";
$theurl = $_G['siteurl'].'plugin.php?id=zywx:propagate';
if($cache) {
$i = $cache['i'];
$a = $cache['a'];
$sv3 = $cache['sv3'];
$sv5 = $cache['sv5'];
} else {
$i = file_get_contents(ZYWX_APPCAN."/plugin/getDownload.action?app_key=$appkey&pt=iPhone");
$i = explode('|', $i);
$a = file_get_contents(ZYWX_APPCAN."/plugin/getDownload.action?app_key=$appkey&pt=Android");
$a = explode('|', $a);
$sv3 = file_get_contents(ZYWX_APPCAN."/plugin/getDownload.action?app_key=$appkey&pt=Symbianv3");
$sv3 = explode('|', $sv3);
$sv5 = file_get_contents(ZYWX_APPCAN."/plugin/getDownload.action?app_key=$appkey&pt=Symbianv5");
$sv5 = explode('|', $sv5);
$setarr['i'] = $i;
$setarr['a'] = $a;
$setarr['sv3'] = $sv3;
$setarr['sv5'] = $sv5;
zy_savecache('propagate', $setarr, '3600');
}
//最终下载页面
if(isset($_REQUEST['dl'])) {
if($i[1]) $dlurl = $i[1];
if($a[1]) $dlurl = $a[1];
if($sv3[1]) $dlurl = $sv3[1];
if($sv5[1]) $dlurl = $sv5[1];
if($dlurl) {
ob_end_clean();
header("Locationdlurl");
exit;
} else {
ob_end_clean();
$msg = '暂时没有包';
if(CHARSET != 'utf-8') {
$msg = diconv($msg, 'utf-8', CHARSET);
}
echo $msg;
exit;
}
}
echo '<script>var appkey = "'.$appkey.'";</script>';
echo '<script>var iPhonesrc = "'.$i[0].'";</script>';
echo '<script>var Adriodsrc = "'.$a[0].'";</script>';
echo '<script>var Sv3src = "'.$sv3[0].'";</script>';
echo '<script>var Sv5src = "'.$sv5[0].'";</script>';
?>
<style>
.clear{height:0;clear:both; font-size:0px;}
body,html{ width:100%; height:100%;}
.dailog {
position:absolute;
bottom:0px;
right:5px;
width:254px;
overflow:hidden;
}
.d_top {
width:254px;
height:34px;
background:url(source/plugin/zywx/propagate/images/tan_top.png) no-repeat;
position:relative;
}
.d_top span { color:#FFF; line-height:34px; font-family:微软雅黑; padding-left:15px;}
.d_top span.span2 { font-size:14px;}
.web_min{
width:11px;
height:20px;
background:url(source/plugin/zywx/propagate/images/web_min.png) bottom no-repeat;
position:absolute;
right:32px;
display:block;
cursor:pointer;
top:0px;
}
.exit{
width:13px;
height:13px;
background:url(source/plugin/zywx/propagate/images/exit.png) no-repeat;
*background:none;
filter:progidXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale,src='source/plugin/zywx/propagate/images/exit.png', no-repeat);
position:absolute;
right:7px;
display:block;
top:10px;
cursor:pointer;
}
.dailog_m{
width:230px;
border-left:2px solid #002D51;
border-right:2px solid #002D51;
padding:10px;
background:#DCEDFA;
display:block;
}
.d_foot{
width:254px;
height:6px;
background:url(source/plugin/zywx/propagate/images/t_foot.png) no-repeat;
*background:none;
font-size:0px;
filter:progidXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale,src='source/plugin/zywx/propagate/images/t_foot.png', no-repeat);
}
.d_cont{
color:#8E8E8E;
font-family:微软雅黑;
font-size:14px;
line-height:22px;
}
.d_cont span{
color:#002D51;
font-family:微软雅黑;
font-size:14px;
line-height:22px;
}
.d_logo{
width:57px;
height:16px;
background:url(source/plugin/zywx/propagate/images/down.png) no-repeat;
*background:none;
filter:progidXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale,src='images/down.png', no-repeat);
margin-top:13px;
margin-bottom:3px;
}
.dailog_ul li {
float:left;
width:114px;
text-align:center;
height:28px;
line-height:28px;
font-family:微软雅黑;
font-size:14px;
color:#002D51;
text-decoration:underline;
}
.span1{
font-size:12px;
}
.wp1
{
background:#ECECEC;
height:508px;
}
.banner_left {
width:520px;
float:left;
}
.phone {
width:455px;
height:378px;
margin-top:20px;
margin-left:40px;
background:url(source/plugin/zywx/propagate/images/phone.png) no-repeat;
*background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale,src='images/phone.png', no-repeat);
}
.banner_right{
float:left;
width:440px;
overflow:hidden;
}
.icon_box {
}
.icon {
float:left;
width:90px;
margin-top:82px;
}
.icon img {
width:72px;
height:72px;
}
.icon_by {
float:left;
width:350px;
margin-top:85px;
}
.slogan {
color:#2975C4;
font-weight:bold;
font-size:40px;
height:46px;
line-height:40px;
text-align:left;
}
.gn{
margin-top:55px;
}
.gn_box {
margin-left:10px;
height:42px;
}
.gn_box li {
float:left;
width:118px;
margin-right:25px;
}
.gn_box li img{
display:block;
}
.btn_box {
margin-top:5px;
}
.xian{ float:left;
width:2px;
height:64px;
background:url(source/plugin/zywx/propagate/images/line.png) no-repeat;
}
.btn_box a {
display:block; width:202px; height:68px; float:left; background:url(source/plugin/zywx/propagate/images/btn_bg.png) no-repeat;
margin-bottom:10px;
display:inline;
}
.btn_box a:hover .ziti {text-decoration:none;}
.mar_right{ margin-left:30px;}
.iphone{
float:left;
width:65px;
height:46px;
}
.iphone_icon{
margin:10px 0px 0px 10px;
width:40px;
height:46px;
}
.iphone_icon img {
width:40px;
height:46px;
}
.android_icon{
margin:10px 0px 0px 10px;
}
.iphone_r{
float:left;
width:123px;
}
.ziti {
font-family:微软雅黑;
font-size:14px;
color:#6E6E6E; text-decoration:none;
height:28px;
line-height:28px;
text-align:center;
}
.ziti1 {
font-family:微软雅黑;
font-size:14px;
color:#6E6E6E; text-decoration:none;
height:20px;
line-height:20px;
text-align:center;
}
.symbian{
float:left;
width:97px;
height:46px;
}
.symbian_icon{
margin:13px 0px 0px 10px;
width:81px;
height:22px;
}
.symbian_icon img {
width:81px;
height:22px;
}
.all_icon{
margin:17px 0px 0px 7px;
width:87px;
height:15px;
}
.all_icon img {
width:87px;
height:15px;
}
.symbian_r{
float:left;
width:98px;
height:46px;
line-height:46px;
padding-left:5px;
}
.wp {
margin: 0 auto;
width: 960px;
}
.tan_box {
width:594px;
position:absolute;
top:20%;
left:30%;
z-index:1100;
}
.top {
width:594px;
height:34px;
overflow:hidden;
}
.top_l {
width:6px;
height:34px;
background:url(source/plugin/zywx/propagate/images/top_l.png) no-repeat;
font-size:0px;
float:left;
*background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale,src='source/plugin/zywx/propagate/images/top_l.png', no-repeat);
}
.top_r {
width:6px;
height:34px;
background:url(source/plugin/zywx/propagate/images/top_r.png) no-repeat;
font-size:0px;
float:left;
}
.top_m {
width:582px;
height:34px;
background:url(source/plugin/zywx/propagate/images/top_m.png) repeat-x;
float:left;
position:relative;
*background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale,src='source/plugin/zywx/propagate/images/top_m.png', no-repeat);
}
.top_m span { color:#FFF; line-height:34px; padding-left:15px;}
.middle {
width:560px;
background:#CFE5F6;
border-left:2px solid #002D51;
border-right:2px solid #002D51;
padding:5px 15px 10px;
}
.t_foot{
width:594px;
height:9px;
font-size:0px;
}
.foot_l{
width:6px;
height:9px;
background:url(source/plugin/zywx/propagate/images/foot_l.png) no-repeat;
*background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale,src='source/plugin/zywx/propagate/images/foot_l.png', no-repeat);
float:left;
}
.foot_r{
width:6px;
height:9px;
background:url(source/plugin/zywx/propagate/images/foot_r.png) no-repeat;
*background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale,src='source/plugin/zywx/propagate/images/foot_r.png', no-repeat);
float:left;
}
.foot_m {
width:582px;
height:9px;
background:url(source/plugin/zywx/propagate/images/foot_m.png) repeat-x;
*background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale,src='source/plugin/zywx/propagate/images/foot_m.png', repeat-x);
float:left;
}
.middle p{
color:#FF0000;
}
.first{
width:350px;
float:left;
padding-left:25px;
padding-top:20px;}
.first_img{
float:left;
width:180px;
padding-top:30px;
}
.help_box{
list-style:disc;
margin-left:15px;
width:300px;
}
.help_box li { line-height:20px;}
.juli{ margin-bottom:15px;}
.d_btn a {
display:block;
width:180px;
height:76px;
background:url(source/plugin/zywx/propagate/images/d_btn.png) no-repeat;
*background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale,src='source/plugin/zywx/propagate/images/d_btn.png',no-repeat);
margin:10px auto 0px;
}
.down_btn{
padding-left:55px;
font-size:22px;
color:#FFF;
font-weight:bold;
padding-top:15px;
width:100px;
text-align:center;
text-shadow:0px 1px 0px #666;
}
.down_btn_nav{
padding-left:55px;
font-size:22px;
color:#FFF;
font-weight:bold;
line-height:45px;
width:100px;
text-align:center;
text-shadow:0px 1px 0px #666;
}
.down_btn1{
padding-left:55px;
font-size:12px;
color:#FFF;
width:100px;
text-align:center;
font-weight:bold;
text-shadow:0px 1px 0px #666;
}
.tan_bg{
width:100%;
_width:1440px;
height:100%;
_height:800px;
z-index:900;
position:fixed;
top:0px;
left:0px;
background:#000;
filter:alpha(opacity=60);
opacity:0.6;
}
.d_btn a.down_nav_btn { width:180px; height:45px; line-height:45px; color:#FFF; text-decoration:none; font-size:16px; text-align:center; background:url(source/plugin/zywx/propagate/images/d_btn1.png) no-repeat; display:block;}
.img_box { margin-top:13px; width:100%;}
.img_box1 { margin-top:4px; width:100%;}
.img_box img ,.img_box1 img { display:block; margin:0px auto;}
.img_xc { width:960px; height:396px;}
.a_link { width:930px; text-align:right; height:20px; line-height:20px;}
.a_link a { color:#000; text-decoration:underline;}
</style>
<div class="wp wp1">
<div class="img_xc">
<img src="./source/plugin/zywx/propagate/images/xc.jpg" />
</div>
<!--<div class="a_link"><a href="javascript:showbox('all')">按照手机机型下载</a></div>-->
<div class="btn_box">
<a class="mar_right" href="sxbbs.ipa">
<div class="iphone"><div class="iphone_icon"><img src="./source/plugin/zywx/propagate/images/iphone.png" width="40" height="46" /></div></div>
<div class="xian"></div>
<div class="iphone_r">
<div class="img_box"><img src="./source/plugin/zywx/propagate/images/ipone_img.png" width="84" height="20" /></div>
<div class="ziti">苹果版下载</div>
</div>
<div class="clear"></div>
</a>
<a class="mar_right" href="sxbbs.apk">
<div class="iphone"><div class="android_icon"><img src="./source/plugin/zywx/propagate/images/android.png" width="42" height="46" /></div></div>
<div class="xian"></div>
<div class="iphone_r">
<div class="img_box"><img src="./source/plugin/zywx/propagate/images/android_img.png" width="96" height="20" /></div>
<div class="ziti">安卓版下载</div>
</div>
<div class="clear"></div>
</a>
<a class="mar_right" href="sxbbs.sis">
<div class="img_box1"><img src="./source/plugin/zywx/propagate/images/symbian.png" width="116" height="32" /></div>
<div class="ziti1">S60 V3版下载</div>
</a>
<a class="mar_right" href="sxbbs.sis">
<div class="img_box1"><img src="./source/plugin/zywx/propagate/images/symbian.png" width="116" height="32" /></div>
<div class="ziti1">S60 V5版下载</div>
</a>
<div class="clear"></div>
</div>
</div>
<!--弹出框-->
<div id="tbg" class="tan_bg" onclick="hidebox()" style="display:none"></div>
<div id="tbox" class="tan_box" style="display:none">
<div id="box_iphone">
<div class="top">
<div class="top_l"></div>
<div class="top_m"><span>IPhone版下载</span><a class="exit" href="javascript:void(0)" onclick="hidebox()"></a></div>
<div class="top_r"></div>
<div class="clear"></div>
</div>
<div class="middle">
<div class="first">
<h2>1. 手机上网安装</h2>
<ul class="help_box">
<li class="juli">使用您手机上的条形码扫描程序扫描右侧的二维码,即可安装下载;</li>
<li>您还可以登录WAP网址进行下载:<br /><?php echo $theurl,'&dl';?></li>
</ul>
</div>
<div class="first_img">
<img id="iphoneimg" width="180" src="<?php echo ZYWX_PROXY;?>/proxyserver/index.php?m=qrcode&d=<?php echo $i[0]?$i[0]:'暂时没有包';?>&e=H&s=6" />
</div>
<div class="clear"></div>
<div class="first">
<h2>2. 电脑同步安装</h2>
<ul class="help_box">
<li>下载应用后,使用手机助手或同步推(如未安装同步推将无法安装)一键安装:</li>
</ul>
</div>
<div class="clear"></div>
<div class="d_btn"><a href="javascript:void(0)" onclick="download_pacckage('iphone')"><div class="down_btn">立即下载</div><div class="down_btn1">ipa安装包</div></a></div>
</div>
</div>
<!--安卓版弹窗开始-->
<div id="box_android" >
<div class="top">
<div class="top_l"></div>
<div class="top_m"><span>Andriod版下载</span><a class="exit" href="javascript:void(0)" onclick="hidebox()"></a></div>
<div class="top_r"></div>
<div class="clear"></div>
</div>
<div class="middle">
<div class="first">
<h2>1. 手机上网安装</h2>
<ul class="help_box">
<li class="juli">使用您手机上的条形码扫描程序扫描右侧的二维码,即可安装下载;</li>
<li>您还可以登录WAP网址进行下载:<br /><?php echo $theurl,'&dl';?></li>
</ul>
</div>
<div class="first_img">
<img id="andriodimg" width="180" src="<?php echo ZYWX_PROXY;?>/proxyserver/index.php?m=qrcode&d=<?php echo $a[0]?$a[0]:'暂时没有包';?>&e=H&s=6" />
</div>
<div class="clear"></div>
<div class="first">
<h2>2. 电脑同步安装</h2>
<ul class="help_box">
<li>下载应用后,使用手机助手一键安装:</li>
</ul>
</div>
<div class="clear"></div>
<div class="d_btn"><a href="javascript:void(0)" onclick="download_pacckage('android')"><div class="down_btn">立即下载</div><div class="down_btn1">apk安装包</div></a></div>
</div>
</div>
<!--塞般v3版弹窗开始-->
<div id="box_symbianv3">
<div class="top">
<div class="top_l"></div>
<div class="top_m"><span>Symbian S60 V3版下载</span><a class="exit" href="javascript:void(0)" onclick="hidebox()"></a></div>
<div class="top_r"></div>
<div class="clear"></div>
</div>
<div class="middle">
<div class="first">
<h2>1. 手机上网安装</h2>
<ul class="help_box">
<li class="juli">使用您手机上的条形码扫描程序扫描右侧的二维码,即可安装下载;</li>
<li>您还可以登录WAP网址进行下载:<br /><?php echo $theurl,'&dl';?></li>
</ul>
</div>
<div class="first_img">
<img id="iphoneimg" width="180" src="<?php echo ZYWX_PROXY;?>/proxyserver/index.php?m=qrcode&d=<?php echo $sv3[0]?$sv3[0]:'暂时没有包';?>&e=H&s=6" />
</div>
<div class="clear"></div>
<div class="first">
<h2>2. 电脑同步安装</h2>
<ul class="help_box">
<li>下载应用后,使用手机助手一键安装:</li>
</ul>
</div>
<div class="clear"></div>
<div class="d_btn"><a href="javascript:void(0)" onclick="download_pacckage('symbianv3')"><div class="down_btn">立即下载</div><div class="down_btn1">sis安装包</div></a></div>
</div>
</div>
<!--塞般v5版弹窗开始-->
<div id="box_symbianv5">
<div class="top">
<div class="top_l"></div>
<div class="top_m"><span>Symbian S60 V5版下载</span><a class="exit" href="javascript:void(0)" onclick="hidebox()"></a></div>
<div class="top_r"></div>
<div class="clear"></div>
</div>
<div class="middle">
<div class="first">
<h2>1. 手机上网安装</h2>
<ul class="help_box">
<li class="juli">使用您手机上的条形码扫描程序扫描右侧的二维码,即可安装下载;</li>
<li>您还可以登录WAP网址进行下载:<br /><?php echo $theurl,'&dl';?></li>
</ul>
</div>
<div class="first_img">
<img id="iphoneimg" width="180" src="<?php echo ZYWX_PROXY;?>/proxyserver/index.php?m=qrcode&d=<?php echo $sv5[0]?$sv5[0]:'暂时没有包';?>&e=H&s=6" />
</div>
<div class="clear"></div>
<div class="first">
<h2>2. 电脑同步安装</h2>
<ul class="help_box">
<li>下载应用后,使用手机助手一键安装:</li>
</ul>
</div>
<div class="clear"></div>
<div class="d_btn"><a href="javascript:void(0)" onclick="download_pacckage('symbianv5')"><div class="down_btn">立即下载</div><div class="down_btn1">sis安装包</div></a></div>
</div>
</div>
<!--机型弹窗开始-->
<div id="box_all">
<div class="top">
<div class="top_l"></div>
<div class="top_m"><span>根据机型下载</span><a class="exit" href="javascript:void(0)" onclick="hidebox()"></a></div>
<div class="top_r"></div>
<div class="clear"></div>
</div>
<div class="middle">
<div class="first" style="width:510px;">
<h3>手机连接电脑,通过USB把下载文件复制到手机里再进行安装。</h2>
</div>
<div class="clear"></div>
<div class="first">
<div style="margin-bottom:20px; padding-left:100px;">
<label>选择手机品牌:</label>
<select id="phones" style="width:160px;" name="" onchange="get_phone_type(this)">
<option>请选择</option>
</select>
</div>
<div style=" padding-left:100px;">
<label>选择手机型号:</label>
<select id="phonetype" style="width:160px;" onchange="mobileStyleId = this.options[this.selectedIndex].value">
<option>请选择</option>
</select>
</div>
</div>
<div class="clear"></div>
<div class="d_btn" style="height:160px; padding-top:20px;"><a href="javascript:void(0)" onclick="download_pacckage('all')" class="down_nav_btn"><strong>确定下载</strong></a></div>
</div>
</div>
<div class="t_foot">
<div class="foot_l"></div>
<div class="foot_m"></div>
<div class="foot_r"></div>
<div class="clear"></div>
</div>
</div>
<!--弹出框-->
<script>
var typearr=["box_iphone", "box_android", "box_symbianv3", "box_symbianv5", "box_all"];
function $(id) {
return !id ? null : document.getElementById(id);
}
function hidebox() {
$("tbg").style.display = "none";
$("tbox").style.display = "none";
}
function showbox(id) {
for(var i=0; i<5; i++) {
$(typearr[i]).style.display = "none";
}
$("tbg").style.display = "";
$("tbox").style.display = "";
$("box_"+id).style.display = "";
}
function download_pacckage(id) {
var url = "";
if(id == 'all') {
if(mobileStyleId == '') {alert('请选择手机型号'); return;}
if(isNaN(mobileStyleId)) return;
url = "<?php echo ZYWX_APPCAN;?>/plugin/downApp.action?app_key="+appkey+"&mobileStyleId="+mobileStyleId;
window.open(url, "_blank");
} else if(id == 'iphone') {
if(iPhonesrc) {
window.open(iPhonesrc, "_blank");
} else {
alert('没有包下载');
}
} else if(id == 'android') {
if(Adriodsrc) {window.open(Adriodsrc, "_blank");}
else {alert('没有包下载');}
} else if(id == 'symbianv3') {
if(Sv3src) {window.open(Sv3src, "_blank");}
else {alert('没有包下载');}
} else if(id == 'symbianv5') {
if(Sv5src) {window.open(Sv5src, "_blank");}
else {alert('没有包下载');}
}
//var x = new Ajax();
//x.get("source/plugin/zywx/rpc/forum.php?mod=ajax&action=installationstat&id="+id, function(s, x) {});
}
function keydown(){
if(event.keyCode == 27) hidebox();
}
document.onkeydown = keydown;
</script>
<script>
(function() {
window.$$ = {
//设置一个随机的callback函数..防止跟其他的全局函数重名
callback : 'cross' + parseInt(Math.random()*1000),
getJSON : function(url, callback) {
var c = this.callback;
url = url + "&callback=" + c;
// Handle JSONP-style loading
//将函数名设置为window的一个方法,这样此方法就是全局的了.
window[ c ] = window[ c ] || function( data ) {
//data = JSON.parse(data);
//alert(data);
//调用匿名函数
callback(data);
// Garbage collect
window[ c ] = undefined;
};
var head = document.getElementsByTagName("head")[0] || document.documentElement;
var script = document.createElement("script");
script.src = url;
head.insertBefore( script, head.firstChild );
}
};
})();
window.onload = function() {
$$.getJSON("<?php echo ZYWX_APPCAN;?>/plugin/show_mobile_brands.action?app_key="+appkey, function(data){
var obj = $("phones");
var opt = "<option>请选择</option>";
var name = "";
for(var key in data) {
name = data[key];
obj.options.add(new Option(name,key));
}
});
}
var mobileStyleId = "";
function get_phone_type(sel) {
var bid = sel.options[sel.selectedIndex].value;
if(isNaN(bid)) return;
$$.getJSON("<?php echo ZYWX_APPCAN;?>/plugin/show_mobile_style.action?app_key="+appkey+"&brandId="+bid,
function(data){
var obj = $("phonetype");
obj.innerHTML = "";
var opt = name = "";
for(var key in data) {
name = data[key];
obj.options.add(new Option(name,key));
if(mobileStyleId == '') {mobileStyleId = key;}
}
});
}
window.onerror=function(){return true;}
</script>
<?php
$c = ob_get_contents();
ob_end_clean();
if(CHARSET != 'utf-8') {
$c = diconv($c, 'utf-8', CHARSET);
}
echo $c;
include template('common/footer');
/**
* 根据键名加载缓存
* @param string $name 键名
* @param mixed $life 是否受过期限制
*/
function zy_loadcache($name, $limit=true) {
$cache = DB::fetch(DB::query('SELECT data, dateline FROM '.DB::table("common_syscache")." WHERE cname='$name' LIMIT 1"));
if(empty($cache) || ($limit && TIMESTAMP > $cache['dateline'])) return;
return unserialize($cache['data']);
}
/**
* 缓存保存到数据库
* @param string $name 键名
* @param mixed $data 缓存内容
* @param int $life 缓存存活时间,默认为一周
*/
function zy_savecache($name, $data, $life=604800) {
DB::insert('common_syscache', array(
'cname' => $name,
'data' => serialize($data),
'dateline' => (TIMESTAMP+$life)
), false, true);
}
?> |