@@ -17,12 +17,12 @@ |
||
17 | 17 | } |
18 | 18 | $i=0; |
19 | 19 | foreach($filesInConfig as $config_file){ |
20 | - if($config_file === 'phpmig.php'){continue;} |
|
21 | - $file[$i] = include_once __APP_ROOT__.'config/'.$config_file; |
|
22 | - if(is_array($file[$i])){ |
|
23 | - $configs = array_merge($configs, $file[$i]); |
|
24 | - $i++; |
|
25 | - } |
|
20 | + if($config_file === 'phpmig.php'){continue;} |
|
21 | + $file[$i] = include_once __APP_ROOT__.'config/'.$config_file; |
|
22 | + if(is_array($file[$i])){ |
|
23 | + $configs = array_merge($configs, $file[$i]); |
|
24 | + $i++; |
|
25 | + } |
|
26 | 26 | |
27 | 27 | } |
28 | 28 |
@@ -63,10 +63,10 @@ |
||
63 | 63 | $_SESSION['user']['mobile'] = $user->mobile; |
64 | 64 | |
65 | 65 | |
66 | - setcookie('user', [ |
|
67 | - 'user_id'=>$user->id, |
|
68 | - 'mobile'=>$user->mobile, |
|
69 | - ], time() + (86400 * 30), "/"); // 86400 = 1 day *30 => 30 day |
|
66 | + setcookie('user', [ |
|
67 | + 'user_id'=>$user->id, |
|
68 | + 'mobile'=>$user->mobile, |
|
69 | + ], time() + (86400 * 30), "/"); // 86400 = 1 day *30 => 30 day |
|
70 | 70 | |
71 | 71 | |
72 | 72 | return [ |