@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2014-2015, Nazar Mokrynskyi |
|
6 | - * @license MIT License, see license.txt |
|
7 | - */ |
|
3 | + * @package CleverStyle CMS |
|
4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
5 | + * @copyright Copyright (c) 2014-2015, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | namespace cs\Page; |
9 | 9 | use |
10 | 10 | cs\Config, |
@@ -1,19 +1,19 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2013-2015, 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-2015, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | namespace cs; |
9 | 9 | use |
10 | 10 | cs\Cache\Prefix, |
11 | 11 | cs\DB\Accessor; |
12 | 12 | /** |
13 | - * Class for permissions manipulating |
|
14 | - * |
|
15 | - * @method static Permission instance($check = false) |
|
16 | - */ |
|
13 | + * Class for permissions manipulating |
|
14 | + * |
|
15 | + * @method static Permission instance($check = false) |
|
16 | + */ |
|
17 | 17 | class Permission { |
18 | 18 | use |
19 | 19 | Accessor, |
@@ -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 | } |
@@ -89,7 +89,7 @@ |
||
89 | 89 | * If match was not found - mirror is not allowed! |
90 | 90 | */ |
91 | 91 | if ($this->mirror_index === -1) { |
92 | - trigger_error("Mirror $_SERVER->host not allowed", E_USER_ERROR); |
|
92 | + trigger_error("mirror $_SERVER->host not allowed", E_USER_ERROR); |
|
93 | 93 | throw new ExitException(400); |
94 | 94 | } |
95 | 95 | /** |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015, 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, 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 | - * |
|
14 | - * @method static Route instance($check = false) |
|
15 | - */ |
|
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 | + * @method static Route instance($check = false) |
|
15 | + */ |
|
16 | 16 | class Route { |
17 | 17 | use |
18 | 18 | Singleton; |
@@ -1,40 +1,40 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2011-2015, 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-2015, 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; |
33 | 33 | /** |
34 | - * Class responsible for current user session |
|
35 | - * |
|
36 | - * @method static Session instance($check = false) |
|
37 | - */ |
|
34 | + * Class responsible for current user session |
|
35 | + * |
|
36 | + * @method static Session instance($check = false) |
|
37 | + */ |
|
38 | 38 | class Session { |
39 | 39 | use |
40 | 40 | CRUD, |
@@ -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-2015, 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-2015, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | namespace cs; |
9 | 9 | |
10 | 10 | /** |
@@ -1,43 +1,43 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2011-2015, 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-2015, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | /** |
9 | - * Provides next events: |
|
10 | - * System/User/construct/before |
|
11 | - * |
|
12 | - * System/User/construct/after |
|
13 | - * |
|
14 | - * System/User/registration/before |
|
15 | - * ['email' => <i>email</i>] |
|
16 | - * |
|
17 | - * System/User/registration/after |
|
18 | - * ['id' => <i>user_id</i>] |
|
19 | - * |
|
20 | - * System/User/registration/confirmation/before |
|
21 | - * ['reg_key' => <i>reg_key</i>] |
|
22 | - * |
|
23 | - * System/User/registration/confirmation/after |
|
24 | - * ['id' => <i>user_id</i>] |
|
25 | - * |
|
26 | - * System/User/del/before |
|
27 | - * ['id' => <i>user_id</i>] |
|
28 | - * |
|
29 | - * System/User/del/after |
|
30 | - * ['id' => <i>user_id</i>] |
|
31 | - * |
|
32 | - * System/User/add_bot |
|
33 | - * ['id' => <i>bot_id</i>] |
|
34 | - * |
|
35 | - * System/User/get_contacts |
|
36 | - * [ |
|
37 | - * 'id' => <i>user_id</i>, |
|
38 | - * 'contacts' => <i>&$contacts</i> //Array of user id |
|
39 | - * ] |
|
40 | - */ |
|
9 | + * Provides next events: |
|
10 | + * System/User/construct/before |
|
11 | + * |
|
12 | + * System/User/construct/after |
|
13 | + * |
|
14 | + * System/User/registration/before |
|
15 | + * ['email' => <i>email</i>] |
|
16 | + * |
|
17 | + * System/User/registration/after |
|
18 | + * ['id' => <i>user_id</i>] |
|
19 | + * |
|
20 | + * System/User/registration/confirmation/before |
|
21 | + * ['reg_key' => <i>reg_key</i>] |
|
22 | + * |
|
23 | + * System/User/registration/confirmation/after |
|
24 | + * ['id' => <i>user_id</i>] |
|
25 | + * |
|
26 | + * System/User/del/before |
|
27 | + * ['id' => <i>user_id</i>] |
|
28 | + * |
|
29 | + * System/User/del/after |
|
30 | + * ['id' => <i>user_id</i>] |
|
31 | + * |
|
32 | + * System/User/add_bot |
|
33 | + * ['id' => <i>bot_id</i>] |
|
34 | + * |
|
35 | + * System/User/get_contacts |
|
36 | + * [ |
|
37 | + * 'id' => <i>user_id</i>, |
|
38 | + * 'contacts' => <i>&$contacts</i> //Array of user id |
|
39 | + * ] |
|
40 | + */ |
|
41 | 41 | namespace cs; |
42 | 42 | use |
43 | 43 | cs\Cache\Prefix, |
@@ -47,26 +47,26 @@ discard block |
||
47 | 47 | cs\User\Management as User_management, |
48 | 48 | cs\User\Permission as User_permission; |
49 | 49 | /** |
50 | - * Class for users manipulating |
|
51 | - * |
|
52 | - * @property int $id |
|
53 | - * @property string $login |
|
54 | - * @property string $login_hash sha224 hash |
|
55 | - * @property string $username |
|
56 | - * @property string $password_hash sha512 hash |
|
57 | - * @property string $email |
|
58 | - * @property string $email_hash sha224 hash |
|
59 | - * @property string $language |
|
60 | - * @property string $timezone |
|
61 | - * @property int $reg_date unix timestamp |
|
62 | - * @property string $reg_ip hex value, obtained by function ip2hex() |
|
63 | - * @property string $reg_key random md5 hash, generated during registration |
|
64 | - * @property int $status '-1' - not activated (for example after registration), 0 - inactive, 1 - active |
|
65 | - * @property int $block_until unix timestamp |
|
66 | - * @property string $avatar |
|
67 | - * |
|
68 | - * @method static User instance($check = false) |
|
69 | - */ |
|
50 | + * Class for users manipulating |
|
51 | + * |
|
52 | + * @property int $id |
|
53 | + * @property string $login |
|
54 | + * @property string $login_hash sha224 hash |
|
55 | + * @property string $username |
|
56 | + * @property string $password_hash sha512 hash |
|
57 | + * @property string $email |
|
58 | + * @property string $email_hash sha224 hash |
|
59 | + * @property string $language |
|
60 | + * @property string $timezone |
|
61 | + * @property int $reg_date unix timestamp |
|
62 | + * @property string $reg_ip hex value, obtained by function ip2hex() |
|
63 | + * @property string $reg_key random md5 hash, generated during registration |
|
64 | + * @property int $status '-1' - not activated (for example after registration), 0 - inactive, 1 - active |
|
65 | + * @property int $block_until unix timestamp |
|
66 | + * @property string $avatar |
|
67 | + * |
|
68 | + * @method static User instance($check = false) |
|
69 | + */ |
|
70 | 70 | class User { |
71 | 71 | use |
72 | 72 | Accessor, |
@@ -1,31 +1,31 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2011-2015, 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-2015, 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 |
@@ -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,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015, 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, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | namespace cs; |
9 | 9 | use |
10 | 10 | ArrayAccess, |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package CleverStyle CMS |
|
4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
5 | - * @copyright Copyright (c) 2011-2015, 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-2015, Nazar Mokrynskyi |
|
6 | + * @license MIT License, see license.txt |
|
7 | + */ |
|
8 | 8 | /** |
9 | - * Class for HTML code rendering in accordance with the standards of HTML5, and with useful syntax extensions for simpler usage |
|
10 | - */ |
|
9 | + * Class for HTML code rendering in accordance with the standards of HTML5, and with useful syntax extensions for simpler usage |
|
10 | + */ |
|
11 | 11 | use cs\h\Base; |
12 | 12 | class h extends Base {} |