This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Generate an encryption key for CodeIgniter. | |
* http://codeigniter.com/user_guide/libraries/encryption.html | |
*/ | |
// http://www.itnewb.com/v/Generating-Session-IDs-and-Random-Passwords-with-PHP | |
function generate_token ($len = 32) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(! defined('BASEPATH')) exit(); | |
class Browsercache | |
{ | |
private $ci; | |
function __construct() | |
{ | |
$this->ci =& get_instance(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!defined('BASEPATH')) | |
exit('No direct script access allowed'); | |
class Backup { | |
private $path; | |
private $default; | |
var $CI; | |
public function getPath() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* Base Admin Controller | |
* | |
*/ | |
class GRR_Admin_Controller extends CI_Controller | |
{ | |
/** | |
* Assets (JS/CSS) from the Controllers | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter Better Form Validation | |
* | |
* @package CodeIgniter | |
* @author Sepehr Lajevardi <me@sepehr.ws> | |
* @copyright Copyright (c) 2012 Sepehr Lajevardi. | |
* @license http://codeigniter.com/user_guide/license.html | |
* @link https://github.com/sepehr/ci-form-validation | |
* @version Version 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter Drupal-inspited Form API plus Bootstrap integration | |
* | |
* NOTE: This library does not provide utilities to protect forms | |
* against CSRF attacks. Make sure that you already turned CI's CSRF | |
* protection ON. | |
* | |
* @package CodeIgniter | |
* @author Sepehr Lajevardi <me@sepehr.ws> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
* statuses: | |
* 0 - banned | |
* 1 - member | |
* 2 - moderator | |
* 3 - admin | |
* | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
error_reporting(E_ALL); | |
if (count($argv) <= 1) { | |
print("usage createMockup src_dir dst_dir images_dir\n"); | |
print("\tsrc_dir : dir where all bmml file are\n"); | |
print("\tdst_dir : dir where write all html files\n"); | |
print("\timages_dir : dir where all export mockup png are (will be copied to the \$dst_dir/images directory)\n"); | |
exit(1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter | |
* | |
* An open source application development framework for PHP 4.3.2 or newer | |
* | |
* @package CodeIgniter | |
* @author Rick Ellis | |
* @copyright Copyright (c) 2006, EllisLab, Inc. | |
* @license http://www.codeignitor.com/user_guide/license.html |
OlderNewer