From 73c7884f164675fad274a4fdbfb2a1ac36d43247 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 15 Mar 2004 12:15:52 +0000 Subject: [PATCH] moved to the irc directory --- maintenance/rcdumper.php | 102 --------------------------------------- 1 file changed, 102 deletions(-) delete mode 100755 maintenance/rcdumper.php diff --git a/maintenance/rcdumper.php b/maintenance/rcdumper.php deleted file mode 100755 index 0ba026cd79..0000000000 --- a/maintenance/rcdumper.php +++ /dev/null @@ -1,102 +0,0 @@ -rc_timestamp; - -while (1) { - $res = wfQuery( "SELECT * FROM recentchanges WHERE rc_timestamp>'$oldTimestamp' ORDER BY rc_timestamp", DB_READ ); - $rowIndex = 0; - while ( $row = wfFetchObject( $res ) ) { - $ns = $wgLang->getNsText( $row->rc_namespace ) ; - if ( $ns ) { - $title = "$ns:{$row->rc_title}"; - } else { - $title = $row->rc_title; - } - /*if ( strlen( $row->rc_comment ) > 50 ) { - $comment = substr( $row->rc_comment, 0, 50 ); - } else {*/ - $comment = $row->rc_comment; -// } - $bad = array("\n", "\r"); - $empty = array("", ""); - $comment = str_replace($bad, $empty, $comment); - $title = str_replace($bad, $empty, $title); - $user = str_replace($bad, $empty, $row->rc_user_text); - $lastid = IntVal($row->rc_last_oldid); - $flag = ($row->rc_minor ? "M" : "") . ($row->rc_new ? "N" : ""); - if ( $row->rc_new ) { - $url = "http://$lang.wikipedia.org/wiki/" . urlencode($title); - } else { - $url = "http://$lang.wikipedia.org/w/wiki.phtml?title=" . urlencode($title) . - "&diff=0&oldid=$lastid"; - } - $boldTitle = $fmB . str_replace("_", " ", $title) . $fmB; - - if ( $patterns ) { - foreach ( $patterns as $pattern ) { - if ( preg_match( $pattern, $comment ) ) { - print chr(7); - break; - } - } - } - if ( $comment !== "" ) { - $comment = "($comment)"; - } - - $fullString = "$boldTitle $flag $url $user $comment\n"; - - if ( $fullString{0} == "/" ) { - $fullString = " $fullString"; - } - print( $fullString ); - $oldTimestamp = $row->rc_timestamp; - sleep(2); - } - sleep(5); -} - -exit(); - -?> -- 2.20.1