mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-30 22:42:25 +00:00 
			
		
		
		
	Globals work sometimes
This commit is contained in:
		
							parent
							
								
									331207f069
								
							
						
					
					
						commit
						755cb4c221
					
				| @ -7,8 +7,8 @@ if (isset($_POST['name'], $_POST['table'])) { | ||||
|         return; | ||||
|     } | ||||
|     require 'includes/page.php'; | ||||
|     $name = $_POST['name']; | ||||
| 
 | ||||
|     global $table_bans, $table_history, $conn; | ||||
|     $stmt = $conn->prepare("SELECT name,uuid FROM " . $table_history . " WHERE name=? ORDER BY date LIMIT 1"); | ||||
|     if ($stmt->execute(array($name))) { | ||||
|         if ($row = $stmt->fetch()) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ruan
						Ruan