本文整理汇总了PHP中tools::sql_mag_gpc方法的典型用法代码示例。如果您正苦于以下问题:PHP tools::sql_mag_gpc方法的具体用法?PHP tools::sql_mag_gpc怎么用?PHP tools::sql_mag_gpc使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tools
的用法示例。
在下文中一共展示了tools::sql_mag_gpc方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tools
<?php
session_start();
include "../includes/conn.php";
$tools = new tools();
$adminid = intval($_SESSION['adminid']);
$cyongjin = $_POST['cyongjin'];
$cdenglucode = intval($_POST['cdenglucode']) == 0 ? 2 : 1;
$cappid = trim($_POST['cappid']);
$cappsecret = trim($_POST['cappsecret']);
$cmchid = $tools->sql_mag_gpc(trim($_POST['cmchid']));
$cappkey = $tools->sql_mag_gpc(trim($_POST['cappkey']));
$num = $dbconn->countn(DBQIAN . "sys_config", " adminid={$adminid} ");
if ($num == 1) {
$dbconn->noretquery("update " . DBQIAN . "sys_config set \r\n cyongjin={$cyongjin},\r\n cappid='{$cappid}',\r\n cappsecret='{$cappsecret}',\r\n cmchid='{$cmchid}',\r\n cdenglucode={$cdenglucode},\r\n cappkey='{$cappkey}' where adminid={$adminid}");
} else {
$dbconn->noretquery("insert into " . DBQIAN . "sys_config(cyongjin,cappid,cappsecret,cdenglucode,cmchid,cappkey,adminid)values\r\n\t({$cyongjin},'{$cappid}','{$cappsecret}',{$cdenglucode},'{$cmchid}','{$cappkey}',{$adminid})");
}
示例2: tools
<?php
session_start();
include "../includes/conn.php";
$tools = new tools();
$uname = iconv("UTF-8", "GBK", $tools->sql_mag_gpc($_POST['uname']));
$upass = $tools->sql_mag_gpc($_POST['upass']);
$num = $dbconn->countn(DBQIAN . "sys_user", " uname='{$uname}' and upass='{$upass}' ");
if ($num == 1) {
$row = $dbconn->fetch($dbconn->query("select * from " . DBQIAN . "sys_user where uname='{$uname}' and upass='{$upass}'"));
$times = time();
$_SESSION['adminid'] = $row['id'];
$_SESSION['utime'] = $row['utime'];
$dbconn->noretquery("update " . DBQIAN . "sys_user set utime={$times} where id={$row['id']}");
echo 1;
} else {
echo 0;
}
示例3: foreach
}
}
if ($lingcode == 0) {
exit;
}
}
if ($hongbaorow['hjinzhiqu'] != "") {
$diqu = @explode(",", $hongbaorow['hjinzhiqu']);
foreach ($diqu as $val) {
if (stristr($uipdizhi, $val) !== false) {
exit;
}
}
}
}
$ucode = $tools->sql_mag_gpc($_GET['ucode']);
define('APPID', $sysconfig['cappid']);
define('APPSECRET', $sysconfig['cappsecret']);
$wxtoken = new wxtoken();
$signPackage = $wxtoken->GetSignPackage();
$userrow = $dbconn->fetch($dbconn->query("select uickname,uheadimgurl from " . DBQIAN . "user_list where ucode='{$ucode}' limit 1"));
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<title>���о�ϲ</title>
<link rel="stylesheet" href="../css/chaikai.css" />
<script src="../jscripts/jquery-2.1.1.min.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>