예제 #1
0
<?php

require_once '_main.php';
$invite = new \Ss\User\Invite($uid);
$code = $invite->CodeArray();
$smarty->assign('InviteNum', $U->InviteNum());
// $smarty->assign('data',$data);
$smarty->assign('code', $code);
$smarty->assign('a', $a = 1);
$varsarray = get_defined_vars();
$smarty->assign("user_invite_Announcement_color_orange", Ss\ac::get('user_invite_Announcement_color_orange', $varsarray));
// 橙色公告内容
$smarty->assign("user_invite_Announcement_color_blue", Ss\ac::get('user_invite_Announcement_color_blue', $varsarray));
// 蓝色公告内容
$smarty->display('user/invite.tpl');
예제 #2
0
<?php

require_once 'lib/config.php';
$c = new \Ss\User\Invite();
$smarty->assign('c', $c);
$datas = $c->CodeArray();
$smarty->assign('datas', $datas);
$smarty->assign('a', $a = 1);
$smarty->assign("code_Announcement", Ss\ac::get('code_Announcement', get_defined_vars()));
// 邀请码公告内容
$smarty->display('code.tpl');
예제 #3
0
require_once 'assp.php';
//获得流量信息
if ($oo->get_transfer() < 1000000) {
    $transfers = 0;
} else {
    $transfers = $oo->get_transfer();
}
//计算流量并保留2位小数
$all_transfer = $oo->get_transfer_enable() / $togb;
$unused_transfer = $oo->unused_transfer() / $togb;
@($used_100 = $oo->get_transfer() / $oo->get_transfer_enable());
$used_100 = round($used_100, 2);
$used_100 = $used_100 * 100;
//计算流量并保留2位小数
$transfers = $transfers / $tomb;
$transfers = round($transfers, 2);
$all_transfer = round($all_transfer, 2);
$unused_transfer = round($unused_transfer, 2);
//最后在线时间
$unix_time = $oo->get_last_unix_time();
$smarty->assign('oo', $oo);
$smarty->assign('transfers', $transfers);
$smarty->assign('used_100', $used_100);
$smarty->assign('all_transfer', $all_transfer);
$smarty->assign('unused_transfer', $unused_transfer);
$smarty->assign('unix_time', $unix_time);
$smarty->assign("user_index_Announcement", Ss\ac::get('user_index_Announcement', get_defined_vars()));
// 用户中心公告内容
$smarty->display('user/index.tpl');
echo $js_ua_code;
//显示防签到系统平台 页面内容
예제 #4
0
<?php

require_once '_main.php';
$node = new Ss\Node\Node();
$node0 = $node->NodesArray(0);
// 普通节点数组
$node1 = $node->NodesArray(1);
// Pro节点数组
$smarty->assign('oo', $oo);
$smarty->assign('node', $node);
$smarty->assign('node0', $node0);
$smarty->assign('node1', $node1);
$varsarray = get_defined_vars();
$smarty->assign("user_node_Announcement_node", Ss\ac::get('user_node_Announcement_node', $varsarray));
// 普通节点公告内容
$smarty->assign("user_node_Announcement_node_pro", Ss\ac::get('user_node_Announcement_node_pro', $varsarray));
// pro节点公告内容
$smarty->display('user/node.tpl');
예제 #5
0
<?php

//开启session
session_start();
require_once '../lib/config.php';
//生成32位随机字符串
$randomChar = Ss\Etc\Comm::get_random_char(32) . "==";
//把随机字符串保存到session
$_SESSION['randomChar'] = $randomChar;
$smarty->assign('randomChar', $randomChar);
$smarty->assign("tos_content", Ss\ac::get('tos_content', get_defined_vars()));
// 用户协议
$smarty->display('user/register.tpl');
예제 #6
0
<?php

include_once 'lib/config.php';
$varsarray = get_defined_vars();
$smarty->assign("index_Announcement", Ss\ac::get('index_Announcement', $varsarray));
// 首页公告内容
$smarty->assign("index_button", Ss\ac::get('index_button', $varsarray));
// 首页公告按钮
$smarty->assign("index_Custom", Ss\ac::get('index_Custom', $varsarray));
// 首页自定义内容
$smarty->display("index.tpl");