コード例 #1
0
ファイル: setforum.php プロジェクト: adi00/wumaproject
 //$fup_forumcache = $forumcache;
 $fup_forumcache = getForumSelectHtml();
 foreach ($subdb2 as $value) {
     $fup_forumcache = str_replace("<option value=\"{$value['fid']}\">&nbsp;&nbsp; &nbsp; &nbsp;|-  {$value['name']}</option>\r\n", '', $fup_forumcache);
 }
 @extract($db->get_one("SELECT f.*,fe.forumset FROM pw_forums f LEFT JOIN pw_forumsextra fe USING(fid) WHERE f.fid=" . pwEscape($fid)));
 $forumset = unserialize($forumset);
 $forumset['newtime'] /= 60;
 //$forumset['rvrcneed'] /= 10;
 $forumset['addtpctype'] ? $addtpctype_Y = 'checked' : ($addtpctype_N = 'checked');
 $forumset['ifrelated'] ? $ifrelated_Y = 'checked' : ($ifrelated_N = 'checked');
 ${'r_' . $forumset['relatedcon']} = 'selected';
 $name = str_replace("<", "&lt;", $name);
 $name = str_replace(">", "&gt;", $name);
 require_once R_P . "require/forum.php";
 $setfid_style = getstyles($style);
 if ($type != 'category') {
     require_once R_P . 'require/credit.php';
     list($uploadcredit, $uplodmoney, $downloadmoney, $downloadimg) = explode("\t", $forumset['uploadset']);
     ifcheck($downloadimg, 'img');
     ifcheck($forumset['dig'], 'dig');
     ifcheck($forumset['inspect'], 'inspect');
     ifcheck($forumset['watermark'], 'watermark');
     ifcheck($forumset['allowencode'], 'allowencode');
     ifcheck($forumset['anonymous'], 'anonymous');
     ifcheck($forumset['commend'], 'commend');
     ifcheck($forumset['rate'], 'rate');
     ifcheck($forumset['overprint'], 'overprint');
     list($rw_time, $rw_b_val, $rw_a_val, $rw_credit) = explode("\t", $forumset['rewarddb']);
     $rw_credit = explode(',', $rw_credit);
     for ($i = 0; $i < 6; $i++) {
コード例 #2
0
ファイル: profile.php プロジェクト: adi00/wumaproject
     $t_num[] = 100;
     $p_num[] = 100;
 }
 if (empty($_POST['step'])) {
     require_once R_P . 'require/forum.php';
     InitGP(array('info_type'));
     !in_array($info_type, array('fancy', 'friend', 'msg')) && ($info_type = 'fancy');
     $ifsign = false;
     $friend_0 = $friend_1 = $friend_2 = '';
     $editor_Y = $editor_N = $check_12 = $d_type_0 = $d_type_1 = $email_Y = $email_N = '';
     $check_24 = 'checked';
     ${'friend_' . getstatus($userdb['userstatus'], 3, 3)} = 'checked';
     ${'email_' . (getstatus($userdb['userstatus'], 8) ? 'Y' : 'N')} = 'checked';
     ${'editor_' . (getstatus($userdb['userstatus'], 11) ? 'Y' : 'N')} = 'checked';
     $userdb['style'] == '' && ($skin = '');
     $choseskin = getstyles($skin);
     $customstyles = $customname = '';
     $query = $db->query("SELECT sid,name,customname FROM pw_styles WHERE uid=" . pwEscape($winduid));
     while ($rt = $db->fetch_array($query)) {
         $customname = $rt['customname'] ? $rt['customname'] : $rt['sid'];
         if ($rt['sid'] == $userdb['style'] && !$skinco) {
             $customstyles .= "<option value=\"" . $rt['sid'] . "\" selected>{$customname}</option>";
         } else {
             $customstyles .= "<option value=\"" . $rt['sid'] . "\">{$customname}</option>";
         }
     }
     $choseskin = $choseskin . $customstyles;
     if ($db_signmoney && strpos($db_signgroup, ",{$groupid},") !== false) {
         require_once R_P . 'require/credit.php';
         $cur = $credit->get($winduid, $db_signcurtype);
         $cur === false && Showmsg('numerics_checkfailed');