当前位置: 首页>>代码示例>>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;未经允许,请勿转载。