Manage code rewriting
This commit is contained in:
parent
99067ed2e1
commit
aace9db326
17 changed files with 304 additions and 287 deletions
|
|
@ -368,6 +368,7 @@ define("ARROWUP","⇧");
|
|||
// Url of NOALYSS (http://...)
|
||||
//
|
||||
if (!defined("NOALYSS_URL")) {
|
||||
if ( isset ( $_SERVER)) {
|
||||
$protocol = "http";
|
||||
if (isset ($_SERVER['REQUEST_SCHEME'])) {
|
||||
$protocol = $_SERVER['REQUEST_SCHEME'];
|
||||
|
|
@ -377,6 +378,9 @@ if (!defined("NOALYSS_URL")) {
|
|||
":" . $_SERVER['SERVER_PORT'] .
|
||||
dirname($_SERVER['PHP_SELF']);
|
||||
define("NOALYSS_URL", $base);
|
||||
}else {
|
||||
define("NOALYSS_URL","command-line");
|
||||
}
|
||||
}
|
||||
if (!defined("DEFAULT_SERVER_VIDEO_CONF")) {
|
||||
define("DEFAULT_SERVER_VIDEO_CONF", "https://www.free-solutions.org/");
|
||||
|
|
@ -400,6 +404,7 @@ function noalyss_class_autoloader($class)
|
|||
}
|
||||
|
||||
$aClass = array(
|
||||
"trait_card"=>"class/trait_card.php",
|
||||
"database" => "class/database.class.php",
|
||||
"acc_detail" => "class/acc_operation.class.php",
|
||||
"acc_sold" => "class/acc_operation.class.php",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue