Added a logout button and fixed HTML in simplog.php with 'start_html' and 'end_html'
This commit is contained in:
@@ -11,6 +11,9 @@ include "../includes/login.inc";
|
||||
<p>
|
||||
<a href="edit.php">Edit existing post</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="logout.php">Logout</a>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
end_html();
|
||||
|
14
user/logout.php
Normal file
14
user/logout.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
require "../includes/htmlcode.php";
|
||||
start_html("simplog user interface");
|
||||
setcookie("session", "", time()-3600);
|
||||
?>
|
||||
|
||||
<p>
|
||||
You have been logged out succesfully!<br />
|
||||
<a href="../simplog.php">Return to simplog</a>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
end_html();
|
||||
?>
|
Reference in New Issue
Block a user