Nun werden alle inhalte des Marktes angezeigt wenn man nicht auf onepiece oder dragonball filtert

main
hecht 10 years ago
parent e84f1dc0ad
commit e7a1075434

@ -169,7 +169,10 @@ exit;
////ITEMS in der navi ////ITEMS in der navi
$filter = '1';
if(isset($charm)) {
$filter = '(type=\''.$charm.'\' OR type=\'ALL\')';
}
if($pagenum == "" or $pagenum == 1) if($pagenum == "" or $pagenum == 1)
{ {
@ -182,7 +185,7 @@ exit;
if(!$oder) { $oder = 'level,preis'; } if(!$oder) { $oder = 'level,preis'; }
if(!$ords) { $ords = "Trank"; } if(!$ords) { $ords = "Trank"; }
$item_name = mysql_query("SELECT * FROM item WHERE (type='$charm' OR type='ALL') AND s_type='$ords' order by $oder ASC LIMIT $pagenum, 10"); $item_name = mysql_query("SELECT * FROM item WHERE $filter AND s_type='$ords' order by $oder ASC LIMIT $pagenum, 10");
$user = mysql_Fetch_array(mysql_query("SELECT id, geld, item_res FROM user WHERE id='$user_ida[id]' LIMIT 1")); $user = mysql_Fetch_array(mysql_query("SELECT id, geld, item_res FROM user WHERE id='$user_ida[id]' LIMIT 1"));
$user_item = mysql_query("SELECT name, id FROM item "); $user_item = mysql_query("SELECT name, id FROM item ");
@ -239,7 +242,7 @@ exit;
} }
$Total = mysql_num_rows(mysql_query("SELECT id FROM item WHERE (type='$charm' OR type='ALL') AND s_type='$ords'")); $Total = mysql_num_rows(mysql_query("SELECT id FROM item WHERE $filter AND s_type='$ords'"));
$pages = ceil($Total/10); $pages = ceil($Total/10);
$z = 1; $z = 1;

@ -23,7 +23,7 @@ if(!defined('ROOT_PATH')) {
if($url_path != null) { if($url_path != null) {
define('ROOT_URL', $url_path); define('ROOT_URL', $url_path);
} else { } else {
define('ROOT_URL', '/ag'); // --> currently no support for cronjobs define('ROOT_URL', '/'); // --> currently no support for cronjobs
} }
} }
} }

Loading…
Cancel
Save