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));
!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();
<?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'];
<?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);