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


PHP callmsg函数代码示例

本文整理汇总了PHP中callmsg函数的典型用法代码示例。如果您正苦于以下问题:PHP callmsg函数的具体用法?PHP callmsg怎么用?PHP callmsg使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: callmsg

    if (strlen($form_password2) < 6 || strlen($form_password2) > 20) {
        callmsg("“确认新密码”请控制在2~20字节以内。", "-1");
    }
    if ($form_password1 != $form_password2) {
        callmsg("两次密码输入不一样,请重试!", "-1");
    }
    $password = trimm($form_password1);
    $password = md5($password);
    $old_password = md5($old_password);
    $rt = $db->query("SELECT id FROM " . __TBL_MAIN__ . " WHERE id='{$cook_userid}' AND password='{$old_password}'");
    if (!$db->num_rows($rt)) {
        callmsg("旧密码验证错误,提交失败!", "-1");
    }
    $db->query("UPDATE " . __TBL_MAIN__ . " SET password='{$password}' WHERE id='{$cook_userid}'");
    setcookie("cook_password", $password, null, "/", $Global['m_cookdomain']);
    callmsg("修改成功!", "-1");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php 
echo $Global['m_titile'];
?>
</title>
<link href="my.css" rel="stylesheet" type="text/css">
<style type="text/css"> 
ul {width:754px;height:28px;margin-left:28px;margin-top:15px;background-image:url(images/sontgg.gif);padding-left:16px;display:block;}
ul li {float:left;width:68px;height:26px;border:#CCE1B5 1px solid;margin-right:11px;text-align:center;line-height:26px;}
ul li a:link,li a:active,li a:visited{width:68px;display:block;text-decoration:none;color:#333;background:#fff;}
开发者ID:norain2050,项目名称:cmlove,代码行数:31,代码来源:a9.php

示例2: unset

 if ($db->num_rows($rt)) {
     $ifnext = false;
     $varmsg .= "�� ���û����Ѿ���ע�ᣬ��ѡ�������û�����";
 }
 if (!$ifnext) {
     unset($_SESSION["supdesverify"]);
     setcookie("cook_userid", "", null, "/", $Global['m_cookdomain']);
     setcookie("cook_username", "", null, "/", $Global['m_cookdomain']);
     setcookie("cook_nickname", "", null, "/", $Global['m_cookdomain']);
     setcookie("cook_password", "", null, "/", $Global['m_cookdomain']);
     setcookie("cook_grade", "", null, "/", $Global['m_cookdomain']);
     setcookie("cook_sex", "", null, "/", $Global['m_cookdomain']);
     setcookie("cook_photo_s", "", null, "/", $Global['m_cookdomain']);
     setcookie("cook_if2", "", null, "/", $Global['m_cookdomain']);
     setcookie("cook_stealth", "", null, "/", $Global['m_cookdomain']);
     callmsg($varmsg, "-1");
 } else {
     $form_username = trim($form_username);
     $password = trimm($form_password1);
     $password = md5($password);
     $regtime = date("Y-m-d H:i:s");
     $regip = getip();
     $db->query("INSERT INTO " . __TBL_MAIN__ . "  (username,nickname,password,loveb,regtime,regip,logintime,loginip,sex,birthday,love,kind,area1,area2,email,yctel) VALUES ('{$form_username}','{$form_username}','{$password}','" . $Global['m_regloveb'] . "','{$regtime}','{$regip}','{$regtime}','{$regip}','{$form_sex}','{$form_birthday}','{$form_love}','{$form_kind}','{$province}','{$city}','{$form_email}','{$yctel}')");
     $tmpid = $db->insert_id();
     if (empty($stealth)) {
         $stealth = 0;
     }
     setcookie("cook_userid", $tmpid, null, "/", $Global['m_cookdomain']);
     setcookie("cook_username", $form_username, null, "/", $Global['m_cookdomain']);
     setcookie("cook_nickname", $form_username, null, "/", $Global['m_cookdomain']);
     setcookie("cook_grade", 1, null, "/", $Global['m_cookdomain']);
开发者ID:JokeLook,项目名称:cmlove,代码行数:31,代码来源:reg.php

示例3: callmsg

    }
}
//
if ($submitok == "jc") {
    if (!ereg("^[0-9]{1,10}\$", $classid) || empty($classid)) {
        callmsg("Forbidden!", "-1");
    }
    $rt = $db->query("SELECT senduserid FROM " . __TBL_FRIEND__ . " WHERE id=" . $classid);
    if ($db->num_rows($rt)) {
        $row = $db->fetch_array($rt);
        $tmpsenduserid = $row[0];
    } else {
        callmsg("Forbidden!", "-1");
    }
    if ($cook_userid !== $tmpsenduserid) {
        callmsg("Forbidden!", "-1");
    }
    $db->query("DELETE FROM " . __TBL_FRIEND__ . " WHERE id=" . $classid);
    header("Location: b_blacklist.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php 
echo $Global['m_titile'];
?>
</title>
<link href="my.css" rel="stylesheet" type="text/css">
<style type="text/css"> 
/* main1 */
开发者ID:norain2050,项目名称:cmlove,代码行数:31,代码来源:b_blacklist.php

示例4: imagefill

 imagefill($nimage, 0, 0, $white);
 switch ($iinfo[2]) {
     case 1:
         $simage = imagecreatefromgif($destination);
         break;
     case 2:
         $simage = imagecreatefromjpeg($destination);
         break;
     case 3:
         $simage = imagecreatefrompng($destination);
         break;
     case 6:
         $simage = imagecreatefromwbmp($destination);
         break;
     default:
         callmsg("不支持的文件类型", "-1");
 }
 imagecopy($nimage, $simage, 0, 0, 0, 0, $image_size[0], $image_size[1]);
 $simage1 = imagecreatefrompng($waterimg);
 imagecopy($nimage, $simage1, $image_size[0] - 160, $image_size[1] - 70, 0, 0, 160, 70);
 imagedestroy($simage1);
 switch ($iinfo[2]) {
     case 1:
         imagegif($nimage, $destination);
         break;
     case 2:
         imagejpeg($nimage, $destination);
         break;
     case 3:
         imagepng($nimage, $destination);
         break;
开发者ID:norain2050,项目名称:cmlove,代码行数:31,代码来源:up_group.php

示例5: stripslashes

        if ($db->num_rows($rt)) {
            $row = $db->fetch_array($rt);
            $title = $row[0];
            $kind = $row[1];
            $hdtime = $row[2];
            $address = $row[3];
            $jtlx = $row[4];
            $num_n = $row[5];
            $num_r = $row[6];
            $rmb_n = $row[7];
            $rmb_r = $row[8];
            $tbsm = $row[9];
            $jzbmtime = $row[10];
            $content = stripslashes($row[11]);
        } else {
            callmsg("该活动不存在或已被删除!", "-1");
            exit;
        }
    }
    ?>
<script language="javascript" src="/gyleditor/gyleditor.js"></script>
<script language="javascript">
function chkform(){
	if(document.FORM.title.value.length<6 || document.FORM.title.value.length>100)
	{
	alert('活动名称请控制 6~100 字节!');
	document.FORM.title.focus();
	return false;
	}
	if(document.FORM.kind.value.length<2 || document.FORM.kind.value.length>100)
	{
开发者ID:norain2050,项目名称:cmlove,代码行数:31,代码来源:i_group_club.php

示例6: callmsg

    if (strlen($c10) < 2 || strlen($c10) > 250) {
        callmsg("“什么比较能调动你的兴致”请控制在2~127字内。", "-1");
    }
    if (strlen($c11) < 2 || strlen($c11) > 250) {
        callmsg("“你能够接受(和你的伴侣):”请控制在2~127字内。", "-1");
    }
    $rt = $db->query("SELECT userid FROM " . __TBL_MAIN_DATA__ . " WHERE userid=" . $cook_userid);
    if (!$db->num_rows($rt)) {
        $db->query("INSERT INTO " . __TBL_MAIN_DATA__ . "  (userid,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11) VALUES ('{$cook_userid}','{$c1}','{$c2}','{$c3}','{$c4}','{$c5}','{$c6}','{$c7}','{$c8}','{$c9}','{$c10}','{$c11}')");
    } else {
        $db->query("UPDATE " . __TBL_MAIN_DATA__ . " SET c1='{$c1}',c2='{$c2}',c3='{$c3}',c4='{$c4}',c5='{$c5}',c6='{$c6}',c7='{$c7}',c8='{$c8}',c9='{$c9}',c10='{$c10}',c11='{$c11}',ifmod=0 WHERE userid='{$cook_userid}'");
    }
    callmsg("修改成功!", "a8.php");
} elseif ($submitok == "emptyupdate") {
    $db->query("UPDATE " . __TBL_MAIN_DATA__ . " SET c1=0,c2=0,c3=0,c4=0,c5=0,c6=0,c7=0,c8='',c9='',c10='',c11='' WHERE userid=" . $cook_userid);
    callmsg("已经清空,你的个人主页将不再显示此类型资料,想要恢复显示请重新修改!", "a7.php");
}
$rt = $db->query("SELECT c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11 FROM " . __TBL_MAIN_DATA__ . " WHERE userid=" . $cook_userid);
if ($db->num_rows($rt)) {
    $row = $db->fetch_array($rt);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php 
echo $Global['m_titile'];
?>
</title>
<link href="my.css" rel="stylesheet" type="text/css">
开发者ID:norain2050,项目名称:cmlove,代码行数:31,代码来源:a7.php

示例7: strtotime

                if (!$rows) {
                    break;
                }
                $uid = $rows[0];
                $ugrade = $rows[1];
                $uif2 = $rows[2];
                if (($uif2 == 2 || $uif2 == 3 || $uif2 == 4) && $ugrade >= 3) {
                    $content = "上传了一张照片<a href=" . $Global['up_2domain'] . "/photo/" . $path_b . " target=_blank  class=uDF2C91><img src=" . $Global['up_2domain'] . "/photo/" . $path_s . " width=40 height=30 align=absmiddle hspace=5>点击查看</a>";
                    $addtime = strtotime("now");
                    $db->query("INSERT INTO " . __TBL_FRIEND_NEWS__ . "  (userid,senduserid,content,addtime) VALUES ({$uid},{$cook_userid},'{$content}',{$addtime})");
                }
            }
        }
    }
    //upload end
    callmsg("上传成功!请等待客服审核,通过后方可设置形象照和在个人主页显示。", "c_photo_list.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php 
echo $Global['m_sitetitle'];
?>
</title>
<link href="my.css" rel="stylesheet" type="text/css">
<style type="text/css"> 
/* main1 */
.main1 {width:754px;height:28px;margin-left:28px;overflow:hidden;margin-top:15px;background-image:url(images/sontgg.gif);padding-left:16px;z-index: 100;}
.main1_tselect {float:left;width:74px;height:27px;background:#F0FAE9;border-left:#CCE1B5 1px solid;border-top:#CCE1B5 1px solid;border-right:#CCE1B5 1px solid;margin-right:11px;text-align:center;line-height:26px;color:#6F9F00;}
开发者ID:JokeLook,项目名称:cmlove,代码行数:31,代码来源:c_photo_up.php

示例8: callmsg

<?php

require_once '../sub/init.php';
require_once wrzc_net . 'sub/conn.php';
if (!ereg("^[0-9]{1,9}\$", $uid) || empty($uid)) {
    callmsg("Forbidden", "-1");
}
if (!ereg("^[0-9]{1,9}\$", $cook_userid) || empty($cook_userid)) {
    callmsg("Forbidden", "-1");
}
$db->query("DELETE FROM " . __TBL_CHATIF__ . " WHERE (senduserid={$cook_userid} AND userid={$uid}) OR (senduserid={$uid} AND userid={$cook_userid})");
callmsg("已经成功拒绝了Ta的这次聊天请求!", "0");
exit;
ob_end_flush();
开发者ID:JokeLook,项目名称:cmlove,代码行数:14,代码来源:chk_denial.php

示例9: header

                }
                // end ugrade
            }
        }
        //
        header("Location: my");
    }
} elseif ($submitok == "checkuseradmin") {
    if (!ereg("^[0-9]{1,9}\$", $uid) || $uid == 0) {
        callmsg("Forbidden1!", "-1");
    }
    $password = trim($pwd);
    require_once wrzc_net . 'sub/conn.php';
    $rt = $db->query("SELECT id,username,nickname,grade,password,sex,logintime,photo_s,if2 FROM " . __TBL_MAIN__ . " WHERE id=" . $uid . " AND password='{$password}' AND flag>0");
    if (!$db->num_rows($rt)) {
        callmsg("● 用户名/密码错误!\\n● 或用户名不存在或已被删除或锁定!", "-1");
    } else {
        $row = $db->fetch_array($rt);
        setcookie("cook_userid", $row[0], null, "/", $Global['m_cookdomain']);
        setcookie("cook_username", $row[1], null, "/", $Global['m_cookdomain']);
        setcookie("cook_nickname", $row[2], null, "/", $Global['m_cookdomain']);
        setcookie("cook_grade", $row[3], null, "/", $Global['m_cookdomain']);
        setcookie("cook_password", $row[4], null, "/", $Global['m_cookdomain']);
        setcookie("cook_sex", $row[5], null, "/", $Global['m_cookdomain']);
        setcookie("cook_photo_s", $row[7], null, "/", $Global['m_cookdomain']);
        setcookie("cook_if2", $row[8], null, "/", $Global['m_cookdomain']);
        setcookie("cook_stealth", 0, "/", $Global['m_cookdomain']);
        setcookie("m_sitename", $Global['m_sitename'], null, "/", $Global['m_cookdomain']);
        setcookie("home_2domain", $Global['home_2domain'], null, "/", $Global['m_cookdomain']);
        $tmpurl = empty($tmpurl) ? '' : $tmpurl;
        header("Location: my/?{$tmpurl}");
开发者ID:JokeLook,项目名称:cmlove,代码行数:31,代码来源:login.php

示例10: trimm

} else {
    $cook_password = trimm($cook_password);
    $rt = $db->query("SELECT aboutus FROM " . __TBL_MAIN__ . " WHERE id='{$cook_userid}' AND password='{$cook_password}' AND flag>0");
    if ($db->num_rows($rt)) {
        $row = $db->fetch_array($rt);
    } else {
        header("Location: " . $Global['www_2domain'] . "/login.php");
        exit;
    }
}
if ($submitok == "modupdate") {
    if (strlen($aboutus) > 500 || strlen($aboutus) < 20) {
        callmsg("内心独白(长度限20~500个字节之间或10~250个汉字之间)", "-1");
    }
    $db->query("UPDATE " . __TBL_MAIN__ . " SET aboutus='{$aboutus}',ifmod=0 WHERE id='{$cook_userid}'");
    callmsg("修改成功!", "a4.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php 
echo $Global['m_titile'];
?>
</title>
<link href="my.css" rel="stylesheet" type="text/css">
<style type="text/css"> 
/* main1 */
.main1 {width:754px;height:28px;margin-left:28px;overflow:hidden;margin-top:15px;background-image:url(images/sontgg.gif);padding-left:16px;}
.main1_tselect {float:left;width:70px;height:27px;background:#F0FAE9;border-left:#CCE1B5 1px solid;border-top:#CCE1B5 1px solid;border-right:#CCE1B5 1px solid;margin-right:11px;text-align:center;line-height:26px;color:#6F9F00;}
开发者ID:norain2050,项目名称:cmlove,代码行数:31,代码来源:a3.php

示例11: callmsg

if ($submitok == "mod") {
    if (!ereg("^[0-9]{1,8}\$", $fid) || empty($fid)) {
        callmsg("请求错误,该贴子不存在或已被删除!", "-1");
    }
    $rt = $db->query("SELECT bkid,title,content,userid FROM " . __TBL_GROUP_WZ__ . " WHERE id=" . $fid);
    if ($db->num_rows($rt)) {
        $row_wz = $db->fetch_array($rt);
        $userid_wz = $row_wz[3];
        if ($userid_wz !== $cook_userid && $authority_main == "NO") {
            callmsg("请求错误,没有操作权限!", "-1");
        }
        $bkid_wz = $row_wz[0];
        $title_wz = $row_wz[1];
        $content_wz = $row_wz[2];
    } else {
        callmsg("请求错误,该贴子不存在或已被删除1!", "-1");
        exit;
    }
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php 
echo $maintitle;
if ($submitok == "mod") {
    echo " >> 修改贴子";
} else {
    echo " >> 发表贴子";
}
?>
开发者ID:norain2050,项目名称:cmlove,代码行数:31,代码来源:post.php

示例12: callmsg

<br />
<?php 
if ($submitok == "mod") {
    if (!ereg("^[0-9]{1,8}\$", $fid) || $fid == 0) {
        callmsg("Forbidden!", "-1");
    } else {
        $rt = $db->query("SELECT * FROM " . __TBL_DATING__ . " WHERE id='{$fid}'");
        if ($db->num_rows($rt)) {
            $row = $db->fetch_array($rt);
            $year8 = date_format2($row['yhtime'], '%Y');
            $month8 = date_format2($row['yhtime'], '%m');
            $day8 = date_format2($row['yhtime'], '%d');
            $hour8 = date_format2($row['yhtime'], '%H');
            $minute8 = date_format2($row['yhtime'], '%M');
        } else {
            callmsg("����Ϣ�����ڻ��ѱ�ɾ����", "./");
            exit;
        }
    }
    ?>
<table width="495" border="0" align="center" cellpadding="8" cellspacing="0" bgcolor="#FFFFFF" style="color:#666;">
<form action="e_dating_list.php" method="post" name=www_wrzc_net_com onsubmit="return chkform()" >
  <tr>
    <td height="30" colspan="2" align="left" valign="bottom" style="border-bottom:#ddd 1px solid;"><b><font color="DF2C91">�ҵ�Լ�ᰲ��</font></b></td>
    </tr>
  <tr>
    <td width="77" align="right"><span class="dt3">Լ������:</span></td>
    <td width="386" align="left"><span class="col">
      <select name="kind" id="kind">
        <option value="0" <?php 
    if ($row['kind'] == 0) {
开发者ID:norain2050,项目名称:cmlove,代码行数:31,代码来源:e_dating_list.php

示例13: header

            $db->query("UPDATE " . __TBL_GROUP_WZ__ . " SET ifjh=0 WHERE id=" . $fid);
            header("Location: read" . $fid . ".html");
            break;
        case 'delupdate':
            $rt = $db->query("SELECT COUNT(*) FROM " . __TBL_GROUP_WZ_BBS__ . " WHERE fid=" . $fid);
            $row = $db->fetch_array($rt);
            $tmpcnt = $row[0];
            $db->query("DELETE FROM " . __TBL_GROUP_WZ_BBS__ . " WHERE fid=" . $fid);
            $db->query("DELETE FROM " . __TBL_GROUP_WZ__ . " WHERE id=" . $fid);
            $deloveb = $Global['m_group_add'];
            $db->query("UPDATE " . __TBL_GROUP_MAIN__ . " SET wznum=wznum-1,bbsnum=bbsnum-" . $tmpcnt . ",qloveb=qloveb-" . $deloveb . " WHERE id=" . $mainid);
            header("Location: article.php?mainid=" . $mainid . "&bkid=" . $bkid . "&bktitle=" . $bktitle);
            break;
        case 'flag1':
            $db->query("UPDATE " . __TBL_GROUP_WZ__ . " SET flag=1 WHERE id=" . $fid);
            header("Location: read" . $fid . ".html");
            break;
        case 'bbsdelupdate':
            $deloveb = $Global['m_group_bbsadd'];
            $db->query("UPDATE " . __TBL_GROUP_WZ_BBS__ . " SET flag=0,content='' WHERE id=" . $bbsid);
            $db->query("UPDATE " . __TBL_GROUP_MAIN__ . " SET qloveb=qloveb-" . $deloveb . " WHERE id=" . $mainid);
            header("Location: read.php?fid=" . $fid . "&p=" . $p);
            break;
        case 'bbsclubdelupdate':
            $db->query("UPDATE " . __TBL_GROUP_CLUB_BBS__ . " SET flag=0,content='' WHERE id=" . $bbsid);
            header("Location: partyshow.php?fid=" . $fid . "&p=" . $p);
            break;
    }
}
callmsg("请求错误,没有操作权限!", "-1");
开发者ID:norain2050,项目名称:cmlove,代码行数:30,代码来源:readoperate.php

示例14: callmsg

<?php

require_once "../sub/init.php";
if (!ereg("^[0-9]{1,8}\$", $mainid) && !empty($mainid)) {
    callmsg("请求错误,该群组不存在或已被锁定或已被删除1!", "-1");
}
if (!ereg("^[0-9]{1,8}\$", $fid) || empty($fid)) {
    callmsg("请求错误,该信息不存在或已被删除!", "-1");
}
require_once wrzc_net . 'sub/conn.php';
$rt = $db->query("SELECT mainid,title,flag,bmnum FROM " . __TBL_GROUP_CLUB__ . " WHERE flag>0 AND id=" . $fid);
if ($db->num_rows($rt)) {
    $row = $db->fetch_array($rt);
    $mainid = $row['mainid'];
    $title = htmlout(stripslashes($row['title']));
    $flag = $row['flag'];
    $bmnum = $row['bmnum'];
} else {
    echo "&nbsp;&nbsp;<font color='#999999' style='font-size: 9pt'>" . $Global['m_sitename'] . "( <a href=" . $Global['www_2domain'] . ">" . $Global['www_2domain'] . "</a> )提示:</FONT><BR><BR>&nbsp;&nbsp;<font color='#FF0000' style='font-size: 9pt'>请求错误,该信息不存在或已被删除!</FONT><BR><BR><p align=center><input onclick='history.back();' type='button' value='返回'></p>";
    exit;
}
$rt = $db->query("SELECT mbkind,title FROM " . __TBL_GROUP_MAIN__ . " WHERE id=" . $mainid . " AND flag=1");
if ($db->num_rows($rt)) {
    $row = $db->fetch_array($rt);
    $mbkind = $row['mbkind'];
    $maintitle = stripslashes($row['title']);
} else {
    echo "&nbsp;&nbsp;<font color='#999999' style='font-size: 9pt'>" . $Global['m_sitename'] . "( <a href=" . $Global['www_2domain'] . ">" . $Global['www_2domain'] . "</a> )提示:</FONT><BR><BR>&nbsp;&nbsp;<font color='#FF0000' style='font-size: 9pt'>请求错误,该群组不存在或已被锁定或已被删除!</FONT><BR><BR><p align=center><input onclick='history.back();' type='button' value='返回'></p>";
    exit;
}
?>
开发者ID:norain2050,项目名称:cmlove,代码行数:31,代码来源:partyuser.php

示例15: callmsg

         callmsg("Forbidden", "-1");
     }
     $addtime = date("Y-m-d H:i:s");
     $rt = $db->query("SELECT userid,xsloveb FROM " . __TBL_ASK__ . " WHERE flag=1 AND id=" . $fid);
     if (!$db->num_rows($rt)) {
         callmsg("该问题不存在或已被删除或已被处理!", "-1");
     }
     $row = $db->fetch_array($rt);
     if ($row[0] !== $cook_userid) {
         callmsg("Forbidden", "-1");
     }
     $addbestloveb = $row[1];
     $addbestloveb = $addbestloveb + $Global['m_askloveb'];
     $rt = $db->query("SELECT userid FROM " . __TBL_ASK_BBS__ . " WHERE id=" . $bbsid);
     if (!$db->num_rows($rt)) {
         callmsg("该回答不存在或已被删除!", "0");
     }
     $row = $db->fetch_array($rt);
     $adduserid = $row[0];
     //$addnickname = $row[1];
     $db->query("UPDATE " . __TBL_ASK__ . " SET flag=2 WHERE id=" . $fid);
     $db->query("UPDATE " . __TBL_ASK_BBS__ . " SET ifbest=1 WHERE id=" . $bbsid);
     $db->query("UPDATE " . __TBL_MAIN__ . " SET loveb=loveb+" . $addbestloveb . " WHERE id=" . $adduserid);
     $db->query("INSERT INTO " . __TBL_LOVEBHISTORY__ . "  (userid,username,content,num,addtime) VALUES ('{$adduserid}','{$addnickname}','回答被评最佳答案+系统奖励{$tmploveb}','{$addbestloveb}','{$addtime}')");
     header("Location: detail_bbs.php?fid=" . $fid . "&p=" . $p);
     break;
 default:
     $rt = $db->query("SELECT userid,xsloveb,flag FROM " . __TBL_ASK__ . " WHERE id=" . $fid);
     if ($db->num_rows($rt)) {
         $row = $db->fetch_array($rt);
         $userid = $row[0];
开发者ID:JokeLook,项目名称:cmlove,代码行数:31,代码来源:detail_bbs.php


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