原帖由 userclx 于 2006-6-27 16:53 发表
怎么个模糊法/
应该 不是模糊的问题
是根本就没有pet_showmessage('BuyPetSuccess');
这个代码
我给你看看我这个文件的内容
<?php
require_once('./include/common.inc.php');
if(!groupid=="guest" || $discuz_uid=='') showmessage('group_nopermission', NULL, 'NOPERM');
$total = $db->fetch_array($db->query("SELECT username FROM ".$tablepre."members where uid=$discuz_uid"));
if (!$total){pet_showmessage('你的登录有问题,请重新登录<br><a href=login.php>登录</a>');}
else{
$usernamepet=$total['username'];
}
$wind_in='pet';
$imgpath='images';
$forumcolorone='#FFFFFF';
include './petshop/bbscache/pet_gm.php';
include language('pet');
switch($index)
{
default:
include 'petshop/petcenter.php';
break;
case 'petshop':
include "petshop/petshop.php";
break;
case 'petjob':
include "petshop/petjob.php";
break;
case 'mypet':
include "petshop/mypet.php";
break;
case 'itemshop':
include "petshop/itemshop.php";
break;
case 'itemuse':
include "petshop/itemuse.php";
break;
case 'weaponshop':
include "petshop/weaponshop.php";
break;
case 'petother':
include "petshop/petother.php";
break;
case 'petmagic':
include "petshop/petmagic.php";
break;
case 'petorphanage':
include "petshop/petorphanage.php";
break;
case 'petbattle':
include "petshop/petbattle.php";
break;
case 'pettop':
include "petshop/pettop.php";
break;
case 'petlist':
include "petshop/petlist.php";
break;
case 'pethelp':
include "petshop/pethelp.php";
break;
case 'viewpet':
include "petshop/viewpet.php";
break;
case 'petadmin':
include "petshop/petadmin.php";
break;
case 'petatklist':
include "petshop/petatklist.php";
break;
case 'petpknpc':
$ddd=1;
include "petshop/petpknpc.php";
break;
case 'petpknpc2':
$ddd=2;
include "petshop/petpknpc.php";
break;
case 'petpknpc3':
$ddd=3;
include "petshop/petpknpc.php";
break;
case 'petpknpc4':
$ddd=4;
include "petshop/petpknpc.php";
break;
case 'petpknpc5':
$ddd=5;
include "petshop/petpknpc.php";
break;
case 'petpknpc6':
$ddd=6;
include "petshop/petpknpc.php";
break;
case 'petpknpc7':
$ddd=7;
include "petshop/petpknpc.php";
break;
case 'petpknpc8':
$ddd=8;
include "petshop/petpknpc.php";
break;
case 'petpknpc9':
$ddd=9;
include "petshop/petpknpc.php";
break;
case 'petpknpc10':
$ddd=10;
include "petshop/petpknpc.php";
break;
case 'petpknpc11':
$ddd=11;
include "petshop/petpknpc.php";
break;
case 'petpknpcf':
include "petshop/petpknpcf.php";
break;
case 'petpknpcn':
$ddd=0;
include "petshop/petpknpc.php";
break;
case 'petpknpcmap':
include "petshop/petpknpcmap.php";
break;
case 'pklist':
include "petshop/pklist.php";
break;
case 'weaponmarket':
include "petshop/weaponmarket.php";
break;
case 'itemmarket':
include "petshop/itemmarket.php";
break;
case 'magichelp':
include "petshop/magichelp.php";
break;
case 'teamlist':
include "petshop/teamlist.php";
break;
case 'petbank':
include "petshop/petbank.php";
break;
case 'pkf':
include "petshop/pkf.php";
break;
case 'mypetpoint';
include 'petshop/mypetpoint.php';
break;
case 'petinfo':
include 'petshop/petinfo.php';
break;
case 'mb':
include 'petshop/mb.php';
break;
case 'petpknpcf':
include 'petshop/petpknpcf.php';
break;
case 'usershop':
include 'petshop/usershop.php';
break;
case 'bcashino':
include 'petshop/bcashino.php';
break;
case 'equfabplant':
include 'petshop/equfabplant.php';
break;
case 'itemdump':
include 'petshop/itemdump.php';
break;
case 'hecheng':
include 'petshop/hecheng.php';
break;
case 'hi78':
include 'petshop/hi78.php';
break;
case 'familyshop':
include 'petshop/familyshop.php';
break;
case 'pnitemuse':
include 'petshop/pnitemuse.php';
break;
}
function numofpage($count,$page,$numofpage,$url)
{
global $db_readperpage;
if ($numofpage<=1){
return ;
}else{
$fengye="<a href=\"{$url}page=1\"><< </a>";
$flag=0;
for($i=$page-3;$i<=$page-1;$i++)
{
if($i<1) continue;
$fengye.=" <a href={$url}page=$i> $i </a>";
}
$fengye.=" <b>$page</b> ";
if($page<$numofpage)
{
for($i=$page+1;$i<=$numofpage;$i++)
{
$fengye.=" <a href={$url}page=$i> $i </a>";
$flag++;
if($flag==4) break;
}
}
$fengye.=" <a href=\"{$url}page=$numofpage\"> >></a>  ages: ( $numofpage total )";
return $fengye;
}
}
function refreshto($url,$msg,$extra=''){
pet_showmessage($msg, $url, $extra);
}
function pet_showmessage($show_message, $url_forward = '', $extra = '') {
extract($GLOBALS, EXTR_SKIP);
global $extrahead, $discuz_action, $debuginfo, $seccode, $fid, $tid;
if(in_array($extra, array('HALTED', 'NOPERM'))) {
$fid = $tid = 0;
$discuz_action = 254;
} else {
$discuz_action = 255;
}
include language('pet');
if(isset($language[$show_message])) {
eval("\$show_message = \"".$language[$show_message]."\";");
}
$extrahead .= $url_forward ? '<meta http-equiv="refresh" content="3;url='.
(empty($_DCOOKIE['sid']) && $transsidstatus ? transsid($url_forward) : $url_forward).
'">' : '';
if($extra == 'NOPERM' && !$passport_status) {
//get secure code checking status (pos. -2)
if($seccodecheck = substr(sprintf('%05b', $seccodestatus), -2, 1)) {
$seccode = random(4, 1);
}
include template('nopermission');
} else {
include template('showmessage');
}
dexit();
}
?> |