@@ -111,7 +111,7 @@ |
||
111 | 111 | 'value', |
112 | 112 | 'id' |
113 | 113 | ); |
114 | - $data['users'] = array_column( |
|
114 | + $data['users'] = array_column( |
|
115 | 115 | $User->db()->qfa( |
116 | 116 | [ |
117 | 117 | "SELECT |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @subpackage System module |
|
5 | - * @category modules |
|
6 | - * @author Nazar Mokrynskyi <[email protected]> |
|
7 | - * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi |
|
8 | - * @license MIT License, see license.txt |
|
9 | - */ |
|
3 | + * @package CleverStyle CMS |
|
4 | + * @subpackage System module |
|
5 | + * @category modules |
|
6 | + * @author Nazar Mokrynskyi <[email protected]> |
|
7 | + * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi |
|
8 | + * @license MIT License, see license.txt |
|
9 | + */ |
|
10 | 10 | namespace cs; |
11 | 11 | |
12 | 12 | $Config = Config::instance(); |
@@ -140,7 +140,7 @@ |
||
140 | 140 | // Disable all versions except RFC6455, which is supported by all modern browsers |
141 | 141 | $ws_server->disableVersion(0); |
142 | 142 | $ws_server->disableVersion(6); |
143 | - $this->io_server = IoServer::factory( |
|
143 | + $this->io_server = IoServer::factory( |
|
144 | 144 | new HttpServer($ws_server), |
145 | 145 | $this->listen_port, |
146 | 146 | $this->listen_locally |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package WebSockets |
|
4 | - * @category modules |
|
5 | - * @author Nazar Mokrynskyi <[email protected]> |
|
6 | - * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi |
|
7 | - * @license MIT License, see license.txt |
|
8 | - */ |
|
3 | + * @package WebSockets |
|
4 | + * @category modules |
|
5 | + * @author Nazar Mokrynskyi <[email protected]> |
|
6 | + * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi |
|
7 | + * @license MIT License, see license.txt |
|
8 | + */ |
|
9 | 9 | namespace cs\modules\WebSockets; |
10 | 10 | use |
11 | 11 | cs\_SERVER, |
@@ -10,8 +10,8 @@ |
||
10 | 10 | namespace cs\plugins\SimpleImage; |
11 | 11 | require_once __DIR__.'/abeautifulsite/SimpleImage.php'; |
12 | 12 | /** |
13 | - * Class SimpleImage |
|
14 | - * This class makes image manipulation in PHP as simple as possible. |
|
15 | - * @package SimpleImage |
|
16 | - */ |
|
13 | + * Class SimpleImage |
|
14 | + * This class makes image manipulation in PHP as simple as possible. |
|
15 | + * @package SimpleImage |
|
16 | + */ |
|
17 | 17 | class SimpleImage extends \abeautifulsite\SimpleImage {} |
@@ -5,5 +5,5 @@ |
||
5 | 5 | * @copyright Copyright (c) 2011-2015, Nazar Mokrynskyi |
6 | 6 | * @license MIT License, see license.txt |
7 | 7 | */ |
8 | -define('DEBUG', false); |
|
9 | -define('XHTML_TAGS_STYLE', false); |
|
8 | +define('DEBUG', false); |
|
9 | +define('XHTML_TAGS_STYLE', false); |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
6 | - * @license MIT License, see license.txt |
|
7 | - */ |
|
3 | + * @package CleverStyle CMS |
|
4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
5 | + * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | namespace cs; |
9 | 9 | use |
10 | 10 | h, |
@@ -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 | */ |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi |
|
6 | - * @license MIT License, see license.txt |
|
7 | - */ |
|
3 | + * @package CleverStyle CMS |
|
4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
5 | + * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | /** |
9 | - * Provides next events:<br> |
|
10 | - * |
|
11 | - * System/User/Group/add |
|
12 | - * ['id' => <i>group_id</i>] |
|
13 | - * |
|
14 | - * System/User/Group/del/before |
|
15 | - * ['id' => <i>group_id</i>] |
|
16 | - * |
|
17 | - * System/User/Group/del/after |
|
18 | - * ['id' => <i>group_id</i>] |
|
19 | - * |
|
20 | - */ |
|
9 | + * Provides next events:<br> |
|
10 | + * |
|
11 | + * System/User/Group/add |
|
12 | + * ['id' => <i>group_id</i>] |
|
13 | + * |
|
14 | + * System/User/Group/del/before |
|
15 | + * ['id' => <i>group_id</i>] |
|
16 | + * |
|
17 | + * System/User/Group/del/after |
|
18 | + * ['id' => <i>group_id</i>] |
|
19 | + * |
|
20 | + */ |
|
21 | 21 | namespace cs; |
22 | 22 | use |
23 | 23 | cs\Cache\Prefix, |
@@ -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'); |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
6 | - * @license MIT License, see license.txt |
|
7 | - */ |
|
3 | + * @package CleverStyle CMS |
|
4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
5 | + * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | namespace cs\User; |
9 | 9 | use |
10 | 10 | cs\Config, |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * @param int $user |
38 | 38 | */ |
39 | 39 | function __construct ($user) { |
40 | - $this->id = $user; |
|
40 | + $this->id = $user; |
|
41 | 41 | } |
42 | 42 | /** |
43 | 43 | * Get data item of user |
@@ -1,31 +1,31 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
6 | - * @license MIT License, see license.txt |
|
7 | - */ |
|
3 | + * @package CleverStyle CMS |
|
4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
5 | + * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | namespace cs\User; |
9 | 9 | use cs\User; |
10 | 10 | /** |
11 | - * Class for getting of user information |
|
12 | - * |
|
13 | - * @property int $id |
|
14 | - * @property string $login |
|
15 | - * @property string $login_hash sha224 hash |
|
16 | - * @property string $username |
|
17 | - * @property string $password_hash sha512 hash |
|
18 | - * @property string $email |
|
19 | - * @property string $email_hash sha224 hash |
|
20 | - * @property string $language |
|
21 | - * @property string $timezone |
|
22 | - * @property int $reg_date unix timestamp |
|
23 | - * @property string $reg_ip hex value, obtained by function ip2hex() |
|
24 | - * @property string $reg_key random md5 hash, generated during registration |
|
25 | - * @property int $status '-1' - not activated (for example after registration), 0 - inactive, 1 - active |
|
26 | - * @property int $block_until unix timestamp |
|
27 | - * @property string $avatar |
|
28 | - */ |
|
11 | + * Class for getting of user information |
|
12 | + * |
|
13 | + * @property int $id |
|
14 | + * @property string $login |
|
15 | + * @property string $login_hash sha224 hash |
|
16 | + * @property string $username |
|
17 | + * @property string $password_hash sha512 hash |
|
18 | + * @property string $email |
|
19 | + * @property string $email_hash sha224 hash |
|
20 | + * @property string $language |
|
21 | + * @property string $timezone |
|
22 | + * @property int $reg_date unix timestamp |
|
23 | + * @property string $reg_ip hex value, obtained by function ip2hex() |
|
24 | + * @property string $reg_key random md5 hash, generated during registration |
|
25 | + * @property int $status '-1' - not activated (for example after registration), 0 - inactive, 1 - active |
|
26 | + * @property int $block_until unix timestamp |
|
27 | + * @property string $avatar |
|
28 | + */ |
|
29 | 29 | class Properties { |
30 | 30 | /** |
31 | 31 | * @var int |
@@ -71,7 +71,7 @@ |
||
71 | 71 | if (!file_exists($path_in_filesystem) || is_writable($path_in_filesystem)) { |
72 | 72 | return file_put_contents($path_in_filesystem, $data, LOCK_EX | FILE_BINARY); |
73 | 73 | } |
74 | - trigger_error("File $path_in_filesystem not available for writing", E_USER_WARNING); |
|
74 | + trigger_error("file $path_in_filesystem not available for writing", E_USER_WARNING); |
|
75 | 75 | return false; |
76 | 76 | } |
77 | 77 | /** |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
6 | - * @license MIT License, see license.txt |
|
7 | - */ |
|
3 | + * @package CleverStyle CMS |
|
4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
5 | + * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | namespace cs\Cache; |
9 | 9 | /** |
10 | - * Provides cache functionality based on file system structure. |
|
11 | - */ |
|
10 | + * Provides cache functionality based on file system structure. |
|
11 | + */ |
|
12 | 12 | class FileSystem extends _Abstract { |
13 | 13 | /** |
14 | 14 | * Like realpath() but works even if files does not exists |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * @license MIT License, see license.txt |
7 | 7 | */ |
8 | 8 | namespace cs; |
9 | -require __DIR__.'/loader_base.php'; //Inclusion of loader base |
|
9 | +require __DIR__.'/loader_base.php'; //Inclusion of loader base |
|
10 | 10 | require __DIR__.'/functions_global.php'; //Inclusion of functions that work with global state |
11 | 11 | /** |
12 | 12 | * Wrapper around default `$_SERVER` superglobal |
@@ -1,20 +1,20 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
6 | - * @license MIT License, see license.txt |
|
7 | - */ |
|
3 | + * @package CleverStyle CMS |
|
4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
5 | + * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | namespace cs; |
9 | 9 | require __DIR__.'/loader_base.php'; //Inclusion of loader base |
10 | 10 | require __DIR__.'/functions_global.php'; //Inclusion of functions that work with global state |
11 | 11 | /** |
12 | - * Wrapper around default `$_SERVER` superglobal |
|
13 | - */ |
|
12 | + * Wrapper around default `$_SERVER` superglobal |
|
13 | + */ |
|
14 | 14 | $_SERVER = new _SERVER($_SERVER); |
15 | 15 | /** |
16 | - * Including of custom files |
|
17 | - */ |
|
16 | + * Including of custom files |
|
17 | + */ |
|
18 | 18 | foreach (glob(CUSTOM.'/*.php') ?: [] as $custom) { |
19 | 19 | include $custom; |
20 | 20 | } |