Browse Source

LAST FIX.

pull/9/head
anghenfil 4 years ago
parent
commit
3d1eb5f9b4
  1. 4
      index.php
  2. 2
      install/index-backup.php
  3. 2
      install/mysqlform.php

4
index.php

@ -1,10 +1,10 @@
<?php
define("SECURITY", "TRUE");
define("CONFIG_PATH", "{CONFIGPATH}");
define("CONFIG_PATH", "/var/www/");
define("CONFIG_NAME", "config.env");
//Install check:
if(file_exists("install") && !file_exists(CONFIG_PATH.CONFIG_NAME)){
if(file_exists("install") || !file_exists(CONFIG_PATH.CONFIG_NAME)){
require_once("install/install.php");
}else {
if(!(@include_once __DIR__ . '/vendor/autoload.php')){

2
install/index-backup.php

@ -4,7 +4,7 @@ define("CONFIG_PATH", "{CONFIGPATH}");
define("CONFIG_NAME", "config.env");
//Install check:
if(file_exists("install") && !file_exists(CONFIG_PATH.CONFIG_NAME)){
if(file_exists("install") || !file_exists(CONFIG_PATH.CONFIG_NAME)){
require_once("install/install.php");
}else {
if(!(@include_once __DIR__ . '/vendor/autoload.php')){

2
install/mysqlform.php

@ -89,7 +89,7 @@ $dbh->exec($tables);
fwrite($file, $configappend);
fclose($file);
print("<b style='color: green'>ShitHub installed succesfull! Please REMOVE INSTALL FOLDER!</b>");
print("<b style='color: green'>ShitHub installed succesfull! Please REMOVE INSTALL FOLDER AND DON'T START THE INSTALLATION AGAIN!</b>");
}
}
}

Loading…
Cancel
Save