⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 do.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
echo "<html>\r\n<head>\r\n<title>手机短信设置</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\"  cellpadding=\"0\">\r\n  <tr class=\"tablehead1\">\r\n    <td ><img src=\"/images/menu/sms.gif\" align=\"absmiddle\">手机短信设置</td>\r\n  </tr>\r\n  <tr class=\"tablehead2\">\r\n  <td>\r\n  <a href=\"javascript:history.back(";
echo ")\"><img src=\"/images/button/return.gif\" border=\"0\"></a>\r\n  </td>\r\n  </tr>\r\n  </table>\r\n\r\n\r\n";
if ( !isset( $_REQUEST['f'] ) || $_REQUEST['f'] == "" )
{
	message( "", "错误" );
}
switch ( $_REQUEST['f'] )
{
case "save" :
	$sql = " \r\n\t             UPDATE mobile_sms_option SET \r\n\t\t\t\t\t MSO_SERVERIP='".$_REQUEST['mso_serverip']."',\r\n\t\t\t\t\t MSO_PORT='".$_REQUEST['mso_port']."',\r\n\t\t\t\t\t MSO_MB_ALLOW='".$_REQUEST['mso_mb_allow']."',\r\n\t\t\t\t\t MSO_OUT_ALLOW='".$_REQUEST['mso_out_allow']."',\r\n\t\t\t\t\t MSO_PUBIC_PHONE='".$_REQUEST['mso_public_phone']."'\r\n\t\t\t\t";
	exequery( $connection, $sql );
	message( "", "设置完成!" );
}
$docroot = get_cfg_var( "doc_root" );
$iwebsmsinc = $docroot."\\iWebSMS2000\\iSMSServer2000.ini";
$servport = $_SERVER['SERVER_PORT'];
$handle = fopen( $iwebsmsinc, "w" );
$smsinc = "WEBURL=http://{$_REQUEST['mso_serverip']}:{$servport}/iWebSMS2000/iSMSEvent.php\r\nHTTPPORT={$servport}\r\nUSERNAME=\r\nPASSWORD=\r\nPROXYSERVER=\r\nPROXYPORT=\r\nNETPORT=8090\r\nSERVICE={$_REQUEST['mso_service']}\r\nCOMNAME=COM1\r\nBAUDRATE=9600\r\nPROMPT=0";
fwrite( $handle, $smsinc );
fclose( $handle );
echo "</body>\r\n</html>\r\n\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -