connect(); $wartungsmodus = $db->first("SELECT `v2` FROM ".$DB['c1']." WHERE `v1` = 'wartung' LIMIT 1"); if ($wartungsmodus['v2'] >= '1') $_GET['site'] = 'common/wartung'; if (!isset($_GET['site']) || empty ($_GET['site'])) $_GET['site'] = 'common/start'; if ($_GET['ref']) { $referrer = base64_decode($_GET['ref']); if ($_SESSION['ref'] == '0' || $_SESSION['ref'] == '' || !$_SESSION['ref'] || !isset($_SESSION['ref'])) $_SESSION['ref'] = intval($referrer); } $db->query("UPDATE ".$DB['c1']." SET `v2` = `v2`+1 WHERE `v1` = 'hits' LIMIT 1"); $time1 = time() - 300; $db->query("DELETE FROM ".$DB['counter']." WHERE `time` <= '".$time1."'"); $db->query("UPDATE ".$DB['counter']." SET `time` = '".time()."' WHERE `ip` = '".$_SERVER['REMOTE_ADDR']."' LIMIT 1"); if (mysql_affected_rows () == 0) { $db->query("INSERT INTO ".$DB['counter']." (`ip`,`time`) VALUES ('".$_SERVER['REMOTE_ADDR']."','".time()."')"); } $online = $db->rows("SELECT `ip` FROM ".$DB['counter']." WHERE 1"); $_GET['cat'] = intval($_GET['cat']); $_GET['id'] = intval($_GET['id']); if ($_SESSION['login'] == 'true' && $_SESSION['uid'] > '0' && $_GET['action'] == 'add' && $_GET['id'] > 0) { $db->query("UPDATE ".$DB['cart']." SET `anzahl` = `anzahl` + 1 WHERE `uid` = '".$_SESSION['uid']."' AND `aid` = '".$_GET['id']."' LIMIT 1"); if (mysql_affected_rows () == 0) $db->query("INSERT INTO ".$DB['cart']." (`uid`,`aid`,`anzahl`) VALUES ('".$_SESSION['uid']."','".$_GET['id']."','1')"); if ($_GET['cat']) $cat_str = '&cat='.$_GET['cat'].'&jump='.$_GET['id'].''; if ($_GET['site'] == 'details') $cat_str = '&id='.$_GET['id'].''; header ("Location: index.php?site=".$_GET['site']."".$cat_str.""); } if ($_SESSION['login'] == 'true' && $_SESSION['uid'] > '0' && $_GET['action'] == 'remove' && $_GET['id'] > 0) { $db->query("UPDATE ".$DB['cart']." SET `anzahl` = `anzahl` - 1 WHERE `uid` = '".$_SESSION['uid']."' AND `aid` = '".$_GET['id']."' LIMIT 1"); $db->query("DELETE FROM ".$DB['cart']." WHERE `uid` = '".$_SESSION['uid']."' AND `anzahl` = '0'"); if ($_GET['cat']) $cat_str = '&cat='.$_GET['cat'].''; if ($_GET['site'] == 'details') $cat_str = '&id='.$_GET['id'].''; header ("Location: index.php?site=".$_GET['site']."".$cat_str.""); } ?>
 

 Home   |   AGB   |   Mediadaten   |   Impressum   |   Lizenzkey prüfen

close(); ?>