本文整理汇总了PHP中payed::checkProByUid方法的典型用法代码示例。如果您正苦于以下问题:PHP payed::checkProByUid方法的具体用法?PHP payed::checkProByUid怎么用?PHP payed::checkProByUid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类payed
的用法示例。
在下文中一共展示了payed::checkProByUid方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: session_start
<?php
$rpath = "../";
$g_page_id = "0|5";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/stdf.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/payed.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/projects.php";
session_start();
$uid = get_uid(false);
$is_pro = payed::CheckPro($_SESSION['login']);
$is_adm = false;
// чтобы админ мог редактировать предложения по проектам
if (hasPermissions('projects') && InGetPost('uid')) {
$uid = InGetPost('uid');
$is_pro = payed::checkProByUid($uid);
$is_adm = true;
}
$error = false;
$err = '';
$pict_added = false;
//die ("DUMP: " . var_export($_FILES, true));
if (isset($_POST['action']) && $_POST['action'] == 'add_pic' && is_array($_FILES['ps_attach'])) {
$prj_id = isset($_POST['pid']) ? intval($_POST['pid']) : 0;
$img = new CFile($_FILES['ps_attach']);
if ($img->size > 0) {
$dir = get_login($uid);
// чтобы админ мог редактировать предложения по проектам
if ($is_adm) {
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/users.php';
$user = new users();
$user->GetUserByUID($uid);
示例2: initForUser
/**
* Инициализация проекта
* для пользователя в параметрах
*
* @param user $user
* @return array
*/
public function initForUser($user)
{
if (!isset($user->uid) || !$user->uid) {
return $this->destroy();
}
$this->_uid = $user->uid;
$this->_project['login'] = $user->login;
$this->_project['uname'] = $user->uname;
$this->_project['usurname'] = $user->usurname;
$this->_project['user_id'] = $this->_uid;
$this->_setPath();
$this->_project['is_pro'] = payed::checkProByUid($this->_uid) ? 't' : 'f';
return $this->getProject();
}
示例3: payed
$uid = 78706;
/*
$data = payed::getProfiDaysFromPro($uid);
print_r($data);
exit;
*/
/*
payed::freezePro($uid, '2014-10-11 00:00:00', '2014-10-18 00:00:00');
exit;
*/
$payed = new payed();
$data = $payed->ProLastById($uid, array(164));
print_r($data);
exit;
$is_pro = $payed->checkProByUid($uid);
assert($is_pro == true);
//$ok = $payed->freezeProDeactivate($uid);
//assert($ok == true);
exit;
$last_freeze = payed::getLastFreeze($uid);
/*
if($last_freeze) {
$from_time = strtotime($last_freeze['from_time_date']);
$to_time = strtotime($last_freeze['to_time_date']);
if ($from_time <= time() && strtotime($last_freeze['to_time']) > time()) {
$freezed_now = true;
$freezed_alert = false;
$freeze_act = 'freeze_stop';