本文整理汇总了PHP中UserSession::uget方法的典型用法代码示例。如果您正苦于以下问题:PHP UserSession::uget方法的具体用法?PHP UserSession::uget怎么用?PHP UserSession::uget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserSession
的用法示例。
在下文中一共展示了UserSession::uget方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
//parent::__construct();
Doo::loadClass('UserSession');
$usession = new UserSession();
$this->username = $usession->uget('username');
$this->ppv_cat_code = 'C_TokoVideo_PPV';
$this->svod_cat_code = 'C_TokoVideo_International';
}
示例2: overview
public function overview()
{
$this->conf_data['content_view'] = 'content/overview.php';
$data = $this->conf_data;
Doo::loadClass('UserSession');
$usession = new UserSession();
$username = $usession->uget('username');
if (!$username) {
header('Location:' . DOO::conf()->SUBFOLDER . 'login');
}
$dbapi = $this->dbapi;
$data['js'][] = 'raphael-min.js';
$data['limit'] = 20;
$gpage = $_GET['page'] - 1;
if ($_REQUEST['print'] == 'excel') {
set_time_limit(0);
$data['limit'] = 99999999;
unset($gpage);
}
$data['username'] = $username;
$data['dbapi'] = $this->dbapi;
$data['subregion'] = $this->subregion;
switch ($_POST['userProvider']) {
case 3:
// Flexi
$data['css'][] = 'trend-telkomsel.css';
$data['js'][] = 'popup.js';
$data['js'][] = 'trend-telkomsel.js';
$data['graph'][0]->type = "trend";
$data['graph'][0]->data = $dbapi->get_users(3, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
break;
case 2:
// Telkomsel
$data['css'][] = 'trend-telkomsel.css';
$data['js'][] = 'popup.js';
$data['js'][] = 'trend-telkomsel.js';
$data['graph'][0]->type = "trend";
$data['graph'][0]->data = $dbapi->get_users(2, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
break;
case 1:
// Speedy
$data['css'][] = 'pie-speedy.css';
$data['css'][] = 'trend-speedy.css';
$data['js'][] = 'pie-speedy.js';
$data['js'][] = 'popup.js';
$data['js'][] = 'trend-speedy.js';
if (empty($_POST['speedySubRegional'])) {
$speedyRegion = explode(';', $_POST['speedyRegional']);
} else {
$speedyRegion = explode(';', $_POST['speedySubRegional']);
}
$data['graph'][0]->type = "pie";
$data['graph'][0]->total = $dbapi->get_user_count(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']), false, $speedyRegion);
$data['graph'][0]->data['binding'] = $dbapi->get_user_count(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']), true, $speedyRegion);
$data['graph'][0]->data['not yet binding'] = $data['graph'][0]->total - $data['graph'][0]->data['binding'];
$data['graph'][1]->type = "trend";
$data['graph'][1]->data = $dbapi->get_users(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']), true, $speedyRegion);
break;
default:
$data['css'][] = 'pie.css';
$data['js'][] = 'pie.js';
$data['graph']->type = "pie";
$data['graph']->data['speedy'] = $dbapi->get_user_count(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
$data['graph']->data['telkomsel'] = $dbapi->get_user_count(2, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
$data['graph']->data['flexi'] = $dbapi->get_user_count(3, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
$data['graph']->total = $data['graph']->data['speedy'] + $data['graph']->data['telkomsel'] + $data['graph']->data['flexi'];
}
$this->view()->renderc(Doo::conf()->language . '/t3', $data);
}
示例3: UserSession
<?php
Doo::loadClass('UserSession');
$usession = new UserSession();
$username = $usession->uget('username');
?>
<h1>Results on <?php
echo $data['gdtform'];
?>
to <?php
echo $data['gdtto'];
?>
</h1>
<div class="list_wrapper">
<?/*<h1>User List</h1>*/ ?>
<?php
if (!$_REQUEST['print']) {
?>
<div class="row-fluid">
<?php
require_once "filter.php";
?>
<div class="span11 widget white" onTablet="span10" onDesktop="span11" style="margin-top:20px;">
<div id="stats-chart3" style="height:282px" ></div>
</div>
<div id="dialog" title="User Registration Trendings"></div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<?php
}