This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 Aggregator | |
1 Auth_remoteuser | |
1 Citation | |
1 Description | |
1 DisableSpecialPages | |
1 EnhanceContactForm | |
1 FootNote | |
1 FormPreloadPostCache | |
1 GlobalNotice | |
1 GoogleDocs4MW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SpecialTitleTargeted extends SpecialPage implements SpecialTitleTarget { | |
function executeWithTarget() { | |
$this->getOutput()->addHTML( htmlspecialchars( | |
$this->target()->getPrefixedText() ) ); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP Strict standards: Declaration of AB::output() should be compatible with that of A::output() in /tmp/tmp.php on line 18 | |
Strict standards: Declaration of AB::output() should be compatible with that of A::output() in /tmp/tmp.php on line 18 | |
PHP Strict standards: Declaration of BA::output() should be compatible with that of B::output() in /tmp/tmp.php on line 25 | |
Strict standards: Declaration of BA::output() should be compatible with that of B::output() in /tmp/tmp.php on line 25 | |
PHP Strict standards: Declaration of CA::output() should be compatible with that of C::output() in /tmp/tmp.php on line 35 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Allmessages lang -> $par (val -> wfGetLangObj) | |
Allpages $par -> from/to (val -> db:query:title) | |
Block wpTarget -> $par -> ip -> wpBlockAddress (text -> Block::parseTarget) | |
BlockList wpTarget -> ip -> $par (val -> Block::parseTarget -> db:query:ipb) | |
Categories from -> $par (text -> db:query:title:NS_CATEGORY) | |
Contributions $par -> target (val -> User/db:query:user) | |
DeletedContributions $par -> target (val -> Title:NS_USER/db:query:user) | |
EditWatchlist action -> $par (val -> mode) (@todo Scan for other special pages using an execute( $notCalledPar ); | |
Emailuser $par -> wpTarget -> target (val -> User; does some minor user verification) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[personal_links] | |
* user.*.* | |
[content_navigation] | |
* page.namespaces | |
* views: | |
** page.views.* | |
** page.actions.watch | |
** page.actions.unwatch | |
* page.actions | |
* related.variants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Implementation of HTML5 input event **/ | |
/*jQuery.support.inputEvent = false; | |
(function() { | |
var el = document.createElement("div"); | |
if ("oninput" in el) | |
jQuery.support.inputEvent = true; | |
if ( !jQuery.support.inputEvent ) { | |
el.setAttribute("oninput", "return;"); | |
if ( typeof el.oninput === "function" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function starts_with($haystack, $needle) { | |
return substr($haystack, 0, strlen($needle)) === $needle; | |
} | |
$domain = $_SERVER["HTTP_HOST"] ? $_SERVER["HTTP_HOST"] : $_SERVER["SERVER_NAME"]; | |
$base = "http://$domain"; | |
$draft = starts_with($domain, "draft."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- coding: UTF-8 -*- | |
// Dummy module names, not final. Ignore my JS1.8isms | |
var {Stream} = require('stream'); | |
var {Socket} = require('socket'); | |
var {StreamerHelper} = require('streamer-helper'); // You can ignore this one, just one of my personal ideas | |
var StreamHelpers = require('stream-helpers'); // Another thing you can ignore | |
var {BufferStream} = require('bufferstream'); // Another user-level | |
function MultipartStreamParser() { | |
this.boundary = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( isNaN(Date.parse("2000-01-01T00:00:00.000Z")) ) { | |
// This browser has not implemented parsing of ISO dates | |
(function(NativeDate) { | |
var Date = function(arg) { | |
if ( this instanceof Date || this instanceof NativeDate ) { | |
var d = isString(arg) ? | |
new NativeDate(Date.parse(arg)) : // We explicitly pass it through parse | |
// We have to manually make calls depending on argument length here | |
arguments.length >= 7 ? | |
new NativeDate(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]) : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Dummyware(app) { | |
return function(env) { | |
var r = app(env); | |
var istream = r.body; | |
var ostream = r.body = new MemoryStream(); | |
async(function chunked() { | |
if ( istream.canRead ) | |
ostream.write(istream.read(Infinity)); | |
if ( !istream.seenEOF ) | |
async(chunked); |