Browse Source

Крупная уборка неиспользуемых файлов. Шаблонизатор заведёт во все файлы. Куча мелких правок.

pull/4/head
Igor Barkov (iwork) 2 years ago
parent
commit
6305bcef8c
  1. 25
      admin/admin.php
  2. 13
      admin/edit_user.php
  3. 28
      admin/reset_clan_rates.php
  4. 1
      buttons.php
  5. 2
      buy_klan.php
  6. 1614
      canalizaciya.php
  7. 57
      cave.php
  8. 6
      ch.php
  9. 2
      clan.php
  10. 12
      clan_castle.php
  11. 4
      clans.php
  12. 2
      classes/Nick.php
  13. 86
      cronjobs/cron.php
  14. 27
      cronjobs/pole_cron.php
  15. 5
      css/2/buttons.css
  16. 42
      css/2/chat.css
  17. 104
      css/2/design2.css
  18. 207
      css/2/design6.css
  19. 57
      css/2/dungeon_cs.css
  20. 57
      css/2/dungeon_css.css
  21. 62
      css/2/dungeon_gy0.css
  22. 57
      css/2/dungeon_kn4.css
  23. 62
      css/2/dungeon_sn.css
  24. 62
      css/2/dungeon_sun.css
  25. 57
      css/2/dungeon_uq.css
  26. 590
      css/2/main.css
  27. 6
      css/2/reg.css
  28. 1
      css/newstyle_loc4.css
  29. 15
      css/tooltip.css
  30. 0
      css/towerin.css
  31. 3
      fbattle.php
  32. 129
      forum.php
  33. 2
      gotzamok.php
  34. 4
      group_arena.php
  35. BIN
      i/2/angelscenter.jpg
  36. BIN
      i/2/angelscenter_klan.jpg
  37. BIN
      i/2/angelscenter_klan1.jpg
  38. BIN
      i/2/angelscenter_park.jpg
  39. BIN
      i/2/angelscenter_torg.jpg
  40. BIN
      i/2/angelscenter_zak.jpg
  41. BIN
      i/2/angelscenter_zam.jpg
  42. BIN
      i/2/angelscentern.jpg
  43. BIN
      i/2/angelscentern_klan.jpg
  44. BIN
      i/2/angelscentern_park.jpg
  45. BIN
      i/2/angelscentern_torg.jpg
  46. BIN
      i/2/angelscentern_zak.jpg
  47. BIN
      i/2/angelscentern_zam.jpg
  48. BIN
      i/2/center.jpg
  49. BIN
      i/2/center_park.jpg
  50. BIN
      i/2/center_torg.jpg
  51. BIN
      i/2/center_zak.jpg
  52. BIN
      i/2/center_zam.jpg
  53. BIN
      i/2/centern.jpg
  54. 1041
      i/2/klans/klan_street_select.gif
  55. BIN
      i/2/low.jpg
  56. BIN
      i/2/sub/1ubkill.gif
  57. BIN
      i/2/sub/1ureg.gif
  58. BIN
      i/2/sub/2cerkov.gif
  59. BIN
      i/2/sub/2comission.gif
  60. BIN
      i/2/sub/2klub.gif
  61. BIN
      i/2/sub/2klub__.gif
  62. BIN
      i/2/sub/2pm.gif
  63. BIN
      i/2/sub/2pochta.gif
  64. BIN
      i/2/sub/2remont.gif
  65. BIN
      i/2/sub/2shop.gif
  66. BIN
      i/2/sub/2strelka.gif
  67. BIN
      i/2/sub/2vokzal.gif
  68. BIN
      i/2/sub/31strelka.gif
  69. BIN
      i/2/sub/3strelka.gif
  70. BIN
      i/2/sub/angelsbank.png
  71. BIN
      i/2/sub/angelscastle.gif
  72. BIN
      i/2/sub/angelscastle.png
  73. BIN
      i/2/sub/angelsclub.gif
  74. BIN
      i/2/sub/angelsclub.png
  75. BIN
      i/2/sub/angelscomission.gif
  76. BIN
      i/2/sub/angelscomission.png
  77. BIN
      i/2/sub/angelseuroshop.png
  78. BIN
      i/2/sub/angelsfir.gif
  79. BIN
      i/2/sub/angelsfir.png
  80. BIN
      i/2/sub/angelsflowershop.png
  81. BIN
      i/2/sub/angelslibs.png
  82. BIN
      i/2/sub/angelsloto.gif
  83. BIN
      i/2/sub/angelsloto.png
  84. BIN
      i/2/sub/angelspark.png
  85. BIN
      i/2/sub/angelspochta.gif
  86. BIN
      i/2/sub/angelspochta.png
  87. BIN
      i/2/sub/angelsrazlom.png
  88. BIN
      i/2/sub/angelsremont.gif
  89. BIN
      i/2/sub/angelsremont.png
  90. BIN
      i/2/sub/angelsshop.gif
  91. BIN
      i/2/sub/angelsshop.png
  92. BIN
      i/2/sub/angelstree.png
  93. BIN
      i/2/sub/angelstree2.png
  94. BIN
      i/2/sub/angelsubkil.png
  95. BIN
      i/2/sub/angelsureg.png
  96. BIN
      i/2/sub/angelszamok.png
  97. BIN
      i/2/sub/auction.gif
  98. BIN
      i/2/sub/bank (1).gif
  99. BIN
      i/2/sub/bank.gif
  100. BIN
      i/2/sub/bench1.gif
  101. Some files were not shown because too many files have changed in this diff Show More

25
admin/admin.php

@ -65,19 +65,10 @@ if ($_POST['ali']) { //Что делает эта штука?
}
$aligns = db::c()->query('SELECT `img`,`align`,`name` FROM `aligns` ORDER BY `align`');
Template::header('ᐰdminка');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel=stylesheet href="/css/main.css">
<link rel=stylesheet href="/css/admin.css">
<title>ᐰdmin</title>
</head>
<body>
<form action='admin.php' method='post'>
<link rel=stylesheet href="/css/admin.css">
<form method='post'>
<fieldset>
<legend><a href='#' onclick='show("sk")'>Склонности</a></legend>
<div id=sk style='display:none;'>
@ -181,7 +172,7 @@ $aligns = db::c()->query('SELECT `img`,`align`,`name` FROM `aligns` ORDER BY `al
</fieldset>
</form>
<form method=post action="admin.php">
<form method=post>
<fieldset>
<legend><a href='#' onclick='show("sk3")'>Кланы</a></legend>
<div id=sk3 style='display:none;'>
@ -852,8 +843,7 @@ if ($_POST['login'] && $_POST['krest']) {
}
if ($_POST['krest'] == -1) {
db::c()->query('UPDATE `users` SET `align`="?s", `status`="?s" WHERE `login` = "?s" LIMIT 1;', '0', '', $_POST['login']);
}
else {
} else {
db::c()->query('UPDATE `users` SET `align` = "?s", `status` = "?s" WHERE `login` = "?s"', $_POST['krest'], $rang, $_POST['login']);
}
}
@ -1106,7 +1096,4 @@ if ($_POST['login'] && $_POST['krest']) {
}
return xmlHttp1;
}
</script>
</body>
</html>
</script>

13
admin/edit_user.php

