Skip to content

Instantly share code, notes, and snippets.

diff -u -u -r -w -B -x .svn -x '*.sql' -x 'nfs*' -x sf_error -x style 3.0.2/includes/acm/acm_file.php 3.0.2_2/includes/acm/acm_file.php
--- 3.0.2/includes/acm/acm_file.php 2008-09-02 09:47:26.000000000 -0700
+++ 3.0.2_2/includes/acm/acm_file.php 2008-09-09 12:06:52.000000000 -0700
@@ -89,7 +95,7 @@
if ($fp = @fopen($this->cache_dir . 'data_global.' . $phpEx, 'wb'))
{
@flock($fp, LOCK_EX);
- fwrite($fp, "<?php\n\$this->vars = " . var_export($this->vars, true) . ";\n\n\$this->var_expires = " . var_export($this->var_expires, true) . "\n?>");
+ fwrite($fp, "<?php\n\$this->vars = " . var_export($this->vars, true) . ";\n\n\$this->var_expires = " . var_export($this->var_expires, true) . ";\n\n\n?>");
@flock($fp, LOCK_UN);
<?php
header('Content-type: text/plain');
foreach (array('index', 'mcp', 'ucp', 'config', 'adm/index') as $file)
{
if (!file_exists("./$file.php"))
{
die(sprintf('Sure this is in your phpBB directory? "%s" is missing', $file));
}
<?php
/**
*
* @package acm
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
@cs278
cs278 / hook_trusted-users.php
Created March 15, 2009 17:50
phpBB Hook - Disables post queue for trusted users.
<?php
/**
* 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
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
@cs278
cs278 / hook_enable-debug-for-founders.php
Created April 5, 2009 14:49
phpBB Hook - Enables debug mode for founders.
<?php
/**
* 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
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
<?php
/**
*
* @package acm
* @version $Id$
* @copyright (c) 2005, 2009 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
@cs278
cs278 / is_serialized.php
Created October 23, 2009 18:25
PHP is_serialized() function.
<?php
/**
* 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
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
/**
@cs278
cs278 / hook_disable-admin-reauth.php
Created October 26, 2009 18:06
phpBB Hook - Disables admin reauthentication.
<?php
/**
* 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
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
@cs278
cs278 / cache-test.php
Created February 11, 2010 13:35
phpBB Cache Tester
<?php
/**
*
* @package phpBB3
* @version $Id$
* @copyright (c) 2009 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
<?php
/**
* phpBB authentication plugin to check multiple plugins
* Need to actually complete this
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))