Uploaded the files.
This commit is contained in:
		
						commit
						37661b3ee7
					
				
					 374 changed files with 90632 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								logout.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								logout.php
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
<?php
 | 
			
		||||
 | 
			
		||||
session_start();
 | 
			
		||||
 | 
			
		||||
unset($_SESSION["uid"]);
 | 
			
		||||
 | 
			
		||||
unset($_SESSION["name"]);
 | 
			
		||||
 | 
			
		||||
$BackToMyPage = $_SERVER['HTTP_REFERER'];
 | 
			
		||||
if(isset($BackToMyPage)) {
 | 
			
		||||
    header('Location: '.$BackToMyPage);
 | 
			
		||||
} else {
 | 
			
		||||
    header('Location: index.php'); // default page
 | 
			
		||||
}
 | 
			
		||||
   
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue