@@ -9,7 +9,7 @@ |
||
9 | 9 | * Time of start of execution, is used as current time |
10 | 10 | */ |
11 | 11 | define('MICROTIME', microtime(true)); //In seconds (float) |
12 | -define('TIME', floor(MICROTIME)); //In seconds (integer) |
|
12 | +define('TIME', floor(MICROTIME)); //In seconds (integer) |
|
13 | 13 | //Root directory |
14 | 14 | defined('DIR') || define('DIR', realpath(__DIR__.'/..')); |
15 | 15 | defined('CORE') || define('CORE', DIR.'/core'); |
@@ -60,7 +60,7 @@ |
||
60 | 60 | if (!file_exists($path_in_filesystem) || is_writable($path_in_filesystem)) { |
61 | 61 | return (bool)file_put_contents($path_in_filesystem, $data, LOCK_EX | FILE_BINARY); |
62 | 62 | } |
63 | - trigger_error("File $path_in_filesystem not available for writing", E_USER_WARNING); |
|
63 | + trigger_error("file $path_in_filesystem not available for writing", E_USER_WARNING); |
|
64 | 64 | return false; |
65 | 65 | } |
66 | 66 | /** |
@@ -282,7 +282,7 @@ |
||
282 | 282 | * Checks for unconfirmed registrations and deletes expired |
283 | 283 | */ |
284 | 284 | protected function delete_unconfirmed_users () { |
285 | - $reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400; //1 day = 86400 seconds |
|
285 | + $reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400; //1 day = 86400 seconds |
|
286 | 286 | $ids = $this->db_prime()->qfas( |
287 | 287 | "SELECT `id` |
288 | 288 | FROM `[prefix]users` |
@@ -131,7 +131,7 @@ |
||
131 | 131 | if (!$item || $user == User::GUEST_ID) { |
132 | 132 | return false; |
133 | 133 | } |
134 | - $item = implode( |
|
134 | + $item = implode( |
|
135 | 135 | ',', |
136 | 136 | $this->db_prime()->s((array)$item) |
137 | 137 | ); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | 'title' => 'html', |
38 | 38 | 'description' => 'html' |
39 | 39 | ]; |
40 | - protected $table = '[prefix]groups'; |
|
40 | + protected $table = '[prefix]groups'; |
|
41 | 41 | /** |
42 | 42 | * @var Cache\Prefix |
43 | 43 | */ |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | 'storage' => 'json', |
82 | 82 | 'components' => 'json' |
83 | 83 | ]; |
84 | - protected $table = '[prefix]config'; |
|
84 | + protected $table = '[prefix]config'; |
|
85 | 85 | protected function cdb () { |
86 | 86 | return 0; |
87 | 87 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | return $multilingual_options; |
179 | 179 | } |
180 | 180 | ); |
181 | - $this->core = $multilingual_options + $this->core; |
|
181 | + $this->core = $multilingual_options + $this->core; |
|
182 | 182 | } |
183 | 183 | /** |
184 | 184 | * Get core options item |
@@ -62,7 +62,7 @@ |
||
62 | 62 | 'ip' => 'text', |
63 | 63 | 'data' => 'json' |
64 | 64 | ]; |
65 | - protected $table = '[prefix]sessions'; |
|
65 | + protected $table = '[prefix]sessions'; |
|
66 | 66 | /** |
67 | 67 | * Returns database index |
68 | 68 | * |
@@ -22,7 +22,7 @@ |
||
22 | 22 | 'group' => 'text', |
23 | 23 | 'label' => 'text' |
24 | 24 | ]; |
25 | - protected $table = '[prefix]permissions'; |
|
25 | + protected $table = '[prefix]permissions'; |
|
26 | 26 | /** |
27 | 27 | * Array of all permissions for quick selecting |
28 | 28 | * |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public function stream_read ($length) { |
53 | 53 | fseek($this->stream, $this->position); |
54 | - $bytes = fread($this->stream, $length); |
|
54 | + $bytes = fread($this->stream, $length); |
|
55 | 55 | $this->position += strlen($bytes); |
56 | 56 | return $bytes; |
57 | 57 | } |