summaryrefslogtreecommitdiffstats
path: root/system/plugins/captcha_pi.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/plugins/captcha_pi.php')
-rw-r--r--system/plugins/captcha_pi.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/system/plugins/captcha_pi.php b/system/plugins/captcha_pi.php
index ec45309e5..df95788ee 100644
--- a/system/plugins/captcha_pi.php
+++ b/system/plugins/captcha_pi.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -157,16 +157,16 @@ function create_captcha($data = '', $img_path = '', $img_url = '', $font_path =
foreach ($defaults as $key => $val)
{
- if (! is_array($data))
+ if ( ! is_array($data))
{
- if (! isset($$key) OR $$key == '')
+ if ( ! isset($$key) OR $$key == '')
{
$$key = $val;
}
}
else
{
- $$key = (! isset($data[$key])) ? $val : $data[$key];
+ $$key = ( ! isset($data[$key])) ? $val : $data[$key];
}
}
@@ -175,17 +175,17 @@ function create_captcha($data = '', $img_path = '', $img_url = '', $font_path =
return FALSE;
}
- if (! @is_dir($img_path))
+ if ( ! @is_dir($img_path))
{
return FALSE;
}
- if (! is_really_writable($img_path))
+ if ( ! is_really_writable($img_path))
{
return FALSE;
}
- if (! extension_loaded('gd'))
+ if ( ! extension_loaded('gd'))
{
return FALSE;
}
@@ -351,6 +351,6 @@ function create_captcha($data = '', $img_path = '', $img_url = '', $font_path =
return array('word' => $word, 'time' => $now, 'image' => $img);
}
-
-/* End of file captcha_pi.php */
+
+/* End of file captcha_pi.php */
/* Location: ./system/plugins/captcha_pi.php */ \ No newline at end of file