devilbox/.devilbox/www/htdocs/logout.php

12 lines
225 B
PHP
Raw Normal View History

<?php require '../config.php'; ?>
<?php
if (isset($_GET['id'])) {
if ($_GET['id'] == session_id()) {
loadClass('Helper')->logout();
loadClass('Helper')->redirect('/login.php');
}
}
loadClass('Helper')->redirect('/');