diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
commit | 7327499064ae165468c7440f8571c3e570b58a0b (patch) | |
tree | 4f0d0053e7d25f7064c63070edcbc3af114abed9 /system/libraries/Input.php | |
parent | 7539f67a23c8536f892263d8d7ab9448655d8e22 (diff) |
Added get_dir_file_info(), get_file_info(), and get_mime_by_extension() to the File Helper.
Changed ( ! condition) into (! condition) within the code
Diffstat (limited to 'system/libraries/Input.php')
-rw-r--r-- | system/libraries/Input.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/system/libraries/Input.php b/system/libraries/Input.php index 1c5682eb7..8a0478be2 100644 --- a/system/libraries/Input.php +++ b/system/libraries/Input.php @@ -76,9 +76,9 @@ class CI_Input { // This is effectively the same as register_globals = off
foreach (array($_GET, $_POST, $_COOKIE, $_SERVER, $_FILES, $_ENV, (isset($_SESSION) && is_array($_SESSION)) ? $_SESSION : array()) as $global)
{
- if ( ! is_array($global))
+ if (! is_array($global))
{
- if ( ! in_array($global, $protected))
+ if (! in_array($global, $protected))
{
unset($GLOBALS[$global]);
}
@@ -87,7 +87,7 @@ class CI_Input { {
foreach ($global as $key => $val)
{
- if ( ! in_array($key, $protected))
+ if (! in_array($key, $protected))
{
unset($GLOBALS[$key]);
}
@@ -96,7 +96,7 @@ class CI_Input { {
foreach($val as $k => $v)
{
- if ( ! in_array($k, $protected))
+ if (! in_array($k, $protected))
{
unset($GLOBALS[$k]);
}
@@ -198,7 +198,7 @@ class CI_Input { */
function _clean_input_keys($str)
{
- if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
+ if (! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
{
exit('Disallowed Key Characters.');
}
@@ -218,7 +218,7 @@ class CI_Input { */
function get($index = '', $xss_clean = FALSE)
{
- if ( ! isset($_GET[$index]))
+ if (! isset($_GET[$index]))
{
return FALSE;
}
@@ -253,7 +253,7 @@ class CI_Input { */
function post($index = '', $xss_clean = FALSE)
{
- if ( ! isset($_POST[$index]))
+ if (! isset($_POST[$index]))
{
return FALSE;
}
@@ -288,7 +288,7 @@ class CI_Input { */
function cookie($index = '', $xss_clean = FALSE)
{
- if ( ! isset($_COOKIE[$index]))
+ if (! isset($_COOKIE[$index]))
{
return FALSE;
}
@@ -328,7 +328,7 @@ class CI_Input { */
function server($index = '', $xss_clean = FALSE)
{
- if ( ! isset($_SERVER[$index]))
+ if (! isset($_SERVER[$index]))
{
return FALSE;
}
@@ -385,7 +385,7 @@ class CI_Input { $this->ip_address = end($x);
}
- if ( ! $this->valid_ip($this->ip_address))
+ if (! $this->valid_ip($this->ip_address))
{
$this->ip_address = '0.0.0.0';
}
@@ -447,7 +447,7 @@ class CI_Input { return $this->user_agent;
}
- $this->user_agent = ( ! isset($_SERVER['HTTP_USER_AGENT'])) ? FALSE : $_SERVER['HTTP_USER_AGENT'];
+ $this->user_agent = (! isset($_SERVER['HTTP_USER_AGENT'])) ? FALSE : $_SERVER['HTTP_USER_AGENT'];
return $this->user_agent;
}
|