first commit
This commit is contained in:
68
logout.php
Executable file
68
logout.php
Executable file
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$db = dbconnect();
|
||||
$result = $db->query("DELETE FROM sozkom_online WHERE IP = '".$_SERVER['REMOTE_ADDR']."'");
|
||||
|
||||
|
||||
setcookie("uid1","");
|
||||
|
||||
echo "
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||
<title>Zugang gesperrt</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||
<tr>
|
||||
<td>
|
||||
<div align=\"center\">
|
||||
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||
<tr>
|
||||
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||
<span class=\"sh\">Abmeldung</span><br>
|
||||
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||
<td colspan=\"2\"><br>
|
||||
<p align=\"center\"><b>Der Logoutvorgang wurde erfolgreich abgeschlossen!</b>
|
||||
</p>
|
||||
<p align=\"center\"><a target=\"_parent\" href=\"https://www.hs-ludwigsburg.de/kurs\">
|
||||
<img border=\"0\" src=\"images/b_login.gif\"></a><br>
|
||||
</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
<p><br>
|
||||
</p>
|
||||
</td>
|
||||
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>";
|
||||
?>
|
Reference in New Issue
Block a user