@@ -215,7 +215,7 @@ |
||
215 | 215 | * |
216 | 216 | * @return array|false |
217 | 217 | */ |
218 | - protected static function & get_block_by_index ($index) { |
|
218 | + protected static function & get_block_by_index($index) { |
|
219 | 219 | foreach (Config::instance()->components['blocks'] as &$block) { |
220 | 220 | if ($block['index'] == $index) { |
221 | 221 | return $block; |
@@ -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(); |
@@ -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,30 +1,30 @@ |
||
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, |
24 | 24 | cs\Permission\Any; |
25 | 25 | /** |
26 | - * Class for groups manipulating |
|
27 | - */ |
|
26 | + * Class for groups manipulating |
|
27 | + */ |
|
28 | 28 | class Group { |
29 | 29 | use |
30 | 30 | CRUD_helpers, |
@@ -281,7 +281,7 @@ |
||
281 | 281 | $module_data['active'] == Config\Module_Properties::ENABLED; |
282 | 282 | } |
283 | 283 | ); |
284 | - $L = Language::instance(); |
|
284 | + $L = Language::instance(); |
|
285 | 285 | foreach ($modules as $module => &$localized_name) { |
286 | 286 | $localized_name = path($L->$module); |
287 | 287 | } |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015-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) 2015-2016, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | namespace cs; |
9 | 9 | /** |
10 | - * Provides next events: |
|
11 | - * System/Route/routing_replace |
|
12 | - * ['rc' => &$rc] //Reference to string with current route, this string can be changed |
|
13 | - */ |
|
10 | + * Provides next events: |
|
11 | + * System/Route/routing_replace |
|
12 | + * ['rc' => &$rc] //Reference to string with current route, this string can be changed |
|
13 | + */ |
|
14 | 14 | class Route { |
15 | 15 | use |
16 | 16 | Singleton; |
@@ -82,7 +82,7 @@ |
||
82 | 82 | * If match was not found - mirror is not allowed! |
83 | 83 | */ |
84 | 84 | if ($this->mirror_index === -1) { |
85 | - throw new ExitException("Mirror $Request->host not allowed", 400); |
|
85 | + throw new ExitException("mirror $Request->host not allowed", 400); |
|
86 | 86 | } |
87 | 87 | /** |
88 | 88 | * Remove trailing slashes |
@@ -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,32 +1,32 @@ |
||
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 | /** |
9 | - * Provides next events: |
|
10 | - * |
|
11 | - * System/Session/init/before |
|
12 | - * |
|
13 | - * System/Session/init/after |
|
14 | - * |
|
15 | - * System/Session/load |
|
16 | - * ['session_data' => $session_data] |
|
17 | - * |
|
18 | - * System/Session/add |
|
19 | - * ['session_data' => $session_data] |
|
20 | - * |
|
21 | - * System/Session/del/before |
|
22 | - * ['id' => $session_id] |
|
23 | - * |
|
24 | - * System/Session/del/after |
|
25 | - * ['id' => $session_id] |
|
26 | - * |
|
27 | - * System/Session/del_all |
|
28 | - * ['id' => $user_id] |
|
29 | - */ |
|
9 | + * Provides next events: |
|
10 | + * |
|
11 | + * System/Session/init/before |
|
12 | + * |
|
13 | + * System/Session/init/after |
|
14 | + * |
|
15 | + * System/Session/load |
|
16 | + * ['session_data' => $session_data] |
|
17 | + * |
|
18 | + * System/Session/add |
|
19 | + * ['session_data' => $session_data] |
|
20 | + * |
|
21 | + * System/Session/del/before |
|
22 | + * ['id' => $session_id] |
|
23 | + * |
|
24 | + * System/Session/del/after |
|
25 | + * ['id' => $session_id] |
|
26 | + * |
|
27 | + * System/Session/del_all |
|
28 | + * ['id' => $user_id] |
|
29 | + */ |
|
30 | 30 | namespace cs; |
31 | 31 | use |
32 | 32 | cs\Cache\Prefix; |
@@ -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 |