|
@@ -188,9 +188,9 @@ class Common extends CI_Controller {
|
|
|
|
|
|
$this->load->helper('captcha');
|
|
|
|
|
|
- if (!file_exists('../upload')) mkdir('../upload');
|
|
|
- if (!file_exists('../upload/image')) mkdir('../upload/image');
|
|
|
- if (!file_exists('../upload/image/code')) mkdir('../upload/image/code');
|
|
|
+ if (!file_exists('../upload')) mkdir('../upload/');
|
|
|
+ if (!file_exists('../upload/image')) mkdir('../upload/image/');
|
|
|
+ if (!file_exists('../upload/image/code')) mkdir('../upload/image/code/');
|
|
|
$url = '/upload/image/code';
|
|
|
$code = rand(1000,9999);
|
|
|
$vals = array(
|