Skip to content

Instantly share code, notes, and snippets.

View erikfrerejean's full-sized avatar
:octocat:

Erik Frèrejean erikfrerejean

:octocat:
View GitHub Profile
<!-- INCLUDE overall_header.html -->
<h1>{L_FOE_FRIEND_LIST}</h1>
<p>{L_FOE_FRIEND_LIST_EXPLAIN}</p>
<!-- BEGIN foefriendblock -->
<h2>{foefriendblock.L_MODE_CNT}</h2>
<ul id="{foefriendblock.L_MODE}-list">
<!-- BEGIN foefriendrow -->
<?php
/**
*
* @package phpBB3
* @copyright (c) 2010 Erik Frèrejean
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
<?php
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
function jqdropdown_init(&$hook)
stk/common
stk/index
stk/develop/bbcode_reclean
stk/develop/db_cleaner
stk/develop/generate_bom_sniffer_whitelist
stk/includes/critical_repair
stk/includes/functions
stk/includes/plugin
stk/includes/umil
stk/includes/database_cleaner/database_cleaner_controller
<?php
function hook_tabitha(&$hook)
{
global $db, $template, $user;
if (empty($template->_tpldata['postrow']))
{
return;
}
<?php
class controller
{
private $container = null;
public function __construct()
{
$this->container = new container();
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
@erikfrerejean
erikfrerejean / Questions
Created September 14, 2011 13:04
GOTO Amsterdam
Day job: Student Technical Computing / (spare time) Freelance PHP developer
What is your language of choice: PHP
Open Source contributions: Support Team member phpBB / Developer of the phpBB "Support Toolkit"
How do you use GitHub: Providing patches for phpBB, as well the development of the "Support Toolkit" is hosted on GitHub. Further more some development of some personal projects.
@erikfrerejean
erikfrerejean / gist:1669519
Created January 24, 2012 10:31
Parse "salted" URL from a responce
<?php
// Some setup
$pageToScan = 'http://try-phpbb.com/30x';
$stringInATag = 'Register';
// Create the stream and fetch the page
$context = stream_context_create(array(
'http' => array(
'method' => 'GET'
<?php
function dirToArray($path, $dir = '')
{
$path = (!empty($path)) ? rtrim($path, '/') . '/' : $path;
$dir = (!empty($dir)) ? rtrim($dir, '/') . '/' : $dir;
$path = $path . $dir;
$list = array();
$d = dir($path);