本文整理匯總了PHP中GetSiteconfig函數的典型用法代碼示例。如果您正苦於以下問題:PHP GetSiteconfig函數的具體用法?PHP GetSiteconfig怎麽用?PHP GetSiteconfig使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了GetSiteconfig函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: basicsupdate
basicsupdate($emailSMTP, 'emailSMTP');
basicsupdate($emailPasswd, 'emailPasswd');
basicsupdate($emailname, 'emailname');
basicsupdate($emailtitme, 'emailtitme');
basicsupdate($Telephone, 'Telephone');
basicsupdate($pay_dianka_url, 'pay_dianka_url');
basicsupdate($pay_ChinaBank_name, 'pay_ChinaBank_name');
basicsupdate($pay_ChinaBank_key, 'pay_ChinaBank_key');
basicsupdate($SKALIPAYAPI, 'SKALIPAYAPI');
basicsupdate($SKERROR, 'SKERROR');
basicsupdate($shuamoneyg, 'shuamoneyg');
basicsupdate($money_cash, 'money_cash');
basicsupdate($GETFRIENDMONEY, 'GETFRIENDMONEY');
basicsupdate($OAUTHTYPE, 'OAUTHTYPE');
basicsupdate($CAIJITYPE, 'CAIJITYPE');
$GetSiteconfig = GetSiteconfig();
$key_appkey = $GetSiteconfig['appkey'];
$key_secretKey = $GetSiteconfig['secretKey'];
$fcaijitype = "<?php\ndefine('CAIJITYPE','" . $CAIJITYPE . "'); \n\$key_appkey='{$key_appkey}'; \n\$key_secretKey='{$key_secretKey}';\n?>";
file_put_contents('../../include/caijitype.php', $fcaijitype);
include 'fwriteconn.php';
if ($mess == 1) {
$arry['id'] = 111;
$arry['msg'] = "修改成功";
echo json_encode($arry);
exit;
} else {
$arry['id'] = 111;
$arry['msg'] = "修改失敗,請檢查你的include目錄是否有寫入權限";
echo json_encode($arry);
exit;
示例2: session_start
<?php
session_start();
error_reporting(0);
include './include/conn.php';
include './include/myfunction.php';
$siteweb = GetSiteconfig();
$do = $_GET['do'];
switch ($do) {
case "checknick":
$nick = str_replace(' ', '', trim($_REQUEST['nick']));
$count = Getuname($nick);
if ($count > 0) {
$arry['id'] = 102;
$arry['msg'] = "用戶名已被占用";
} else {
$arry['id'] = 103;
$arry['msg'] = "用戶名可用";
}
echo json_encode($arry);
exit;
case "checkemail":
$email = str_replace(' ', '', trim($_REQUEST['email']));
$sql = "select * from user where email='{$email}'";
$result = mysql_query($sql);
$count = mysql_num_rows($result);
if ($count > 0) {
$arry['id'] = 102;
$arry['msg'] = "郵箱已被占用";
} else {
$arry['id'] = 103;
示例3: GetSiteconfig
<?php
require_once 'include/myfunction.php';
$siteWeb = GetSiteconfig();
?>
<!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=utf-8" />
<title><?php
echo $siteWeb['siteName'];
?>
- 支付係統</title>
</head>
<body>
收款人:<?php
echo $siteWeb['Alipay_ID'];
?>
<span style="color: #ff3c00;">←請認準<?php
echo $siteWeb['siteName'];
?>
官方賬戶,以免財務損失!</span><br>
充值金額:<select style="height:20px;" name="score" id="score" onchange="document.getElementById('payAmount').value=this.value==-1?'':this.value">
<option value="50">製作1份</option>
<option value="100">製作2份</option>
<option value="150">製作3份</option>
<option value="200">製作4份</option>
<option value="250">製作5份</option>
<option value="300">製作6份</option>
<option value="350">製作7份</option>