@ -45,15 +45,8 @@ if ($del) {
}
db::c()->query('DELETE FROM `inventory` WHERE `id` = ?i', $del);
}
Template::header('ᐰdminка инвентаря');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ᐰdmin</title>
</head>
<link type="text/css" rel="stylesheet" href="../css/main.css">
<body>
<h1>Администрирование инвентаря <?php if (isset($_SESSION['player_name'])) echo $_SESSION['player_name']; ?></h1>
<table class='adm'>
<tr>
@ -95,6 +88,4 @@ if ($del) {
</form>
</th>
<?php endif; ?>
</table>
</body>
</html>
</table>

28
admin/reset_clan_rates.php

@ -1,28 +0,0 @@
<?
/**
* Copyright (c) 2018.
* Author: Igor Barkov <lopar.4ever@gmail.com>
* Project name: Battles-Game
*/
require_once "../functions.php";
$id = mysql_query("SELECT * FROM `clans`");
$clans = mysql_num_rows($id);
$check = 0;
while($check++ < $clans) {
$shor = mysql_fetch_array(mysql_query("SELECT * FROM `clans` WHERE `id` = '{$check}' LIMIT 1"));
$short = $shor['short'];
$exp = mysql_fetch_row(mysql_query("SELECT `exp`, COUNT(*) FROM `users` WHERE `klan` = '{$short}'"));
$id = mysql_query("SELECT `id` FROM `users` WHERE `klan` = '{$short}'");
$kolvo_us = mysql_num_rows($id);
echo "$exp[0];||$kolvo_us Q";
$site_r_clan = 0; // рейтинг клан сайта
$fight_r_clan = 0; // боевой рейтинг клана
$grash_point = 0; // очки гражданства
$Clan_ration = (($exp/$kolvo_us)+($site_r_clan*100000))+$fight_r_clan+$grash_point;
$l_p = mysql_query("UPDATE `clans` SET `rating` = 'Clan_ration' WHERE `id` = '{$check}'");
if($l_p) {
echo "Клановый рейтинг для клана '$short' удачно обновлен";
}
}

1
buttons.php

@ -13,7 +13,6 @@ if ($header) {
} elseif ($ch != null) {
Template::header('buttons');
?>
<script type="text/javascript" src="js/ZeroClipboard.js"></script>
<script language="JavaScript" src="js/ch.js"></script>
<script language="JavaScript" src="js/sl2.js"></script>
<script language="JavaScript" src="js/chat.js"></script>

2
buy_klan.php

@ -17,7 +17,7 @@ function add_klan_abil($ab, $cost)
{
global $user, $banks;
$clan = mysql_fetch_array(mysql_query('SELECT `id`, `glava` FROM `clans` WHERE `id` = "' . $user['klan'] . '"'));
if (isset($ab && $banks['ekr'] >= $cost && $clan['glava'] == $user['id'])) {
if (isset($ab) && $banks['ekr'] >= $cost && $clan['glava'] == $user['id']) {
$isset = mysql_fetch_array(mysql_query('SELECT `id`, `' . $ab . '` FROM `abils_klan` WHERE `klan` = "' . $user['klan'] . '"'));
$isset[$ab] += 1;
mysql_query('UPDATE `abils_klan` SET `' . $ab . '` = "' . $isset[$ab] . '" WHERE `klan` = "' . $user['klan'] . '"');

1614
canalizaciya.php

File diff suppressed because it is too large Load Diff

57
cave.php

@ -535,7 +535,7 @@ if (@$_GET['useitem'] || @$_GET['usewallitem']) {
loadmap();
if (@$_GET['useitem']) {
if ($_GET['useitem']) {
if ($dir == 0) {
$tx = $x - 1;
$ty = $y;
@ -915,21 +915,8 @@ $standingon = $map[$y * 2][$x * 2];
foreach ($party as $k => $v) {
$map[$v['y'] * 2][$v['x'] * 2] = "u/" . $v['user'];
}
Template::header('cave');
?>
<head>
<script LANGUAGE='JavaScript'>
document.ondragstart = test;
//запрет на перетаскивание
document.onselectstart = test;
//запрет на выделение элементов страницы
document.oncontextmenu = test;
//запрет на выведение контекстного меню
function test() {
return false
}
</SCRIPT>
<link rel=stylesheet type="text/css" href="/i/main.css">
<style>
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
@ -955,7 +942,7 @@ foreach ($party as $k => $v) {
background-color: #484848;
color: #000000;
display: block;
font-family: Verdana, Arial;
font-family: Verdana, Arial, serif;
font-size: 8pt;
font-weight: bold;
padding: 2px 12px 2px 8px;
@ -1332,36 +1319,7 @@ foreach ($party as $k => $v) {
el2.style.top = posy + 33 + "px";
el2.style.visibility = "visible";
}
var delay = 30, TimerOn = -1, tkHP, maxHP, speed = 300, stLen = 185, redHP = 0.33, yellowHP = 0.66;
function setHP(a, b, c) {
tkHP = a;
maxHP = b;
TimerOn >= 0 && (clearTimeout(TimerOn), TimerOn = -1);
speed = c;
setHPlocal()
}
function setHPlocal() {
tkHP > maxHP && (tkHP = maxHP);
var a = Math.round(tkHP) + "/" + maxHP, a = stLen - (a.length + 2) * 7,
b = Math.round((a - 1) / maxHP * tkHP);
a -= b;
HP = document.getElementById("hp_value");
HP1 = document.getElementById("HP1");
HP2 = document.getElementById("HP2");
if (HP) HP1.width = b, HP2.width = a, HP1.src = tkHP / maxHP < redHP ? "i/1red.gif" : tkHP / maxHP < yellowHP ? "i/1yellow.gif" : "i/1green.gif",
HP.innerHTML = Math.round(tkHP) + "/" + maxHP;
tkHP += maxHP / 60 / 20 * (speed / 100);
TimerOn = tkHP < maxHP ? setTimeout("setHPlocal()", delay * 100) : -1
}
setHP(<?=$user['hp'];?>, <?=$user['maxhp'];?>, 100);
</script>
</head>
<body leftmargin=5 topmargin=5 marginwidth=5 marginheight=5 bgcolor="#d7d7d7"
style=" background-image: url(/i/bagr.gif); width=100%; background-repeat:repeat;background-position:top">
<div id=hint3 class=ahint></div>
<div style="z-index: 100; background-color: #E4F2DF; border-style: solid; border-width: 2px; border-color: #77c3fc; position: absolute; left: 0; top: 0; visibility: hidden; cursor:pointer;"
id="oMenu"></div>
@ -1372,10 +1330,11 @@ foreach ($party as $k => $v) {
if ($user['hp'] <= 0) {
makedeath();
}
$botNames = CaveBots::$botnames;
$botIds = CaveBots::$bots;
function drawmap($map1, $players, $x, $y, $direction)
{
global $base, $user, CaveBots::$botnames, $imgdata;
global $base, $user, $botNames, $imgdata;
$startx = max($x * 2 - 8, 0);
$starty = max($y * 2 - 8, 0);
@ -1473,7 +1432,7 @@ function drawmap($map1, $players, $x, $y, $direction)
function drawbot($cell, $x, $y)
{
global CaveBots::$botnames, $imgdata, CaveBots::$bots, $dialogs, $user, $floor;
global $botNames, $imgdata, $botIds, $dialogs, $user, $floor;
$data = explode("/", $cell);
$i = 1;
$bc = (count($data) - 1) / 2;
@ -1544,7 +1503,7 @@ function drawmap($map1, $players, $x, $y, $direction)
function drawuser($cell, $x, $y)
{
global CaveBots::$botnames, $imgdata, $party;
global $botNames, $imgdata, $party;
$data = explode("/", $cell);
$i = 1;
$bc = (count($data) - 1);

6
ch.php

File diff suppressed because one or more lines are too long

2
clan.php

@ -110,7 +110,7 @@ Template::header('clan');
<tr>
<td>
<p style="width: 50%; vertical-align: top;" rowspan=2>
<h3><img src="./i/clan/<?= $clanRow['short'] ?>.gif"><?= $clanRow['name'] ?></h3>
<h3><img src="./i/clan/<?= $clanRow['short'] ?>.png"><?= $clanRow['name'] ?></h3>
Количество рейтинговых очков клана: <span
style="color: #428f21; font-size: larger;"><?= $clanRow['rating'] ?></span><br>

12
clan_castle.php

@ -73,7 +73,7 @@ Template::header('Замок Мэра');
}
echo '<br />Над Замком развевается флаг ';
if ($tmp_k['name']) {
echo '<strong>клана <img title="' . $tmp_k['name'] . '" src="i/clan/' . $tmp_k['name'] . '.gif">' . $tmp_k['name'] . '</strong><br />';
echo '<strong>клана <img title="' . $tmp_k['name'] . '" src="i/clan/' . $tmp_k['name'] . '.png">' . $tmp_k['name'] . '</strong><br />';
} else {
echo '<strong>сил Хаоса</strong><br />';
}
@ -92,7 +92,7 @@ Template::header('Замок Мэра');
while ($a_zay = mysql_fetch_array($all_c)) {
$zays[] = $a_zay['clan'];
$tmp_k = mysql_fetch_array(mysql_query("SELECT `name` FROM `clans` WHERE `id` = '{$a_zay['clan']}' LIMIT 1;"));
echo '<tr><td><strong>Клан <img title="' . $tmp_k['name'] . '" src="i/clan/' . $tmp_k['name'] . '.gif">' . $tmp_k['name'] . '</strong></td></tr>';
echo '<tr><td><strong>Клан <img title="' . $tmp_k['name'] . '" src="i/clan/' . $tmp_k['name'] . '.png">' . $tmp_k['name'] . '</strong></td></tr>';
}
if (empty($zays)) {
echo '<tr><td><strong>Ждем смелых ...</strong></td></tr>';
@ -127,10 +127,10 @@ Template::header('Замок Мэра');
}
if ($tmp_k) {
echo 'Внимание!<img title="' . $tmp_k['name'] . '" src="i/clan/' . $tmp_k['name'] . '.gif"><strong>' . $tmp_k['name'] . '</strong> собираются штурмовать замок';
echo 'Внимание!<img title="' . $tmp_k['name'] . '" src="i/clan/' . $tmp_k['name'] . '.png"><strong>' . $tmp_k['name'] . '</strong> собираются штурмовать замок';
}
if ($tmp_k && $own['value'] > 0) {
echo '<img title="' . $tmp_o['name'] . '" src="i/clan/' . $tmp_o['name'] . '.gif"><strong>' . $tmp_o['name'] . '</strong>!';
echo '<img title="' . $tmp_o['name'] . '" src="i/clan/' . $tmp_o['name'] . '.png"><strong>' . $tmp_o['name'] . '</strong>!';
}
if ($tmp_k && !$own['value'] > 0) {
echo '!';
@ -171,7 +171,7 @@ Template::header('Замок Мэра');
$cc_att = mysql_fetch_array(mysql_query("SELECT `value` FROM variables WHERE var='castle_att' LIMIT 1;"));
$cc_a = mysql_fetch_array(mysql_query("SELECT `name` FROM `clans` WHERE `id` = '{$cc_att['value']}' LIMIT 1;"));
AddChatSystem('<font color=red><strong>Клан <img title="' . $cc_a['name'] . '" src="i/clan/' . $cc_a['name'] . '.gif">' . $cc_a['name'] . '</strong> без боя забрал у <strong>клана <img title="' . $cc_k['name'] . '" src="i/clan/' . $cc_k['name'] . '.gif">' . $cc_k['name'] . '</strong> Замок Мэра</font>');
AddChatSystem('<font color=red><strong>Клан <img title="' . $cc_a['name'] . '" src="i/clan/' . $cc_a['name'] . '.png">' . $cc_a['name'] . '</strong> без боя забрал у <strong>клана <img title="' . $cc_k['name'] . '" src="i/clan/' . $cc_k['name'] . '.gif">' . $cc_k['name'] . '</strong> Замок Мэра</font>');
$c_prev = mysql_fetch_array(mysql_query("SELECT `glava`,`align` FROM `clans` WHERE `id`='{$own['value']}' LIMIT 1;"));
@ -326,4 +326,4 @@ Template::header('Замок Мэра');
</td>
</tr>
</table>
<div align=right><img width="260" src="i/zamok/4.jpg"/></div>
<div align=right><img width="260" src="i/castle.jpg"></div>

4
clans.php

@ -12,13 +12,13 @@ if ($claninf AND ($query = db::c()->query('SELECT * FROM `clans` WHERE `name` =
echo "<h1>{$query['name']}</h1><p>{$query['descr']}</p>";
$clanlist = db::c()->query('SELECT `login`,`status` FROM `users` WHERE `klan` = ?i',$query['id']);
while ($member = $clanlist->fetch_assoc()) {
echo "<img src=i/align_",$query['align'],".gif> <img src=i/clan/",$query['short'],".gif> ",$member['login']," - ",$member['status'],"<br>";
echo "<img src=i/align_",$query['align'],".png> <img src=i/clan/",$query['short'],".png> ",$member['login']," - ",$member['status'],"<br>";
}
} else {
echo "<h1>Список кланов</h1>";
$query = db::c()->query('SELECT `align`,`name`,`short` FROM `clans` ORDER BY `name` ASC');
while ($clanrow = $query->fetch_assoc()) {
$frm = "<img src='i/align_%s.gif'> <img src='i/clan/%s.gif'> <a href='?%s'>%s</a><br>";
$frm = "<img src='i/align_%s.png'> <img src='i/clan/%s.png'> <a href='?%s'>%s</a><br>";
echo sprintf($frm,$clanrow['align'],$clanrow['short'],$clanrow['name'],$clanrow['name']);
}
}

2
classes/Nick.php

@ -31,7 +31,7 @@ class Nick extends User
private function getClan()
{
if (isset($this->clan)) {
return sprintf('<img src="i/clan/%s.gif">', $this->clan);
return sprintf('<img src="i/clan/%s.png">', $this->clan);
} else {
return '';
}

86
cronjobs/cron.php

@ -52,16 +52,20 @@ function getlist($razdel = 1, $level = null, $id = null)
function delzayavka($id, $zay, $r)
{
$z = getlist($r, null, $zay);
if ($z[$zay]['level'] > 3) return 'Ай-ай-ай!';
if ($z[$zay]['level'] > 3) {
return 'Ай-ай-ай!';
}
if (db::c()->query('DELETE FROM `zayavka` WHERE `id` = ?i AND (`team1` LIKE "?S" OR `team2` LIKE "?S")', $zay, $id.';%', $id.';%')) {
if (count($z[$zay]['team1']) > 0)
foreach ($z[$zay]['team1'] as $k => $v)
if (count($z[$zay]['team1']) > 0) {
foreach ($z[$zay]['team1'] as $k => $v) {
db::c()->query('UPDATE `users` SET `zayavka` = 0 WHERE `id` = ?i', $v);
if (count($z[$zay]['team2']) > 0)
foreach ($z[$zay]['team2'] as $k => $v)
}
}
if (count($z[$zay]['team2']) > 0) {
foreach ($z[$zay]['team2'] as $k => $v) {
db::c()->query('UPDATE `users` SET `zayavka` = 0 WHERE `id` = ?i', $v);
}
}
}
return true;
}
@ -169,13 +173,7 @@ function startbattle($id, $zay, $r)
exit;
}
$arr = [3, 4, 5, 7, 10];
if (in_array($z['timeout'], $arr)) {
} else {
$z['timeout'] = 3;
}
$z['timeout'] = 3;
if ($z['type'] == 1 || $z['type'] == 4) {
$rs = ', `fiz`';
@ -267,51 +265,10 @@ if (date("H-i") == "03-00") {
mysql_query("OPTIMIZE `battle`, `delo`");
}
// Снятие VIP. Раз в день, полночь.
if (date("H-i") == "00-00") {
$q = db::c()->query('SELECT `id`,`vip`,`vip_time` FROM `users` WHERE `vip` > 0 AND `vip_time` > 0');
while ($unvip = $q->fetch_assoc()) {
if ($unvip['vip'] > 0 AND $unvip['vip_time'] <= time()) {
db::c()->query('UPDATE `users` SET `vip` = 0, `vip_time` = 0 WHERE `id` = ?i', $unvip['id']);
db::c()->query('UPDATE `abils_vip` SET `sokr` = 0, `zash` = 0, `invisible` = 0, `attack` = 0, `bloodattack` = 0, `sleep30` = 0, `travmoff` = 0, `unsleep` = 0, `pers_attack` = 0 WHERE `uid` = ?i', $unvip['id']);
}
}
}
// Обновление вип-способностей.
$sp = db::c()->query('SELECT `id`,`vip` FROM `users` WHERE `vip` > 0 AND `vip_time` > ?i', time());
while ($pl = $sp->fetch_assoc()) {
$abils = db::c()->query('SELECT `attack`, `bloodattack`, `travmoff` FROM `abils_vip` WHERE `uid` = ?i', $pl['id'])->fetch_assoc();
if ($pl['vip'] == 1) $abils['travmoff'] = 0;
else $abils['travmoff'] += 1;
$abils['attack'] += 1;
$abils['bloodattack'] += 1;
if ($abils['attack'] > 10) $abils['attack'] = 10;
if ($abils['bloodattack'] > 10) $abils['bloodattack'] = 10;
if ($abils['travmoff'] > 10) $abils['travmoff'] = 10;
db::c()->query('UPDATE `abils_vip` SET `sokr` = 1, `zash` = 1, `attack` = ?i, `bloodattack` = ?i, `travmoff` = ?i WHERE `uid` = ?i', $abils['attack'], $abils['bloodattack'], $abils['travmoff'], $pl['id']);
}
mysql_query('UPDATE `actions` SET `vals` = "end" WHERE `vars` LIKE "start_quest%" AND `vals` = "go" AND `val` <= "' . time() . '"');
// Раз в день. 6 утра.
if (date("H-i") == "06-00") {
// Первое число каждого месяца.
if (date("d") == "01") {
mysql_query("UPDATE `variables` SET `value` = '{$tm}' WHERE `var` = 'ref_month' LIMIT 1");
mysql_query("UPDATE `variables` SET `value` = '0' WHERE `var` = 'ref_m_id' LIMIT 1");
}
// Каждый седьмой день недели.
if (date("N") == "7") {
mysql_query("UPDATE `variables` SET `value` = '{$tm}' WHERE `var` = 'ref_week' LIMIT 1");
mysql_query("UPDATE `variables` SET `value` = '0' WHERE `var` = 'ref_w_id' LIMIT 1");
}
}
$st_ar = mysql_fetch_array(mysql_query('SELECT `value` FROM `variables` WHERE `var` = "arena_of_gods" LIMIT 1'));
if ($st_ar['value'] <= time()) {
@ -354,36 +311,31 @@ while ($ku = mysql_fetch_array($komp_users)) {
db::c()->query('UPDATE `users` SET `hp` = 0 WHERE `hp` < 0');
db::c()->query('UPDATE `users` SET `mana` = 0 WHERE `mana` < 0');
$its = mysql_query("SELECT `id`, `owner`, `name` FROM `inventory` WHERE AND ((`maxdur` <= `duration`) OR (`dategoden` > 0 AND `dategoden` <= '" . time() . "'))");
while ($it = mysql_fetch_array($its)) {
mysql_query("DELETE FROM `inventory` WHERE `id` = '" . $it['id'] . "' LIMIT 1;");
mysql_query("INSERT INTO `delo` (`author`, `pers`, `text`, `type`, `date`) VALUES ('0', '" . $it['owner'] . "' '\"" . $it['name'] . "\" разрушился id:(cap" . $it['id'] . ").', 1, '" . time() . "')");
}
$effs = mysql_query("SELECT * FROM `effects` WHERE `time` <= " . time() . " AND `sleep` = 0");
mysql_query("DELETE FROM `effects` WHERE `time` <= " . time() . " AND `sleep` = 0");
while ($eff = mysql_fetch_array($effs)) {
switch ($eff['type']) {
case 11:
mysql_query("UPDATE `users` SET `sila` = `sila`+'" . $eff['sila'] . "', `lovk` = `lovk`+'" . $eff['lovk'] . "', `inta` = `inta`+'" . $eff['inta'] . "' WHERE `id` = '" . $eff['owner'] . "' LIMIT 1");
mysql_query("UPDATE `users` SET `sila` = `sila`+'" . $eff['sila'] . "', `lovk` = `lovk`+'" . $eff['lovk'] . "', `inta` = `inta`+'" . $eff['inta'] . "' WHERE `id` = '" . $eff['owner'] . "' ");
break;
case 12:
mysql_query("UPDATE `users` SET `sila` = `sila`+'" . $eff['sila'] . "', `lovk` = `lovk`+'" . $eff['lovk'] . "', `inta` = `inta`+'" . $eff['inta'] . "' WHERE `id` = '" . $eff['owner'] . "' LIMIT 1");
mysql_query("UPDATE `users` SET `sila` = `sila`+'" . $eff['sila'] . "', `lovk` = `lovk`+'" . $eff['lovk'] . "', `inta` = `inta`+'" . $eff['inta'] . "' WHERE `id` = '" . $eff['owner'] . "' ");
break;
case 13:
mysql_query("UPDATE `users` SET `sila` = `sila`+'" . $eff['sila'] . "', `lovk` = `lovk`+'" . $eff['lovk'] . "', `inta` = `inta`+'" . $eff['inta'] . "' WHERE `id` = '" . $eff['owner'] . "' LIMIT 1");
mysql_query("UPDATE `users` SET `sila` = `sila`+'" . $eff['sila'] . "', `lovk` = `lovk`+'" . $eff['lovk'] . "', `inta` = `inta`+'" . $eff['inta'] . "' WHERE `id` = '" . $eff['owner'] . "' ");
break;
case 14:
mysql_query("UPDATE `users` SET `sila` = `sila`+'" . $eff['sila'] . "', `lovk` = `lovk`+'" . $eff['lovk'] . "', `inta` = `inta`+'" . $eff['inta'] . "' WHERE `id` = '" . $eff['owner'] . "' LIMIT 1");
mysql_query("UPDATE `users` SET `sila` = `sila`+'" . $eff['sila'] . "', `lovk` = `lovk`+'" . $eff['lovk'] . "', `inta` = `inta`+'" . $eff['inta'] . "' WHERE `id` = '" . $eff['owner'] . "' ");
break;
case 21:
mysql_query("UPDATE `users` SET `sila` = `sila`-'" . $eff['sila'] . "', `lovk` = `lovk`-'" . $eff['lovk'] . "', `inta` = `inta`-'" . $eff['inta'] . "', `vinos` = `vinos`-'" . $eff['vinos'] . "' WHERE `id` = '" . $eff['owner'] . "' LIMIT 1");
mysql_query("UPDATE `users` SET `sila` = `sila`-'" . $eff['sila'] . "', `lovk` = `lovk`-'" . $eff['lovk'] . "', `inta` = `inta`-'" . $eff['inta'] . "', `vinos` = `vinos`-'" . $eff['vinos'] . "' WHERE `id` = '" . $eff['owner'] . "' ");
break;
case 4:
mysql_query("UPDATE `users` SET `align` = '0' WHERE `id` = '" . $eff['owner'] . "' LIMIT 1");
mysql_query("UPDATE `users` SET `align` = '0' WHERE `id` = '" . $eff['owner'] . "'");
break;
case 7:
mysql_query("UPDATE `users` SET `maxhp` = (`maxhp`-200), `hp` = `maxhp` WHERE `id` = '" . $eff['owner'] . "' LIMIT 1");
mysql_query("UPDATE `users` SET `maxhp` = (`maxhp`-200), `hp` = `maxhp` WHERE `id` = '" . $eff['owner'] . "'");
break;
case 1022:
mysql_query("UPDATE `users` SET `invis` = 0 WHERE `id` = '" . $eff['owner'] . "' LIMIT 1");

27
cronjobs/pole_cron.php

@ -1,27 +0,0 @@
<?php
require_once "../config.php";
// Осталось понять что делает, зачем написан и какой интервал запуска.
// 4 hours: time() + 14400;
$q = db::c()->query('SELECT `value` FROM `variables` WHERE `var` = "?s"', 'pole_random')->fetch_assoc();
for ($i = 0; $i < 41; $i++) {
$rand = mt_rand(1, 9);
if ($rand == 1) $h = 100;
elseif ($rand == 2) $h = 80;
elseif ($rand == 3) $h = 70;
elseif ($rand == 4) $h = 60;
elseif ($rand == 5) $h = 50;
elseif ($rand == 6) $h = 40;
elseif ($rand == 7 || $rand == 8 || $rand == 9) $h = 0;
$h += $h * mt_rand(1, 11) / 10;
$rekr = 0.1 + mt_rand(1, 13) / 100;
db::c()->query('UPDATE `pole` SET `type` = ?i, `heals` = ?i, `ekr` = ?i WHERE `id` = ?i', $rand, $h, $rekr, $i);
}
if (empty($q['value']))
db::c()->query('UPDATE `variables` SET `value` = ?i WHERE `var` = "?s"', (time() + 14400), 'pole_random');
elseif ($q['value'] < time())
db::c()->query('UPDATE `variables` SET `value` = `value` + 14400 WHERE `var` = "?s"', 'pole_random');

5
css/2/buttons.css

File diff suppressed because one or more lines are too long

42
css/2/chat.css

@ -1,42 +0,0 @@
body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
overflow: hidden;
}
select, textarea, input {
border: solid 1pt #B0B0B0;
font-family: MS Sans Serif;
font-size: 8px;
color: #191970;
MARGIN-BOTTOM: 2px;
MARGIN-TOP: 1px;
}
.text_msg {
border: 1px solid #CCCCCC;
font-size: 11px;
color: #000000;
font-family: Verdana, Arial, Helvetica, Tahoma, sans-serif;
}
.chatBtn1_1,
.chatBtn1_2,
.chatBtn2_1,
.chatBtn2_2,
.chatBtn4_1,
.chatBtn4_2,
.chatBtn5_1,
.chatBtn5_2,
.chatBtn5_3,
.chatBtn6_1,
.chatBtn6_2,
.chatBtn7_1,
.chatBtn7_2,
.chatBtn7_3 {
width: 30px;
height: 30px;
cursor: pointer;
}

104
css/2/design2.css

File diff suppressed because one or more lines are too long

207
css/2/design6.css

@ -1,207 +0,0 @@
body {
margin: 0;
height: 100%;
width: 100%;
background-color: #dedede;
font-size:10px;
color: #000000;
}
.main_text {
font-weight: bold;
font-size: 10px;
text-decoration: none;
color:#f0f0f0;
cursor:hand;
}
.menutop, a.menutop:visited, a.menutop:active {
font-weight: bold;
font-size: 10px;
text-decoration: none;
color: #3B3936;
}
a.menutop:hover {
color: #76726b;
}
.name {
font-weight: bold;
font-size: 12px;
}
.parametr_title {
font-weight: bold;
font-size: 11px;
color: #777773;
}
.prname {
padding-left: 4px;
font-size: 11px;
font-family: Arial, Helvetica, sans-serif;
}
.prvalue {
font-size: 11px;
font-family: Arial, Helvetica, sans-serif;
}
.btn {
border: 1px double #9a9996;
background-image: url(i/move/beg_butt.gif);
font-size: 7.5pt;
color: #dfdfdf;
background-color:#504F4C;
}
.mainmenu {
color: #23292C;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: none;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #969697;
border-right-color: #969697;
border-bottom-color: #000000;
border-left-color: #969697;
background-color: #BABABB;
cursor:hand;
}
.maptext {
font-weight: bold;
font-size: 12px;
color: #000000;
font-family: Arial, Helvetica, sans-serif;
}
.posit {
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #FFFFFF;
border-right-color: #666666;
border-bottom-color: #666666;
border-left-color: #FFFFFF;
padding: 2px;
}
td {
font-size: 10pt;
font-family: Verdana, Arial, Helvetica, Tahoma, sans-serif;
}

57
css/2/dungeon_cs.css

@ -1,57 +0,0 @@
DIV.Dungeon{
width: 372px;
height: 260px;
padding: 10px;
position: relative;
overflow: hidden;
background: black;
}
.Dungeon BUTTON {
border: 0 solid;
background: transparent;
padding: 0;
margin: 0;
position: absolute;
filter: Alpha(opacity=100),Chroma( Color=#c1cacf );
}
.Dungeon DIV {
width: 352px;
height: 240px;
overflow: hidden;
position: relative;
}
DIV.Life{position:absolute;background:#008000;height:2px;}
DIV.Life2{position:absolute;background:#00FF00;height:2px;}
.Dungeon .Floor0{ background: url( ../i/sprites/cs/bg0.gif ) black }
.Dungeon .Floor1{ background: url( ../i/sprites/cs/bg1.gif ) black }
.Dungeon .LeftSide4_1 { background: url( ../i/sprites/cs/Left/4_1.gif ) no-repeat; }
.Dungeon .RightSide4_1 { background: url( ../i/sprites/cs/Right/4_1.gif ) no-repeat; }
.Dungeon .LeftSide4_0 { background: url( ../i/sprites/cs/Left/4_0.gif ) no-repeat; }
.Dungeon .RightSide4_0 { background: url( ../i/sprites/cs/Right/4_0.gif ) no-repeat; }
.Dungeon .LeftFront3_2 { background: url( ../i/sprites/cs/Left/Front/4_2.gif ) no-repeat; }
.Dungeon .RightFront3_2 { background: url( ../i/sprites/cs/Right/Front/4_2.gif ) no-repeat; }
.Dungeon .LeftFront3_1 { background: url( ../i/sprites/cs/Left/Front/4_1.gif ) no-repeat; }
.Dungeon .RightFront3_1 { background: url( ../i/sprites/cs/Right/Front/4_1.gif ) no-repeat; }
.Dungeon .LeftFront3_0 { background: url( ../i/sprites/cs/Left/Front/4_0.gif ) no-repeat; }
.Dungeon .LeftSide3_1 { background: url( ../i/sprites/cs/Left/3_1.gif ) no-repeat; }
.Dungeon .RightSide3_1 { background: url( ../i/sprites/cs/Right/3_1.gif ) no-repeat; }
.Dungeon .LeftSide3_0 { background: url( ../i/sprites/cs/Left/3_0.gif ) no-repeat; }
.Dungeon .RightSide3_0 { background: url( ../i/sprites/cs/Right/3_0.gif ) no-repeat; }
.Dungeon .LeftFront2_1 { background: url( ../i/sprites/cs/Left/Front/3_1.gif ) no-repeat; }
.Dungeon .RightFront2_1 { background: url( ../i/sprites/cs/Right/Front/3_1.gif ) no-repeat; }
.Dungeon .LeftFront2_0 { background: url( ../i/sprites/cs/Left/Front/3_0.gif ) no-repeat; }
.Dungeon .LeftSide2_0 { background: url( ../i/sprites/cs/Left/2_0.gif ) no-repeat; }
.Dungeon .RightSide2_0 { background: url( ../i/sprites/cs/Right/2_0.gif ) no-repeat; }
.Dungeon .LeftFront1_1 { background: url( ../i/sprites/cs/Left/Front/2_1.gif ) no-repeat; }
.Dungeon .RightFront1_1 { background: url( ../i/sprites/cs/Right/Front/2_1.gif ) no-repeat; }
.Dungeon .LeftFront1_0 { background: url( ../i/sprites/cs/Left/Front/2_0.gif ) no-repeat; }
.Dungeon .LeftSide1_0 { background: url( ../i/sprites/cs/Left/1_0.gif ) no-repeat; }
.Dungeon .RightSide1_0 { background: url( ../i/sprites/cs/Right/1_0.gif ) no-repeat; }
.Dungeon .LeftFront0_1 { background: url( ../i/sprites/cs/Left/Front/1_1.gif ) no-repeat; }
.Dungeon .RightFront0_1 { background: url( ../i/sprites/cs/Right/Front/1_1.gif ) no-repeat; }
.Dungeon .LeftFront0_0 { background: url( ../i/sprites/cs/Left/Front/1_0.gif ) no-repeat; }
.Dungeon .LeftSide0_0 { background: url( ../i/sprites/cs/Left/0_0.gif ) no-repeat; }
.Dungeon .RightSide0_0 { background: url( ../i/sprites/cs/Right/0_0.gif ) no-repeat; }

57
css/2/dungeon_css.css

@ -1,57 +0,0 @@
DIV.Dungeon{
width: 372px;
height: 260px;
padding: 10px;
position: relative;
overflow: hidden;
background: black;
}
.Dungeon BUTTON {
border: 0 solid;
background: transparent;
padding: 0;
margin: 0;
position: absolute;
filter: Alpha(opacity=100),Chroma( Color=#c1cacf );
}
.Dungeon DIV {
width: 352px;
height: 240px;
overflow: hidden;
position: relative;
}
DIV.Life{position:absolute;background:#008000;height:2px;}
DIV.Life2{position:absolute;background:#00FF00;height:2px;}
.Dungeon .Floor0{ background: url( ../i/sprites/noob/bg0.gif ) black }
.Dungeon .Floor1{ background: url( ../i/sprites/noob/bg1.gif ) black }
.Dungeon .LeftSide4_1 { background: url( ../i/sprites/noob/Left/4_1.gif ) no-repeat; }
.Dungeon .RightSide4_1 { background: url( ../i/sprites/noob/Right/4_1.gif ) no-repeat; }
.Dungeon .LeftSide4_0 { background: url( ../i/sprites/noob/Left/4_0.gif ) no-repeat; }
.Dungeon .RightSide4_0 { background: url( ../i/sprites/noob/Right/4_0.gif ) no-repeat; }
.Dungeon .LeftFront3_2 { background: url( ../i/sprites/noob/Left/Front/4_2.gif ) no-repeat; }
.Dungeon .RightFront3_2 { background: url( ../i/sprites/noob/Right/Front/4_2.gif ) no-repeat; }
.Dungeon .LeftFront3_1 { background: url( ../i/sprites/noob/Left/Front/4_1.gif ) no-repeat; }
.Dungeon .RightFront3_1 { background: url( ../i/sprites/noob/Right/Front/4_1.gif ) no-repeat; }
.Dungeon .LeftFront3_0 { background: url( ../i/sprites/noob/Left/Front/4_0.gif ) no-repeat; }
.Dungeon .LeftSide3_1 { background: url( ../i/sprites/noob/Left/3_1.gif ) no-repeat; }
.Dungeon .RightSide3_1 { background: url( ../i/sprites/noob/Right/3_1.gif ) no-repeat; }
.Dungeon .LeftSide3_0 { background: url( ../i/sprites/noob/Left/3_0.gif ) no-repeat; }
.Dungeon .RightSide3_0 { background: url( ../i/sprites/noob/Right/3_0.gif ) no-repeat; }
.Dungeon .LeftFront2_1 { background: url( ../i/sprites/noob/Left/Front/3_1.gif ) no-repeat; }
.Dungeon .RightFront2_1 { background: url( ../i/sprites/noob/Right/Front/3_1.gif ) no-repeat; }
.Dungeon .LeftFront2_0 { background: url( ../i/sprites/noob/Left/Front/3_0.gif ) no-repeat; }
.Dungeon .LeftSide2_0 { background: url( ../i/sprites/noob/Left/2_0.gif ) no-repeat; }
.Dungeon .RightSide2_0 { background: url( ../i/sprites/noob/Right/2_0.gif ) no-repeat; }
.Dungeon .LeftFront1_1 { background: url( ../i/sprites/noob/Left/Front/2_1.gif ) no-repeat; }
.Dungeon .RightFront1_1 { background: url( ../i/sprites/noob/Right/Front/2_1.gif ) no-repeat; }
.Dungeon .LeftFront1_0 { background: url( ../i/sprites/noob/Left/Front/2_0.gif ) no-repeat; }
.Dungeon .LeftSide1_0 { background: url( ../i/sprites/noob/Left/1_0.gif ) no-repeat; }
.Dungeon .RightSide1_0 { background: url( ../i/sprites/noob/Right/1_0.gif ) no-repeat; }
.Dungeon .LeftFront0_1 { background: url( ../i/sprites/noob/Left/Front/1_1.gif ) no-repeat; }
.Dungeon .RightFront0_1 { background: url( ../i/sprites/noob/Right/Front/1_1.gif ) no-repeat; }
.Dungeon .LeftFront0_0 { background: url( ../i/sprites/noob/Left/Front/1_0.gif ) no-repeat; }
.Dungeon .LeftSide0_0 { background: url( ../i/sprites/noob/Left/0_0.gif ) no-repeat; }
.Dungeon .RightSide0_0 { background: url( ../i/sprites/noob/Right/0_0.gif ) no-repeat; }

62
css/2/dungeon_gy0.css

@ -1,62 +0,0 @@
DIV.Dungeon{
width: 372px;
height: 260px;
padding: 10px;
position: relative;
overflow: hidden;
background: black;
}
.Dungeon BUTTON {
border: 0 solid;
background: transparent;
padding: 0;
margin: 0;
position: absolute;
filter: Alpha(opacity=100),Chroma( Color=#c1cacf );
}
.Dungeon DIV {
width: 352px;
height: 240px;
overflow: hidden;
position: relative;
}
.Dungeon IMG {
width: 352px;
height: 240px;
position: relative;
}
DIV.Life{position:absolute;background:#008000;height:2px;}
DIV.Life2{position:absolute;background:#00FF00;height:2px;}
.Dungeon .Floor0{ background: url( http://img.combats.ru/i/sprites/gy0/bg0.gif ) black }
.Dungeon .Floor1{ background: url( http://img.combats.ru/i/sprites/gy0/bg1.gif ) black }
.Dungeon .LeftSide4_1 { background: url( http://img.combats.ru/i/sprites/gy0/Left/4_1.gif ) }
.Dungeon .RightSide4_1 { background: url( http://img.combats.ru/i/sprites/gy0/Right/4_1.gif ) }
.Dungeon .LeftSide4_0 { background: url( http://img.combats.ru/i/sprites/gy0/Left/4_0.gif ) }
.Dungeon .RightSide4_0 { background: url( http://img.combats.ru/i/sprites/gy0/Right/4_0.gif ) }
.Dungeon .LeftFront3_2 { background: url( http://img.combats.ru/i/sprites/gy0/Left/Front/4_2.gif ) }
.Dungeon .RightFront3_2 { background: url( http://img.combats.ru/i/sprites/gy0/Right/Front/4_2.gif ) }
.Dungeon .LeftFront3_1 { background: url( http://img.combats.ru/i/sprites/gy0/Left/Front/4_1.gif ) }
.Dungeon .RightFront3_1 { background: url( http://img.combats.ru/i/sprites/gy0/Right/Front/4_1.gif ) }
.Dungeon .LeftFront3_0 { background: url( http://img.combats.ru/i/sprites/gy0/Left/Front/4_0.gif ) }
.Dungeon .LeftSide3_1 { background: url( http://img.combats.ru/i/sprites/gy0/Left/3_1.gif ) }
.Dungeon .RightSide3_1 { background: url( http://img.combats.ru/i/sprites/gy0/Right/3_1.gif ) }
.Dungeon .LeftSide3_0 { background: url( http://img.combats.ru/i/sprites/gy0/Left/3_0.gif ) }
.Dungeon .RightSide3_0 { background: url( http://img.combats.ru/i/sprites/gy0/Right/3_0.gif ) }
.Dungeon .LeftFront2_1 { background: url( http://img.combats.ru/i/sprites/gy0/Left/Front/3_1.gif ) }
.Dungeon .RightFront2_1 { background: url( http://img.combats.ru/i/sprites/gy0/Right/Front/3_1.gif ) }
.Dungeon .LeftFront2_0 { background: url( http://img.combats.ru/i/sprites/gy0/Left/Front/3_0.gif ) }
.Dungeon .LeftSide2_0 { background: url( http://img.combats.ru/i/sprites/gy0/Left/2_0.gif ) }
.Dungeon .RightSide2_0 { background: url( http://img.combats.ru/i/sprites/gy0/Right/2_0.gif ) }
.Dungeon .LeftFront1_1 { background: url( http://img.combats.ru/i/sprites/gy0/Left/Front/2_1.gif ) }
.Dungeon .RightFront1_1 { background: url( http://img.combats.ru/i/sprites/gy0/Right/Front/2_1.gif ) }
.Dungeon .LeftFront1_0 { background: url( http://img.combats.ru/i/sprites/gy0/Left/Front/2_0.gif ) }
.Dungeon .LeftSide1_0 { background: url( http://img.combats.ru/i/sprites/gy0/Left/1_0.gif ) }
.Dungeon .RightSide1_0 { background: url( http://img.combats.ru/i/sprites/gy0/Right/1_0.gif ) }
.Dungeon .LeftFront0_1 { background: url( http://img.combats.ru/i/sprites/gy0/Left/Front/1_1.gif ) }
.Dungeon .RightFront0_1 { background: url( http://img.combats.ru/i/sprites/gy0/Right/Front/1_1.gif ) }
.Dungeon .LeftFront0_0 { background: url( http://img.combats.ru/i/sprites/gy0/Left/Front/1_0.gif ) }
.Dungeon .LeftSide0_0 { background: url( http://img.combats.ru/i/sprites/gy0/Left/0_0.gif ) }
.Dungeon .RightSide0_0 { background: url( http://img.combats.ru/i/sprites/gy0/Right/0_0.gif ) }

57
css/2/dungeon_kn4.css

@ -1,57 +0,0 @@
DIV.Dungeon{
width: 372px;
height: 260px;
padding: 10px;
position: relative;
overflow: hidden;
background: black;
}
.Dungeon BUTTON {
border: 0 solid;
background: transparent;
padding: 0;
margin: 0;
position: absolute;
filter: Alpha(opacity=100),Chroma( Color=#c1cacf );
}
.Dungeon DIV {
width: 352px;
height: 240px;
overflow: hidden;
position: relative;
}
DIV.Life{position:absolute;background:#008000;height:2px;}
DIV.Life2{position:absolute;background:#00FF00;height:2px;}
.Dungeon .Floor0{ background: url( http://img.combats.ru/i/sprites/kn4/bg0.gif ) black }
.Dungeon .Floor1{ background: url( http://img.combats.ru/i/sprites/kn4/bg1.gif ) black }
.Dungeon .LeftSide4_1 { background: url( http://img.combats.ru/i/sprites/kn4/Left/4_1.gif ) }
.Dungeon .RightSide4_1 { background: url( http://img.combats.ru/i/sprites/kn4/Right/4_1.gif ) }
.Dungeon .LeftSide4_0 { background: url( http://img.combats.ru/i/sprites/kn4/Left/4_0.gif ) }
.Dungeon .RightSide4_0 { background: url( http://img.combats.ru/i/sprites/kn4/Right/4_0.gif ) }
.Dungeon .LeftFront3_2 { background: url( http://img.combats.ru/i/sprites/kn4/Left/Front/4_2.gif ) }
.Dungeon .RightFront3_2 { background: url( http://img.combats.ru/i/sprites/kn4/Right/Front/4_2.gif ) }
.Dungeon .LeftFront3_1 { background: url( http://img.combats.ru/i/sprites/kn4/Left/Front/4_1.gif ) }
.Dungeon .RightFront3_1 { background: url( http://img.combats.ru/i/sprites/kn4/Right/Front/4_1.gif ) }
.Dungeon .LeftFront3_0 { background: url( http://img.combats.ru/i/sprites/kn4/Left/Front/4_0.gif ) }
.Dungeon .LeftSide3_1 { background: url( http://img.combats.ru/i/sprites/kn4/Left/3_1.gif ) }
.Dungeon .RightSide3_1 { background: url( http://img.combats.ru/i/sprites/kn4/Right/3_1.gif ) }
.Dungeon .LeftSide3_0 { background: url( http://img.combats.ru/i/sprites/kn4/Left/3_0.gif ) }
.Dungeon .RightSide3_0 { background: url( http://img.combats.ru/i/sprites/kn4/Right/3_0.gif ) }
.Dungeon .LeftFront2_1 { background: url( http://img.combats.ru/i/sprites/kn4/Left/Front/3_1.gif ) }
.Dungeon .RightFront2_1 { background: url( http://img.combats.ru/i/sprites/kn4/Right/Front/3_1.gif ) }
.Dungeon .LeftFront2_0 { background: url( http://img.combats.ru/i/sprites/kn4/Left/Front/3_0.gif ) }
.Dungeon .LeftSide2_0 { background: url( http://img.combats.ru/i/sprites/kn4/Left/2_0.gif ) }
.Dungeon .RightSide2_0 { background: url( http://img.combats.ru/i/sprites/kn4/Right/2_0.gif ) }
.Dungeon .LeftFront1_1 { background: url( http://img.combats.ru/i/sprites/kn4/Left/Front/2_1.gif ) }
.Dungeon .RightFront1_1 { background: url( http://img.combats.ru/i/sprites/kn4/Right/Front/2_1.gif ) }
.Dungeon .LeftFront1_0 { background: url( http://img.combats.ru/i/sprites/kn4/Left/Front/2_0.gif ) }
.Dungeon .LeftSide1_0 { background: url( http://img.combats.ru/i/sprites/kn4/Left/1_0.gif ) }
.Dungeon .RightSide1_0 { background: url( http://img.combats.ru/i/sprites/kn4/Right/1_0.gif ) }
.Dungeon .LeftFront0_1 { background: url( http://img.combats.ru/i/sprites/kn4/Left/Front/1_1.gif ) }
.Dungeon .RightFront0_1 { background: url( http://img.combats.ru/i/sprites/kn4/Right/Front/1_1.gif ) }
.Dungeon .LeftFront0_0 { background: url( http://img.combats.ru/i/sprites/kn4/Left/Front/1_0.gif ) }
.Dungeon .LeftSide0_0 { background: url( http://img.combats.ru/i/sprites/kn4/Left/0_0.gif ) }
.Dungeon .RightSide0_0 { background: url( http://img.combats.ru/i/sprites/kn4/Right/0_0.gif ) }

62
css/2/dungeon_sn.css

@ -1,62 +0,0 @@
DIV.Dungeon{
width: 372px;
height: 260px;
padding: 10px;
position: relative;
overflow: hidden;
background: black;
}
.Dungeon BUTTON {
border: 0 solid;
background: transparent;
padding: 0;
margin: 0;
position: absolute;
filter: Chroma( Color=#c1cacf );
}
.Dungeon DIV {
width: 352px;
height: 240px;
overflow: hidden;
position: relative;
}
.Dungeon IMG {
width: 352px;
height: 240px;
position: relative;
}
DIV.Life{position:absolute;background:#008000;height:2px;}
DIV.Life2{position:absolute;background:#00FF00;height:2px;}
.Dungeon .Floor0{ background: url( http://img.combats.ru/i/sprites/sn/bg0.gif ) black }
.Dungeon .Floor1{ background: url( http://img.combats.ru/i/sprites/sn/bg1.gif ) black }
.Dungeon .LeftSide4_1 { background: url( http://img.combats.ru/i/sprites/sn/Left/4_1.gif ) }
.Dungeon .RightSide4_1 { background: url( http://img.combats.ru/i/sprites/sn/Right/4_1.gif ) }
.Dungeon .LeftSide4_0 { background: url( http://img.combats.ru/i/sprites/sn/Left/4_0.gif ) }
.Dungeon .RightSide4_0 { background: url( http://img.combats.ru/i/sprites/sn/Right/4_0.gif ) }
.Dungeon .LeftFront3_2 { background: url( http://img.combats.ru/i/sprites/sn/Left/Front/4_2.gif ) }
.Dungeon .RightFront3_2 { background: url( http://img.combats.ru/i/sprites/sn/Right/Front/4_2.gif ) }
.Dungeon .LeftFront3_1 { background: url( http://img.combats.ru/i/sprites/sn/Left/Front/4_1.gif ) }
.Dungeon .RightFront3_1 { background: url( http://img.combats.ru/i/sprites/sn/Right/Front/4_1.gif ) }
.Dungeon .LeftFront3_0 { background: url( http://img.combats.ru/i/sprites/sn/Left/Front/4_0.gif ) }
.Dungeon .LeftSide3_1 { background: url( http://img.combats.ru/i/sprites/sn/Left/3_1.gif ) }
.Dungeon .RightSide3_1 { background: url( http://img.combats.ru/i/sprites/sn/Right/3_1.gif ) }
.Dungeon .LeftSide3_0 { background: url( http://img.combats.ru/i/sprites/sn/Left/3_0.gif ) }
.Dungeon .RightSide3_0 { background: url( http://img.combats.ru/i/sprites/sn/Right/3_0.gif ) }
.Dungeon .LeftFront2_1 { background: url( http://img.combats.ru/i/sprites/sn/Left/Front/3_1.gif ) }
.Dungeon .RightFront2_1 { background: url( http://img.combats.ru/i/sprites/sn/Right/Front/3_1.gif ) }
.Dungeon .LeftFront2_0 { background: url( http://img.combats.ru/i/sprites/sn/Left/Front/3_0.gif ) }
.Dungeon .LeftSide2_0 { background: url( http://img.combats.ru/i/sprites/sn/Left/2_0.gif ) }
.Dungeon .RightSide2_0 { background: url( http://img.combats.ru/i/sprites/sn/Right/2_0.gif ) }
.Dungeon .LeftFront1_1 { background: url( http://img.combats.ru/i/sprites/sn/Left/Front/2_1.gif ) }
.Dungeon .RightFront1_1 { background: url( http://img.combats.ru/i/sprites/sn/Right/Front/2_1.gif ) }
.Dungeon .LeftFront1_0 { background: url( http://img.combats.ru/i/sprites/sn/Left/Front/2_0.gif ) }
.Dungeon .LeftSide1_0 { background: url( http://img.combats.ru/i/sprites/sn/Left/1_0.gif ) }
.Dungeon .RightSide1_0 { background: url( http://img.combats.ru/i/sprites/sn/Right/1_0.gif ) }
.Dungeon .LeftFront0_1 { background: url( http://img.combats.ru/i/sprites/sn/Left/Front/1_1.gif ) }
.Dungeon .RightFront0_1 { background: url( http://img.combats.ru/i/sprites/sn/Right/Front/1_1.gif ) }
.Dungeon .LeftFront0_0 { background: url( http://img.combats.ru/i/sprites/sn/Left/Front/1_0.gif ) }
.Dungeon .LeftSide0_0 { background: url( http://img.combats.ru/i/sprites/sn/Left/0_0.gif ) }
.Dungeon .RightSide0_0 { background: url( http://img.combats.ru/i/sprites/sn/Right/0_0.gif ) }

62
css/2/dungeon_sun.css

@ -1,62 +0,0 @@
DIV.Dungeon{
width: 372px;
height: 260px;
padding: 10px;
position: relative;
overflow: hidden;
background: black;
}
.Dungeon BUTTON {
border: 0 solid;
background: transparent;
padding: 0;
margin: 0;
position: absolute;
filter: Chroma( Color=#c1cacf );
}
.Dungeon DIV {
width: 352px;
height: 240px;
overflow: hidden;
position: relative;
}
.Dungeon IMG {
width: 352px;
height: 240px;
position: relative;
}
DIV.Life{position:absolute;background:#008000;height:2px;}
DIV.Life2{position:absolute;background:#00FF00;height:2px;}
.Dungeon .Floor0{ background: url( http://img.combats.ru/i/sprites/sun/bg0.gif ) black }
.Dungeon .Floor1{ background: url( http://img.combats.ru/i/sprites/sun/bg1.gif ) black }
.Dungeon .LeftSide4_1 { background: url( http://img.combats.ru/i/sprites/sun/Left/4_1.gif ) }
.Dungeon .RightSide4_1 { background: url( http://img.combats.ru/i/sprites/sun/Right/4_1.gif ) }
.Dungeon .LeftSide4_0 { background: url( http://img.combats.ru/i/sprites/sun/Left/4_0.gif ) }
.Dungeon .RightSide4_0 { background: url( http://img.combats.ru/i/sprites/sun/Right/4_0.gif ) }
.Dungeon .LeftFront3_2 { background: url( http://img.combats.ru/i/sprites/sun/Left/Front/4_2.gif ) }
.Dungeon .RightFront3_2 { background: url( http://img.combats.ru/i/sprites/sun/Right/Front/4_2.gif ) }
.Dungeon .LeftFront3_1 { background: url( http://img.combats.ru/i/sprites/sun/Left/Front/4_1.gif ) }
.Dungeon .RightFront3_1 { background: url( http://img.combats.ru/i/sprites/sun/Right/Front/4_1.gif ) }
.Dungeon .LeftFront3_0 { background: url( http://img.combats.ru/i/sprites/sun/Left/Front/4_0.gif ) }
.Dungeon .LeftSide3_1 { background: url( http://img.combats.ru/i/sprites/sun/Left/3_1.gif ) }
.Dungeon .RightSide3_1 { background: url( http://img.combats.ru/i/sprites/sun/Right/3_1.gif ) }
.Dungeon .LeftSide3_0 { background: url( http://img.combats.ru/i/sprites/sun/Left/3_0.gif ) }
.Dungeon .RightSide3_0 { background: url( http://img.combats.ru/i/sprites/sun/Right/3_0.gif ) }
.Dungeon .LeftFront2_1 { background: url( http://img.combats.ru/i/sprites/sun/Left/Front/3_1.gif ) }
.Dungeon .RightFront2_1 { background: url( http://img.combats.ru/i/sprites/sun/Right/Front/3_1.gif ) }
.Dungeon .LeftFront2_0 { background: url( http://img.combats.ru/i/sprites/sun/Left/Front/3_0.gif ) }
.Dungeon .LeftSide2_0 { background: url( http://img.combats.ru/i/sprites/sun/Left/2_0.gif ) }
.Dungeon .RightSide2_0 { background: url( http://img.combats.ru/i/sprites/sun/Right/2_0.gif ) }
.Dungeon .LeftFront1_1 { background: url( http://img.combats.ru/i/sprites/sun/Left/Front/2_1.gif ) }
.Dungeon .RightFront1_1 { background: url( http://img.combats.ru/i/sprites/sun/Right/Front/2_1.gif ) }
.Dungeon .LeftFront1_0 { background: url( http://img.combats.ru/i/sprites/sun/Left/Front/2_0.gif ) }
.Dungeon .LeftSide1_0 { background: url( http://img.combats.ru/i/sprites/sun/Left/1_0.gif ) }
.Dungeon .RightSide1_0 { background: url( http://img.combats.ru/i/sprites/sun/Right/1_0.gif ) }
.Dungeon .LeftFront0_1 { background: url( http://img.combats.ru/i/sprites/sun/Left/Front/1_1.gif ) }
.Dungeon .RightFront0_1 { background: url( http://img.combats.ru/i/sprites/sun/Right/Front/1_1.gif ) }
.Dungeon .LeftFront0_0 { background: url( http://img.combats.ru/i/sprites/sun/Left/Front/1_0.gif ) }
.Dungeon .LeftSide0_0 { background: url( http://img.combats.ru/i/sprites/sun/Left/0_0.gif ) }
.Dungeon .RightSide0_0 { background: url( http://img.combats.ru/i/sprites/sun/Right/0_0.gif ) }

57
css/2/dungeon_uq.css

@ -1,57 +0,0 @@
DIV.Dungeon{
width: 372px;
height: 260px;
padding: 10px;
position: relative;
overflow: hidden;
background: black;
}
.Dungeon BUTTON {
border: 0 solid;
background: transparent;
padding: 0;
margin: 0;
position: absolute;
filter: Alpha(opacity=100),Chroma( Color=#c1cacf );
}
.Dungeon DIV {
width: 352px;
height: 240px;
overflow: hidden;
position: relative;
}
DIV.Life{position:absolute;background:#008000;height:2px;}
DIV.Life2{position:absolute;background:#00FF00;height:2px;}
.Dungeon .Floor0{ background: url( http://img.combats.ru/i/sprites/ug/bg0.gif ) black }
.Dungeon .Floor1{ background: url( http://img.combats.ru/i/sprites/ug/bg1.gif ) black }
.Dungeon .LeftSide4_1 { background: url( http://img.combats.ru/i/sprites/ug/Left/4_1.gif ) }
.Dungeon .RightSide4_1 { background: url( http://img.combats.ru/i/sprites/ug/Right/4_1.gif ) }
.Dungeon .LeftSide4_0 { background: url( http://img.combats.ru/i/sprites/ug/Left/4_0.gif ) }
.Dungeon .RightSide4_0 { background: url( http://img.combats.ru/i/sprites/ug/Right/4_0.gif ) }
.Dungeon .LeftFront3_2 { background: url( http://img.combats.ru/i/sprites/ug/Left/Front/4_2.gif ) }
.Dungeon .RightFront3_2 { background: url( http://img.combats.ru/i/sprites/ug/Right/Front/4_2.gif ) }
.Dungeon .LeftFront3_1 { background: url( http://img.combats.ru/i/sprites/ug/Left/Front/4_1.gif ) }
.Dungeon .RightFront3_1 { background: url( http://img.combats.ru/i/sprites/ug/Right/Front/4_1.gif ) }
.Dungeon .LeftFront3_0 { background: url( http://img.combats.ru/i/sprites/ug/Left/Front/4_0.gif ) }
.Dungeon .LeftSide3_1 { background: url( http://img.combats.ru/i/sprites/ug/Left/3_1.gif ) }
.Dungeon .RightSide3_1 { background: url( http://img.combats.ru/i/sprites/ug/Right/3_1.gif ) }
.Dungeon .LeftSide3_0 { background: url( http://img.combats.ru/i/sprites/ug/Left/3_0.gif ) }
.Dungeon .RightSide3_0 { background: url( http://img.combats.ru/i/sprites/ug/Right/3_0.gif ) }
.Dungeon .LeftFront2_1 { background: url( http://img.combats.ru/i/sprites/ug/Left/Front/3_1.gif ) }
.Dungeon .RightFront2_1 { background: url( http://img.combats.ru/i/sprites/ug/Right/Front/3_1.gif ) }
.Dungeon .LeftFront2_0 { background: url( http://img.combats.ru/i/sprites/ug/Left/Front/3_0.gif ) }
.Dungeon .LeftSide2_0 { background: url( http://img.combats.ru/i/sprites/ug/Left/2_0.gif ) }
.Dungeon .RightSide2_0 { background: url( http://img.combats.ru/i/sprites/ug/Right/2_0.gif ) }
.Dungeon .LeftFront1_1 { background: url( http://img.combats.ru/i/sprites/ug/Left/Front/2_1.gif ) }
.Dungeon .RightFront1_1 { background: url( http://img.combats.ru/i/sprites/ug/Right/Front/2_1.gif ) }
.Dungeon .LeftFront1_0 { background: url( http://img.combats.ru/i/sprites/ug/Left/Front/2_0.gif ) }
.Dungeon .LeftSide1_0 { background: url( http://img.combats.ru/i/sprites/ug/Left/1_0.gif ) }
.Dungeon .RightSide1_0 { background: url( http://img.combats.ru/i/sprites/ug/Right/1_0.gif ) }
.Dungeon .LeftFront0_1 { background: url( http://img.combats.ru/i/sprites/ug/Left/Front/1_1.gif ) }
.Dungeon .RightFront0_1 { background: url( http://img.combats.ru/i/sprites/ug/Right/Front/1_1.gif ) }
.Dungeon .LeftFront0_0 { background: url( http://img.combats.ru/i/sprites/ug/Left/Front/1_0.gif ) }
.Dungeon .LeftSide0_0 { background: url( http://img.combats.ru/i/sprites/ug/Left/0_0.gif ) }
.Dungeon .RightSide0_0 { background: url( http://img.combats.ru/i/sprites/ug/Right/0_0.gif ) }

590
css/2/main.css

@ -1,590 +0,0 @@
body, td, ol, ul, li, p {
font-size: 10pt;
font-family: Verdana, Arial, Helvetica, Tahoma, serif;
}
.seehp {
color: #F4F4F4;
line-height: 7px;
font-size: 9px;
font-weight: bold;
padding-top: 1px;
margin-left: 3px;
padding-left: 3px;
}
.senohp {
line-height: 7px;
font-size: 9px;
}
.hp_none {
background: url('../i/hp.jpg') 0 0 repeat-x;
}
.hp_1 {
background: url('../i/hp.jpg') 0 -11px repeat-x;
}
.hp_2 {
background: url('../i/hp.jpg') 0 -21px repeat-x;
}
.hp_3 {
background: url('../i/hp.jpg') 0 -31px repeat-x;
}
.hp_mp {
background: url('../i/hp.jpg') 0 -41px repeat-x;
}
.seemp {
color: #00FFFF;
line-height: 7px;
font-size: 9px;
font-weight: bold;
padding-top: 1px;
margin-left: 3px;
padding-left: 3px;
}
.hpborder {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #DADADA;
}
.text {
font-size: 10pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, Tahoma, serif;
}
H3 {
COLOR: #8f0000;
FONT-FAMILY: Arial, serif;
FONT-SIZE: 12pt;
FONT-WEIGHT: bold;
TEXT-ALIGN: center;
}
H4 {
COLOR: #8f0000;
FONT-FAMILY: Arial, serif;
FONT-SIZE: 11pt;
FONT-WEIGHT: bold;
MARGIN-BOTTOM: 5px;
}
H5 {
COLOR: #4f0000;
FONT-FAMILY: Arial, serif;
FONT-SIZE: 11pt;
FONT-WEIGHT: bold;
MARGIN-BOTTOM: 0;
MARGIN-TOP: 0;
}
a, a:visited {
text-decoration: none;
FONT-WEIGHT: bold;
color: #003388;
}
a:active {