当前位置: 首页>>代码示例>>PHP>>正文


PHP S::GP方法代码示例

本文整理汇总了PHP中S::GP方法的典型用法代码示例。如果您正苦于以下问题:PHP S::GP方法的具体用法?PHP S::GP怎么用?PHP S::GP使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在S的用法示例。


在下文中一共展示了S::GP方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: adminmsg

                        break;
                    }
                }
                if ($step < $total) {
                    adminmsg('updatecache_total_step', "{$basename}&action=update&type=hotfavor&step={$step}");
                }
            }
            adminmsg('operate_success');
        }
    } else {
        adminmsg('undefined_action');
    }
    include PrintEot('pwcache');
    exit;
} elseif ($adminitem == 'threadcache' || $adminitem == 'guestcache') {
    S::GP(array('step', 'config'));
    if ($step != 2) {
        //thread
        $db_fcachenum = (int) $db_fcachenum;
        $db_fcachetime = (int) $db_fcachetime;
        //guest
        $db_fguestnum = (int) $db_fguestnum;
        $db_tguestnum = (int) $db_tguestnum;
        $db_guestread = (int) $db_guestread;
        $db_guestindex = (int) $db_guestindex;
        $db_guestthread = (int) $db_guestthread;
        include PrintEot('pcache');
        exit;
    } else {
        //guest
        substr($config['guestdir'], -1) == '/' && ($config['guestdir'] = substr($config['guestdir'], 0, -1));
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:aboutcache.php

示例2: exit

!defined('P_W') && exit('Forbidden');
S::gp(array('job'));
$photoEditor = $db_phopen && $winduid;
if (!$photoEditor && $job) {
    Showmsg('undefined_action');
}
//* include_once pwCache::getPath(D_P . 'data/bbscache/o_config.php');
pwCache::getData(D_P . 'data/bbscache/o_config.php');
require_once R_P . 'u/require/core.php';
L::loadClass('photo', 'colony', false);
$photoService = new PW_Photo($winduid, 0, 1, 0);
$photoService->setPerpage($photoService->getAlbumNumByUid());
if ($job == 'listphotos') {
    /* ajax 请求获取相片列表 */
    define('AJAX', 1);
    S::GP(array('aid'));
    $ajaxPhotos = array();
    $result = $photoService->getPhotoListByAid($aid, false, false);
    list(, $photos) = $result;
    //$albumInfo,$photos
    if (S::isArray($photos)) {
        foreach ($photos as $photo) {
            $lastpos = strrpos($photo['path'], '/');
            $ajaxPhotos[] = array('pid' => $photo['pid'], 'thumbpath' => $photo['path'], 'ifthumb' => $photo['ifthumb'], 'path' => $photo['path'], 'pintro' => $photo['pintro']);
        }
        $ajaxPhotos = pwJsonEncode($ajaxPhotos);
        echo "success\t{$ajaxPhotos}";
    } else {
        Showmsg('data_error');
    }
    ajax_footer();
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:pweditor.php

示例3: exit

<?php

!function_exists('adminmsg') && exit('Forbidden');
$basename = "{$admin_file}?adminjob=member";
S::GP('step');
if ($step != 2) {
    require_once R_P . 'require/credit.php';
    $sellset = $enhideset = $signcurtype = '';
    foreach ($credit->cType as $key => $value) {
        //post
        $sellcked = in_array($key, $db_sellset['type']) ? 'CHECKED' : '';
        $sellset .= '<li><input type="checkbox" name="sellset[type][]" value="' . $key . '" ' . $sellcked . ' /> ' . $value . '</li>';
        $enhidechked = in_array($key, $db_enhideset['type']) ? 'CHECKED' : '';
        $enhideset .= '<li><input type="checkbox" name="enhideset[type][]" value="' . $key . '" ' . $enhidechked . ' /> ' . $value . '</li>';
        //face
        if (!is_numeric($key)) {
            if ($db_signcurtype == $key) {
                $signcurtype .= '<option value="' . $key . '" SELECTED>' . $value . '</option>';
            } else {
                $signcurtype .= '<option value="' . $key . '">' . $value . '</option>';
            }
        }
    }
    //post
    $db_postmax = (int) $db_postmax;
    $db_postmin = (int) $db_postmin;
    $db_selcount = (int) $db_selcount;
    $db_titlemax = (int) $db_titlemax;
    $db_showreplynum = (int) $db_showreplynum;
    $db_windpost['price'] = (int) $db_windpost['price'];
    $db_windpost['income'] = (int) $db_windpost['income'];
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:member.php

示例4: define

<?php

/**
 * 
 * @author pw team, Nov 13, 2010
 * @copyright 2003-2010 phpwind.net. All rights reserved.
 * @version 
 * @package default
 */
define('CK', 1);
require_once 'global.php';
S::GP('q');
$qkey = intval($q);
if (isset($db_question[$qkey])) {
    $question = $qkey < 0 ? getMachineQuestion_1() : $db_question[$qkey];
    $array = array();
    strtoupper($db_charset) == 'GBK' && ($question = pwConvert($question, 'UTF-8', 'GBK'));
    $len = strlen($question);
    for ($i = 0, $j = 0; $i < $len;) {
        ++$i;
        $ord = ord($question[$j]);
        if ($ord > 127) {
            if ($ord >= 192 && $ord <= 223) {
                ++$i;
            } elseif ($ord >= 224 && $ord <= 239) {
                $i = $i + 2;
            } elseif ($ord >= 240 && $ord <= 247) {
                $i = $i + 3;
            }
        }
        $array[] = substr($question, $j, $i - $j);
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:ckquestion.php


注:本文中的S::GP方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。