當前位置: 首頁>>代碼示例>>PHP>>正文


PHP payed::checkProByUid方法代碼示例

本文整理匯總了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);
開發者ID:Nikitian,項目名稱:fl-ru-damp,代碼行數:31,代碼來源:upload.php

示例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();
 }
開發者ID:amage,項目名稱:fl-ru-damp,代碼行數:21,代碼來源:projects.php

示例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';
開發者ID:kapai69,項目名稱:fl-ru-damp,代碼行數:31,代碼來源:test.php


注:本文中的payed::checkProByUid方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。