实例如下:
//include_once("inc/auth.inc.php");
include_once("inc/conn.php");
$HTML_PAGE_TITLE = _("运行");
include_once("inc/header.inc.php");
//路径如下
/*
http://127.0.0.1/general/winexe/exe1.php?PROG=C:/Program Files (x86)/Tencent/QQ/Bin/QQ.exe&NAME=QQQQ
*/
//$PROG="C:/Program Files (x86)/Tencent/QQ/Bin/QQ.exe";
//$NAME="AAAAA";
if(strstr($PROG,"format"))
{
Message("",_("非法程序"));
exit;
}
$PROG=str_replace("/","\\\\",$PROG);
?>
function win_run()
{
CoolRun.Path="=$PROG?>";
CoolRun.RunPath();
window.setTimeout(' window.close();',3000);
}