This file contains hidden or 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 | |
/** | |
* A simple PHP script for SEO to check multiple redirects. | |
* | |
* Just paste the list of URLs, one per line, in the $urls variable (copy and paste from Excel is fine) | |
* run the script and save the source code of the response as .tsv file. | |
* | |
* You can then import the .tsv in Excel. | |
*/ |
This file contains hidden or 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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
This file contains hidden or 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
new Simph_ErrorHandler(function ($e) { | |
while (ob_get_level()) { | |
ob_end_clean(); | |
} | |
ob_start(); | |
switch (get_class($e)) { | |
case 'Simph_Error404': | |
case 'Simph_Router_HttpException': |
This file contains hidden or 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 extend(parent, child, proto) { | |
if (child == null) { | |
child = function () { | |
parent.apply(this, arguments); | |
}; | |
} | |
child.prototype = new parent; | |
if (proto != null) { |