📄 sms_conf_submit.php
字号:
<?
session_start();
include "api/sms.inc.php";
$remess = "";
if(!$server) $server = "testxml.todaynic.com";
$username =trim($username);
//if(preg_match("/ms\d/"))
if(is_numeric($username)) $username = "ms".$username;
$pass =trim($pass);
if(!$username) $remess = "短信帐号为空! 申请地址:"."<a href='http://www.now.cn/mobile/index.net'>http://www.now.cn/mobile/index.net</a>";
if(!$pass && !$remess) $remess = "短信密码为空!";
if(!$remess){
$sms = new SMS();
$mess = $sms->updateConf($username, $pass, $server);
if($mess!="1") $remess = $mess;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>接口模式演示程序</title>
<link href="../share/api_style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-bottom: 0px;
background-color: #CCCCCC;
}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" bgcolor="#00314F"><img src="../images/api_01.jpg" width="713" height="87" /></td>
<td align="left" bgcolor="#00314F"><table width="100%" height="80" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" style="padding-right:20px;"> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="color:#FFFFFF;padding-right:20px;" align="right"><strong>时代互联接口模式源程序 Version 2.0</strong></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" background="../images/api_03.jpg"></td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td width="186" rowspan="2" valign="top" bgcolor="#787878"><? include "left.inc.php";?>
</td>
<td valign="top" bgcolor="#FFFFFF" style="padding:1px 0px 1px 1px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" bgcolor="#030504"><img src="../images/api_07.jpg" width="819" height="183" /></td>
</tr>
<tr>
<td align="left"><img src="../images/api_08.jpg" width="819" height="12" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:5px 5px 10px 10px;" bgcolor="#FFFFFF">
<table width="90%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#ECF4F8" class="text_blue14" align="center" ><strong> = 接口模式演示程序使用说明 -SMS测试环境配置- =</strong></td>
</tr>
</table>
<? if($remess) { ?>
<table width="90%" border="1" align="center" cellpadding="1" cellspacing="0" bordercolorlight="#FFFFFF" bordercolor="#F5EEE8">
<tr>
<td width="16%" height="75" rowspan="5" bgcolor="#FFFFFF" scope="row"><font color="#000000"><img src="../images/pic_2.jpg" width="66" height="66" hspace="10" vspace="10"><br>
</font></td>
<td width="84%" height="70" bgcolor="#FFFFFF" scope="row"><font color="red"><?=$remess?></font></td>
</tr>
</table>
<table width="90%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" ><input name="return" type="button" value="上一步" onClick="location.href='sms_conf.php'" class="buttonback">
</td>
</tr>
</table>
<? }else {
include "api/config.inc.php";
?>
<table width="90%" border="1" align="center" cellpadding="1" cellspacing="0" bordercolorlight="#FFFFFF" bordercolor="#F5EEE8">
<tr>
<td width="14%" height="75" rowspan="5" bgcolor="#FFFFFF" scope="row"><font color="#000000"><img src="../images/pic_1.jpg" width="66" height="66" hspace="10" vspace="10"><br>
</font></td>
<td width="11%" height="24" bgcolor="#FFFFFF" scope="row">配置文件结果:</td><td>成功</td>
</tr>
<tr>
<td height="23" bgcolor="#FFFFFF" scope="row" align="right"><font color="#000000">SCP服务器地址:
</font>
</td>
<td width="75%">
<font color="#000000">
<?=$vcpserver?>
</font> </td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF" scope="row" align="right"><font color="#000000">SCP服务器接口: </font>
</td>
<td>
<font color="#000000"><?=$vcpserverport?></font></td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF" scope="row" align="right"><font color="#000000">您的用户:
</font>
</td>
<td>
<font color="#000000">
<?=$vcpuser?>
</font></td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF" scope="row" align="right"><font color="#000000"> 您的密码:
</font>
</td>
<td>
<font color="#000000">
<?=$vcppassword?>
</font></td>
</tr>
</table>
<table width="90%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" ><input name="next" type="button" value="下一步: 发送短信测试" onClick="location.href='sms_send.php'" class="button_orange">
<input name="return" type="button" value="上一步" class="buttonback" onClick="location.href='sms_conf.php'"></td>
</tr>
</table>
<? }?>
<table width="100%" border="1" align="center" cellpadding="1" cellspacing="0" bordercolorlight="#FFFFFF" bordercolor="#ECF4F8" style="margin-top:15px;">
<tr>
<td scope="row"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" align="center" bgcolor="#00314F" style="color:#FFFFFF">时代互联 版权所有</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -