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 / 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)
{
@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 / modission_reset_325.php
Last active Aug 29, 2019
phpBB 3.2.5 ONLY! - Delete Non-standard Modules and Permissions, and AutoMOD.
View modission_reset_325.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/modission_reset_325.php)
* and follow instructions.
*
* Version 3.0.4 by 3Di in 10-Feb-2019 for phpBB 3.2.5 - (Oyabun1 2015 for 3.1.x)
*
* This script is free software. It comes without any warranty.
* license http://opensource.org/licenses/GPL-2.0 GNU General Public License v2.
@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 / 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 / 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 / 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 / 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 / right_cookie.php
Created May 18, 2016
Right Cookie for phpBB all versions
View right_cookie.php
@3D-I
3D-I / maintenance503.php
Last active Sep 25, 2018
HTTP/1.1 503 header for sites maintenance, your site will be not indexed while doing maintenance or the likes.
View maintenance503.php
<?php
/**
* Usage:
* Download and unzip the file then RENAME it to index.php
* Into the code find "your site name goes here" and put your Board's/Site's name in there.
* SAVE this file.
*
* Rename your (i.e.: www.mydomain.com/phpBB3/index.php) to something else you like (as a backup)
* Upload THIS renamed file to your Board's root (i.e.: www.mydomain.com/phpBB3/)
* Point your browser to i.e.: www.mydomain.com/phpBB3/index.php), once finished delete this
You can’t perform that action at this time.