Skip to content

Instantly share code, notes, and snippets.

View intuxicated's full-sized avatar

Daniel Niknam intuxicated

View GitHub Profile
@intuxicated
intuxicated / .htaccess
Created October 5, 2012 02:59
phpthumb htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ /path/to/phpThumb.php?src=../wallpapers/$1&w=200&h=355&aoe=1&q=99&zc=1
</IfModule>
@intuxicated
intuxicated / BootstrapPaginationController.php
Last active October 16, 2019 05:45
Bootstrap pagination config for CodeIgniter
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MyController extends CI_Controller {
function MyFunction($page = 0){
$this->config->load('bootstrap_pagination');
$config = $this->config->item('pagination');
$config['base_url'] = base_url('my_uri');
@intuxicated
intuxicated / CallbackValidator.php
Created September 15, 2012 21:35
silex validator callback without object
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/