-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0761ac
commit da83245
Showing
397 changed files
with
117,863 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
starter-public-edition-3 | ||
======================== | ||
|
||
A PHP application starter, based on CodeIgniter | ||
A PHP Application Starter, Based on CodeIgniter | ||
=============================================== |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
header('Location: ./www', TRUE, '301'); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
<IfModule !authz_core_module> | ||
Deny from all | ||
</IfModule> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
<IfModule !authz_core_module> | ||
Deny from all | ||
</IfModule> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
/** | ||
* UTF-8 string support for CodeIgniter based on Kohana's implementation. | ||
* @author Ivan Tcholakov <ivantcholakov@gmail.com>, 2013 (for this file) | ||
* @license The MIT License (for this file) | ||
* Code repository: https://github.com/ivantcholakov/codeigniter-utf8 | ||
* | ||
* See the file application/third_party/kohana/Kohana_UTF8.php for | ||
* technical requirements and license information. | ||
*/ | ||
|
||
if (!defined('SYSPATH')) { | ||
define('SYSPATH', COMMONPATH.'third_party/kohana/'); | ||
} | ||
|
||
if (!defined('EXT')) { | ||
define('EXT', '.php'); | ||
} | ||
|
||
if (!defined('ICONV_INSTALLED')) { | ||
define('ICONV_INSTALLED', function_exists('iconv')); | ||
} | ||
|
||
if (!defined('MBSTRING_INSTALLED')) { | ||
define('MBSTRING_INSTALLED', function_exists('mb_strlen')); | ||
} | ||
|
||
if (!class_exists('Kohana', false)) { | ||
class Kohana { public static $charset = 'UTF-8'; } | ||
} | ||
|
||
if (!class_exists('Kohana_UTF8', false)) { | ||
require SYSPATH.'Kohana_UTF8.php'; | ||
} | ||
|
||
class UTF8 extends Kohana_UTF8 { | ||
|
||
final private function __construct() {} | ||
final private function __clone() {} | ||
|
||
public static $aliases = array('UTF-8', 'WINDOWS-65001', 'CP65001', 'WIN-65001', 'WIN65001', '65001'); | ||
|
||
public static function encode($string, $from_encoding) { | ||
$from_encoding = strtoupper($from_encoding); | ||
if (in_array($from_encoding, self::$aliases)) { | ||
return $string; | ||
} | ||
if (ICONV_INSTALLED) { | ||
return @ (string) iconv($from_encoding, 'UTF-8', $string); | ||
} | ||
elseif (MBSTRING_INSTALLED) { | ||
return @ (string) mb_convert_encoding($string, 'UTF-8', $from_encoding); | ||
} | ||
return $string; | ||
} | ||
|
||
public static function decode($string, $to_encoding) { | ||
$to_encoding = strtoupper($to_encoding); | ||
if (in_array($to_encoding, self::$aliases)) { | ||
return $string; | ||
} | ||
if (ICONV_INSTALLED) { | ||
return @ (string) iconv('UTF-8', $to_encoding, $string); | ||
} | ||
elseif (MBSTRING_INSTALLED) { | ||
return @ (string) mb_convert_encoding($string, $to_encoding, 'UTF-8'); | ||
} | ||
} | ||
|
||
public static function is($string) { | ||
return preg_match('//u', $string); | ||
} | ||
|
||
public static function is_alias($encoding) { | ||
return in_array(strtoupper($encoding), self::$aliases); | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html> | ||
<head> | ||
<title>403 Forbidden</title> | ||
</head> | ||
<body> | ||
|
||
<p>Directory access is forbidden.</p> | ||
|
||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Asset Directory | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Absolute path from the webroot to your asset root, WITH a trailing slash: | ||
| | ||
| /assets/ | ||
| | ||
*/ | ||
|
||
$config['asset_dir'] = BASE_URI.'assets/'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Asset URL | ||
|-------------------------------------------------------------------------- | ||
| | ||
| URL to your asset root, WITH a trailing slash: | ||
| | ||
| http://example.com/assets/ | ||
| | ||
*/ | ||
|
||
$config['asset_url'] = BASE_URL.'assets/'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Theme Asset Directory | ||
|-------------------------------------------------------------------------- | ||
| | ||
*/ | ||
|
||
$config['theme_asset_dir'] = BASE_URI.'themes/'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Theme Asset URL | ||
|-------------------------------------------------------------------------- | ||
| | ||
*/ | ||
|
||
$config['theme_asset_url'] = BASE_URL.'themes/'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Asset Sub-folders | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Names for the img, js and css folders. Can be renamed to anything | ||
| | ||
| images js css | ||
| | ||
*/ | ||
$config['asset_img_dir'] = 'img'; | ||
$config['asset_js_dir'] = 'js'; | ||
$config['asset_css_dir'] = 'css'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Javascript Options | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Options for helping debugging javascripts, for testing purposes only. | ||
| | ||
*/ | ||
$config['load_javascripts_from_source'] = false; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Internet Explorer Support Options | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
$config['ie_min_supported_version'] = 6; // 6, 7, 8, 9, 10, ... | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Enable Loading Assets Depending on User Agent Detection | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
$config['load_assets_by_ua_detection'] = true; // or false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | ||
/** | ||
* CodeIgniter | ||
* | ||
* An open source application development framework for PHP 5.2.4 or newer | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* Licensed under the Academic Free License version 3.0 | ||
* | ||
* This source file is subject to the Academic Free License (AFL 3.0) that is | ||
* bundled with this package in the files license_afl.txt / license_afl.rst. | ||
* It is also available through the world wide web at this URL: | ||
* http://opensource.org/licenses/AFL-3.0 | ||
* If you did not receive a copy of the license and are unable to obtain it | ||
* through the world wide web, please send an email to | ||
* licensing@ellislab.com so we can send you a copy immediately. | ||
* | ||
* @package CodeIgniter | ||
* @author EllisLab Dev Team | ||
* @copyright Copyright (c) 2008 - 2013, EllisLab, Inc. (http://ellislab.com/) | ||
* @license http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0) | ||
* @link http://codeigniter.com | ||
* @since Version 1.0 | ||
* @filesource | ||
*/ | ||
/* | ||
| ------------------------------------------------------------------- | ||
| AUTO-LOADER | ||
| ------------------------------------------------------------------- | ||
| This file specifies which systems should be loaded by default. | ||
| | ||
| In order to keep the framework as light-weight as possible only the | ||
| absolute minimal resources are loaded by default. For example, | ||
| the database is not connected to automatically since no assumption | ||
| is made regarding whether you intend to use it. This file lets | ||
| you globally define which systems you would like loaded with every | ||
| request. | ||
| | ||
| ------------------------------------------------------------------- | ||
| Instructions | ||
| ------------------------------------------------------------------- | ||
| | ||
| These are the things you can load automatically: | ||
| | ||
| 1. Packages | ||
| 2. Libraries | ||
| 3. Drivers | ||
| 4. Helper files | ||
| 5. Custom config files | ||
| 6. Language files | ||
| 7. Models | ||
| | ||
*/ | ||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Packages | ||
| ------------------------------------------------------------------- | ||
| Prototype: | ||
| | ||
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared'); | ||
| | ||
*/ | ||
|
||
$autoload['packages'] = array(APPPATH.'third_party'); | ||
|
||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Libraries | ||
| ------------------------------------------------------------------- | ||
| These are the classes located in the system/libraries folder | ||
| or in your application/libraries folder. | ||
| | ||
| Prototype: | ||
| | ||
| $autoload['libraries'] = array('database', 'email', 'xmlrpc'); | ||
*/ | ||
|
||
$autoload['libraries'] = array( | ||
'session', // A temporary fix for extending CI_Session class. | ||
); | ||
|
||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Drivers | ||
| ------------------------------------------------------------------- | ||
| These classes are located in the system/libraries folder or in your | ||
| application/libraries folder within their own subdirectory. They | ||
| offer multiple interchangeable driver options. | ||
| | ||
| Prototype: | ||
| | ||
| $autoload['drivers'] = array('session', 'cache'); | ||
*/ | ||
|
||
$autoload['drivers'] = array( | ||
//'session', // A temporary fix for extending CI_Session class. | ||
); | ||
|
||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Helper Files | ||
| ------------------------------------------------------------------- | ||
| Prototype: | ||
| | ||
| $autoload['helper'] = array('url', 'file'); | ||
*/ | ||
|
||
$autoload['helper'] = array(); | ||
|
||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Config files | ||
| ------------------------------------------------------------------- | ||
| Prototype: | ||
| | ||
| $autoload['config'] = array('config1', 'config2'); | ||
| | ||
| NOTE: This item is intended for use ONLY if you have created custom | ||
| config files. Otherwise, leave it blank. | ||
| | ||
*/ | ||
|
||
$autoload['config'] = array(); | ||
|
||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Language files | ||
| ------------------------------------------------------------------- | ||
| Prototype: | ||
| | ||
| $autoload['language'] = array('lang1', 'lang2'); | ||
| | ||
| NOTE: Do not include the "_lang" part of your file. For example | ||
| "codeigniter_lang.php" would be referenced as array('codeigniter'); | ||
| | ||
*/ | ||
|
||
$autoload['language'] = array(); | ||
|
||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Models | ||
| ------------------------------------------------------------------- | ||
| Prototype: | ||
| | ||
| $autoload['model'] = array('first_model', 'second_model'); | ||
| | ||
| You can also supply an alternative model name to be assigned | ||
| in the controller: | ||
| | ||
| $autoload['model'] = array('first_model' => 'first'); | ||
*/ | ||
|
||
$autoload['model'] = array(); | ||
|
||
|
||
/* End of file autoload.php */ | ||
/* Location: ./application/config/autoload.php */ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Classes in PHP5 Way - A Location Map | ||
| An Example: | ||
| $autoload['classes'] = array( | ||
| 'PHPMailer' => APPPATH.'third_party/phpmailer/class.phpmailer.php', | ||
| ); | ||
| ------------------------------------------------------------------- | ||
*/ | ||
|
||
$autoload['classes'] = array(); |
Oops, something went wrong.