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 | |
/** | |
* POP3 authentication plugin for phpBB | |
* | |
* @package login | |
* @version $Id$ | |
* @copyright (c) 2005 phpBB Group | |
* @copyright (c) 2009 Chris Smith | |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License | |
* |
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 | |
/** | |
* Debug phpBB installation path detections | |
*/ | |
define('IN_PHPBB', true); | |
$phpEx = substr(strrchr(__FILE__, '.'), 1); | |
$phpbb_root_path = (strpos(__FILE__, 'adm/') !== false) ? './../' : './'; | |
include($phpbb_root_path . 'common.' . $phpEx); |
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 | |
/** | |
* @package phpBB | |
* @copyright (c) 2010 Chris Smith | |
* @license http://sam.zoy.org/wtfpl/COPYING | |
* This program is free software. It comes without any warranty, to | |
* the extent permitted by applicable law. You can redistribute it | |
* and/or modify it under the terms of the Do What The Fuck You Want | |
* To Public License, Version 2, as published by Sam Hocevar. See |
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
chris@kinslayer:~/projects/phpbb/phpbb3 (develop-olympus) $ php -r 'date_default_timezone_set("Asia/Tokyo"); var_dump(gmdate("c"), date("c", gmdate("U") - date("Z")));' | |
string(25) "2011-09-24T23:31:48+00:00" | |
string(25) "2011-09-24T23:31:48+09:00" | |
chris@kinslayer:~/projects/phpbb/phpbb3 (develop-olympus) $ php -r 'date_default_timezone_set("Pacific/Auckland"); var_dump(gmdate("c"), date("c", gmdate("U") - date("Z")));' | |
string(25) "2011-09-24T23:31:59+00:00" | |
string(25) "2011-09-24T22:31:59+12:00" |
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
Index: includes/functions_display.php | |
=================================================================== | |
--- includes/functions_display.php (revision 10325) | |
+++ includes/functions_display.php (working copy) | |
@@ -222,9 +222,24 @@ | |
$subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time']; | |
$subforums[$parent_id][$forum_id]['children'] = array(); | |
- if (isset($subforums[$parent_id][$row['parent_id']]) && !$row['display_on_index']) | |
+ // Only grab this data if we actually display subforums |
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 | |
/* | |
if ($a == true && $b == false && $a == $b) | |
{ | |
echo "Winning!\n"; | |
} | |
*/ | |
class TrueEqualsFalseTest extends PHPUnit_Framework_TestCase |
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
#!/bin/sh | |
# Find the mails you want to compress in a single maildir. | |
# | |
# Skip files that don't have ,S=<size> in the filename. | |
# | |
# Compress the mails to tmp/ | |
# | |
# Update the compressed files' mtimes to be the same as they were in the original files (e.g. touch command) | |
# |
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
{ | |
"monolog/monolog": { | |
"description": "Logging for PHP 5.3", | |
"maintainers": [ | |
{ | |
"email": "[email protected]", | |
"name": "Seldaek" | |
} | |
], | |
"name": "monolog/monolog", |
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 | |
class Foo | |
{ | |
public function __set($method, Closure $callback) { | |
$this->methods[$method] = $callback->bindTo($this, $this); | |
} | |
public function __call($method, $args) { | |
return call_user_func_array($this->methods[$method], $args); | |
} |
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
#!/bin/bash | |
DIR=$(mktemp -t -d composer.XXX) | |
# Change me if required | |
COMPOSER_BIN=${COMPOSER_BIN:-$(which composer)} | |
echo "Running test case in '$DIR' against $($COMPOSER_BIN --version)" | |
git init "$DIR/dependency" |