@@ -262,7 +262,7 @@ |
||
| 262 | 262 | "$this->root/license.txt", |
| 263 | 263 | "$this->root/Storage.php" |
| 264 | 264 | ]; |
| 265 | - $files = []; |
|
| 265 | + $files = []; |
|
| 266 | 266 | foreach ($files_to_include as $s) { |
| 267 | 267 | if (is_file($s)) { |
| 268 | 268 | $files[] = $s; |
@@ -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 Prefix |
| 43 | 43 | */ |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | 'ip' => 'text', |
| 75 | 75 | 'data' => 'json' |
| 76 | 76 | ]; |
| 77 | - protected $table = '[prefix]sessions'; |
|
| 77 | + protected $table = '[prefix]sessions'; |
|
| 78 | 78 | protected function construct () { |
| 79 | 79 | $this->cache = new Prefix('sessions'); |
| 80 | 80 | $this->users_cache = new Prefix('users'); |
@@ -439,7 +439,7 @@ |
||
| 439 | 439 | if (!$user || !$item || $user == User::GUEST_ID) { |
| 440 | 440 | return false; |
| 441 | 441 | } |
| 442 | - $item = implode( |
|
| 442 | + $item = implode( |
|
| 443 | 443 | ',', |
| 444 | 444 | $this->db_prime()->s((array)$item) |
| 445 | 445 | ); |
@@ -269,7 +269,7 @@ |
||
| 269 | 269 | * Checks for unconfirmed registrations and deletes expired |
| 270 | 270 | */ |
| 271 | 271 | protected function delete_unconfirmed_users () { |
| 272 | - $reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400; //1 day = 86400 seconds |
|
| 272 | + $reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400; //1 day = 86400 seconds |
|
| 273 | 273 | $ids = $this->db_prime()->qfas( |
| 274 | 274 | [ |
| 275 | 275 | "SELECT `id` |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | 'group' => 'text', |
| 25 | 25 | 'label' => 'text' |
| 26 | 26 | ]; |
| 27 | - protected $table = '[prefix]permissions'; |
|
| 27 | + protected $table = '[prefix]permissions'; |
|
| 28 | 28 | /** |
| 29 | 29 | * Array of all permissions for quick selecting |
| 30 | 30 | * @var array |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | if (isset($_POST['site_url'])) { |
| 121 | 121 | $url = $_POST['site_url']; |
| 122 | 122 | } else { |
| 123 | - $https = @$_SERVER['HTTPS'] ? $_SERVER['HTTPS'] !== 'off' : ( |
|
| 123 | + $https = @$_SERVER['HTTPS'] ? $_SERVER['HTTPS'] !== 'off' : ( |
|
| 124 | 124 | @$_SERVER['REQUEST_SCHEME'] === 'https' || |
| 125 | 125 | @$_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' |
| 126 | 126 | ); |
@@ -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 | chdir(DIR); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | ) |
| 55 | 55 | ); |
| 56 | -$themes = array_values( |
|
| 56 | +$themes = array_values( |
|
| 57 | 57 | array_filter( |
| 58 | 58 | get_files_list(ROOT.'/themes', false, 'd'), |
| 59 | 59 | function ($theme) { |