Redirect to profile overview if vacation mode is disabled

+Now if vacation mode is disabled and whoever wants to go to the well-known 
vacation mode link, it will be redirected to an overview of its profile.
This commit is contained in:
Vladyslav
2018-06-27 11:11:47 +03:00
committed by GitHub
parent 3f64e4f3bc
commit 3cbcdd4bd1
+8
View File
@@ -1,3 +1,5 @@
<?php if(NEW_FUNCTIONS_VACATION){
?>
<h1>Player profile</h1>
<?php
@@ -78,3 +80,9 @@ echo "<span class=\"error\">".$form->getError("vac")."</span>";
?>
<p class="btn"><input type="image" value="" name="s1" id="btn_save" class="dynamic_img" src="img/x.gif" alt="save" /></p>
</form>
<?php
}else{
header("Location: ".$_SERVER['PHP_SELF']."?uid=".$session->uid);
exit;
}
?>