Archive for 12月, 2006
| |
|
|
|
Posted (xurenlu) in 未分类 on 12月-26-2006
|
|
|
-
Linux下挂载ISO文件
Howto, linux, 光盘映像, 技巧从网上会下载到很多ISO映像文件,下面是在Linux不刻录就使用的方法:
首先建立一个目录作为挂载点:
# mkdir /mnt/iso
获得root权限然后使用下面的参
-
一、下载gd-2.0.33.tar.gz http://www.boutell.com/gd/
jpegsrc.v6b.tar.gz http://www.ijg.org/
libpng-1.2.7.tar.tar http://sourceforge.net/projects/libpng/
zlib-1.2.2.tar.gz http://sourceforge.net/projects/zlib/
freetype-2.1.9.tar.gz http://sourceforge.
-
另,如果直接改动/etc/php.ini当然也可以。如果没有权限改动php.ini,也没有权限改动apache的conf文件,.htaccess被禁止,那么直接修改plog的sessionmanager.class.php文件,在session_start行前添加ini_alter(”sessio
-
Tag: 相关文章
|
|
|
|
| |
|
|
|
Posted (xurenlu) in 未分类 on 12月-24-2006
|
|
|
昨天一天都累坏了。
应该说是从前天开始。
晚上公司的同事一起聚会,晚上五点老婆就到公司等着了。
一到下班,就浩浩荡荡地出发了。
老大开出了H2,很牛气地让我们搭他的牛X Taxi. 一路上土堵得厉害,不过还好没大堵。
在隆福寺一个KTV一直玩到10:00才走,在下了车在路上居然还感冒了。
晚上教老婆做网页,昨天一早就去中关村买本。10:00到,虽然验机都很马虎了,不过回来还是已经到3:00了。其实都没回,在半中上直接去了六间房的聚会。这次也来了7,8个人的样子,本来以为可以见到六间房的技术人员,没想到他们周末都没来,只有编辑客服类的在。
聊了些关于网站的内容审核机制,技术实现,用户体验的东西,很是有用的。不过不知岩哥是否是把我当成竟争对手的,呵呵,对我不感冒的样子。
今天早上整了些 系统软件,下午就安排大家聚会,huoju比较精,猜到大家可能会堵车,所以不过来了,不过可能要陪MM也是一个原因。下午大牛,大可,zhuaizhuai,chin,aw,都过来了。aw过来得晚一点,而且早早就要陪MM去了,(后来说不是陪MM)哈哈。其他人都是不用陪MM的,一起聊得比较开心。chin过来得比较晚,我开始还以为他会把于敦德和猛小蛇,钟子昌都带过来,结果最后只来了他一个,所以最后我选的包房实际上不算合适。因为预料中的霍炬,小户都没有过来,chin也是只身一人过来。
不过两天很充实,我知道自己干了什么,前一阵虽然忙,但不知道自己干了什么。
Tag: 相关文章
|
|
|
|
| |
|
|
|
Posted (xurenlu) in 未分类 on 12月-23-2006
|
|
|
-
ds
-
万一有一天你成功了,记住:不是因为你比别人更聪明,更有能力,可能只是你有一批能力不错的员工,还可能只是因为老天瞎了眼,把五百万大奖错发给你了。
-
让Wordpress的管理登陆更快!
各位wordpress的用户们,你们有没有注意到wordpress进入管理界面的时候特别慢,而有时又很正常呢?
实际表现是这样的,如果您是当天第一次登陆,就会很慢,如果是�
-
1:系统老中毒,流氓软件。
2.我的简历被拿去做为“精美简历模板”公开了
3.中国缘网站的机器人老在msn上骚扰我
4.域名访问不了时北京网通老把我带到一些垃圾网站。比如当我服务器挂了时或�
-
一个巨大无比的RSS button
-
Tag: 相关文章
|
|
|
|
| |
|
|
|
Posted (xurenlu) in 未分类 on 12月-22-2006
|
|
|
前面写google的公益广告,被人骂得狗血喷头。
现在再发一个我从www.google.com搜出的结果,当然这个与google的公益广告无关。
第一个页面是我搜百度公益活动的结果。第二个是我搜google公益活动的结果。第三个是我搜谷歌公益活动的结果。
结果是,我在第二个搜索,第三个搜索中搜出了baidu的公益活动,也搜出了yahoo的公益活动,但是没有搜出google的。
这就很明显了。我是用google的search搜的,免得我用yahoo,baidu搜,说我不公平。读者可以自个搜一下看看。
你说google技术玩得那么牛的,怎么就不会学会做生意呢。
我的建议,把那个虚伪的公益广告去掉。放上青基会,什么希望工程,或是环保组织等的广告。
再就是尽量少那个adsence的出错机率小一点,别老给人弄一不相关的广告。我写一web开发技术的文章,你给我显示一个什么鲜花配送的广告什么的,我想这个差别也太大了吧?别弄得人家网页中一有广告主设定的词,你立马给人把广告显示出来吧。总得算一下吧,我想做个相关性计算,对于google这么牛的公司,不成问题吧?
然后,钱是要赚的,但学会花点钱吧。老是只赚,不花,也不行啊。每年多从中国本土采购点什么,哪点您现在不需要,但是要记住啊,有时这只是一种关系。你到我这只赚钱,不花钱,我怎么能欢迎你呢。每年在各地搞搞活动,资助个小学,免费给大学提供个数据库什么的。都不难吧。瞧瞧您的竟争对手,在中国老百姓中间多受欢迎。学着点。
最后,别自己做裁判自己又做运动员。既然您给人显示了广告分成金额,就是一种承认。别自己承认了人家这个月要分200美金,到要分成前就告诉人家,你作弊了,然后给人把站封了。说大了这是一种不诚信,往小了说,起码是一种不负责任,或是不够光明正大。如果认定用户作弊,那请给个理由。没有理由,尽管大家都相信您,人家站长也告不倒你,但总是没有拿出台面的理由。因为上帝没有站出来说,google是不可能骗人的。那个安然,出事前大家也不是都挺相信他的嘛。
Tag: 相关文章
|
|
|
|
| |
|
|
|
Posted (xurenlu) in 未分类 on 12月-22-2006
|
|
|
所以记录下来。这条评论,我也批准了,大家都看得到。
这条评论
您就骂吧。
我承诺只要没有什么外来压力,没有违法的什么内容,只要不是广告,我都将您的批论批准。
让大家来评论。
Tag: 相关文章
|
|
|
|
| |
|
|
|
Posted (xurenlu) in 未分类 on 12月-22-2006
|
|
|
|
|
|
|
|
| |
|
|
|
Posted (xurenlu) in 未分类 on 12月-21-2006
|
|
|
让Wordpress的管理登陆更快!
各位wordpress的用户们,你们有没有注意到wordpress进入管理界面的时候特别慢,而有时又很正常呢?
实际表现是这样的,如果您是当天第一次登陆,就会很慢,如果是过几分钟后再登陆,就很快了。为什么呢?
因为在控制面板界面,wordpress要用一个叫magpierss的工具去抓它自己网站上的关于wordpress的新闻。这需要很长一段时间。而这个工具会事先检查,如果在4个小时内已经读过wordpress的新闻了,就会从本地缓存中读,不去远程抓取。这就是为什么登陆一次后退出再登陆又很快的原因。
知道这个后我们动手来改:
把wp-admin/index.php打开,把所有有fetch_rss那一行改成$rss=”";这样就不会去抓新闻了。速度就会快很多。
我是把fetch_rss后面的地址改为我自己的feed:http://blog.deskor.com/feed,这样默认显示我自己的最新文章(服务器本地抓自己的内容是很快的)。是不是酷多了?
Tag: 相关文章
|
|
|
|
| |
|
|
|
Posted (xurenlu) in 未分类 on 12月-21-2006
|
|
|
本来这个问题已经困扰我很久了:
大名在外的号称绝不做恶的谷狗,告诉我们他的adsense在找不到匹配的广告的时候,会给你显示公益广告。
于是我就一直期待,google的公益广告是什么样子呢?
结果经过我长期的观察,原来它的公益广告就是些世界四大文明古国是什么啊,世界最高的山有多高啊什么的。然后点进去是是google搜索这句话的
结果页面。
我一直想不通,这是公益广告吗?
操!这是公益广告的话,那地铁边上的什么”珍爱生命,远离艾滋”,”别让最后一滴水是我们的眼泪”这些是什么?
而且公益广告为什么还要链接到Google的页面上去?这不是给Google白做广告么?我宁愿不做这样的”公益广告”!
真恶心!玷污了”公益广告“这几个字!
Tag: 相关文章
|
|
|
|
| |
|
|
|
Posted (xurenlu) in 未分类 on 12月-20-2006
|
|
|
经过一米六二同志的辛苦调教,终于老婆能用php写一些简单的教本了,不过实战经验还少了些。打算出些题让她实际做一个,写一些什么留言本之类的程序,锻炼锻炼。
SQL语也能写了,这都是我给骂出来的。呵呵,她现在学东西可比我爽多了,我学php那会儿,资料要少得多,而且周末没有人可以问,一点一点地上各个网站上去问,或者自己看手册,慢慢试,才弄会的。
最开始学ASP,是用了一套Kisssnow的文字站(倒,我一开始是喜欢文字创作,希望能做个网站结识一批志同道合之士,最后网站弄起来了,反而迷上做网站了),然后改改,就跑起来了。后来因为有一些功能需求,那个免费程序没有提供,就自己学搞,可是一直对面象对象这个东西不开窍,直到有一天在等人时突然灵光一闪,从此OOP对我不再神秘。
后来学PHP,也就是开始的时候,学搭PHP的这个环境很麻烦,不知看了多少文档,试过多少回,才总算让这玩意儿输出第一句Hello world.还记得在地摊上看到一本很便宜的php收时兴奋的样子。
再学Java,是在图书馆里泡了一年,基本那个计算机新书室的所有书摆在什么位置我已经记得很清楚了。
那会儿学的是多么艰难。现在如果她有我学习的那个劲头,现在也能出来做个小case了吧?
Tag: 相关文章
|
|
|
|
| |
|
|
|
Posted (xurenlu) in 未分类 on 12月-17-2006
|
|
|
初次看到吴莹莹的相关新闻时,是在老婆在上网时。
她打开的是吴莹莹在sohu的博客。我记得是yingyingwu.blog.sohu.com,现在打开,标题已经换成了谢谢已往的关注,而记得以前打开时,是放了很多媒体报道相关的文章。我当初想,可能是人家老人家太牛了吧,没时间自己写,所以让sohu博客的编辑们代劳了。不过奇怪的时候,就算人家编辑代劳,发稿子时,也该让博主人家自己审一下,怎么净发这些明显一看就是宣传软文,枪稿的东西?
我还特地跟老大说,你看,你们北师大又出来一牛人。不过让我郁闷的是,老外用人一向精着呢,怎么会用一个这么小的没什么经验的人来做副总?既然这孩子学习成绩,舞蹈,编程什么的都这么好,就不太可能还有时间参加社会实践什么的,就算有,一个足够认真的公司也不会把一个没有从业经验的人招来做副总的。毕竟这样太冒险。我相信有一点管理经验的人,也不太可能把一个刚毕业的孩子弄来放这么重要的位置上。
我就跟老大说,这肯定是虚设了一个职位,其实不做什么事的,然后用来吵做他们公司。什么topcoder啊,没听说过。要是intel,amd,IBM,那我还是真服了。
Tag: 相关文章
|
|
|
|
| |
|
|
|
Posted (xurenlu) in 未分类 on 12月-17-2006
|
|
|
今天打开wordpress,我晕,留言数已经有10多万。
老外们工作还真积极,这几天垃圾评论是越来越厉害了。
我想起前几天还说要自己写一个能分页管理评论的hack呢。不过现在实在没空。
于是想到,管他垃圾不垃圾,我现在暂时先全删除了再说。
于是打phpmyadmin,把ID>350的记录全删除了。
这下再打开,不过发现马上就又有了几十条记录了。看来垃圾生产机器工作真够负责的啊,简直是日夜不停了。
想起有一个什么反垃圾评论的插件,google一下,叫akismet,装上一看,倒,还要我去申请一个API key才能用。
本来特懒,不过现在垃圾评论这么狂,只好去注册。
结果,打了好几次地址,wordpress.com/api-keys都打不开,没办法。我想,那我做一个hack,把用api key认证的这一步去掉不行吗?
打开akismet.php,哈哈,原来如此简单,修改过程如下:
找到
- function akismet_verify_key( $key ) {
,直接在后面加上:
就行了。
上传了一下,然后再来到要求输入API key的页面:/wp-admin/plugins.php?page=akismet/akismet.php,随便输入一个,我输的是123456,然后update,就成功了。
返回管理页面一个,哈哈,下面就列着一个大大的菜单: Akismet反垃圾(0)。棒极了!
点进去一看:
- 抓到的垃圾:
- 队列中没有垃圾评论,今天可能是您的幸运日!:
真不错。看来akismet的作者也是深受垃圾侵扰之苦,所以要这么写。
附上akismet的全部代码.
如果您还没有安装akismet,您可以下载下来,保存成akismet.php,放到您的wordpress的wp-content/plugins/akismet.php位置,再到插件菜单下去激活,安装一下就可以了:
- <?php
- /*
- Plugin Name: Akismet
- Plugin URI: http://akismet.com/
- Description: Akismet checks your comments against the Akismet web serivce to see if they look like spam or not. You need a <a href="http://wordpress.com/api-keys/">WordPress.com API key</a> to use this service. You can review the spam it catches under "Manage" and it automatically deletes old spam after 15 days. Hat tip: <a href="http://ioerror.us/">Michael Hampton</a> and <a href="http://chrisjdavis.org/">Chris J. Davis</a> for help with the plugin.
- Author: Matt Mullenweg
- Version: 1.14
- Author URI: http://photomatt.net/
- */
-
- add_action('admin_menu', 'ksd_config_page');
-
- function ksd_config_page() {
- global $wpdb;
- if ( function_exists('add_submenu_page') )
- add_submenu_page('plugins.php', __('Akismet Configuration'), __('Akismet Configuration'), 1, __FILE__, 'akismet_conf');
- }
-
- function akismet_conf() {
- if ( isset($_POST['submit']) ) {
- check_admin_referer();
- $key = preg_replace('/[^a-h0-9]/i', '', $_POST['key']);
- if ( akismet_verify_key( $key ) )
- update_option('wordpress_api_key', $key);
- else
- $invalid_key = true;
- }
- if ( !akismet_verify_key( get_option('wordpress_api_key') ) )
- $invalid_key = true;
- ?>
-
- <div class="wrap">
- <h2><?php _e('Akismet Configuration'); ?></h2>
- <p><?php printf(__('For many people, <a href="%1$s">Akismet</a> will greatly reduce or even completely eliminate the comment and trackback spam you get on your site. If one does happen to get through, simply mark it as "spam" on the moderation screen and Akismet will learn from the mistakes. If you don\'t have a WordPress.com account yet, you can get one at <a href="%2$s">WordPress.com</a>.'), 'http://akismet.com/', 'http://wordpress.com/api-keys/'); ?></p>
-
- <form action="" method="post" id="akismet-conf" style="margin: auto; width: 25em; ">
- <h3><label for="key"><?php _e('WordPress.com API Key'); ?></label></h3>
- <?php if ( $invalid_key ) { ?>
- <p style="padding: .5em; background-color: #f33; color: #fff; font-weight: bold;"><?php _e('Your key appears invalid. Double-check it.'); ?></p>
- <?php } ?>
- <p><input id="key" name="key" type="text" size="15" maxlength="12" value="<?php echo get_option('wordpress_api_key'); ?>" style="font-family: 'Courier New', Courier, mono; font-size: 1.5em;" /> (<?php _e('<a href="http://faq.wordpress.com/2005/10/19/api-key/">What is this?</a>'); ?>)</p>
- <p class="submit"><input type="submit" name="submit" value="<?php _e('Update API Key »'); ?>" /></p>
- </form>
- </div>
- <?php
- }
-
- function akismet_verify_key( $key ) {
- return true;
- /**
- *@edit by xurenlu 14:54 2006-12-17
- *@url:http://blog.deskor.com
- */
- global $auto_comment_approved, $ksd_api_host, $ksd_api_port;
- $blog = urlencode( get_option('home') );
- $response = ksd_http_post("key=$key&blog=$blog", 'rest.akismet.com', '/1.1/verify-key', $ksd_api_port);
-
- if ( 'valid' == $response[1] )
- return true;
- else
- return false;
- }
-
- if ( !get_option('wordpress_api_key') && !isset($_POST['submit']) ) {
- function akismet_warning() {
- $path = plugin_basename(__FILE__);
- echo "
- <div id='akismet-warning' class='updated fade-ff0000'><p><strong>".__('Akismet is not active.')."</strong> ".sprintf(__('You must <a href="%1$s">enter your WordPress.com API key</a> for it to work.'), "plugins.php?page=$path")."</p></div>
- <style type='text/css'>
- #adminmenu { margin-bottom: 5em; }
- #akismet-warning { position: absolute; top: 7em; }
- </style>
- ";
- }
- add_action('admin_footer', 'akismet_warning');
- return;
- }
-
- $ksd_api_host = get_option('wordpress_api_key') . '.rest.akismet.com';
- $ksd_api_port = 80;
- $ksd_user_agent = "WordPress/$wp_version | Akismet/1.14";
-
- // Returns array with headers in $response[0] and entity in $response[1]
- function ksd_http_post($request, $host, $path, $port = 80) {
- global $ksd_user_agent;
-
- $http_request = "POST $path HTTP/1.0\r\n";
- $http_request .= "Host: $host\r\n";
- $http_request .= "Content-Type: application/x-www-form-urlencoded; charset=" . get_settings('blog_charset') . "\r\n";
- $http_request .= "Content-Length: " . strlen($request) . "\r\n";
- $http_request .= "User-Agent: $ksd_user_agent\r\n";
- $http_request .= "\r\n";
- $http_request .= $request;
-
- $response = '';
- if( false !== ( $fs = @fsockopen($host, $port, $errno, $errstr, 3) ) ) {
- fwrite($fs, $http_request);
-
- while ( !feof($fs) )
- $response .= fgets($fs, 1160); // One TCP-IP packet
- fclose($fs);
- $response = explode("\r\n\r\n", $response, 2);
- }
- return $response;
- }
-
- function ksd_auto_check_comment( $comment ) {
- global $auto_comment_approved, $ksd_api_host, $ksd_api_port;
- $comment['user_ip'] = $_SERVER['REMOTE_ADDR'];
- $comment['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
- $comment['referrer'] = $_SERVER['HTTP_REFERER'];
- $comment['blog'] = get_option('home');
-
- $ignore = array( 'HTTP_COOKIE' );
-
- foreach ( $_SERVER as $key => $value )
- if ( !in_array( $key, $ignore ) )
- $comment["$key"] = $value;
-
- $query_string = '';
- foreach ( $comment as $key => $data )
- $query_string .= $key . '=' . urlencode( stripslashes($data) ) . '&';
-
- $response = ksd_http_post($query_string, $ksd_api_host, '/1.1/comment-check', $ksd_api_port);
- if ( 'true' == $response[1] ) {
- $auto_comment_approved = 'spam';
- update_option( 'akismet_spam_count', get_option('akismet_spam_count') + 1 );
- }
- akismet_delete_old();
- return $comment;
- }
-
- function akismet_delete_old() {
- global $wpdb;
- $now_gmt = current_time('mysql', 1);
- $wpdb->query("DELETE FROM $wpdb->comments WHERE DATE_SUB('$now_gmt', INTERVAL 15 DAY) > comment_date_gmt AND comment_approved = 'spam'");
- $n = mt_rand(1, 5);
- if ( $n % 5 )
- $wpdb->query("OPTIMIZE TABLE $wpdb->comments");
- }
-
- function ksd_auto_approved( $approved ) {
- global $auto_comment_approved;
- if ( 'spam' == $auto_comment_approved )
- $approved = $auto_comment_approved;
- return $approved;
- }
-
- function ksd_submit_nonspam_comment ( $comment_id ) {
- global $wpdb, $ksd_api_host, $ksd_api_port;
-
- $comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID = '$comment_id'");
- if ( !$comment ) // it was deleted
- return;
- $comment->blog = get_option('home');
- $query_string = '';
- foreach ( $comment as $key => $data )
- $query_string .= $key . '=' . urlencode( stripslashes($data) ) . '&';
- $response = ksd_http_post($query_string, $ksd_api_host, "/1.1/submit-ham", $ksd_api_port);
- }
-
- function ksd_submit_spam_comment ( $comment_id ) {
- global $wpdb, $ksd_api_host, $ksd_api_port;
-
- $comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID = '$comment_id'");
- if ( !$comment ) // it was deleted
- return;
- if ( 'spam' != $comment->comment_approved )
- return;
- $comment->blog = get_option('home');
- $query_string = '';
- foreach ( $comment as $key => $data )
- $query_string .= $key . '=' . urlencode( stripslashes($data) ) . '&';
-
- $response = ksd_http_post($query_string, $ksd_api_host, "/1.1/submit-spam", $ksd_api_port);
- }
-
- add_action('wp_set_comment_status', 'ksd_submit_spam_comment');
- add_action('edit_comment', 'ksd_submit_spam_comment');
- add_action('preprocess_comment', 'ksd_auto_check_comment', 1);
- add_filter('pre_comment_approved', 'ksd_auto_approved');
-
-
- function ksd_spam_count() {
- global $wpdb, $comments;
- $count = $wpdb->get_var("SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_approved = 'spam'");
- return $count;
- }
-
- function ksd_manage_page() {
- global $wpdb;
- $count = sprintf(__('Akismet Spam (%s)'), ksd_spam_count());
- if ( function_exists('add_management_page') )
- add_management_page(__('Akismet Spam'), $count, 1, __FILE__, 'ksd_caught');
- }
-
- function ksd_caught() {
- global $wpdb, $comment;
- if (isset($_POST['submit']) && 'recover' == $_POST['action'] && ! empty($_POST['not_spam'])) {
- $i = 0;
- foreach ($_POST['not_spam'] as $comment):
- $comment = (int) $comment;
- if ( function_exists('wp_set_comment_status') )
- wp_set_comment_status($comment, 'approve');
- else
- $wpdb->query("UPDATE $wpdb->comments SET comment_approved = '1' WHERE comment_ID = '$comment'");
- ksd_submit_nonspam_comment($comment);
- ++$i;
- endforeach;
- echo '<div class="updated"><p>' . sprintf(__('%1$s comments recovered.'), $i) . "</p></div>";
- }
- if ('delete' == $_POST['action']) {
- $delete_time = addslashes( $_POST['display_time'] );
- $nuked = $wpdb->query( "DELETE FROM $wpdb->comments WHERE comment_approved = 'spam' AND '$delete_time' > comment_date_gmt" );
- if (isset($nuked)) {
- echo '<div class="updated"><p>';
- if ($nuked) {
- _e('All spam deleted.');
- }
- echo "</p></div>";
- }
- }
- ?>
- <div class="wrap">
- <h2><?php _e('Caught Spam') ?></h2>
- <?php
- $count = get_option('akismet_spam_count');
- if ( $count ) {
- ?>
- <p><?php printf(__('Akismet has caught <strong>%1$s</strong> spam for you since you installed it.'), number_format($count) ); ?></p>
- <?php
- }
- $spam_count = ksd_spam_count();
- if (0 == $spam_count) {
- echo '<p>'.__('You have no spam currently in the queue. Must be your lucky day. :)').'</p>';
- echo '</div>';
- } else {
- echo '<p>'.__('You can delete all of the spam from your database with a single click. This operation cannot be undone, so you may wish to check to ensure that no legitimate comments got through first. Spam is automatically deleted after 15 days, so don’t sweat it.').'</p>';
- ?>
- <form method="post" action="">
- <input type="hidden" name="action" value="delete" />
- <?php printf(__('There are currently %1$s comments identified as spam.'), $spam_count); ?> <input type="submit" name="Submit" value="<?php _e('Delete all'); ?>" />
- <input type="hidden" name="display_time" value="<?php echo current_time('mysql', 1); ?>" />
- </form>
- </div>
- <div class="wrap">
- <h2><?php _e('Last 15 days'); ?></h2>
- <?php echo '<p>'.__('These are the latest comments identified as spam by Akismet. If you see any mistakes, simply mark the comment as "not spam" and Akismet will learn from the submission. If you wish to recover a comment from spam, simply select the comment, and click Not Spam. After 15 days we clean out the junk for you.').'</p>'; ?>
- <?php
- $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = 'spam' ORDER BY comment_date DESC LIMIT 150");
-
- if ($comments) {
- ?>
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
- <input type="hidden" name="action" value="recover" />
- <ol id="spam-list" class="commentlist">
- <?php
- $i = 0;
- foreach($comments as $comment) {
- $i++;
- $comment_date = mysql2date(get_settings("date_format") . " @ " . get_settings("time_format"), $comment->comment_date);
- $post = get_post($comment->comment_post_ID);
- $post_title = $post->post_title;
- if ($i % 2) $class = 'class="alternate"';
- else $class = '';
- echo "\n\t<li id='comment-$comment->comment_ID' $class>";
- ?>
- <p><strong><?php _e('Name:') ?></strong> <?php comment_author
| | |