コード例 #1
0
ファイル: my.php プロジェクト: jechiy/PHPWind
<?php

!defined('A_P') && exit('Forbidden');
!$winduid && Showmsg('not_login');
empty($space) && Showmsg('space_not_exist');
$pageUrl = $basename;
$a && ($pageUrl .= 'a=' . $a . '&');
$see && ($pageUrl .= 'see=' . $see . '&');
L::loadClass('ActivityForO', 'activity', false);
$postActForO = new PW_ActivityForO();
$seeTitle = $postActForO->getSeeTitleBySee($see);
if (empty($see)) {
    S::gp(array('actmid'), GP, 2);
    S::gp(array('timerange'), GP);
    // * @include_once pwCache::getPath(D_P."data/bbscache/activity_config.php");
    pwCache::getData(D_P . "data/bbscache/activity_config.php");
    $where = " WHERE dv.ifrecycle=0";
    if ($actmid) {
        $where .= " AND dv.actmid=" . S::sqlEscape($actmid);
        $pageUrl .= 'actmid=' . $actmid . '&';
    }
    if (!empty($timerange)) {
        if ('+' == $timerange[0]) {
            $timerange = (int) $timerange;
            if ($timerange > 0) {
                $startTimeBeforeTimestamp = $timestamp + $timerange;
                $where .= " AND (dv.starttime <= " . S::sqlEscape($startTimeBeforeTimestamp) . "AND dv.starttime >" . S::sqlEscape($timestamp) . "OR (dv.endtime <=" . S::sqlEscape($startTimeBeforeTimestamp) . "And dv.endtime >" . S::sqlEscape($timestamp) . " ))";
                $pageUrl .= 'timerange=%2B' . $timerange . '&';
            }
        }
    }
コード例 #2
0
ファイル: view.php プロジェクト: sherlockhouse/aliyun
<?php

!defined('A_P') && exit('Forbidden');
!$winduid && Showmsg('not_login');
empty($space) && Showmsg('space_not_exist');
if (!$newSpace->viewRight('index')) {
    Showmsg('space_is_not_viewright!');
}
$basename .= 'uid=' . $uid . '&';
$pageUrl = $basename;
$a && ($pageUrl .= 'a=' . $a . '&');
$see && ($pageUrl .= 'see=' . $see . '&');
L::loadClass('ActivityForO', 'activity', false);
$postActForO = new PW_ActivityForO();
$seeTitle = $postActForO->getSeeTitleBySee($see);
if (empty($see)) {
    S::gp(array('actmid'), GP, 2);
    S::gp(array('timerange'), GP);
    //* @include_once pwCache::getPath(D_P."data/bbscache/activity_config.php");
    pwCache::getData(D_P . "data/bbscache/activity_config.php");
    $where = " WHERE dv.ifrecycle=0";
    if ($actmid) {
        $where .= " AND dv.actmid=" . S::sqlEscape($actmid);
        $pageUrl .= 'actmid=' . $actmid . '&';
    }
    if (!empty($timerange)) {
        if ('+' == $timerange[0]) {
            $timerange = (int) $timerange;
            if ($timerange > 0) {
                $startTimeBeforeTimestamp = $timerange + $timestamp;
                $where .= " AND dv.starttime <= " . S::sqlEscape($startTimeBeforeTimestamp);