Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c4a3b72b01 | |||
| ef261d0855 | |||
| 5c7b0c0d3a | |||
| b568a0e045 | |||
| 7fd353862c | |||
| 91d7ad7d4a | |||
| 96433a7d09 | |||
| 6c1c360c23 | |||
| 550df13ff3 | |||
| b0113e1d78 | |||
| 9b00c6e1c5 | |||
| ca4aa43070 | |||
| 632975e994 | |||
| a448d5ee2d | |||
| 24493b8646 | |||
| 5e4f7b686d |
@ -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 '<meta http-equiv="Refresh" content="0; URL=?' . urlfromtype($_GET["type"], $_GET["typeid"]) . '">';
|
||||
echo '<style type="text/css">';
|
||||
echo 'body {background-color: black;}';
|
||||
@ -40,7 +40,7 @@ switch ($_REQUEST["comment"]):
|
||||
// Удаление комментарий (Ajax)
|
||||
// Номер комментария: $_GET['id']
|
||||
// Имя пользователя, удаляющего комментарий: $_GET['username']
|
||||
$DB->query('DELETE FROM ?_aowow_comments WHERE `id`=?d {AND `userid`=?d} LIMIT 1', $_GET['id'], ($_SESSION['roles'] > 1) ? DBSIMPLE_SKIP : $_SESSION['userid']
|
||||
$DB->query('DELETE FROM '.$UDWBaseconf['aowow']['db'].'.?_aowow_comments WHERE `id`=?d {AND `userid`=?d} LIMIT 1', $_GET['id'], ($_SESSION['roles'] > 1) ? DBSIMPLE_SKIP : $_SESSION['userid']
|
||||
);
|
||||
break;
|
||||
case 'edit':
|
||||
@ -49,7 +49,7 @@ switch ($_REQUEST["comment"]):
|
||||
// Новое содержание комментария: $_POST['body']
|
||||
// Номер пользователя: $_SESSION['userid']
|
||||
if (IsSet($_POST['body']))
|
||||
$DB->query('UPDATE ?_aowow_comments SET `commentbody`=?, `edit_userid`=?, `edit_date`=NOW() WHERE `id`=?d {AND `userid`=?d} LIMIT 1', stripslashes($_POST['body']), $_SESSION['userid'], $_GET['id'], ($_SESSION['roles'] > 1) ? DBSIMPLE_SKIP : $_SESSION['userid']
|
||||
$DB->query('UPDATE '.$UDWBaseconf['aowow']['db'].'.?_aowow_comments SET `commentbody`=?, `edit_userid`=?, `edit_date`=NOW() WHERE `id`=?d {AND `userid`=?d} LIMIT 1', stripslashes($_POST['body']), $_SESSION['userid'], $_GET['id'], ($_SESSION['roles'] > 1) ? DBSIMPLE_SKIP : $_SESSION['userid']
|
||||
);
|
||||
echo $_POST['body'];
|
||||
break;
|
||||
@ -61,8 +61,8 @@ switch ($_REQUEST["comment"]):
|
||||
* Номер пользователя: $_SESSION['userid']
|
||||
*/
|
||||
// Проверка на хоть какое то значение рейтинга, и на то, что пользователь за этот коммент не голосовал
|
||||
if (IsSet($_GET['rating']) and !($DB->selectCell('SELECT `commentid` FROM ?_aowow_comments_rates WHERE `userid`=?d AND `commentid`=?d LIMIT 1', $_SESSION['userid'], $_GET['id'])))
|
||||
$DB->query('INSERT INTO ?_aowow_comments_rates(`commentid`, `userid`, `rate`) VALUES (?d, ?d, ?d)', $_GET['id'], $_SESSION['userid'], $_GET['rating']);
|
||||
if (IsSet($_GET['rating']) and !($DB->selectCell('SELECT `commentid` FROM '.$UDWBaseconf['aowow']['db'].'.?_aowow_comments_rates WHERE `userid`=?d AND `commentid`=?d LIMIT 1', $_SESSION['userid'], $_GET['id'])))
|
||||
$DB->query('INSERT INTO '.$UDWBaseconf['aowow']['db'].'.?_aowow_comments_rates(`commentid`, `userid`, `rate`) VALUES (?d, ?d, ?d)', $_GET['id'], $_SESSION['userid'], $_GET['rating']);
|
||||
break;
|
||||
case 'undelete':
|
||||
// Восстановление комментария
|
||||
14
faction.php
@ -31,8 +31,8 @@ if (!$faction = load_cache(18, intval($id))) {
|
||||
global $DB;
|
||||
|
||||
$row = $DB->selectRow('
|
||||
SELECT factionID, name_loc' . $_SESSION['locale'] . ', description1_loc' . $_SESSION['locale'] . ', description2_loc' . $_SESSION['locale'] . ', team, side
|
||||
FROM ?_aowow_factions
|
||||
SELECT factionID, name' . ', description1' . ', description2' . ', team, side
|
||||
FROM '.$UDWBaseconf['aowow']['db'].'.?_aowow_factions
|
||||
WHERE factionID=?d
|
||||
LIMIT 1
|
||||
', $id
|
||||
@ -42,14 +42,14 @@ if (!$faction = load_cache(18, intval($id))) {
|
||||
// Номер фракции
|
||||
$faction['entry'] = $row['factionID'];
|
||||
// Название фракции
|
||||
$faction['name'] = $row['name_loc' . $_SESSION['locale']];
|
||||
$faction['name'] = $row['name'];
|
||||
// Описание фракции, из клиента:
|
||||
$faction['description1'] = $row['description1_loc' . $_SESSION['locale']];
|
||||
// Описание фракции, c wowwiki.com, находится в таблице factions.sql:
|
||||
$faction['description2'] = $row['description2_loc' . $_SESSION['locale']];
|
||||
// Команда/Группа фракции
|
||||
if ($row['team'] != 0)
|
||||
$faction['group'] = $DB->selectCell('SELECT name_loc' . $_SESSION['locale'] . ' FROM ?_aowow_factions WHERE factionID=?d LIMIT 1', $row['team']);
|
||||
$faction['group'] = $DB->selectCell('SELECT name' . ' FROM '.$UDWBaseconf['aowow']['db'].'.?_aowow_factions WHERE factionID=?d LIMIT 1', $row['team']);
|
||||
// Альянс(1)/Орда(2)
|
||||
if ($row['side'] != 0)
|
||||
$faction['side'] = $row['side'];
|
||||
@ -57,7 +57,7 @@ if (!$faction = load_cache(18, intval($id))) {
|
||||
// Итемы с requiredreputationfaction
|
||||
$item_rows = $DB->select('
|
||||
SELECT ?#, entry
|
||||
FROM ?_item_template i, ?_aowow_icons a
|
||||
FROM ?_item_template i, '.$UDWBaseconf['aowow']['db'].'.?_aowow_icons a
|
||||
WHERE
|
||||
i.RequiredReputationFaction=?d
|
||||
AND a.id=i.displayid
|
||||
@ -73,9 +73,9 @@ if (!$faction = load_cache(18, intval($id))) {
|
||||
// Персонажи, состоящие во фракции
|
||||
$creature_rows = $DB->select('
|
||||
SELECT ?#, entry
|
||||
FROM ?_creature_template, ?_aowow_factiontemplate
|
||||
FROM ?_creature_template, '.$UDWBaseconf['aowow']['db'].'.?_aowow_factiontemplate
|
||||
WHERE
|
||||
FactionAlliance IN (SELECT factiontemplateID FROM ?_aowow_factiontemplate WHERE factionID=?d)
|
||||
FactionAlliance IN (SELECT factiontemplateID FROM '.$UDWBaseconf['aowow']['db'].'.?_aowow_factiontemplate WHERE factionID=?d)
|
||||
AND factiontemplateID=FactionAlliance
|
||||
', $npc_cols[0], $id
|
||||
);
|
||||
|
||||
@ -15,8 +15,8 @@ $smarty->config_load($conf_file, 'factions');
|
||||
global $DB;
|
||||
|
||||
$rows = $DB->select('
|
||||
SELECT factionID, team, name_loc' . $_SESSION['locale'] . ' as name, side
|
||||
FROM ?_aowow_factions
|
||||
SELECT factionID, team, name' . ' as name, side
|
||||
FROM '.$UDWBaseconf['aowow']['db'].'.?_aowow_factions
|
||||
WHERE
|
||||
reputationListID!=-1
|
||||
'
|
||||
@ -29,7 +29,7 @@ if (!$factions = load_cache(19, 'x')) {
|
||||
$factions[$numRow] = array();
|
||||
$factions[$numRow]['entry'] = $row['factionID'];
|
||||
if ($row['team'] != 0)
|
||||
$factions[$numRow]['group'] = $DB->selectCell('SELECT name_loc' . $_SESSION['locale'] . ' FROM ?_aowow_factions WHERE factionID=? LIMIT 1', $row['team']);
|
||||
$factions[$numRow]['group'] = $DB->selectCell('SELECT name' . ' FROM '.$UDWBaseconf['aowow']['db'].'.?_aowow_factions WHERE factionID=? LIMIT 1', $row['team']);
|
||||
if ($row['side'])
|
||||
$factions[$numRow]['side'] = $row['side'];
|
||||
$factions[$numRow]['name'] = $row['name'];
|
||||
|
||||
BIN
images/icons/large/inv_helmet_132.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
images/icons/large/inv_shoulder_89.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
images/icons/large/inv_shoulder_96.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
images/icons/medium/inv_helmet_132.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
images/icons/medium/inv_shoulder_89.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
images/icons/medium/inv_shoulder_96.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_ambush.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_backstab.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_bullrush.jpg
Normal file
|
After Width: | Height: | Size: 983 B |
BIN
images/icons/tiny/ability_cheapshot.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_creature_cursed_01.jpg
Normal file
|
After Width: | Height: | Size: 982 B |
BIN
images/icons/tiny/ability_creature_cursed_02.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_creature_cursed_03.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_creature_cursed_04.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_creature_cursed_05.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_creature_disease_01.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_creature_disease_02.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_creature_disease_03.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_creature_disease_04.jpg
Normal file
|
After Width: | Height: | Size: 1004 B |
BIN
images/icons/tiny/ability_creature_disease_05.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_creature_poison_01.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_creature_poison_02.jpg
Normal file
|
After Width: | Height: | Size: 1010 B |
BIN
images/icons/tiny/ability_creature_poison_03.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_creature_poison_04.jpg
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
images/icons/tiny/ability_creature_poison_05.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_creature_poison_06.jpg
Normal file
|
After Width: | Height: | Size: 1023 B |
BIN
images/icons/tiny/ability_criticalstrike.jpg
Normal file
|
After Width: | Height: | Size: 1020 B |
BIN
images/icons/tiny/ability_defend.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_devour.jpg
Normal file
|
After Width: | Height: | Size: 996 B |
BIN
images/icons/tiny/ability_druid_aquaticform.jpg
Normal file
|
After Width: | Height: | Size: 1015 B |
BIN
images/icons/tiny/ability_druid_balanceofpower.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_druid_bash.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_druid_catform.jpg
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
images/icons/tiny/ability_druid_catformattack.jpg
Normal file
|
After Width: | Height: | Size: 956 B |
BIN
images/icons/tiny/ability_druid_challangingroar.jpg
Normal file
|
After Width: | Height: | Size: 928 B |
BIN
images/icons/tiny/ability_druid_cower.jpg
Normal file
|
After Width: | Height: | Size: 977 B |
BIN
images/icons/tiny/ability_druid_cyclone.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_druid_dash.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_druid_demoralizingroar.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_druid_disembowel.jpg
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
images/icons/tiny/ability_druid_dreamstate.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_druid_empoweredrejuvination.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_druid_empoweredtouch.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_druid_enrage.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_druid_ferociousbite.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_druid_flightform.jpg
Normal file
|
After Width: | Height: | Size: 1000 B |
BIN
images/icons/tiny/ability_druid_forceofnature.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_druid_healinginstincts.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_druid_lacerate.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_druid_lunarguidance.jpg
Normal file
|
After Width: | Height: | Size: 1009 B |
BIN
images/icons/tiny/ability_druid_mangle.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_druid_mangle.tga.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_druid_mangle2.jpg
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
images/icons/tiny/ability_druid_maul.jpg
Normal file
|
After Width: | Height: | Size: 1021 B |
BIN
images/icons/tiny/ability_druid_naturalperfection.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_druid_predatoryinstincts.jpg
Normal file
|
After Width: | Height: | Size: 1001 B |
BIN
images/icons/tiny/ability_druid_primaltenacity.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_druid_rake.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_druid_ravage.jpg
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
images/icons/tiny/ability_druid_supriseattack.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_druid_swipe.jpg
Normal file
|
After Width: | Height: | Size: 922 B |
BIN
images/icons/tiny/ability_druid_travelform.jpg
Normal file
|
After Width: | Height: | Size: 1023 B |
BIN
images/icons/tiny/ability_druid_treeoflife.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_druid_twilightswrath.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_dualwield.jpg
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
images/icons/tiny/ability_dualwieldspecialization.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_ensnare.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_eyeoftheowl.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_fiegndead.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_ghoulfrenzy.jpg
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
images/icons/tiny/ability_golemstormbolt.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_golemthunderclap.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_gouge.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_hibernation.jpg
Normal file
|
After Width: | Height: | Size: 932 B |
BIN
images/icons/tiny/ability_hunter_aimedshot.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_hunter_animalhandler.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_hunter_aspectofthemonkey.jpg
Normal file
|
After Width: | Height: | Size: 1000 B |
BIN
images/icons/tiny/ability_hunter_aspectoftheviper.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_hunter_beastcall.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_hunter_beastcall02.jpg
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
images/icons/tiny/ability_hunter_beastsoothe.jpg
Normal file
|
After Width: | Height: | Size: 958 B |
BIN
images/icons/tiny/ability_hunter_beasttaming.jpg
Normal file
|
After Width: | Height: | Size: 1005 B |
BIN
images/icons/tiny/ability_hunter_beasttraining.jpg
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
images/icons/tiny/ability_hunter_beastwithin.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_hunter_catlikereflexes.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_hunter_combatexperience.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_hunter_criticalshot.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_hunter_disarmingshot.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_hunter_displacement.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_hunter_eagleeye.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_hunter_ferociousinspiration.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_hunter_goforthethroat.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_hunter_harass.jpg
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/icons/tiny/ability_hunter_killcommand.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
images/icons/tiny/ability_hunter_mastermarksman.jpg
Normal file
|
After Width: | Height: | Size: 1.1 KiB |