Skip to content

Instantly share code, notes, and snippets.

💭
😜 Buried by a certain volume of code 🤓

3Di 3D-I

💭
😜 Buried by a certain volume of code 🤓
Block or report user

Report or block 3D-I

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@3D-I
3D-I / sos_admin30.php
Created May 8, 2016
For phpBB 3.0.x - Gives a SOS admin account in order to fix some things.
View sos_admin30.php
<?php
/**
* Usage: --> make sure you have a backup of your Database before to run this tool!
* Download and/or unzip the file, upload it to your Board's root (i.e.: www.mydomain.com/phpBB3/)
* Point your browser to i.e.: www.mydomain.com/phpBB3/sos_admin30.php), it auto-destroys itself once ran.
*
* This file will create an admin user named Admin1 with a password of admin. From that point you should be
* able to get into the ACP.
* As soon as you have done this, use the temporary admin account to change the details on the original admin
* account, then delete the temporary account.
@3D-I
3D-I / right_cookie.php
Created May 18, 2016
Right Cookie for phpBB all versions
View right_cookie.php
@3D-I
3D-I / reparse_bbcodes.php
Created Apr 13, 2016 — forked from Elsensee/reparse_bbcodes.php
Copied from STK for Olympus and customized to work on Ascraeus (phpBB 3.1). For me it works. Tell me if it works for you too. (Please be logged in as administrator if you call it)
View reparse_bbcodes.php
<?php
/**
*
* @package Support Toolkit - Reparse BBCode
* @version $Id$
* @copyright (c) 2009 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
@3D-I
3D-I / ipcfcurl.php
Created Jul 3, 2016
Used to debug IPCF cURL - 1.0.0-dev-v0002
View ipcfcurl.php
<?php
/**
* Usage: Download and unzip the file, upload it to your Board's root (i.e.: www.mydomain.com/phpBB3/)
* Point your browser to i.e.: www.mydomain.com/phpBB3/ipcfcurl.php - results will be on your screen
* @package - IPCF tests
* @copyright (c) 2016 3Di (Marco T.) 01-jul-2016
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*/
@3D-I
3D-I / core.php
Created Nov 9, 2016 — forked from cYbercOsmOnauT/core.php
The url params are cleaned by the order they are in the request This gets rid of unneeded 301 redirects
View core.php
public function expected_url($path = '')
{
$path = empty($path) ? $this->phpbb_root_path : $path;
$params = array();
// Check the params by the order they are in the request
foreach($this->request->variable_names(\phpbb\request\request_interface::GET) AS $get) {
$def = $this->seo_opt['zero_dupe']['redir_def'][$get];
if (($this->request->is_set($get, \phpbb\request\request_interface::GET) && $def['keep']) || !empty($def['force']))
{
@3D-I
3D-I / restore_ext_ext_groups.sql
Last active Dec 18, 2016
phpBB 3.1.10 - restore EXTENSIONS and EXTENSION_GROUPS TABLEs to Vanilla
View restore_ext_ext_groups.sql
TRUNCATE TABLE phpbb_extension_groups;
INSERT INTO phpbb_extension_groups (group_id, group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, allowed_forums, allow_in_pm) VALUES
(1, 'IMAGES', 1, 1, 1, '', 0, '', 0),
(2, 'ARCHIVES', 0, 1, 1, '', 0, '', 0),
(3, 'PLAIN_TEXT', 0, 0, 1, '', 0, '', 0),
(4, 'DOCUMENTS', 0, 0, 1, '', 0, '', 0),
(5, 'REAL_MEDIA', 3, 0, 1, '', 0, '', 0),
(6, 'WINDOWS_MEDIA', 2, 0, 1, '', 0, '', 0),
(7, 'FLASH_FILES', 5, 0, 1, '', 0, '', 0),
(8, 'QUICKTIME_MEDIA', 6, 0, 1, '', 0, '', 0),
@3D-I
3D-I / fix_cookie_notice_320.php
Created Jan 9, 2017
phpBB 3.2.0 Gold - Fix the cookie_notice missing DB config, making it enabeable in ACP. - Self destroys once ran.
View fix_cookie_notice_320.php
@3D-I
3D-I / ipcfreal.php
Last active Jan 17, 2017
IPCF tests for 3.1/3.2 - Check wheter the host is masking IPs with HTTP_X_FORWARDED_FOR - Check CloudFlare,
View ipcfreal.php
<?php
/**
* Usage: Download and unzip the file, upload/save it to your Board's root
* (i.e.: www.mydomain.com/phpBB3/ipcfreal.php)
* Point your browser to i.e.: www.mydomain.com/phpBB3/ipcfipreal.php - results will be on your screen
* @package - IPCF tests / IP Real
* @copyright (c) 2016, 2017 3Di
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*/
@3D-I
3D-I / ipcfcurlfree.php
Created Jan 18, 2017
IPCF tests - IP lookup service: freegeoip.net and CURL
View ipcfcurlfree.php
<?php
/**
* Usage: Download and unzip the file, upload it to your Board's root (i.e.: www.mydomain.com/phpBB3/)
* Point your browser to i.e.: www.mydomain.com/phpBB3/ipcfcurlfree.php - results will be on your screen
* @package - IPCF tests - IP lookup service: freegeoip.net
* @copyright (c) 2017 3Di (Marco T.) 17-jan-2017
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*/
@3D-I
3D-I / db_tools_service_replacement.php
Created Feb 4, 2017
phpbb/db/tools service replacement- phpBB 3.1
View db_tools_service_replacement.php
<?php
/* Your extension namespace here */
namespace my_vendor\my_awesome_extension_name;
/* Your filename (w/extension) for this class here */
class db_tools_service_replacement extends \phpbb\db\tools
{
public function __construct(\phpbb\db\driver\driver_interface $db, $return_statements = false)
{
You can’t perform that action at this time.