From a448d5ee2dce88ccf208ba1985743e83906b25b7 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Thu, 12 Jan 2017 01:22:25 +0100 Subject: [PATCH] programm fixes --- comment.php | 12 +- faction.php | 10 +- factions.php | 4 +- includes/allcomments.php | 6 +- includes/allitems.php | 26 +- includes/allnpcs.php | 2 +- includes/allobjects.php | 2 +- includes/allquests.php | 6 +- includes/allspells.php | 63 +- includes/game.php | 8 +- item.php | 30 +- items.php | 2 +- itemset.php | 2 +- itemsets.php | 2 +- latest.php | 10 +- main.php | 2 +- npc.php | 24 +- npcs.php | 2 +- object.php | 8 +- objects.php | 2 +- opensearch.php | 2 +- quest.php | 32 +- search.php | 8 +- spell.php | 46 +- spells.php | 12 +- templates/wowhead/js/locale_enus.js | 1756 ++++++++++++++------------- templates/wowhead/maps.tpl | 47 + templates/wowhead/quest.tpl | 2 +- 28 files changed, 1133 insertions(+), 995 deletions(-) diff --git a/comment.php b/comment.php index bff9b0b..cccd44d 100644 --- a/comment.php +++ b/comment.php @@ -26,11 +26,11 @@ switch ($_REQUEST["comment"]): // $_POST['replyto'] - номер поста, на который отвечает // $_SESSION['userid'] - номер пользователя $newid = $DB->query('INSERT - INTO ?_aowow_comments(`type`, `typeid`, `userid`, `commentbody`, `post_date`{, ?#}) + INTO '.$UDWBaseconf['aowow']['db'].'.?_aowow_comments(`type`, `typeid`, `userid`, `commentbody`, `post_date`{, ?#}) VALUES (?d, ?d, ?d, ?, NOW(){, ?d})', (empty($_POST['replyto']) ? DBSIMPLE_SKIP : 'replyto'), $_GET["type"], $_GET["typeid"], (empty($_SESSION['userid']) ? 0 : $_SESSION['userid']), stripslashes($_POST['commentbody']), (empty($_POST['replyto']) ? DBSIMPLE_SKIP : $_POST['replyto']) ); if (empty($_POST['replyto'])) - $DB->query('UPDATE ?_aowow_comments SET `replyto`=?d WHERE `id`=?d LIMIT 1', $newid, $newid); + $DB->query('UPDATE '.$UDWBaseconf['aowow']['db'].'.?_aowow_comments SET `replyto`=?d WHERE `id`=?d LIMIT 1', $newid, $newid); echo ''; echo '