';
} else {
diff --git a/ag/inclu/user-controll.php b/ag/inclu/user-controll.php
index f110dc5..6229e01 100644
--- a/ag/inclu/user-controll.php
+++ b/ag/inclu/user-controll.php
@@ -11,18 +11,18 @@ include_once(ROOT_PATH.'//include/designfunctions.inc.php');
include_once (ROOT_PATH . '/include/clan.inc.php');
include_once (ROOT_PATH . '/include/clan_chat.inc.php');
-$itemsx1 = mysqli_stmt_num_rows(db_query("SELECT id FROM sp_ware WHERE item='1' AND user='$user_ida[id]'"));
+$itemsx1 = mysqli_num_rows(db_query("SELECT id FROM sp_ware WHERE item='1' AND user='$user_ida[id]'"));
$itemsz1 = mysqli_fetch_array(db_query("SELECT id FROM sp_ware WHERE item='1' AND user='$user_ida[id]' LIMIT 1"));
-$itemsx2 = mysqli_stmt_num_rows(db_query("SELECT id FROM sp_ware WHERE item='2' AND user='$user_ida[id]'"));
+$itemsx2 = mysqli_num_rows(db_query("SELECT id FROM sp_ware WHERE item='2' AND user='$user_ida[id]'"));
$itemsz2 = mysqli_fetch_array(db_query("SELECT id FROM sp_ware WHERE item='2' AND user='$user_ida[id]' LIMIT 1"));
-$anmeldungen = mysqli_stmt_num_rows(db_query("SELECT id FROM user"));
-$db_info = mysqli_stmt_num_rows(db_query("SELECT id FROM sp_ware WHERE user='$user_ida[id]' AND item='11'"));
+$anmeldungen = mysqli_num_rows(db_query("SELECT id FROM user"));
+$db_info = mysqli_num_rows(db_query("SELECT id FROM sp_ware WHERE user='$user_ida[id]' AND item='11'"));
$user_info_test = mysqli_fetch_array(db_query("SELECT geld FROM user WHERE nickname='$name' LIMIT 1"));
-//$nnn_nn = mysqli_stmt_num_rows(db_query("SELECT id FROM nachricht WHERE besitzer='$user_ida[id]' AND ag='neu'"));
+//$nnn_nn = mysqli_num_rows(db_query("SELECT id FROM nachricht WHERE besitzer='$user_ida[id]' AND ag='neu'"));
//echo $nnn_nn;
$zeit = date("H:i:s");
$date = date("d.m.y");
diff --git a/ag/include/arena.inc.php b/ag/include/arena.inc.php
index 9805fc2..30c1c22 100644
--- a/ag/include/arena.inc.php
+++ b/ag/include/arena.inc.php
@@ -59,7 +59,7 @@ function calculateRenovierungsKosten($arena){
function getArena($user_id) {
$sql_select = 'SELECT * FROM arena where besitzer = \''.$user_id.'\'';
$qry = db_query($sql_select);
- if(mysqli_stmt_num_rows($qry) == 0) {
+ if(mysqli_num_rows($qry) == 0) {
$sql = 'INSERT arena(besitzer, exp) values (\''.$user_id.'\', \'0,'.calculateRequiredExpArena(1).'\')';
db_query($sql);
$qry = db_query($sql_select);
diff --git a/ag/include/auktion_functions.inc.php b/ag/include/auktion_functions.inc.php
index 32360e2..b8d8de4 100644
--- a/ag/include/auktion_functions.inc.php
+++ b/ag/include/auktion_functions.inc.php
@@ -28,7 +28,7 @@ include_once(ROOT_PATH.'/include/semaphore.inc.php');
// @Return Integer
function aktuellesMindestgebot($auktionsid){
$qry = db_query('SELECT aktuellesgebot, startgebot FROM auktion WHERE auktionsid = '.$auktionsid);
- if(mysqli_stmt_num_rows($qry) != 1){ // Auktion nicht vorhanden??
+ if(mysqli_num_rows($qry) != 1){ // Auktion nicht vorhanden??
return -1;
}
$result = mysqli_fetch_assoc($qry); // Hole dir den einen Datensatz
@@ -268,7 +268,7 @@ function getAuktionTotalCount($kategorie,$itemnamepart,$maxPrice){
}
$test = 'SELECT count(auktionsid) as anzahl FROM auktion WHERE 1 '.$kategorieDelimitier.$stringDelimiter.$priceDelimiter.' AND TIMESTAMPDIFF(Minute,now(),deadline) >= 0';
$qry = db_query($test);
- if(mysqli_stmt_num_rows($qry) == 0){
+ if(mysqli_num_rows($qry) == 0){
return 0;
}
$result = mysqli_fetch_assoc($qry);
@@ -305,7 +305,7 @@ function getAuktionEntries($kategorie,$itemnamepart,$entriesPerSite,$pageNumber,
function getEntryInformation($auktionsid){
if(!is_numeric($auktionsid)){return;}
$qry = db_query('SELECT u.nickname AS anbietername, u2.nickname AS bietername, a.auktionsid,a.anbieter,a.bieter,a.itemid,a.itemname,a.tablename,a.anzahl,a.startgebot,a.aktuellesgebot,a.deadline,a.startdate,a.cheatingverdacht, TIMESTAMPDIFF(Minute,now(),deadline) AS zeitdifferenz FROM auktion AS a INNER JOIN user as u ON a.anbieter = u.id LEFT JOIN user as u2 ON a.bieter = u2.id WHERE auktionsid = '.$auktionsid);
- if(mysqli_stmt_num_rows($qry) == 0){ return NULL; }
+ if(mysqli_num_rows($qry) == 0){ return NULL; }
return mysqli_fetch_assoc($qry);
}
diff --git a/ag/include/bann.inc.php b/ag/include/bann.inc.php
index d1c7a70..b998724 100644
--- a/ag/include/bann.inc.php
+++ b/ag/include/bann.inc.php
@@ -17,11 +17,11 @@ function isSpammer($id){
function becomeSpammer($id,$nick,$text){
// Es gibt 2 indikatoren ein Spammer zu sein
// Man schreibt min 10 posts innerhalb von 20 Sekunden
- $result1 = mysqli_stmt_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' and TIMESTAMPDIFF(Second,zeit,now()) <= 20'));
+ $result1 = mysqli_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' and TIMESTAMPDIFF(Second,zeit,now()) <= 20'));
// Man schreibt min 30 Posts innerhalb einer Minute
- $result2 = mysqli_stmt_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' and TIMESTAMPDIFF(Second,zeit,now()) <= 60'));
+ $result2 = mysqli_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' and TIMESTAMPDIFF(Second,zeit,now()) <= 60'));
// Innerhalb einer halben Minute 4 mal den selben Post!!
- $result3 = mysqli_stmt_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' AND TIMESTAMPDIFF(Second,zeit,now()) <= 30 AND nachricht = \''.$text.'\''));
+ $result3 = mysqli_num_rows(db_query('SELECT * FROM ag_chat WHERE user=\''.$nick.'\' AND TIMESTAMPDIFF(Second,zeit,now()) <= 30 AND nachricht = \''.$text.'\''));
// Und nun noch ein paar Aergernisse
@@ -40,7 +40,7 @@ function becomeSpammer($id,$nick,$text){
}
function setSpamblock($id){
- $anzahl = mysqli_stmt_num_rows(db_query('SELECT * FROM spammer WHERE userid='.$id.' AND TIMESTAMPDIFF(Day,bann_until,now()) <=14'));
+ $anzahl = mysqli_num_rows(db_query('SELECT * FROM spammer WHERE userid='.$id.' AND TIMESTAMPDIFF(Day,bann_until,now()) <=14'));
$zeit = pow(5,($anzahl+1));
db_query('INSERT INTO spammer(userid, bann_until) values('.$id.',TIMESTAMPADD(Minute,'.$zeit.',now()))');
}
diff --git a/ag/include/clan_chat.inc.php b/ag/include/clan_chat.inc.php
index c64f578..c4e7597 100644
--- a/ag/include/clan_chat.inc.php
+++ b/ag/include/clan_chat.inc.php
@@ -48,7 +48,7 @@ function checkAccessRights($user_id, $clan_chat_id) {
if(!$qry) {
return false;
}
- return mysqli_stmt_num_rows($qry);
+ return mysqli_num_rows($qry);
}
function sendClanChatMessage($user_id, $clan_chat_id, $message) {
diff --git a/ag/include/config.inc.php b/ag/include/config.inc.php
index 7018786..63884cc 100644
--- a/ag/include/config.inc.php
+++ b/ag/include/config.inc.php
@@ -58,7 +58,7 @@ if(!checkCookiePassword($name, $passwort)){
}
}
-$banned_accs = mysqli_stmt_num_rows(db_query("SELECT id FROM user WHERE ip!='' AND ip='$user_ida[ip]' AND id!='$user_ida[id]' LIMIT 2"));
+$banned_accs = mysqli_num_rows(db_query("SELECT id FROM user WHERE ip!='' AND ip='$user_ida[ip]' AND id!='$user_ida[id]' LIMIT 2"));
if ($user_ida['id'] != null) {
$as = 'profil';
diff --git a/ag/include/config/db_example.inc.php b/ag/include/config/db_example.inc.php
index 91d556f..7c6895e 100644
--- a/ag/include/config/db_example.inc.php
+++ b/ag/include/config/db_example.inc.php
@@ -19,7 +19,7 @@ $main_db_name = "otherdatabasename";
$GLOBALS['mumble_db_name'] = "anotheradatabasename";
if(!isset($conn)){
- $conn = mysql_connect($db_host, $db_user, $db_passwort);
+ $conn = mysqli_connect($db_host, $db_user, $db_passwort);
$db = mysql_select_db($db_name, $conn);
}
?>
\ No newline at end of file
diff --git a/ag/include/pollfunctions.inc.php b/ag/include/pollfunctions.inc.php
index cbcccd1..5688fef 100644
--- a/ag/include/pollfunctions.inc.php
+++ b/ag/include/pollfunctions.inc.php
@@ -18,7 +18,7 @@
include_once "parse.inc.php";
function stimme($pollid, $polloptionid, $userid, $kommentar){
- if(mysqli_stmt_num_rows(db_query('SELECT * FROM poll_votes WHERE pollid = '.$pollid.' and userid = '.$userid)) == 0){
+ if(mysqli_num_rows(db_query('SELECT * FROM poll_votes WHERE pollid = '.$pollid.' and userid = '.$userid)) == 0){
// NEU einfuegen!
$sql = 'INSERT INTO poll_votes(pollid, polloptionid, userid, comment) values ('.$pollid.','.$polloptionid.','.$userid.',\''.$kommentar.'\')';
db_query($sql);
diff --git a/ag/index.php b/ag/index.php
index 996ea40..6c0d358 100644
--- a/ag/index.php
+++ b/ag/index.php
@@ -21,7 +21,7 @@ include_once(ROOT_PATH.'/include/messagefunctions.inc.php');
// Fuer den Transit von register_globals auf normal
$name = $user_ida['nickname'];
$passwort = $user_ida['passwort'];
-$nnn_nn = mysqli_stmt_num_rows(db_query("SELECT id FROM nachricht WHERE besitzer='$user_ida[id]' AND ag='neu'"));
+$nnn_nn = mysqli_num_rows(db_query("SELECT id FROM nachricht WHERE besitzer='$user_ida[id]' AND ag='neu'"));
$as = $_REQUEST['as'];
$agb = $_REQUEST['agb'];
diff --git a/ag/info/attacken.php b/ag/info/attacken.php
index 87dc626..d004733 100644
--- a/ag/info/attacken.php
+++ b/ag/info/attacken.php
@@ -451,7 +451,7 @@ if (!empty($type) AND empty($fruchttyp)) {
$link = "pagenum=$pagenum&order_art=$order_art&last_klick1=$last_klick1";
if ($p) {
if ($_GET['search']) {
- $anzahl_atks = mysqli_stmt_num_rows(db_query("SELECT id FROM attacken WHERE name LIKE '%".trim($search)."%'"));
+ $anzahl_atks = mysqli_num_rows(db_query("SELECT id FROM attacken WHERE name LIKE '%".trim($search)."%'"));
if ($anzahl_atks == 1) {
$at_z = mysqli_fetch_array(db_query("SELECT id FROM attacken WHERE name='".trim($search)."' LIMIT 1"));
if (empty($at_z)) {
diff --git a/ag/info/items.php b/ag/info/items.php
index ab99a61..bb2f850 100644
--- a/ag/info/items.php
+++ b/ag/info/items.php
@@ -130,7 +130,7 @@ while($row = mysqli_fetch_array($item)) {
}
- $Total = mysqli_stmt_num_rows(db_query("SELECT id FROM item"));
+ $Total = mysqli_num_rows(db_query("SELECT id FROM item"));
$pages = ceil($Total/10);
$z = 1;
diff --git a/ag/kampf_list.php b/ag/kampf_list.php
index 0ba9a8f..885d0f8 100644
--- a/ag/kampf_list.php
+++ b/ag/kampf_list.php
@@ -76,7 +76,7 @@ function starteFight($chara_1, $chara_2, $kampf_info){
function erstelleEinenFight($charid, &$user, $kampf_name, $kampf_pw, $kampf_zeit, $lvl){
// Ermittle ob der User eine Funktionierende Arena besitzt!
$qry = db_query('Select * from arena where besitzer = '.$user['id']);
- if(mysqli_stmt_num_rows($qry) == 0){
+ if(mysqli_num_rows($qry) == 0){
db_query('INSERT arena(besitzer, exp) values (\''.$user_ida['id'].'\', \'0,'.calculateRequiredExpArena(1).'\')');
$arena = db_query('Select * from arena where besitzer = '.$user['id']);
}
@@ -447,7 +447,7 @@ function displayKampfErstellen($user, $portal, $pagenum){
// Ermittle ob der User eine Funktionierende Arena besitzt!
$qry = db_query('Select * from arena where besitzer = '.$user['id']);
$arena = mysqli_fetch_assoc($qry);
- if(mysqli_stmt_num_rows($qry) == 0){
+ if(mysqli_num_rows($qry) == 0){
db_query('INSERT arena(besitzer, exp) values (\''.$user_ida['id'].'\', \'0,'.calculateRequiredExpArena(1).'\')');
$arena = mysqli_fetch_assoc(db_query('Select * from arena where besitzer = '.$user['id']));
}
diff --git a/ag/markt.php b/ag/markt.php
index d03ca90..eed78fa 100644
--- a/ag/markt.php
+++ b/ag/markt.php
@@ -235,14 +235,14 @@ exit;
while($row2 = mysqli_fetch_array($user_item)) {
- $user_items = mysqli_stmt_num_rows(db_query("SELECT id FROM ware WHERE item_id='$row2[id]' AND user='$user_ida[id]' LIMIT 100"));
+ $user_items = mysqli_num_rows(db_query("SELECT id FROM ware WHERE item_id='$row2[id]' AND user='$user_ida[id]' LIMIT 100"));
if($user_items) {
$STORE_ITEMS .= "".$row2['name']." x ".$user_items." ";
}
}
- $Total = mysqli_stmt_num_rows(db_query("SELECT id FROM item WHERE preis>0 and $filter AND s_type='$ords'"));
+ $Total = mysqli_num_rows(db_query("SELECT id FROM item WHERE preis>0 and $filter AND s_type='$ords'"));
$pages = ceil($Total/10);
$z = 1;
diff --git a/ag/nachricht.php b/ag/nachricht.php
index ae8ea8f..2a3c4f0 100644
--- a/ag/nachricht.php
+++ b/ag/nachricht.php
@@ -40,7 +40,7 @@ function deleteFromIgnorelist($userid, $ignoredUserId){ //charm 7
}
function insertInIgnorelist($userid, $ignorename){ /// if($charm == 6) {
$ignore_user = mysqli_fetch_array(db_query('SELECT id FROM user WHERE nickname=\''.$ignorename.'\''));
- $bereits_ignoriert = mysqli_stmt_num_rows(db_query('SELECT id FROM ignolist WHERE besitzer='.$userid.' AND user='.$ignore_user['id']));
+ $bereits_ignoriert = mysqli_num_rows(db_query('SELECT id FROM ignolist WHERE besitzer='.$userid.' AND user='.$ignore_user['id']));
$fehler_m = '';
$weiter_an = 'weiter...';
if($bereits_ignoriert) {
@@ -147,7 +147,7 @@ function sendMessageForumlar($userid,$username,$besitzer,$betreff,$text){// if($
$weiter_an = 'weiter...';
if(isset($besitzer) && isset($text)) {
$user_erf = mysqli_fetch_assoc(db_query('SELECT id FROM user WHERE nickname=\''.$besitzer.'\''));
- $igno_user = mysqli_stmt_num_rows(db_query('SELECT id FROM ignolist WHERE besitzer='.$user_erf['id'].' AND user='.$userid));
+ $igno_user = mysqli_num_rows(db_query('SELECT id FROM ignolist WHERE besitzer='.$user_erf['id'].' AND user='.$userid));
if($igno_user) {
displayErrorMessage(NULL,'Fehler, der Nutzer '.$besitzer.' hat dich auf seiner Ignorierliste',$weiter_an);
diff --git a/ag/ranglist.php b/ag/ranglist.php
index b7273c8..eeb5405 100644
--- a/ag/ranglist.php
+++ b/ag/ranglist.php
@@ -18,7 +18,7 @@ include_once(ROOT_PATH.'/include/char.inc.php');
$wahl = validateStringCritical($_GET['wahl']);
$char_name = validateName($_GET['char_name']);
-$char_vorhanden = mysqli_stmt_num_rows(db_query('SELECT id FROM chars WHERE name like \''.$char_name.'%\' LIMIT 1'));
+$char_vorhanden = mysqli_num_rows(db_query('SELECT id FROM chars WHERE name like \''.$char_name.'%\' LIMIT 1'));
function displayHighscore($wahl, $char_name, $user, $char_vorhanden){
diff --git a/ag/turnier.php b/ag/turnier.php
index 595839d..5d78462 100644
--- a/ag/turnier.php
+++ b/ag/turnier.php
@@ -69,13 +69,13 @@ function anmelden($user, $charid, $art){
$anzahl = 64;
}
// sehr speziell und deswegen nicht getChar();
- $PRUEF = mysqli_stmt_num_rows(db_query('SELECT id FROM chars WHERE id=\''.$charid.'\' '.$special_clue.' AND besitzer=\''.$user['id'].'\' LIMIT 1'));
+ $PRUEF = mysqli_num_rows(db_query('SELECT id FROM chars WHERE id=\''.$charid.'\' '.$special_clue.' AND besitzer=\''.$user['id'].'\' LIMIT 1'));
if(!$PRUEF) {
displayErrorMessage(NULL,'Charakter erfüllt die Bestimungen nicht!','weiter...');
return;
}
- $sear_a = mysqli_stmt_num_rows(db_query('SELECT id FROM turnier1 WHERE art=\''.$art.'\''));
+ $sear_a = mysqli_num_rows(db_query('SELECT id FROM turnier1 WHERE art=\''.$art.'\''));
if($sear_a >= $anzahl) {
displayErrorMessage(NULL,'Turnier voll! Es künnen maximal nur '.$anzahl.' Chars am Turnier teilnehmen','weiter...');
return;
diff --git a/ag/turnier2.php b/ag/turnier2.php
index 41c91a6..82ef730 100644
--- a/ag/turnier2.php
+++ b/ag/turnier2.php
@@ -41,7 +41,7 @@ if(!$turnier['id']) {
displayErrorMessage(NULL,'Turnier fand noch nicht statt!',$back);
}
else if($charm == 1) {
-$max_turnier = mysqli_stmt_num_rows(db_query('SELECT id FROM turnier_kampf WHERE art=\''.$art.'\''));
+$max_turnier = mysqli_num_rows(db_query('SELECT id FROM turnier_kampf WHERE art=\''.$art.'\''));
echo '';
$turnier_date = date('d.m.Y');