File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -404,7 +404,7 @@ FodyWeavers.xsd
404404
405405# aseqbase
406406~ *
407- \. *
407+ .htaccess
408408/private
409409/public
410410/test
Original file line number Diff line number Diff line change 2121 ],
2222 "minimum-stability" : " dev" ,
2323 "prefer-stable" : true ,
24- "scripts" : {
25- "start" : " php -S localhost:8000 & net start MySQL & php index.php"
24+ "scripts" : {
25+ "start" : [
26+ " Composer\\ Config::disableProcessTimeout" ,
27+ " php -S localhost:8000" ,
28+ " net start MySQL" ,
29+ " php index.php"
30+ ]
2631 },
2732 "autoload" : {
2833 "psr-4" : {
Original file line number Diff line number Diff line change 55if (!isset ($ GLOBALS ["HOST " ])){
66 $ GLOBALS ["HOST " ] = (isset ($ _SERVER ['HTTPS ' ])?"https:// " :"http:// " );
77 if ($ NEST > 0 ){
8+ $ host_parts = [];
89 if (preg_match ("/(\d+\.)+$/ " ,$ _SERVER ["HTTP_HOST " ]))
910 $ host_parts = explode (". " , strtolower (trim ($ _SERVER ["HTTP_HOST " ])));
10- elseif (preg_match ("/localhost$/ " , $ _SERVER ["HTTP_HOST " ]))
11- $ host_parts = [... explode ( " . " , strtolower (trim ($ _SERVER ["HTTP_HOST " ]) )), "" ];
11+ elseif (preg_match ("/localhost(:\d{,6})? $/ " , $ _SERVER ["HTTP_HOST " ]))
12+ $ host_parts = [strtolower (trim ($ _SERVER ["HTTP_HOST " ])), "" ];
1213 else $ host_parts = explode (". " , strtolower (trim ($ _SERVER ["HTTP_HOST " ])));
1314 $ hpc = count ($ host_parts );
1415 $ GLOBALS ["HOST " ] .= $ host_parts [$ hpc -(1 +$ NEST )];
1516 for ($ i = $ NEST ; $ i > 0 ; $ i --) $ GLOBALS ["HOST " ] .= ". " .$ host_parts [$ hpc -$ i ];
17+ $ GLOBALS ["HOST " ] = trim ($ GLOBALS ["HOST " ], ". " );
1618 }
1719 else $ GLOBALS ["HOST " ] .= strtolower (trim ($ _SERVER ["HTTP_HOST " ]));
1820}
Original file line number Diff line number Diff line change 11<?php
22// To unset the default router sat at the bottom layers
3- \_::$ Back ->Router ->Route ->Reset ();
3+ \_::$ Back ->Router ->On () ->Reset ();
44
55/**
66 * Use your routers by below formats
7- * \_::$Back->Router->Route ("A Part Of Path?")->Default("Route Name");
7+ * \_::$Back->Router->On ("A Part Of Path?")->Default("Route Name");
88 */
99
1010// To route other requests to the DefaultRouteName
11- \_::$ Back ->Router ->Route ->Default (\_::$ Config ->DefaultRouteName );
11+ \_::$ Back ->Router ->On () ->Default (\_::$ Config ->DefaultRouteName );
1212?>
You can’t perform that action at this time.
0 commit comments