Oi har postet feil koder her beklager det hehe.
id int(255) Nei auto_increment
Userid varchar(32) latin1_swedish_ci Nei
IP varchar(120) latin1_swedish_ci Ja
User_agent varchar(1000) latin1_swedish_ci Ja
Time_start int(225) Ja 0
Last_updated int(225) Ja 0
Expires int(225) Ja 1200
Active int(1) Ja 1
Kodesnutt:
<?php
$starttime = microtime(true);
define('BASEPATH', true);
require_once('../system/config.php');
if (!IS_ONLINE)
{
header("Location: ../index.php?orign=" . rawurlencode($_SERVER['REQUEST_URI']));
exit;
}
/*
IS ONLINE
*/
$wanted_reset_price = 5;
$wanted_reset_price = round($wanted_reset_price/100 * View::AsPercent(Player:
ata('wanted-level'), $config['max_wanted-level']), 0);
if ($wanted_reset_price < 1)
$wanted_reset_price = 1;
// Log out.
if (isset($_GET['logout']))
{
$online_user->logout('IN-1');
header("Location: /?logout");
exit;
}