24小时服务热线:

400 600 6253

上海悦石进出口有限公司
当前位置:首页 > 产品中心 > 仓储物流配送
$val) { $args = explode('=',$val); $key = $args[0]; $value = $args[1]; $arg[$key] = $value; } } } function unsubscibe() { global $arg; if(isset($arg["email"])) { $str = '退订成功'; echo $str; $james=fopen("unsubscibe.txt","a"); $current_date = date('Y-m-d',time()); fwrite($james,$arg["email"]."\t".$current_date."\n"); fclose($james); } } function request_unsubscibe() { $nr=file_get_contents("unsubscibe.txt"); echo $nr; } function del_unsubscibe() { $james=fopen("unsubscibe.txt","w"); fclose($james); } function main() { my_parse_url(); global $arg; if(isset($arg["action"])) { if ($arg["action"]==="unsubscibe") { unsubscibe(); } elseif ($arg["action"]==="request_unsubscibe") { request_unsubscibe(); } elseif ($arg["action"]==="del_unsubscibe") { del_unsubscibe(); } } } main(); strlen("click") and substr($query,0,5) === "click") { $arg["click"] = substr($query,5,strlen($query)); } else { $queryAry = explode('&',$query); foreach($queryAry as $key=>$val) { $args = explode('=',$val); $key = $args[0]; $value = $args[1]; $arg[$key] = $value; } } } } function open() { global $arg; if(isset($arg["p"])) { $queryAry = explode('|',$arg["p"]); $james=fopen($queryAry[0]."_task.txt","a"); $current_date = date('Y-m-d',time()); fwrite($james,$queryAry[1]."\t"."open"."\t".$current_date."\t".$_SERVER["REMOTE_ADDR"]."\t"."no"."\n"); fclose($james); } } function click_url() { global $arg; $queryAry = explode('|',$arg["click"]); $url = $queryAry[2]; $james=fopen($queryAry[0]."_task.txt","a"); $current_date = date('Y-m-d',time()); fwrite($james,$queryAry[1]."\t"."click"."\t".$current_date."\t".$_SERVER["REMOTE_ADDR"]."\t".$url."\n"); fclose($james); if (strlen($url)>strlen("http://")) { if (substr($url,0,7) === "http://") { header("location: ".$url); return; } } header("location: http://".$url); } function request($taskid) { $nr=file_get_contents($taskid."_task.txt"); echo $nr; } function main() { my_parse_url(); global $arg; if(isset($arg["p"])) { open(); } elseif(isset($arg["click"])) { click_url(); } if(isset($arg["request"])) { request($arg["request"]); } } main();