找到158个回复 (用户: 李欢)
你这个问题是没有答案的,结束吧。除了数据库,没什么好的解救的方法。可逆短网址不可以只由算法实现,必须结合存储。
有了电脑还热衷于用手机写代码。不是全键盘,而是触屏的。0.0
我也好久不玩了
拿去修吧。
武林高手前往少林寺PK,指着少林寺四大护法高喊:报上名来!四大护法一一高喊:贫僧圆通!贫僧申通!贫僧汇通!贫僧中通!高手怒道:他妈的,难道你们方丈法号顺风,你们少林寺改制做快递了不成?突然后面闪出方丈,双手合十道:施主息怒,非也非也,贫僧法号全球通。。
参见http://view.code.sealins.com/browser/haishi1.1/inc/internal/jiuwap_internal_browser_base_data.php
修改 public $cutpage
上述地址中的路径已经告诉你文件在哪
IE浏览器里的拦截网址弹出特别令人讨厌!一些正规的网站弹出的常规窗口它也拦截.拦截不要紧,要命的是选择允许该网站弹出窗口之后它又要重新载入一次.我吃过它这招很多次了.常常填满一整页的表单(申请空间)被IE付之一炬,令我非常生气!!相比之下,Chrome和Firefox里都有拦截网页广告(包括拦截弹出窗口)的插件,效果上令人满意.赶紧把那扯蛋的IE扔了吧!
第二个
<?php echo '<html> <head> <title>淘酷聊天机器人--帮助说明</title> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <style type="text/css"> <!-- #foot{ color:#fff; text-align:center; background-color:#FF8040; } #top{ color:#fff; text-align:center; font-size:40pt; background-color:#FF0000; } #msg{ border:1px solid #f00; background-color:#fff; } a:link{ text-decoration:none; color:#yellow; } --> </style> </head> <body> <font color=\'red\'>淘酷机器人能做什么?</font> 1、他可以陪你聊天。能识别一些简单的聊天,很有趣。 2、查英语单词的意思,查成语,词语的意思。对他输入你要查询的单词或者成语即可。 3、可以给你讲笑话。对他输入"给我讲个笑话"之类的即可。 4、可以查看天气预报。对他输入"XX地区的天气预报"之类即可。 5、更多有趣聊天乐趣待自己发现。 <a href=\'index.php\'><font color=\'red\'>返回淘酷聊天机器人</font></a> <div id=\'foot\'><a href=\'/\'>返回网站首页</a> <font color=\'red\'> <script type="text/javascript" src="/jqsxWoITp1"></script><noscript><img src="/jqsxWoITp1.gif" width="1px" height="1px" alt="t"/></noscript></body> </html>';?>
第一个(点击"展开查看完整代码")
<?php echo '<html> <head> <title>淘酷聊天机器人--小秋</title> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <style type="text/css"> <!-- #foot{ color:#fff; text-align:center; background-color:#FF8000; } #top{ color:#fff; text-align:center; font-size:40pt; background-color:#FFE4CA; } #msg{ border:1px solid #f00; background-color:#fff; } a:link{ text-decoration:none; color:#yellow; } --> </style> </head> <body> '; date_default_timezone_set('PRC'); $ask=$_POST['ask']; $url="http://122.227.43.245/robot/demo/wap/wap-demo.action?requestContent=".$ask; if($ask!=""){ $get=file_get_contents($url); preg_match('~class="wap_cn2"><span>小i机器人:</span>(.*?)</p>~isU',$get,$a); $robot=$a[1]; $robot=str_replace("小i","小秋",$robot); } echo"<img src='xiaoqiu.jpg' width= '160' height='160' alt='淘酷聊天机器人' title='淘酷聊天机器人'></img> <div id='top'><font color='black'>您好,我是小秋,很高兴和你聊天! <a href='help.php'><font color='red'><b>点击查看使用帮助</b></font></a></div> <b>推荐:<a href='iPhone.php'><font color='blue'>iPhone在线说说发表工具</a></b> "; if($ask!=""){ echo"<div id='msg'><b>我:{$ask}</b> <font color='red'>小秋:{$robot}</font></div> "; } echo'<form action="index.php" method="post"> <textarea name="ask" cols="20" rows="4" id="txt"></textarea> <input name= "" value= "我要聊天" type= "submit" /> <input type="reset" value="重新填写"></form>'; echo"<div id='foot'><b><a href='/'>返回网站首页</b></a> <font color='black'><b>北京时间:".(date("H:i:s"))."</font></div>"; ;echo ' 本程序由<a href=\'http://taokui.cn\'><b>淘酷建站</b></a>提供共享 </body> </html>';?>
又或者是吧.
非也非也.
<?php // Smaato Code Snippet PHP // Copyright Smaato, Inc., All rights reserved // Rev: 20090715 // Version: $phpsnip = 101; // Your publisher-id $pub="923833371"; // The adspace-id $adspace="65737436"; // The user-id, the soma-server has generated at first request // Attention: // If it is possible to track each single user on your side, the user-parameter should be empty (&user=). // Inside the response, there will be the "SomaUserID"-header, with a new generated user-id. // This new generated "SomaUserID" should be used as "&user="-parameter // for every following request of this particular user. // // If it is not possible on your side, to split apart different users // (and re-recognize him afterwards at each request) // please use the following ID for ALL users/requests // ExampleValue: 900 $user_id=900; // max. width of the wished ad (e.g. MMA small is 120) $width='120'; // max. height of the wished ad (e.g. MMA small is 20) $height='20'; // Position of the ad $pos="top"; // Amount of ads which should be requested. Default is "1" $ad_count=1; // The wished format of the requested ad. Default: ALL (other possible values: "IMG" or "TXT") $ad_format="TXT"; $beacon="TRUE"; // Do not edit below this line // // This section defines Smaato functions and should be used AS IS. $response_format="HTML"; // The user-agent of the client device $ua = isset( $_SERVER["HTTP_USER_AGENT"] ) ? $_SERVER["HTTP_USER_AGENT"] : ''; $ua = isset( $_SERVER["HTTP_X_OPERAMINI_PHONE_UA"] ) ? $_SERVER["HTTP_X_OPERAMINI_PHONE_UA"] : $ua; $ua = isset( $_SERVER["HTTP_X_ORIGINAL_USER_AGENT"] ) ? $_SERVER["HTTP_X_ORIGINAL_USER_AGENT"] : $ua; $ua = isset( $_SERVER["HTTP_X_DEVICE_USER_AGENT"] ) ? $_SERVER["HTTP_X_DEVICE_USER_AGENT"] : $ua; // Set the user-agent header inside the request @ini_set("user_agent", $ua); // The user-agent of the client device as encoded device-parameter $device=rawurlencode($ua); // The ip-address of the client // First, have a look if the headers can be accessed via $_SERVER // and a X-FORWARDED-FOR header exists. If not, use client_ip or remote_address. $x_forwarded_for=""; $ip=""; if (isset($_SERVER)) { if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) { $x_forwarded_for=$_SERVER["HTTP_X_FORWARDED_FOR"]; } if (isset($_SERVER["HTTP_CLIENT_IP"])) { $ip=$_SERVER["HTTP_CLIENT_IP"]; } else { $ip=$_SERVER["REMOTE_ADDR"]; } // If $_SERVER is not accessible, try to get the values out of the environment } else { if (getenv('HTTP_X_FORWARDED_FOR')) { $x_forwarded_for=getenv("HTTP_X_FORWARDED_FOR"); } if (getenv('HTTP_CLIENT_IP')) { $ip=getenv('HTTP_CLIENT_IP'); } else { $ip=getenv('REMOTE_ADDR'); } } // Other client header informations, which are set using the prefix "X-MH-" $mh_accept = isset($_SERVER["HTTP_ACCEPT"]) ? $_SERVER["HTTP_ACCEPT"] : ''; $mh_user_agent = isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : ''; $mh_accept_charset = isset($_SERVER["HTTP_ACCEPT_CHARSET"]) ? $_SERVER["HTTP_ACCEPT_CHARSET"] : ''; $mh_accept_language = isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ? $_SERVER["HTTP_ACCEPT_LANGUAGE"] : ''; $mh_x_wap_profile = isset($_SERVER["HTTP_X_WAP_PROFILE"]) ? $_SERVER["HTTP_X_WAP_PROFILE"] : ''; $mh_profile = isset($_SERVER["HTTP_PROFILE"]) ? $_SERVER["HTTP_PROFILE"] : ''; $mh_operamini_ua = isset($_SERVER["HTTP_X_OPERAMINI_PHONE_UA"]) ? $_SERVER["HTTP_X_OPERAMINI_PHONE_UA"] : ''; $mh_original_ua = isset($_SERVER["HTTP_X_ORIGINAL_USER_AGENT"]) ? $_SERVER["HTTP_X_ORIGINAL_USER_AGENT"] : ''; $mh_device_ua = isset($_SERVER["HTTP_X_DEVICE_USER_AGENT"]) ? $_SERVER["HTTP_X_DEVICE_USER_AGENT"] : ''; // URL including parameter $soma_url="http://soma.smaato.com/oapi/reqAd.jsp?pub=$pub&adspace=$adspace&adcount=$ad_count&response=$response_format&devip=$ip&user=$user_id&format=$ad_format&position=$pos&height=$height&width=$width&device=$device&beacon=$beacon&phpsnip=$phpsnip"; // Example, how to add some client header to the request $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"X-Forwarded-For: $x_forwarded_for\r\n" . "User-Agent: $ua\r\n" . "X-MH-Accept: $mh_accept\r\n" . "X-MH-User-Agent: $mh_user_agent\r\n" . "X-MH-Accept-Charset: $mh_accept_charset\r\n" . "X-MH-Accept-Language: $mh_accept_language\r\n" . "X-MH-X-Wap-Profile: $mh_x_wap_profile\r\n" . "X-MH-Profile: $mh_profile\r\n" . "X-MH-X-Forwarded-For: $x_forwarded_for\r\n" . "X-MH-X-OperaMini-Phone-UA: $mh_operamini_ua\r\n" . "X-MH-X-Original-User-Agent: $mh_original_ua\r\n" . "X-MH-X-Device-User-Agent: $mh_device_ua\r\n" ) ); // Create a context with the defined options $context = stream_context_create($opts); // Open the file using the HTTP headers set above echo file_get_contents($soma_url, false, $context); ?>
版权在 inc/template.php 中.在接近最后的那几句.
在线查看:
http://view.code.sealins.com/browser/haishi1.1/inc/template.php
一点都不好看,关闭。