Update to CodeIgniter 2.1.0

This commit is contained in:
Karsten Heiken
2011-12-04 14:24:27 +01:00
parent fde35df5bd
commit 79c236dc49
149 changed files with 4384 additions and 590 deletions

0
system/helpers/array_helper.php Executable file → Normal file
View File

0
system/helpers/captcha_helper.php Executable file → Normal file
View File

0
system/helpers/cookie_helper.php Executable file → Normal file
View File

2
system/helpers/date_helper.php Executable file → Normal file
View File

@@ -116,7 +116,7 @@ if ( ! function_exists('standard_date'))
'DATE_COOKIE' => '%l, %d-%M-%y %H:%i:%s UTC',
'DATE_ISO8601' => '%Y-%m-%dT%H:%i:%s%Q',
'DATE_RFC822' => '%D, %d %M %y %H:%i:%s %O',
'DATE_RFC850' => '%l, %d-%M-%y %H:%m:%i UTC',
'DATE_RFC850' => '%l, %d-%M-%y %H:%i:%s UTC',
'DATE_RFC1036' => '%D, %d %M %y %H:%i:%s %O',
'DATE_RFC1123' => '%D, %d %M %Y %H:%i:%s %O',
'DATE_RSS' => '%D, %d %M %Y %H:%i:%s %O',

0
system/helpers/directory_helper.php Executable file → Normal file
View File

0
system/helpers/download_helper.php Executable file → Normal file
View File

0
system/helpers/email_helper.php Executable file → Normal file
View File

0
system/helpers/file_helper.php Executable file → Normal file
View File

8
system/helpers/form_helper.php Executable file → Normal file
View File

@@ -64,8 +64,8 @@ if ( ! function_exists('form_open'))
$form .= '>';
// CSRF
if ($CI->config->item('csrf_protection') === TRUE)
// Add CSRF field if enabled, but leave it out for GET requests and requests to external websites
if ($CI->config->item('csrf_protection') === TRUE AND ! (strpos($action, $CI->config->site_url()) === FALSE OR strpos($form, 'method="get"')))
{
$hidden[$CI->security->get_csrf_token_name()] = $CI->security->get_csrf_hash();
}
@@ -94,7 +94,7 @@ if ( ! function_exists('form_open'))
*/
if ( ! function_exists('form_open_multipart'))
{
function form_open_multipart($action, $attributes = array(), $hidden = array())
function form_open_multipart($action = '', $attributes = array(), $hidden = array())
{
if (is_string($attributes))
{
@@ -249,7 +249,7 @@ if ( ! function_exists('form_textarea'))
{
function form_textarea($data = '', $value = '', $extra = '')
{
$defaults = array('name' => (( ! is_array($data)) ? $data : ''), 'cols' => '90', 'rows' => '12');
$defaults = array('name' => (( ! is_array($data)) ? $data : ''), 'cols' => '40', 'rows' => '10');
if ( ! is_array($data) OR ! isset($data['value']))
{

0
system/helpers/html_helper.php Executable file → Normal file
View File

0
system/helpers/index.html Executable file → Normal file
View File

0
system/helpers/inflector_helper.php Executable file → Normal file
View File

0
system/helpers/language_helper.php Executable file → Normal file
View File

0
system/helpers/number_helper.php Executable file → Normal file
View File

0
system/helpers/path_helper.php Executable file → Normal file
View File

0
system/helpers/security_helper.php Executable file → Normal file
View File

0
system/helpers/smiley_helper.php Executable file → Normal file
View File

17
system/helpers/string_helper.php Executable file → Normal file
View File

@@ -242,6 +242,23 @@ if ( ! function_exists('random_string'))
// ------------------------------------------------------------------------
/**
* Add's _1 to a string or increment the ending number to allow _2, _3, etc
*
* @param string $str required
* @param string $separator What should the duplicate number be appended with
* @param string $first Which number should be used for the first dupe increment
* @return string
*/
function increment_string($str, $separator = '_', $first = 1)
{
preg_match('/(.+)'.$separator.'([0-9]+)$/', $str, $match);
return isset($match[2]) ? $match[1].$separator.($match[2] + 1) : $str.$separator.$first;
}
// ------------------------------------------------------------------------
/**
* Alternator
*

0
system/helpers/text_helper.php Executable file → Normal file
View File

0
system/helpers/typography_helper.php Executable file → Normal file
View File

0
system/helpers/url_helper.php Executable file → Normal file
View File

0
system/helpers/xml_helper.php Executable file → Normal file
View File