Browse Source

Add Upgrade check to index add slash check

causefx 9 years ago
parent
commit
300ed26c51
1 changed files with 4 additions and 0 deletions
  1. 4 0
      index.php

+ 4 - 0
index.php

@@ -29,6 +29,9 @@ $baseURL = "";
 // Load functions
 require_once("functions.php");
 
+//Upgrade Check
+upgradeCheck();
+
 // Get Action
 if(isset($_POST['action'])) {
     $action = $_POST['action'];
@@ -40,6 +43,7 @@ if(!file_exists('config/config.php')) {
 	if($action == "createLocation") {
 		if (isset($_POST['database_Location'])) {
 			$_POST['database_Location'] = str_replace('//','/',$_POST['database_Location'].'/');
+            if(substr($_POST['database_Location'], -1) != "/") : $_POST['database_Location'] = $_POST['database_Location'] . "/"; endif;
 			$_POST['USER_HOME'] = $_POST['database_Location'].'users/';
 		}
 		if (file_exists($_POST['database_Location'])) {