Location: PHPKode > scripts > WH Social > wh_social/signout.php
<?php require('framework/session.php'); ?>
<?php require('style/layout/header.php'); ?>

<div id="content_wrapper">
    <div class="content">

    <?php

		if($_SESSION['signed_in'] == TRUE) {

            $sql = "DELETE FROM
    					online
    				WHERE
    					DATE_SUB(NOW(), INTERVAL 1 MINUTE) > timed
                    AND
                        id = '" . (int)$_SESSION['id'] . "'";

    		mysql_query($sql) OR die(mysql_error());

    		$_SESSION['signed_in'] = NULL;
    		$_SESSION['name'] = NULL;
    		$_SESSION['id']   = NULL;

    		$_SESSION = array();

            include_once('framework/controller.php');
            close_connection();

        echo '<h1>' . $lang['goodbye'] . '</h1>';

		echo '<p class="success">' . $lang['successfully_signed_out'] . '</p>';

		$autoforward = 3;
        echo '<meta http-equiv="refresh" content="' . $autoforward . '; URL=index.php">';

			}else{

			echo '<p class="false">' . $lang['not_signed_in'] . ' - <a href="signin.php" class="false_link">' . $lang['now_sign_in'] . '</a></p>';
			}

	?>

<?php require('style/layout/footer.php'); ?>
Return current item: WH Social