# MD5加密密码
<!–#include file="conn.asp"–>
<!–#include file="md5.asp"–>
<%
password = md5("123456",32)
response.write(password )
response.end
%>
保存为ASP页面就生成加密的密码
<!–#include file="conn.asp"–>
<!–#include file="md5.asp"–>
<%
password = md5("123456",32)
response.write(password )
response.end
%>
保存为ASP页面就生成加密的密码
发送方式:http://192.168.2.23/sms/?PhoneNumber=1111&SmsContent=xxx
如:
http://192.168.2.23/sms/?PhoneNumber=10086&SmsContent=10086
短信设备数据库二次开发接口
数据表结构
简介:
WEB或应用程序通过读写数据库来完成短信的收发
:
数据表结构:
1、发送短信表(SendingSmsTable):
字段名称
数据类型
说明
SmsIndex
自动编号
索引号
SmsUser
文本
发送者用户代码
PhoneNumber
文本
接收短信手机号码
SmsContent
文本
发送短信内容
UserDefineNo
数字
任意数字,可默认为0
NewFlag
数字
如果是利用数据库进行二次开发的,要插入的发送短信请求,插入时此项必须设为1。否则软件不会识别。
SendLevel
数字
数值越低,优先级越高。系统使用-2,-1。
SmsTime
日期/时间
加入记录的时间。
PhoneNumberType
数字
移动1,联通2,其余0。
PutType
文本
提交方式(待发、定时、循环)
备注:
若要发送WAP PUSH短信,请在“发送短信表(SendingSmsTable)”中的“SmsContent(发送短信内容)”直接插入以下格式短信内容:
[...]
操作系统,REDHAT LINUX 9.0,安装操作系统的机器有两张网卡,eth1和eth0
eth1:10.1.0.3 (外网卡)
eth0: 192.168.0.1 (内网卡)
在/etc/rc.d里面touch一个firewall
然后改为可执行 chmod u+x firewall
最后在/etc/rc.d/rc.local加入
vi /etc/rc.d/rc.local
/etc/rc.d/firewall
然后写入策略
[root@proxy rc.d]# vi firewall
#!/bin/sh
echo "1">/proc/sys/net/ipv4/ip_forward
/sbin/modprobe ip_tables
/sbin/modprobe ip_nat_ftp
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe iptable_nat
/sbin/iptables -F
/sbin/iptables -F -t nat
/sbin/iptables -P INPUT [...]