mirror of
				https://gitlab.com/hashborgir/d2tools.git
				synced 2025-10-30 16:43:40 -05:00 
			
		
		
		
	latest copy
This commit is contained in:
		| @@ -72,4 +72,4 @@ if (file_exists($filename)) { | |||||||
| } else { | } else { | ||||||
| 	header('Location: ./src/config.php'); | 	header('Location: ./src/config.php'); | ||||||
| } | } | ||||||
|  | ?> | ||||||
| @@ -1,10 +1,15 @@ | |||||||
|  | <?php | ||||||
|  | if (!empty($_POST)) { | ||||||
|  | 	file_put_contents("../d2um.conf", $_POST['path'].DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'global'.DIRECTORY_SEPARATOR.'excel'.DIRECTORY_SEPARATOR); | ||||||
|  | 	header('Location: /'); | ||||||
|  | } | ||||||
|  | ?> | ||||||
| <!doctype html> | <!doctype html> | ||||||
| <html lang="en"> | <html lang="en"> | ||||||
| 	<?php | 	<?php | ||||||
| 	/* Require the <head> section */ | 	/* Require the <head> section */ | ||||||
| 	require_once "head.php"; | 	require_once "head.php"; | ||||||
| 	?> | 	?> | ||||||
|  |  | ||||||
|     <body style="text-align: center; background: white;"> |     <body style="text-align: center; background: white;"> | ||||||
| 		<div class="container container-top"> | 		<div class="container container-top"> | ||||||
| 			<h1><img src="/img/Diablo2.png" style="float:left">D2UM: Diablo 2 Unique Maker, v2. By HashCasper</h1>	 | 			<h1><img src="/img/Diablo2.png" style="float:left">D2UM: Diablo 2 Unique Maker, v2. By HashCasper</h1>	 | ||||||
| @@ -19,12 +24,5 @@ | |||||||
| 					<input type="submit" value="Write Config" name="submit"> | 					<input type="submit" value="Write Config" name="submit"> | ||||||
| 				</form> | 				</form> | ||||||
| 			</div> | 			</div> | ||||||
|  |  | ||||||
| 	</body> | 	</body> | ||||||
| </html> | </html> | ||||||
|  |  | ||||||
| <?php |  | ||||||
| if (!empty($_POST)) { |  | ||||||
| 	file_put_contents("../d2um.conf", $_POST['path'].DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'global'.DIRECTORY_SEPARATOR.'excel'.DIRECTORY_SEPARATOR); |  | ||||||
| 	header('Location: /'); |  | ||||||
| } |  | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ class saveFile { | |||||||
|  |  | ||||||
| 	public function saveBackup($file){		 | 	public function saveBackup($file){		 | ||||||
| 		 | 		 | ||||||
| 		if (!is_dir($this->path."backup")) mkdir($this->path."backup", 0777); | 		if (!is_dir($this->path."backup")) mkdir($this->path."backup", 0700); | ||||||
| 		 | 		 | ||||||
| 		$newfile = $this->path."backup".DIRECTORY_SEPARATOR.$file.".d2um"; | 		$newfile = $this->path."backup".DIRECTORY_SEPARATOR.$file.".d2um"; | ||||||
|  |  | ||||||
| @@ -58,7 +58,7 @@ class saveFile { | |||||||
| 	public function saveTblEnries() { | 	public function saveTblEnries() { | ||||||
| 		$post = $_POST; | 		$post = $_POST; | ||||||
|  |  | ||||||
| 		if (!is_dir($this->path."tblEntries")) mkdir($this->path."tblEntries", 0777); | 		if (!is_dir($this->path."tblEntries")) mkdir($this->path."tblEntries", 0700); | ||||||
| 		 | 		 | ||||||
| 		// write for .tbl | 		// write for .tbl | ||||||
| 		$str[0] = $post['index']; | 		$str[0] = $post['index']; | ||||||
| @@ -72,3 +72,4 @@ class saveFile { | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| } | } | ||||||
|  | ?> | ||||||
| @@ -61,3 +61,4 @@ class txtParser { | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	} | 	} | ||||||
|  | 	?> | ||||||
		Reference in New Issue
	
	Block a user