author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
323,346
01.03.2018 16:18:27
-28,800
8de1acf4a2f08f75c3288dee4795f349c8116e84
add HTTPS check from XFP header
[ { "change_type": "MODIFY", "old_path": "core/ctr/router.php", "new_path": "core/ctr/router.php", "diff": "@@ -89,6 +89,16 @@ class router\nunset($output);\n}\n+ /**\n+ * Check HTTPS protocol\n+ *\n+ * @return bool\n+ */\n+ public static function is_https(): bool\n+ {\n+ return (isset($_SERVER['HTTPS...
PHP
Apache License 2.0
jerry-shaw/nervsys
add HTTPS check from XFP header
323,346
07.03.2018 11:11:37
-28,800
f52099926125d3069113aab7326886c8e868e425
optimize usage comments
[ { "change_type": "MODIFY", "old_path": "ext/pdo_mysql.php", "new_path": "ext/pdo_mysql.php", "diff": "@@ -90,7 +90,17 @@ class pdo_mysql extends pdo\n/**\n* Insert data\n*\n- * Usage: insert('myTable', ['col_a' => 'A', 'col_b' => 'B, ...], 'myID')\n+ * Usage:\n+ *\n+ * insert(\n+ * 'myTable',\n+ * [...
PHP
Apache License 2.0
jerry-shaw/nervsys
optimize usage comments
323,346
07.03.2018 11:22:09
-28,800
d52f12cd633879ddb41e5781f877287483f03bd5
more detailed comments on limit options
[ { "change_type": "MODIFY", "old_path": "ext/pdo_mysql.php", "new_path": "ext/pdo_mysql.php", "diff": "@@ -227,9 +227,13 @@ class pdo_mysql extends pdo\n* OR: 'a, b, ...',\n* OR: ['a'],\n* OR: 'a',\n- * 'limit' => [1, 20]\n- * OR: 1, 20\n- * OR: 1\n+ * 'limit' => [0, 20] (from 0, read 20 rows)\n+ * O...
PHP
Apache License 2.0
jerry-shaw/nervsys
more detailed comments on limit options
323,346
09.03.2018 15:39:38
-28,800
834f965fd780f855d264ac75c4dbb29fff21a267
some default CROS allowed header examples
[ { "change_type": "MODIFY", "old_path": "cors/http.domain.8080.php", "new_path": "cors/http.domain.8080.php", "diff": "* along with NervSys. If not, see <http://www.gnu.org/licenses/>.\n*/\n-\\core\\ctr\\router::$header = ['X-Requested-With'];\n\\ No newline at end of file\n+\\core\\ctr\\router::$hea...
PHP
Apache License 2.0
jerry-shaw/nervsys
some default CROS allowed header examples
323,346
11.03.2018 16:28:03
-28,800
c559d87976c8b3daf6cfd7e74969a02d2a16a742
code clean up & update README.md
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -458,10 +458,10 @@ Some examples for \"cfg.php\":\n\\ext\\crypt::$keygen = '\\demo\\keygen';\n\\ext\\crypt::$ssl_cnf = '/extras/ssl/openssl.cnf';\n- //define MySQL connection parameters for \"pdo_mysql\" extensi...
PHP
Apache License 2.0
jerry-shaw/nervsys
code clean up & update README.md
323,346
15.03.2018 08:50:18
-28,800
66d4cd21be4a2d16a1fbca5a47bc9a3531fcd36b
Grant API TrustZone controllability to "init" method belongs to every class
[ { "change_type": "MODIFY", "old_path": "core/ctr/router/cgi.php", "new_path": "core/ctr/router/cgi.php", "diff": "@@ -226,25 +226,31 @@ class cgi extends router\nreturn;\n}\n- //Get API TrustZone list & method list\n- $key_list = array_keys($space::$tz);\n- $method_list = get_class_methods($space);\...
PHP
Apache License 2.0
jerry-shaw/nervsys
Grant API TrustZone controllability to "init" method belongs to every class
323,346
15.03.2018 10:25:44
-28,800
40565d895412113a0aec091d506ce0b584707757
Update README.md to introduce "init" function
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -148,6 +148,37 @@ All script should under the right namespace for better calling by NervSys API.\ntest_c = [c]\n];\n+ /**\n+ * Initial function for API\n+ *\n+ * It will be called directly when exists.\n+ * Data...
PHP
Apache License 2.0
jerry-shaw/nervsys
Update README.md to introduce "init" function
323,345
15.03.2018 14:35:39
-28,800
9122e014364d887c3f304d95c87fd6ca272edf90
example alter access example url
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -267,16 +267,16 @@ Remember one param named \"c\" or \"cmd\", the two are equal.\nfor test_1.php\n- 1. http://HostName/api.php&c=pr_1\\ctr\\test_1-test_a&a=a&b=b&c=c\n- 2. http://HostName/api.php&cmd=pr_1\\ctr\\...
PHP
Apache License 2.0
jerry-shaw/nervsys
example alter access example url
323,345
15.03.2018 18:33:58
-28,800
7a9421a7b7084cb241d73bb3f1f44808c9ce26e5
readme example alter
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -267,16 +267,16 @@ Remember one param named \"c\" or \"cmd\", the two are equal.\nfor test_1.php\n- 1. http://HostName/api.php?&c=pr_1\\ctr\\test_1-test_a&a=a&b=b&c=c\n- 2. http://HostName/api.php?&cmd=pr_1\\ctr...
PHP
Apache License 2.0
jerry-shaw/nervsys
readme example alter
323,346
17.03.2018 22:37:58
-28,800
76fe62a292e1f47442c7d631f346157d0621d1d3
extended "cfg.ini" settings to support router path mapping
[ { "change_type": "MODIFY", "old_path": "core/cfg.ini", "new_path": "core/cfg.ini", "diff": "+[CGI]\n+fruit = \"demo/fruit\"\n+\n+[CLI]\nphp = \"D:\\Programs\\WebServer\\Programs\\PHP\\php.exe\"\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "core/ctr/router/cl...
PHP
Apache License 2.0
jerry-shaw/nervsys
extended "cfg.ini" settings to support router path mapping
323,346
19.03.2018 11:07:46
-28,800
c57b4882ee1af64bf9670c2cf4e0019134a06e25
Change licensing to MIT in README.md
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -554,5 +554,5 @@ Old version before 3.0.0 is discontinued and the source codes located here: [3.2\n## Licensing\n-This software is licensed under the terms of the GPLv3.\n-You can find a copy of the license in t...
PHP
Apache License 2.0
jerry-shaw/nervsys
Change licensing to MIT in README.md
323,346
19.03.2018 19:18:18
-28,800
5280ed6c1ced706a0daa692907b7cbb67697af4a
Finish cmd mapping (with result key mapped)
[ { "change_type": "MODIFY", "old_path": "core/cfg.ini", "new_path": "core/cfg.ini", "diff": "+; Examples\n+\n[CGI]\n+; Get demo from \"https://github.com/Jerry-Shaw/demo\"\nfruit = \"demo/fruit\"\n+fruit_size = \"demo/fruit-size\"\n+fruit_color = \"demo/fruit-color\"\n[CLI]\nphp = \"D:\\Programs\\Web...
PHP
Apache License 2.0
jerry-shaw/nervsys
Finish cmd mapping (with result key mapped)
323,346
19.03.2018 22:14:38
-28,800
87a613951d79d8ab3dc24afa2c09b9867697379e
Change from "cfg" to "conf"
[ { "change_type": "MODIFY", "old_path": "api.php", "new_path": "api.php", "diff": "@@ -31,13 +31,13 @@ declare(strict_types = 1);\nif (version_compare(PHP_VERSION, '7.1.0', '<')) exit('NervSys needs PHP 7.1.0 or higher!');\n//Load Basic Config\n-require __DIR__ . '/core/cfg.php';\n+require __DIR__ . ...
PHP
Apache License 2.0
jerry-shaw/nervsys
Change from "cfg" to "conf"
323,346
20.03.2018 22:12:04
-28,800
9239f5e118ed0fe99f819dc7b0637e953c62fb22
minor fix on mapping debug keys
[ { "change_type": "MODIFY", "old_path": "core/ctr/router/cgi.php", "new_path": "core/ctr/router/cgi.php", "diff": "@@ -159,7 +159,7 @@ class cgi extends router\n{\n//Check module data\nif (empty(self::$module)) {\n- debug('CGI', 'Module NOT found!');\n+ debug('CGI', 'Command ERROR!');\nreturn;\n}\n@@...
PHP
Apache License 2.0
jerry-shaw/nervsys
minor fix on mapping debug keys
323,346
20.03.2018 23:22:14
-28,800
737d46734539385e3fe827cd1c3eb3df0d66d8c1
Move os::get_env to CLI execute code
[ { "change_type": "MODIFY", "old_path": "core/ctr/router.php", "new_path": "core/ctr/router.php", "diff": "@@ -92,8 +92,6 @@ class router\nif (isset($config['CGI'])) self::$conf_cgi = &$config['CGI'];\nif (isset($config['CLI'])) self::$conf_cli = &$config['CLI'];\n- self::$conf_cli += os::get_env();\...
PHP
Apache License 2.0
jerry-shaw/nervsys
Move os::get_env to CLI execute code
323,346
21.03.2018 10:30:32
-28,800
910f890687216edfba171226efaa88202be7553f
Fix debug not being captured when set to 2
[ { "change_type": "MODIFY", "old_path": "core/conf.php", "new_path": "core/conf.php", "diff": "@@ -85,6 +85,8 @@ function load(string $lib): void\n*/\nfunction debug(string $module, string $message): void\n{\n- if (1 === DEBUG) \\core\\ctr\\router::$result[$module] = &$message;\n+ if (0 === DEBUG) re...
PHP
Apache License 2.0
jerry-shaw/nervsys
Fix debug not being captured when set to 2
323,346
26.03.2018 15:37:23
-28,800
25c10e0d13ea7dd96157691801ccf827a6f579e4
Support passing params via function call
[ { "change_type": "MODIFY", "old_path": "core/ctr/router/cgi.php", "new_path": "core/ctr/router/cgi.php", "diff": "@@ -68,6 +68,7 @@ class cgi extends router\n{\nif ('' !== parent::$cmd) return;\n+ //Read data\nself::read_http();\nself::read_input();\n@@ -84,6 +85,7 @@ class cgi extends router\n{\n$d...
PHP
Apache License 2.0
jerry-shaw/nervsys
Support passing params via function call
323,346
26.03.2018 16:13:57
-28,800
612cc5a0e25798ccca297fc664d28a160a65111a
update README.md for new support features
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -145,7 +145,11 @@ All script should under the right namespace for better calling by NervSys API.\npublic static $tz = [\ntest_a = [a, b, c],\ntest_b = [b, c],\n- test_c = [c]\n+ test_c = [c],\n+\n+ //Leave empty...
PHP
Apache License 2.0
jerry-shaw/nervsys
update README.md for new support features
323,346
27.03.2018 08:22:15
-28,800
66e78457a74b1a9cce62d1c6ed4e890ce3a366e7
add two more common type hits
[ { "change_type": "MODIFY", "old_path": "core/ctr/router/cgi.php", "new_path": "core/ctr/router/cgi.php", "diff": "@@ -343,6 +343,12 @@ class cgi extends router\ncase 'int':\n$data[$name] = (int)parent::$data[$name];\nbreak;\n+ case 'bool':\n+ $data[$name] = (bool)parent::$data[$name];\n+ break;\n+ c...
PHP
Apache License 2.0
jerry-shaw/nervsys
add two more common type hits
323,346
28.03.2018 11:27:03
-28,800
8acfb573d4b18f3deeffdf9b74e2bb06b31f002f
Change LICENSE to Apache 2.0 (voted by all contributors)
[ { "change_type": "MODIFY", "old_path": "ext/memcached.php", "new_path": "ext/memcached.php", "diff": "/**\n* Memcached Extension\n*\n- * Author tggtzbh <tggtzbh@sina.com>\n+ * Copyright 2018 tggtzbh <tggtzbh@sina.com>\n*\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you...
PHP
Apache License 2.0
jerry-shaw/nervsys
Change LICENSE to Apache 2.0 (voted by all contributors)
323,346
29.03.2018 00:47:54
-28,800
add24b16c4ef21e92d87a983fdf297d5550cee64
router data structure modifier optimized
[ { "change_type": "MODIFY", "old_path": "core/conf.php", "new_path": "core/conf.php", "diff": "@@ -35,7 +35,7 @@ date_default_timezone_set('PRC');\nheader('Content-Type: application/json; charset=utf-8');\n//NervSys Version\n-define('NS_VER', '5.1.2');\n+define('NS_VER', '5.1.6');\n//JSON Encode Opti...
PHP
Apache License 2.0
jerry-shaw/nervsys
router data structure modifier optimized
323,346
29.03.2018 14:06:23
-28,800
ee666adba3d3e580eec05cb4e29a7ed4350fb67d
minor changes on debug output text
[ { "change_type": "MODIFY", "old_path": "core/ctr/router/cgi.php", "new_path": "core/ctr/router/cgi.php", "diff": "@@ -261,8 +261,8 @@ class cgi extends router\n$diff = array_diff($space::$tz[$method], $inter);\ntry {\n- //Report missing params\n- if (!empty($diff)) throw new \\Exception('Missing par...
PHP
Apache License 2.0
jerry-shaw/nervsys
minor changes on debug output text
323,346
29.03.2018 17:14:53
-28,800
7eb09683febb053da75f9088674587717e4b4836
fix data structure missing in some CLI commands
[ { "change_type": "MODIFY", "old_path": "core/conf.php", "new_path": "core/conf.php", "diff": "@@ -35,7 +35,7 @@ date_default_timezone_set('PRC');\nheader('Content-Type: application/json; charset=utf-8');\n//NervSys Version\n-define('NS_VER', '5.1.6');\n+define('NS_VER', '5.1.8');\n//JSON Encode Opti...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix data structure missing in some CLI commands
323,346
31.03.2018 23:27:00
-28,800
5616571689584dc7ec817c3be20c4b585c54a0e7
Lot of codes optimized
[ { "change_type": "MODIFY", "old_path": "core/conf.php", "new_path": "core/conf.php", "diff": "@@ -35,7 +35,7 @@ date_default_timezone_set('PRC');\nheader('Content-Type: application/json; charset=utf-8');\n//NervSys Version\n-define('NS_VER', '5.1.8');\n+define('NS_VER', '5.1.16');\n//JSON Encode Opt...
PHP
Apache License 2.0
jerry-shaw/nervsys
Lot of codes optimized
323,346
01.04.2018 21:51:11
-28,800
b24f82224109145a6df1f7f760b692ca8b726ad8
Clean up CLI related functions
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -472,11 +472,13 @@ Remember one param named \"c\" or \"cmd\", the two are equal.\nDon't forget to use \"-r\" or \"--ret\" to capture output data.\nIf time is too short to run extenal programs, use \"-t ms\" or \...
PHP
Apache License 2.0
jerry-shaw/nervsys
Clean up CLI related functions
323,346
01.04.2018 23:05:28
-28,800
1edd3ed9f3b5ca4f1a5adbe180a8ec30511494d0
redis_queue extension optimized
[ { "change_type": "MODIFY", "old_path": "ext/redis_queue.php", "new_path": "ext/redis_queue.php", "diff": "@@ -38,25 +38,24 @@ class redis_queue extends redis\n* It is very useful facing huge queue list.\n*\n* Recommended:\n- * Method \"run\" is ready for use, but is kept away from directly calling.\...
PHP
Apache License 2.0
jerry-shaw/nervsys
redis_queue extension optimized
323,346
02.04.2018 14:39:56
-28,800
7667bd0fc9c0e81aec5e9d18fb027cfd9b3a8a99
Add connection pool to both pdo & redis extensions
[ { "change_type": "MODIFY", "old_path": "ext/pdo.php", "new_path": "ext/pdo.php", "diff": "@@ -36,12 +36,15 @@ class pdo\npublic static $timeout = 10;\npublic static $persist = true;\n- //Connection instance\n+ //Current connection instance\nprivate static $connect = null;\n//Connection options\npriv...
PHP
Apache License 2.0
jerry-shaw/nervsys
Add connection pool to both pdo & redis extensions
323,340
03.04.2018 16:46:58
-28,800
6bb738bf3a4f493d1ad5f0fa5ce8f9c14180b7b9
add pool to memcached
[ { "change_type": "MODIFY", "old_path": "ext/memcached.php", "new_path": "ext/memcached.php", "diff": "@@ -31,14 +31,15 @@ class memcached\npublic static $timeout = 1;\nprivate static $memcached = null;\n+ private static $pool = [];\n/**\n- * Connect Memcache\n+ * Init Memcache\n*\n* @return \\Memcac...
PHP
Apache License 2.0
jerry-shaw/nervsys
add pool to memcached
323,346
03.04.2018 18:17:36
-28,800
c64597400d94e8ebbb576003933cea14ace507e2
wrong function name fixed in README.md
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -480,7 +480,7 @@ Remember one param named \"c\" or \"cmd\", the two are equal.\n/path/php /path/api.php -r PHP_EXE -v\n/path/php /path/api.php -r PHP_EXE /path/api.php -r demo/demo\n- All the globle variables ca...
PHP
Apache License 2.0
jerry-shaw/nervsys
wrong function name fixed in README.md
323,346
08.04.2018 12:44:51
-28,800
c7f96b49c23b445fe1c347b289cba60516be9a51
minor changes on CORS settings
[ { "change_type": "MODIFY", "old_path": "core/conf.ini", "new_path": "core/conf.ini", "diff": "; Examples\n+; Remember to modify it on production environment\n+; CGI settings\n[CGI]\n-; Get demo from \"https://github.com/Jerry-Shaw/demo\"\n+; Example demos from \"https://github.com/Jerry-Shaw/demo\"\...
PHP
Apache License 2.0
jerry-shaw/nervsys
minor changes on CORS settings
323,346
08.04.2018 19:14:34
-28,800
2dcdf55ce6075f70cbb0148cb21efd2915504a4a
fix redis_queue stop function not working
[ { "change_type": "MODIFY", "old_path": "core/conf.ini", "new_path": "core/conf.ini", "diff": "; Examples\n; Remember to modify it on production environment\n-; CGI settings\n[CGI]\n+; CGI settings\n; Example demos from \"https://github.com/Jerry-Shaw/demo\"\nfruit = \"demo/fruit\"\nfruit_size = \"de...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix redis_queue stop function not working
323,346
08.04.2018 19:47:54
-28,800
605309c152fd4fd7b1d5948731aeef97044a8e19
fix child process limitation in redis_queue
[ { "change_type": "MODIFY", "old_path": "ext/redis_queue.php", "new_path": "ext/redis_queue.php", "diff": "@@ -62,7 +62,7 @@ class redis_queue extends redis\n//Process idle wait (in seconds)\npublic static $idle_wait = 3;\n- //Max running clients\n+ //Max child processes\npublic static $max_runs = 5;...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix child process limitation in redis_queue
323,346
08.04.2018 23:36:05
-28,800
b31406e2aef98bfd01ffb510807aa0daef3b340a
fix redis_queue child process limitation (finally)
[ { "change_type": "MODIFY", "old_path": "ext/redis_queue.php", "new_path": "ext/redis_queue.php", "diff": "@@ -310,7 +310,9 @@ class redis_queue extends redis\n{\n//Count running processes\n$running = count(self::show_process());\n- if (0 <= $running - self::$max_runs) return;\n+\n+ $left = self::$ma...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix redis_queue child process limitation (finally)
323,346
09.04.2018 18:33:51
-28,800
ab9e79467dcf60f817cfb75bb9b24a8ab0ee35f4
fix putting "true" returned into queue failed list
[ { "change_type": "MODIFY", "old_path": "ext/redis_queue.php", "new_path": "ext/redis_queue.php", "diff": "@@ -365,18 +365,12 @@ class redis_queue extends redis\n*/\nprivate static function chk_queue(string $data, string $result): void\n{\n- //Accept empty\n- if ('' === $result) return;\n-\n- //Decod...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix putting "true" returned into queue failed list
323,346
10.04.2018 08:46:57
-28,800
027f40110aebf0b3437cd5277825fff9d18e93ee
"mpc" optimized
[ { "change_type": "MODIFY", "old_path": "ext/mpc.php", "new_path": "ext/mpc.php", "diff": "@@ -94,10 +94,8 @@ class mpc\n$result = [];\nforeach ($job_pack as $jobs) {\n- //Copy jobs\n- self::$jobs = $jobs;\n//Execute process\n- $data = self::execute();\n+ $data = self::execute($jobs);\n//Merge result...
PHP
Apache License 2.0
jerry-shaw/nervsys
"mpc" optimized
323,346
12.04.2018 11:26:58
-28,800
ed971b1ae3e7d6634215b5a4b99a65d3bac43ba6
add reserved words, fix mistakes in README.md
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -20,7 +20,7 @@ Extensions in \"/ext/\" makes it growing.\nFunctional extensions (class) are considered to moved out to the third part to maintain.\nNot only extensions, but sub-projects based on NervSys are expe...
PHP
Apache License 2.0
jerry-shaw/nervsys
add reserved words, fix mistakes in README.md
323,346
12.04.2018 20:00:57
-28,800
c29a00f09f013670381b18c3d22b95aa0a5c3fd4
README.md examples fixed
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -137,6 +137,7 @@ These words above are reserved by NervSys core. So that, they should be kept awa\n//Any other extensions and namespaces can be used here\nuse ext\\http;\n+ use core\\ctr\\router;\n//Class name s...
PHP
Apache License 2.0
jerry-shaw/nervsys
README.md examples fixed
323,346
15.04.2018 15:25:36
-28,800
4c5e951d15dc117e9213cee81c4bd81ed4588cb5
Change all const values to uppercase
[ { "change_type": "MODIFY", "old_path": "core/ctr/router.php", "new_path": "core/ctr/router.php", "diff": "@@ -40,7 +40,7 @@ class router\nprivate static $conf_cors = [];\n//Config file path\n- const conf_path = ROOT . '/core/conf.ini';\n+ const CONF_PATH = ROOT . '/core/conf.ini';\n/**\n* Load confi...
PHP
Apache License 2.0
jerry-shaw/nervsys
Change all const values to uppercase
323,346
21.04.2018 14:14:31
-28,800
bdb0c48b2e2e69e84b9b565943ecdf885ed4861a
change data collecting method (cgi)
[ { "change_type": "MODIFY", "old_path": "core/ctr/router/cgi.php", "new_path": "core/ctr/router/cgi.php", "diff": "@@ -78,13 +78,10 @@ class cgi extends router\n*/\nprivate static function read_http(): void\n{\n- $data = !empty($_POST) ? $_POST : (!empty($_GET) ? $_GET : $_REQUEST);\n-\n- //Collect d...
PHP
Apache License 2.0
jerry-shaw/nervsys
change data collecting method (cgi)
323,346
22.04.2018 20:53:22
-28,800
240dfe6170c8024cf93da68a30665e66adc7113d
fix "mpc" variable conflict
[ { "change_type": "MODIFY", "old_path": "ext/mpc.php", "new_path": "ext/mpc.php", "diff": "@@ -45,7 +45,7 @@ class mpc extends router\npublic static $php_exe = '';\n//Basic command\n- private static $cmd = '';\n+ private static $mpc_cmd = '';\n//Process jobs\nprivate static $jobs = [];\n@@ -89,9 +89,...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix "mpc" variable conflict
323,346
23.04.2018 10:17:41
-28,800
383086ed2eaa396195b8e7f492797f1842d78914
minor fix & clean up
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -406,7 +406,7 @@ Remember one param named \"c\" or \"cmd\", the two are equal and both reserved by Ne\nunder [CGI] section with the key as the input \"c\" or \"cmd\", and the real path and its possible\nparams a...
PHP
Apache License 2.0
jerry-shaw/nervsys
minor fix & clean up
323,346
25.04.2018 11:26:19
-28,800
7d209540e09466d2247541f20e5ebaf8fa5fde07
Add SIGNAL controller for router
[ { "change_type": "MODIFY", "old_path": "core/conf.ini", "new_path": "core/conf.ini", "diff": "-; Examples\n-; Remember to modify it on production environment\n+; NervSys Configuration File\n[CGI]\n; CGI settings\n-; Example demos from \"https://github.com/Jerry-Shaw/demo\"\n-;fruit = demo/fruit\n-;f...
PHP
Apache License 2.0
jerry-shaw/nervsys
Add SIGNAL controller for router
323,346
25.04.2018 11:30:43
-28,800
ea0f8b04c1395513a090baaddd4e94089ddd826a
ignore & remove useless files
[ { "change_type": "ADD", "old_path": null, "new_path": ".gitignore", "diff": "+.idea/\n" }, { "change_type": "DELETE", "old_path": ".idea/NervSys.iml", "new_path": null, "diff": "-<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n-<module type=\"WEB_MODULE\" version=\"4\">\n- <component...
PHP
Apache License 2.0
jerry-shaw/nervsys
ignore & remove useless files
323,346
28.04.2018 10:28:42
-28,800
70f750666c54c88a277b17d1b6dc99c978eb53bf
Move some params from class variables to function variables
[ { "change_type": "MODIFY", "old_path": "ext/redis_cache.php", "new_path": "ext/redis_cache.php", "diff": "namespace ext;\n-use core\\ctr\\router;\n-\nclass redis_cache extends redis\n{\n- //Cache life (in seconds)\n- public static $life = 600;\n-\n- //Cache name\n- public static $name = null;\n-\n//...
PHP
Apache License 2.0
jerry-shaw/nervsys
Move some params from class variables to function variables
323,346
29.04.2018 18:30:13
-28,800
50afad84ecee5c92d9ea18734067fc6fe190519d
change "stream_*" functions to "socket_*" functions
[ { "change_type": "MODIFY", "old_path": "ext/socket.php", "new_path": "ext/socket.php", "diff": "@@ -23,110 +23,143 @@ namespace ext;\nclass socket\n{\n- //Master socket\n- public static $master = null;\n+ //Socket resource\n+ public static $sock = null;\n- //Client list\n- public static $client = []...
PHP
Apache License 2.0
jerry-shaw/nervsys
change "stream_*" functions to "socket_*" functions
323,346
30.04.2018 12:12:25
-28,800
47d7e27d9958692065cd6c12a310c7604d5276c4
add detailed error message to socket extension
[ { "change_type": "MODIFY", "old_path": "ext/socket.php", "new_path": "ext/socket.php", "diff": "@@ -66,12 +66,12 @@ class socket\n$param = self::param($proto, $host);\n$socket = socket_create($param['domain'], $param['type'], $param['protocol']);\n- if (false === $socket) throw new \\Exception('Serv...
PHP
Apache License 2.0
jerry-shaw/nervsys
add detailed error message to socket extension
323,346
02.05.2018 11:11:02
-28,800
a7fb6417479ffbd64e3318d8cd77eca7a272fea0
escape shell command in os controller
[ { "change_type": "MODIFY", "old_path": "core/ctr/os.php", "new_path": "core/ctr/os.php", "diff": "@@ -24,13 +24,13 @@ namespace core\\ctr;\nclass os\n{\n//OS name\n- public static $os = '';\n+ private static $os = '';\n//PHP path\n- protected static $env = '';\n+ private static $env = '';\n//System ...
PHP
Apache License 2.0
jerry-shaw/nervsys
escape shell command in os controller
323,346
03.05.2018 12:47:32
-28,800
238ed996ac65d6674cb480470b4bee79cd4889a0
add broadcast option to socket client
[ { "change_type": "MODIFY", "old_path": "ext/socket.php", "new_path": "ext/socket.php", "diff": "@@ -26,6 +26,9 @@ class socket\n//Socket resource\npublic static $sock = null;\n+ //Timeout (in seconds)\n+ public static $timeout = 60;\n+\n//Socket type\nprivate static $type = '';\n@@ -69,6 +72,8 @@ cl...
PHP
Apache License 2.0
jerry-shaw/nervsys
add broadcast option to socket client
323,341
04.05.2018 09:59:20
-28,800
83c6348bca1f82a1a54bd4194137d440d5ab0fdb
The method attribute of CGI is modified to protected
[ { "change_type": "MODIFY", "old_path": "core/ctr/router/cgi.php", "new_path": "core/ctr/router/cgi.php", "diff": "@@ -26,7 +26,7 @@ use core\\ctr\\router;\nclass cgi extends router\n{\n//Method list\n- private static $method = [];\n+ protected static $method = [];\n//Object list\nprivate static $obj...
PHP
Apache License 2.0
jerry-shaw/nervsys
The method attribute of CGI is modified to protected
323,346
04.05.2018 13:19:08
-28,800
09c9f3fcccaa71ac242b7a09a0d81bcbf9cdd8f7
improve CGI configuration mapping function to support partial mapping
[ { "change_type": "MODIFY", "old_path": "core/ctr/router.php", "new_path": "core/ctr/router.php", "diff": "@@ -414,17 +414,27 @@ class router\n//No CGI config keys\nif (empty(self::$conf_cgi)) return;\n- //Mapping CGI config keys\n- foreach (self::$cgi_cmd as $key => $value) {\n- if (!isset(self::$co...
PHP
Apache License 2.0
jerry-shaw/nervsys
improve CGI configuration mapping function to support partial mapping
323,346
04.05.2018 16:56:01
-28,800
12c2b18a89056091d176231073d3982ea5e3a280
add new debug level settings
[ { "change_type": "MODIFY", "old_path": "core/conf.php", "new_path": "core/conf.php", "diff": "/**\n* Debug mode\n* 0: for production environment (Disable ERROR Reporting)\n- * 1: for development environment (Display all ERROR, WARNING, NOTICE)\n- * 2: for optimization development (Display all ERROR,...
PHP
Apache License 2.0
jerry-shaw/nervsys
add new debug level settings
323,346
05.05.2018 11:53:57
-28,800
1360003aca4b24e51b2c342df72e034d75691848
add debug on SQL execute failed
[ { "change_type": "MODIFY", "old_path": "ext/pdo_model.php", "new_path": "ext/pdo_model.php", "diff": "@@ -172,10 +172,10 @@ class pdo_model extends pdo\n*\n* @param array $where\n*\n- * @return bool\n+ * @return int\n* @throws \\Exception\n*/\n- public static function delete(array $where): bool\n+ p...
PHP
Apache License 2.0
jerry-shaw/nervsys
add debug on SQL execute failed
323,346
05.05.2018 13:02:35
-28,800
73791ece0fdc5cae3b22849ee4fb617749a4772d
add SQL dump to debug
[ { "change_type": "MODIFY", "old_path": "ext/pdo_mysql.php", "new_path": "ext/pdo_mysql.php", "diff": "@@ -60,7 +60,7 @@ class pdo_mysql extends pdo\ntry {\n$result = $stmt->execute($data);\n} catch (\\Throwable $throwable) {\n- debug('MySQL', $throwable->getMessage() . PHP_EOL . $stmt->debugDumpPara...
PHP
Apache License 2.0
jerry-shaw/nervsys
add SQL dump to debug
323,346
05.05.2018 13:30:27
-28,800
91678262c2c38f2446ca36adc77c112bc8ea94b7
minor fix on debug
[ { "change_type": "MODIFY", "old_path": "ext/pdo_mysql.php", "new_path": "ext/pdo_mysql.php", "diff": "@@ -60,7 +60,7 @@ class pdo_mysql extends pdo\ntry {\n$result = $stmt->execute($data);\n} catch (\\Throwable $throwable) {\n- debug($throwable->getMessage() . '. SQL Dump: ' . $stmt->queryString);\n...
PHP
Apache License 2.0
jerry-shaw/nervsys
minor fix on debug
323,346
07.05.2018 15:03:06
-28,800
1a1171ab6271c481adc049a2512a91a5acbeb5c6
fix parameter default value detecting
[ { "change_type": "MODIFY", "old_path": "core/ctr/router/cgi.php", "new_path": "core/ctr/router/cgi.php", "diff": "@@ -240,7 +240,7 @@ class cgi extends router\n$data[$name] = parent::$data[$name];\nbreak;\n}\n- } else $param->isOptional() ? $data[$name] = $param->getDefaultValue() : $diff[] = $name;...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix parameter default value detecting
323,346
08.05.2018 10:46:39
-28,800
2a21b72f1a0ecd77359e717f5c3a4a04fb3c55f8
set DEBUG value back to 2 for beginners by default
[ { "change_type": "MODIFY", "old_path": "core/conf.php", "new_path": "core/conf.php", "diff": "* 2: for beginners (Show PHP level ERROR, WARNING, NOTICE, and debug messages)\n* 3: for optimization (Show PHP level ERROR, WARNING, NOTICE, debug messages and runtime values)\n*/\n-define('DEBUG', 1);\n+d...
PHP
Apache License 2.0
jerry-shaw/nervsys
set DEBUG value back to 2 for beginners by default
323,346
08.05.2018 19:41:50
-28,800
49bc437b3c40c2ae892b466ebed51662e68f5632
fit more types of different key content
[ { "change_type": "MODIFY", "old_path": "ext/pdo_mysql.php", "new_path": "ext/pdo_mysql.php", "diff": "@@ -387,7 +387,7 @@ class pdo_mysql extends pdo\n//Process value\nif (self::use_bind($value)) {\n//Generate bind value\n- $bind = ':d_' . strtr($key, '.', '_');\n+ $bind = ':d_' . hash('crc32b', $ke...
PHP
Apache License 2.0
jerry-shaw/nervsys
fit more types of different key content
323,346
09.05.2018 13:08:13
-28,800
e2018d5047ceef0ad4c6d4952a22c4251165ec2a
add error settings to router controller for output
[ { "change_type": "MODIFY", "old_path": "core/ctr/router.php", "new_path": "core/ctr/router.php", "diff": "@@ -29,6 +29,9 @@ class router\n//Runtime Data\npublic static $data = [];\n+ //Runtime Error\n+ public static $error = [];\n+\n//Runtime Result\npublic static $result = [];\n@@ -150,6 +153,17 @@...
PHP
Apache License 2.0
jerry-shaw/nervsys
add error settings to router controller for output
323,346
09.05.2018 15:19:25
-28,800
2bd2da087a232e658d19ef6aaf81c6084f1ffe79
fix "conf.ini" [CGI] section parse error
[ { "change_type": "MODIFY", "old_path": "core/ctr/router.php", "new_path": "core/ctr/router.php", "diff": "@@ -431,7 +431,7 @@ class router\nforeach (self::$cgi_cmd as $key => $val) {\nif (0 !== strpos($val, $name)) continue;\n- $cmd = str_replace($name, $item, $val);\n+ $cmd = substr_replace($val, $...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix "conf.ini" [CGI] section parse error
323,341
11.05.2018 16:56:23
-28,800
14b283cd5df1442ad7714d9c6b0bb9c0419038f7
fix grouping problem
[ { "change_type": "MODIFY", "old_path": "ext/pdo_mysql.php", "new_path": "ext/pdo_mysql.php", "diff": "@@ -523,10 +523,10 @@ class pdo_mysql extends pdo\nself::opt_join($opt);\n//Process \"where\"\n$data['bind'] = self::opt_where($opt);\n- //Process \"order\"\n- self::opt_order($opt);\n//Process \"gr...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix grouping problem
323,346
23.05.2018 13:08:32
-28,800
7f7e62394457980dec93918118a7002e64e80934
ready to move LOAD from INI into TZ
[ { "change_type": "MODIFY", "old_path": "api.php", "new_path": "api.php", "diff": "@@ -65,28 +65,10 @@ spl_autoload_register(\n}\n);\n-//Load config settings\n-\\core\\parser\\conf::load();\n-\n-//Check CORS permission\n-\\core\\parser\\conf::chk_cors();\n-\n-//Call INIT setting functions\n-\\core\\p...
PHP
Apache License 2.0
jerry-shaw/nervsys
ready to move LOAD from INI into TZ
323,346
23.05.2018 16:21:18
-28,800
c3bca096d30c1d7febcb93b0f8d3606eb68514fb
structure improved
[ { "change_type": "MODIFY", "old_path": "api.php", "new_path": "api.php", "diff": "@@ -68,12 +68,5 @@ spl_autoload_register(\n//Start observer\n\\core\\handler\\observer::start();\n-\n-var_dump(\\core\\module\\data::$cmd, \\core\\module\\data::$conf);\n-\n-\n-exit;\n-\n-\n-\n-\n+//Output results\n+\\...
PHP
Apache License 2.0
jerry-shaw/nervsys
structure improved
323,346
23.05.2018 21:52:25
-28,800
e54ebbaec6ccf0ed67c6df2551e2870bf4449885
error & logger handler on going
[ { "change_type": "MODIFY", "old_path": "core/handler/error.php", "new_path": "core/handler/error.php", "diff": "@@ -45,6 +45,30 @@ class error\n*/\npublic static $level = 0;\n+ //Error levels\n+ const levels = [\n+ //Error level\n+ E_ERROR => 'error',\n+ E_PARSE => 'error',\n+ E_CORE_ERROR => 'error...
PHP
Apache License 2.0
jerry-shaw/nervsys
error & logger handler on going
323,346
23.05.2018 22:17:38
-28,800
3c45f763a6e3e28e426739cea8c218c989877019
error handler done
[ { "change_type": "MODIFY", "old_path": "core/handler/error.php", "new_path": "core/handler/error.php", "diff": "namespace core\\handler;\n+use core\\handler\\logger as handler_logger;\n+\nclass error\n{\n/*\n@@ -72,7 +74,7 @@ class error\npublic static function start(): void\n{\nself::$level = (int)...
PHP
Apache License 2.0
jerry-shaw/nervsys
error handler done
323,346
23.05.2018 22:28:03
-28,800
b328f33f196baab0ccb59a6ab1e933b6af2b5298
logger handler done
[ { "change_type": "MODIFY", "old_path": "core/handler/error.php", "new_path": "core/handler/error.php", "diff": "@@ -68,7 +68,7 @@ class error\nE_USER_NOTICE => 'notice',\nE_STRICT => 'notice',\nE_DEPRECATED => 'notice',\n- E_USER_DEPRECATED => 'notice',\n+ E_USER_DEPRECATED => 'notice'\n];\npublic s...
PHP
Apache License 2.0
jerry-shaw/nervsys
logger handler done
323,346
23.05.2018 22:30:51
-28,800
e16805da34ecdf7b8a8e29320a322fd44ca097f9
minor fix on logger handler
[ { "change_type": "MODIFY", "old_path": "core/handler/logger.php", "new_path": "core/handler/logger.php", "diff": "@@ -200,6 +200,10 @@ class logger\n$file = self::$file_path . $name . '-' . date('Ymd') . '.log';\nforeach ($logs as $value) {\n+ if (!is_string($value)) {\n+ $value = json_encode($value...
PHP
Apache License 2.0
jerry-shaw/nervsys
minor fix on logger handler
323,346
24.05.2018 10:42:38
-28,800
3ef0ce8663155eabe4e82fd7318fb084061117de
file renamed & add trustzone parser
[ { "change_type": "MODIFY", "old_path": "api.php", "new_path": "api.php", "diff": "@@ -66,7 +66,7 @@ spl_autoload_register(\n);\n//Set running mode\n-\\core\\pool\\conf::$IS_CGI = 'cli' !== PHP_SAPI;\n+\\core\\pool\\config::$IS_CGI = 'cli' !== PHP_SAPI;\n//Start error handler\n\\core\\handler\\error:...
PHP
Apache License 2.0
jerry-shaw/nervsys
file renamed & add trustzone parser
323,346
24.05.2018 18:55:54
-28,800
26d8372f16fb0ede11acbb5f907db6953d8cb6f2
add show log according to error::$level
[ { "change_type": "MODIFY", "old_path": "core/handler/logger.php", "new_path": "core/handler/logger.php", "diff": "@@ -190,8 +190,9 @@ class logger\nunset($mkdir);\n}\n- //Add datetime & log level\n+ //Add datetime & log level & end of line\narray_unshift($logs, date('Y-m-d H:i:s'), 'System ' . strto...
PHP
Apache License 2.0
jerry-shaw/nervsys
add show log according to error::$level
323,346
24.05.2018 23:05:14
-28,800
48ffbc6f622aad800cc12f30252e6d09088a7711
cgi part almost done
[ { "change_type": "MODIFY", "old_path": "core/handler/logger.php", "new_path": "core/handler/logger.php", "diff": "@@ -68,7 +68,7 @@ class logger\nprivate static function emergency(string $message, array $context = []): void\n{\narray_unshift($context, $message);\n- self::save(__FUNCTION__, $context)...
PHP
Apache License 2.0
jerry-shaw/nervsys
cgi part almost done
323,346
24.05.2018 23:26:33
-28,800
91ce0882dcab95f71b57f8be22612543f8b4f1ae
move logger settings into config.ini file
[ { "change_type": "MODIFY", "old_path": "api.php", "new_path": "api.php", "diff": "@@ -72,18 +72,6 @@ spl_autoload_register(\n//Set error level\n\\core\\handler\\error::$level = (int)ini_get('error_reporting');\n-//Set active log levels\n-\\core\\handler\\logger::$active = [\n- 'emergency',\n- 'alert...
PHP
Apache License 2.0
jerry-shaw/nervsys
move logger settings into config.ini file
323,346
25.05.2018 09:13:21
-28,800
9c129b650aca4ea2abdc34ac1103f40abd7d4529
os handler going
[ { "change_type": "MODIFY", "old_path": "core/config.ini", "new_path": "core/config.ini", "diff": "@@ -27,12 +27,6 @@ https : //psr.phphub.org = c\n; Calling before operator actions\n; No returned value will be captured\n-[SIGNAL]\n-; Signal settings\n-; For Process Terminate Message\n-g[] = g\n-g[] ...
PHP
Apache License 2.0
jerry-shaw/nervsys
os handler going
323,346
25.05.2018 09:24:25
-28,800
56d3c49f28c953262b65f2d4ab16a538a1628f7e
platform handler minor fix
[ { "change_type": "MODIFY", "old_path": "core/handler/platform.php", "new_path": "core/handler/platform.php", "diff": "@@ -25,7 +25,7 @@ use core\\handler\\platform\\lib\\os;\nclass platform implements os\n{\n//Platform handler\n- public static $handler = '';\n+ private static $handler = '';\n/**\n* ...
PHP
Apache License 2.0
jerry-shaw/nervsys
platform handler minor fix
323,346
25.05.2018 10:26:10
-28,800
67c21bc3fcdd12b881e57a77921dc9d346d1b555
cli caller on going
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -681,15 +681,15 @@ Remember one param named \"c\" or \"cmd\", the two are equal and both reserved by Ne\nDon't forget to use \"-r\" or \"--ret\" to capture output data.\nIf time is too short to run extenal progr...
PHP
Apache License 2.0
jerry-shaw/nervsys
cli caller on going
323,346
25.05.2018 10:36:30
-28,800
3ba366619949291e69919afa80f33ebe07192ead
cli almost done
[ { "change_type": "MODIFY", "old_path": "core/handler/operator.php", "new_path": "core/handler/operator.php", "diff": "@@ -163,7 +163,7 @@ class operator\n$command = '\"' . $cmd . '\"';\n//Append arguments\n- if (!empty(order::$param_cli['argv'])) {\n+ if (isset(order::$param_cli['argv']) && !empty(o...
PHP
Apache License 2.0
jerry-shaw/nervsys
cli almost done
323,346
25.05.2018 14:08:38
-28,800
ca887b56c7b70a06225bff27c29a332f345a02fd
fix proc_open under winnt
[ { "change_type": "MODIFY", "old_path": "core/handler/operator.php", "new_path": "core/handler/operator.php", "diff": "@@ -159,7 +159,7 @@ class operator\n}\n//Create process\n- $process = proc_open($command, [['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']], $pipes);\n+ $process = proc_open(platform::cm...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix proc_open under winnt
323,346
25.05.2018 18:51:59
-28,800
cd70055e79899bae06fa6bc844741f4c9a832b8d
change error level when config file parse failed
[ { "change_type": "MODIFY", "old_path": "core/parser/setting.php", "new_path": "core/parser/setting.php", "diff": "@@ -45,7 +45,7 @@ class setting\n$conf = parse_ini_file($path, true);\nif (false === $conf) {\n- trigger_error('Config file ERROR!', E_USER_NOTICE);\n+ trigger_error('Config file ERROR!'...
PHP
Apache License 2.0
jerry-shaw/nervsys
change error level when config file parse failed
323,346
25.05.2018 19:26:55
-28,800
e5325688a1f02ce5e276b222d6b72446f2b07651
change error trigger to exception or logger
[ { "change_type": "MODIFY", "old_path": "ext/crypt.php", "new_path": "ext/crypt.php", "diff": "@@ -134,6 +134,7 @@ class crypt\n* @param string $key\n*\n* @return string\n+ * @throws \\Exception\n*/\nprivate static function rsa_type(string $key): string\n{\n@@ -141,17 +142,13 @@ class crypt\n$end = s...
PHP
Apache License 2.0
jerry-shaw/nervsys
change error trigger to exception or logger
323,346
25.05.2018 19:45:18
-28,800
3f9063d4304c3c4f7ba9a4ae67ae648c5ac21593
add LOAD to config to call functions on loading
[ { "change_type": "MODIFY", "old_path": "core/config.ini", "new_path": "core/config.ini", "diff": "; For Cross-origin resource sharing permission\n[INIT]\n-; Initial function settings\n+; Initial function on startup\n; Calling before operator actions\n; No returned value will be captured\n+[LOAD]\n+;...
PHP
Apache License 2.0
jerry-shaw/nervsys
add LOAD to config to call functions on loading
323,346
26.05.2018 12:04:24
-28,800
11f5d4d53a33e58db5368f7222a5f791d35ec451
INIT/LOAD caller merged
[ { "change_type": "MODIFY", "old_path": "core/handler/observer.php", "new_path": "core/handler/observer.php", "diff": "@@ -40,9 +40,9 @@ class observer\n//Check CORS permissions\nself::chk_cors();\n- //Call INIT command\n+ //Call INIT commands\nif (!empty(config::$INIT)) {\n- operator::call_init();\n...
PHP
Apache License 2.0
jerry-shaw/nervsys
INIT/LOAD caller merged
323,346
26.05.2018 12:57:09
-28,800
4cc35c5c0c1aea40a4821f287eada12e25155f58
add more observer::stop check points
[ { "change_type": "MODIFY", "old_path": "core/handler/observer.php", "new_path": "core/handler/observer.php", "diff": "@@ -40,18 +40,35 @@ class observer\n//Check CORS permissions\nself::chk_cors();\n+ //Check observer status\n+ if (self::stop()) {\n+ return;\n+ }\n+\n//Call INIT commands\nif (!empty...
PHP
Apache License 2.0
jerry-shaw/nervsys
add more observer::stop check points
323,346
26.05.2018 13:34:50
-28,800
b40d2a92fdca85d1e0b45373640450d57fe90982
init_load function fixed & add option to log/show observer stop
[ { "change_type": "MODIFY", "old_path": "core/handler/observer.php", "new_path": "core/handler/observer.php", "diff": "@@ -41,7 +41,7 @@ class observer\nself::chk_cors();\n//Check observer status\n- if (self::stop()) {\n+ if (self::stop(true)) {\nreturn;\n}\n@@ -51,7 +51,7 @@ class observer\n}\n//Che...
PHP
Apache License 2.0
jerry-shaw/nervsys
init_load function fixed & add option to log/show observer stop
323,346
26.05.2018 18:44:36
-28,800
f6c2d80444f4ca90459733b32b7c597fbb67ded1
update README.md & minor change
[ { "change_type": "MODIFY", "old_path": "core/handler/observer.php", "new_path": "core/handler/observer.php", "diff": "@@ -58,10 +58,10 @@ class observer\n//Prepare input\ninput::prep();\n- //Prepare cmd\n+ //Prepare CMD\ncmd::prep();\n- //Run cgi process\n+ //Run CGI process\noperator::run_cgi();\n/...
PHP
Apache License 2.0
jerry-shaw/nervsys
update README.md & minor change
323,346
26.05.2018 21:18:12
-28,800
1e12175e5af5f345d2af5ed1d2cc068c67bed1ea
remove escapeshellcmd from platform handler
[ { "change_type": "MODIFY", "old_path": "core/handler/platform.php", "new_path": "core/handler/platform.php", "diff": "@@ -52,7 +52,7 @@ class platform implements os\n*/\npublic static function cmd_bg(string $cmd): string\n{\n- return escapeshellcmd(forward_static_call([self::handler(), __FUNCTION__]...
PHP
Apache License 2.0
jerry-shaw/nervsys
remove escapeshellcmd from platform handler
323,346
28.05.2018 21:53:53
-28,800
ade145b329d5dcbd0905a0812e87729d7c220aec
ext code clean up
[ { "change_type": "MODIFY", "old_path": "ext/upload.php", "new_path": "ext/upload.php", "diff": "@@ -207,7 +207,7 @@ class upload\n}\n//Get binary data\n- $binary_data = base64_decode(substr($base64, $data_pos + 8));\n+ $binary_data = base64_decode(substr($base64, $data_pos + 8), true);\n//Image data...
PHP
Apache License 2.0
jerry-shaw/nervsys
ext code clean up
323,346
28.05.2018 22:40:01
-28,800
95f56498186aaf23ec25affe97d4c83301f859e3
add data parser & fix mpc escape bugs
[ { "change_type": "MODIFY", "old_path": "core/parser/input.php", "new_path": "core/parser/input.php", "diff": "@@ -122,7 +122,7 @@ class input\n$val = self::opt_val($opt, ['cmd', 'c']);\nif ($val['get'] && is_string($val['data']) && '' !== $val['data']) {\n- unit::$data += [$val['key'] => $val['data'...
PHP
Apache License 2.0
jerry-shaw/nervsys
add data parser & fix mpc escape bugs
323,346
29.05.2018 08:34:59
-28,800
c2c4239e7aba64a5b6a3fdf87aab50762f7eddff
fix register_shutdown_function call on clear locks
[ { "change_type": "MODIFY", "old_path": "ext/redis_lock.php", "new_path": "ext/redis_lock.php", "diff": "@@ -90,6 +90,19 @@ class redis_lock extends redis\nunset($key, $lock_key);\n}\n+ /**\n+ * Clear all locks\n+ */\n+ public static function clear(): void\n+ {\n+ if (!empty(self::$lock)) {\n+ //Dele...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix register_shutdown_function call on clear locks
323,346
30.05.2018 11:46:36
-28,800
7f603ce668495a3a78abad0d7e1b2d097673eb7d
redis_queue extension rebuild & minor fix
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -93,6 +93,23 @@ The words above are reserved by NervSys core. So that, they should be taken care\n\"setting.ini\" locates right under \"core\" folder, which contains most of the important setting sections.\n+###...
PHP
Apache License 2.0
jerry-shaw/nervsys
redis_queue extension rebuild & minor fix
323,346
30.05.2018 13:07:28
-28,800
880feea154d42306430df6902a0619ab2ce6703b
support multiple uploads
[ { "change_type": "MODIFY", "old_path": "ext/upload.php", "new_path": "ext/upload.php", "diff": "@@ -215,25 +215,24 @@ class upload\n$save_name .= substr(hash('md5', uniqid(mt_rand(), true)), 16);\n//Save file\n- $url = self::save_file($file['tmp_name'], $save_path, $save_name . '.' . $file_ext);\n+ ...
PHP
Apache License 2.0
jerry-shaw/nervsys
support multiple uploads
323,346
31.05.2018 01:28:13
-28,800
30c0566e5bdddc1b1c83d23eff856271a6eb20b9
add "data", "pipe", "argv" for MPC jobs
[ { "change_type": "MODIFY", "old_path": "ext/http.php", "new_path": "ext/http.php", "diff": "@@ -109,7 +109,7 @@ class http\n$list = '' === $url ? (is_string(self::$url) ? [self::$url] : (is_array(self::$url) ? self::$url : [])) : [$url];\nif (empty($list)) {\n- throw new \\Exception('NO URLs in requ...
PHP
Apache License 2.0
jerry-shaw/nervsys
add "data", "pipe", "argv" for MPC jobs
323,346
31.05.2018 10:57:05
-28,800
4c616ee2f2496735f5d3fef7ba39e71afde283ea
update support PHP version to 7.2 for object type hint
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -6,13 +6,13 @@ Stable Version: 6.0.0\n## About\n* What is Nervsys?\n-A very slight framework based on PHP7.1+ for universal API controlling.\n+A very slight framework based on PHP7.2+ for universal API controlli...
PHP
Apache License 2.0
jerry-shaw/nervsys
update support PHP version to 7.2 for object type hint
323,346
13.06.2018 02:12:28
-28,800
e4f2710972b1842eee02cc2cafd15cd6722ecc5b
type hint change
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -293,7 +293,7 @@ class TestA\n{\n//some code...\n//$tz controlling...\n- //Unit data controlling...\n+ //Process data controlling...\n//etc...\n}\n" }, { "change_type": "MODIFY", "old_path": "core/ha...
PHP
Apache License 2.0
jerry-shaw/nervsys
type hint change
323,346
13.06.2018 14:53:18
-28,800
e6fa00fbc1d266c736760103b36d5cd2871cbab3
change file name from settings.php to initial.php
[ { "change_type": "MODIFY", "old_path": "api.php", "new_path": "api.php", "diff": "@@ -24,8 +24,8 @@ declare(strict_types = 1);\n//Set error level\nerror_reporting(E_ALL | E_STRICT);\n-//Require setting script\n-require __DIR__ . '/core/settings.php';\n+//Load initial script\n+require __DIR__ . '/cor...
PHP
Apache License 2.0
jerry-shaw/nervsys
change file name from settings.php to initial.php
323,346
13.06.2018 20:26:42
-28,800
9935e80a50d22113930272bdb8a5fe9621e7f7f5
fix redis_queue root process order, other changes
[ { "change_type": "MODIFY", "old_path": "core/handler/operator.php", "new_path": "core/handler/operator.php", "diff": "@@ -356,14 +356,14 @@ class operator extends process\nthrow new \\Exception($order . ' => ' . $method . ': NOT for public!');\n}\n- //Build arguments\n- $params = data::build_argv($r...
PHP
Apache License 2.0
jerry-shaw/nervsys
fix redis_queue root process order, other changes
323,346
13.06.2018 21:50:58
-28,800
5ab5927a213b081591f276f924cb0fe399527b4f
mpc extension improved
[ { "change_type": "MODIFY", "old_path": "ext/mpc.php", "new_path": "ext/mpc.php", "diff": "@@ -42,13 +42,10 @@ class mpc\n//Max running processes\npublic static $max_runs = 10;\n- //PHP key name in \"setting.ini\"\n+ //PHP key name in \"settings.ini\"\npublic static $php_key = 'php';\n- //PHP executa...
PHP
Apache License 2.0
jerry-shaw/nervsys
mpc extension improved
323,346
13.06.2018 23:51:32
-28,800
eb33102ecce52d98e0e2fa8173cfc01d65194ce6
set core operator to factory singleton
[ { "change_type": "MODIFY", "old_path": "core/handler/operator.php", "new_path": "core/handler/operator.php", "diff": "@@ -358,7 +358,7 @@ class operator extends process\n//Create object\nif (!$reflect->isStatic()) {\n- $class = factory::new($class);\n+ $class = factory::get($class);\n}\n//Build argu...
PHP
Apache License 2.0
jerry-shaw/nervsys
set core operator to factory singleton
323,346
14.06.2018 00:19:03
-28,800
83773f8bea4bbfa35d6b13768f83a9c0d7ad041b
always check file existence before load (avoid potential ERROR on CLI)
[ { "change_type": "MODIFY", "old_path": "core/initial.php", "new_path": "core/initial.php", "diff": "@@ -50,13 +50,21 @@ spl_autoload_register(\nif (false !== $file = realpath(ROOT . strtr($lib, '\\\\', DIRECTORY_SEPARATOR) . '.php')) {\nrequire $file;\n}\n+ } elseif ('' !== $path = get_include_path(...
PHP
Apache License 2.0
jerry-shaw/nervsys
always check file existence before load (avoid potential ERROR on CLI)
323,346
14.06.2018 09:45:07
-28,800
a09932a33ff7ce2a9e935b72bdfbb1e2739105d1
improve error log show
[ { "change_type": "MODIFY", "old_path": "core/handler/error.php", "new_path": "core/handler/error.php", "diff": "@@ -105,12 +105,7 @@ class error\n*/\npublic static function error_handler(int $errno, string $errstr, string $errfile, int $errline): void\n{\n- //Set log show option\n- log::$show = 0 < ...
PHP
Apache License 2.0
jerry-shaw/nervsys
improve error log show
323,337
14.06.2018 11:01:00
-28,800
b1f5351f1ee98255c0d61e6f9d13a4d126de16b1
extension 'ext' dir add new extensions inclouded xml,zip
[ { "change_type": "ADD", "old_path": null, "new_path": "ext/zip.php", "diff": "+<?php\n+namespace ext;\n+use \\ext\\lib\\fileOperate;\n+class zip extends fileOperate\n+{\n+ //ZipArchive object\n+ private static $_zip;\n+ //zip file real path\n+ private static $_zipFile;\n+ //static init object (self)...
PHP
Apache License 2.0
jerry-shaw/nervsys
extension 'ext' dir add new extensions inclouded xml,zip
323,346
14.06.2018 14:07:20
-28,800
cfae7f1d071c24ddb00565c557163bea3c438719
improve log writing method
[ { "change_type": "MODIFY", "old_path": "core/helper/log.php", "new_path": "core/helper/log.php", "diff": "@@ -157,15 +157,25 @@ class log\narray_unshift($context, date('Y-m-d H:i:s'), ucfirst($level) . ': ' . $message);\n$context[] = '';\n- //Generate log file name\n- $file = self::$path . $level . ...
PHP
Apache License 2.0
jerry-shaw/nervsys
improve log writing method
323,346
16.06.2018 23:40:34
-28,800
d942c020c6ee9a5e189689ac4275987eba8f8540
remove unnecessary log entries, code clean up
[ { "change_type": "MODIFY", "old_path": "core/handler/operator.php", "new_path": "core/handler/operator.php", "diff": "namespace core\\handler;\n-use core\\helper\\log;\n-\nuse core\\parser\\cmd;\nuse core\\parser\\data;\nuse core\\parser\\input;\n@@ -160,8 +158,7 @@ class operator extends process\n}...
PHP
Apache License 2.0
jerry-shaw/nervsys
remove unnecessary log entries, code clean up