William Jacoby bonelifer
-
phpBB
- Hot Springs, Arkansas
- Sign in to view email
- http://www.phpbb.com
View cleanup_nru.php
<?php | |
/** | |
* | |
* @package phpBB3 | |
* @author GerB https://github.com/GerB | |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License | |
* | |
*/ | |
/** |
View phpbb_mass_prune.php
phpbb user pruning tool fails to actually work at > 100 users to prune | |
even though it happily displays a form with about 30000 checkboxes and | |
usernames to choose. | |
Slightly modified - this script wants user_ids_to_delete.txt near it, | |
with numerical user ids, one id per line. | |
Bulk delete all users with 0 posts in prevoius revision | |
This needs a *lot* of memory (or swapfile) if you have a lot of users |
View toggle-tv-power off.sh
#!/usr/bin/env bash | |
iso8601_date () { | |
date +%Y-%m-%dT%H:%M:%S%z | |
} | |
turn_on () { | |
echo 'on 0' | cec-client -s -d 1 RPI | |
} |
View convert-avatars.php
<?php | |
/** | |
* Converts all phpBB 3.1 remote avatars to uploaded avatars. | |
* | |
* To use this script: | |
* | |
* 1. Copy this file into the root of your phpBB installation. | |
* 2. Run the script from the command line: php convert-avatars.php | |
* | |
* Any avatar will be skipped if any errors come up, like these: |
View [PHP] bitly_MakeShortLink()
// | |
// | |
/////////////////////////////////////////////////////////////////////// | |
// bitly_MakeShortLink() | |
// | |
// - Description: | |
// Use the bit.ly api to generate short URL | |
// | |
// - Usage: | |
// $ShortURL = bitly_MakeShortLink($url); |
View auto_subscribe_moderators.php
#!/usr/bin/php | |
<?php | |
/** | |
* This script subscribes all global moderators to all forums. | |
* Put this in your phpBB3 directory and do "chmod 0700 auto_subscribe_moderators.php" | |
* You can use crontab to run this script so your moderators stay subscribed! | |
*/ | |
// Path to the phpBB3 Config Script | |
require dirname(__FILE__).'/config.php'; |