упрощение образов. изъятие пола.

This commit is contained in:
lopar 2018-03-30 23:21:35 +03:00
parent ad1b7049a0
commit 638bd9460b
93 changed files with 57 additions and 133 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

178
main.php
View File

@ -64,17 +64,17 @@ function setShadow($image)
{
global $user;
$shadows = [
'm01','m02','m03','m04','m05','m06','m07','m08','m09','m10',
'f01','f02','f03','f04','f05','f06','f07','f08','f09','f10',
'm01', 'm02', 'm03', 'm04', 'm05', 'm06', 'm07', 'm08', 'm09', 'm10',
'f01', 'f02', 'f03', 'f04', 'f05', 'f06', 'f07', 'f08', 'f09', 'f10',
'person'
];
if (in_array($image,$shadows)) {
if (in_array($image, $shadows)) {
$i = $image . '.png';
db::c()->query('UPDATE `users` SET `shadow` = "?s" WHERE `id` = ?i', $i, $user['id']);
} else err('Ошибка!');
}
$obraz = filter_input(INPUT_GET,'obraz');
$obraz = filter_input(INPUT_GET, 'obraz');
if ($obraz && ($user['shadow'] == 'g0.gif' || $user['shadow'] == 'man0.gif')) {
setShadow($obraz);
}
@ -212,7 +212,8 @@ if (isset($_REQUEST['transreport'])) {
<FORM ACTION="main.php" METHOD=POST>
<P align=right><INPUT TYPE=submit value="Вернуться" name=edit></P>
<H3>Отчет о переводах</H3>
Вы можете получить отчет о переводах кредитов/вещей от вас/к вам за указанный день. Услуга платная, стоит <B>5 кр.</B><BR>
Вы можете получить отчет о переводах кредитов/вещей от вас/к вам за указанный день. Услуга платная, стоит <B>5
кр.</B><BR>
У вас на счету: <B><?= $user['money'] ?></B> кр.<BR>
Укажите дату, на которую хотите получить отчет:
<INPUT TYPE=text NAME=date value="<?= date("d.m.y") ?>">
@ -240,13 +241,13 @@ if (isset($_REQUEST['transreport'])) {
die();
}
if (isset($_POST['setshadow'])) {
if (input::post('setshadow')) {
?>
<HTML>
<HEAD>
<html>
<head>
<link rel=stylesheet href="css/main.css">
<meta charset="utf-8">
</HEAD>
</head>
<body>
<table width=100%>
<tr>
@ -258,98 +259,41 @@ if (isset($_POST['setshadow'])) {
<td align=center style="color:red;">Внимание! Образ персонажа выбирается только один раз.</td>
</tr>
</table>
<center>
<TABLE cellpadding="0" cellspacing="1" style="padding:5px;">
<?
if ($user['sex'] == 1) { ?>
<table style="padding:5px; margin:auto;">
<caption><b>Общие образы</b></caption>
<tr>
<td colspan="4"><b>Общие образы</b></td>
<td><a href="?edit=1&obraz=m1"><img src="i/shadow/m1.gif"></a></a></td>
<td><a href="?edit=1&obraz=m2"><img src="i/shadow/m2.gif"></a></td>
<td><a href="?edit=1&obraz=m3"><img src="i/shadow/m3.gif"></a></td>
<td><a href="?edit=1&obraz=m4"><img src="i/shadow/m4.gif"></a></td>
<td><a href="?edit=1&obraz=m5"><img src="i/shadow/m5.gif"></a></td>
<td><a href="?edit=1&obraz=m6"><img src="i/shadow/m6.gif"></a></td>
<td><a href="?edit=1&obraz=m7"><img src="i/shadow/m7.gif"></a></td>
<td><a href="?edit=1&obraz=m8"><img src="i/shadow/m8.gif"></a></td>
<td><a href="?edit=1&obraz=m9"><img src="i/shadow/m9.gif"></a></td>
<td><a href="?edit=1&obraz=m10"><img src="i/shadow/m10.gif"></a></td>
</tr>
<tr>
<td><a href="?edit=1&obraz=0"><img src="i/shadow/man0.gif"></a></a></td>
<td><a href="?edit=1&obraz=1"><img src="i/shadow/man1.gif"></a></td>
<td><a href="?edit=1&obraz=2"><img src="i/shadow/man2.gif"></a></td>
<td><a href="?edit=1&obraz=3"><img src="i/shadow/man3.gif"></a></td>
<td><a href="?edit=1&obraz=5"><img src="i/shadow/man5.gif"></a></td>
<td><a href="?edit=1&obraz=f1"><img src="i/shadow/f1.gif"></a></a></td>
<td><a href="?edit=1&obraz=f2"><img src="i/shadow/f2.gif"></a></td>
<td><a href="?edit=1&obraz=f3"><img src="i/shadow/f3.gif"></a></td>
<td><a href="?edit=1&obraz=f4"><img src="i/shadow/f4.gif"></a></td>
<td><a href="?edit=1&obraz=f5"><img src="i/shadow/f5.gif"></a></td>
<td><a href="?edit=1&obraz=f6"><img src="i/shadow/f6.gif"></a></td>
<td><a href="?edit=1&obraz=f7"><img src="i/shadow/f7.gif"></a></td>
<td><a href="?edit=1&obraz=f8"><img src="i/shadow/f8.gif"></a></td>
<td><a href="?edit=1&obraz=f9"><img src="i/shadow/f9.gif"></a></td>
<td><a href="?edit=1&obraz=f10"><img src="i/shadow/f10.gif"></a></td>
</tr>
<tr>
<td><a href="?edit=1&obraz=6"><img src="i/shadow/man6.gif"></a></td>
<td><a href="?edit=1&obraz=7"><img src="i/shadow/man7.gif"></a></td>
<td><a href="?edit=1&obraz=8"><img src="i/shadow/man8.gif"></a></td>
<td><a href="?edit=1&obraz=9"><img src="i/shadow/man9.gif"></a></td>
<td><a href="?edit=1&obraz=10"><img src="i/shadow/man10.gif"></a></td>
</tr>
<tr>
<td><a href="?edit=1&obraz=4"><img src="i/shadow/man4.gif"></a></td>
<td><a href="?edit=1&obraz=11"><img src="i/shadow/man11.gif"></a></td>
<td><a href="?edit=1&obraz=12"><img src="i/shadow/man12.gif"></a></td>
<td><a href="?edit=1&obraz=13"><img src="i/shadow/man13.gif"></a></td>
<td><a href="?edit=1&obraz=14"><img src="i/shadow/man14.gif"></a></td>
</tr>
<?
if ($shadow['mshadow']) { ?>
<tr>
<td colspan="4"><b>Клановые образы</b></td>
</tr>
<tr>
<td><a href="?edit=1&obraz=40"><img src="i/shadow/<?= $shadow['mshadow'] ?>"></a></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<?
}
} else { ?>
<tr>
<td colspan="4"><b>Общие образы</b></td>
</tr>
<tr>
<td><a href="?edit=1&obraz=0"><img src="i/shadow/g0.gif"></a></a></td>
<td><a href="?edit=1&obraz=1"><img src="i/shadow/g1.gif"></a></td>
<td><a href="?edit=1&obraz=2"><img src="i/shadow/g2.gif"></a></td>
<td><a href="?edit=1&obraz=3"><img src="i/shadow/g3.gif"></a></td>
<td><a href="?edit=1&obraz=4"><img src="i/shadow/g4.gif"></a></td>
</tr>
<tr>
<td><a href="?edit=1&obraz=5"><img src="i/shadow/g5.gif"></a></td>
<td><a href="?edit=1&obraz=6"><img src="i/shadow/g6.gif"></a></td>
<td><a href="?edit=1&obraz=7"><img src="i/shadow/g7.gif"></a></td>
<td><a href="?edit=1&obraz=8"><img src="i/shadow/g8.gif"></a></td>
<td><a href="?edit=1&obraz=9"><img src="i/shadow/g9.gif"></a></td>
</tr>
<tr>
<td><a href="?edit=1&obraz=10"><img src="i/shadow/g10.gif"></a></td>
<td><a href="?edit=1&obraz=11"><img src="i/shadow/g11.gif"></a></td>
<td><a href="?edit=1&obraz=12"><img src="i/shadow/g12.gif"></a></td>
<td><a href="?edit=1&obraz=13"><img src="i/shadow/g13.gif"></a></td>
<td><a href="?edit=1&obraz=14"><img src="i/shadow/g14.gif"></a></td>
</tr>
<tr>
<td><a href="?edit=1&obraz=15"><img src="i/shadow/g15.gif"></a></td>
<td><a href="?edit=1&obraz=16"><img src="i/shadow/g16.gif"></a></td>
<td><a href="?edit=1&obraz=17"><img src="i/shadow/g17.gif"></a></td>
</tr>
<?
if ($shadow['wshadow']) { ?>
<tr>
<td colspan="4"><b>Клановые образы</b></td>
</tr>
<tr>
<td><a href="?edit=1&obraz=41"><img src="i/shadow/<?= $shadow['wshadow'] ?>"></a></td>
</tr>
<?
}
} ?>
</TABLE>
</center>
</table>
</body>
</html>
<?php
die();
}
//
if (isset($_POST['setshadowclan'])) {
if (input::post('setshadowclan')) {
?>
<HTML>
<HEAD>
@ -364,34 +308,13 @@ if (isset($_POST['setshadowclan'])) {
onClick="location.href='main.php?edit=0.467837356797105';"></td>
</tr>
</table>
<center>
<TABLE border=0 cellpadding="0" cellspacing="0" style="padding:5px;">
<?
if ($user['sex']) {
if ($shadow['mshadow']) { ?>
<TABLE style="padding:5px; margin: auto;">
<caption><b>Клановые образы</b></caption>
<tr>
<td><a href="?edit=1&obraz=40"><img src="i/shadow/<?= $shadow['mshadow'] ?>"></a></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td><a href="?edit=1&obraz=40"><img src="i/shadow/<?=$shadow['mshadow']?>"></a></td>
<td><a href="?edit=1&obraz=41"><img src="i/shadow/<?=$shadow['wshadow']?>"></a></td>
</tr>
<?
}
} else {
if ($shadow['wshadow']) { ?>
<tr>
<td><a href="?edit=1&obraz=41"><img src="i/shadow/<?= $shadow['wshadow'] ?>"></a></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<?
}
} ?>
</TABLE>
</center>
</body>
</html>
<?php
@ -435,13 +358,13 @@ if (isset($_GET['setch'])) {
</script>
</head>
<body id="body" onload="<?=topsethp()?>">
<body id="body" onload="<?= topsethp() ?>">
<div id="page-wrapper" class="map-wrapper">
<div class="btn-control">
<div class="left-text">
<div class="nickname-wrapper"><?=nick::id($user['id'])->full()?></div>
<div class="nickname-wrapper"><?= nick::id($user['id'])->full() ?></div>
<div class="text-title">Карта миров</div>
<div class="hint-text">(Сейчас в игре: <strong><?=$online->getNumRows()?></strong> чел.)</div>
<div class="hint-text">(Сейчас в игре: <strong><?= $online->getNumRows() ?></strong> чел.)</div>
</div>
@ -1070,7 +993,7 @@ if (isset($_GET['edit'])) {
$user[$stat] += (int)$_POST['stat'];
$user[$type] -= (int)$_POST['stat'];
db::c()->query('UPDATE `users` SET ?f = ?i, ?f = ?i WHERE `id` = ?i', $stat, $user[$stat], $type, $user[$type], $user['id']);
err('Параметр '.$statName.' увеличен на '.(int)$_POST['stat'].' ед.');
err('Параметр ' . $statName . ' увеличен на ' . (int)$_POST['stat'] . ' ед.');
} else err('Ошибка в количестве.');
}
}
@ -1078,7 +1001,7 @@ if (isset($_GET['edit'])) {
if ($_GET['ups']) {
switch ($_GET['ups']) {
case 11 :
ups('stats','sila','Сила');
ups('stats', 'sila', 'Сила');
// if ($user['stats'] > 0 && $user['sid'] == $_GET['s4i']) {
// if ($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) {
// $user['sila'] += (int)$_POST['stat'];
@ -1093,7 +1016,7 @@ if (isset($_GET['edit'])) {
// }
break;
case 12 :
ups('stats','lovk','Ловкость');
ups('stats', 'lovk', 'Ловкость');
// if ($user['stats'] > 0 && $user['sid'] == $_GET['s4i']) {
// if ($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) {
// $user['lovk'] += (int)$_POST['stat'];
@ -1434,7 +1357,8 @@ if (isset($_GET['edit'])) {
<HEAD>
<meta charset="utf-8">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/newstyle18.css"">
<link rel="stylesheet" href="css/newstyle18.css"
">
<link rel="stylesheet" href="css/tooltip.css"/>
<link rel="stylesheet" href="css/bkstyle.css?101"/>
<link rel="stylesheet" href="css/mi.css"/>
@ -1570,7 +1494,7 @@ if (isset($_GET['edit'])) {
<?
//Выгребаем все комплекты перса
$u_all_kompl = db::c()->query("SELECT `name` FROM komplekt where `owner` = ?i", $user['id']);
$u_all_kompl = db::c()->query("SELECT `name` FROM komplekt WHERE `owner` = ?i", $user['id']);
while ($u_k = $u_all_kompl->fetch_assoc()) {
$k_name = $u_k['name'];
echo "<a onclick=\"if (!confirm('Вы уверены, что хотите удалить комплект?')) { return false; }\" href='main.php?edit=1&delcomplect=" . $k_name . "'>
@ -2138,7 +2062,7 @@ if (isset($_GET['edit'])) {
<?php endif; ?>
<?php
if (in_array(input::get('razdel'), [0,1,2,3,4,5])) $_SESSION['razdel'] = input::get('razdel');
if (in_array(input::get('razdel'), [0, 1, 2, 3, 4, 5])) $_SESSION['razdel'] = input::get('razdel');
?>
<table border=0 width=100% cellspacing="0" cellpadding="0" bgcolor="#A5A5A5">
<tr>
@ -2502,7 +2426,7 @@ if ($user['room'] == 666) {
<link rel="stylesheet" href="css/btn.css">
<meta charset="utf-8">
<link rel="stylesheet" href="css/tooltip.css">
<script src = "js/jquery-1.7.2.min.js" ></script>
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/tooltip.js"></script>
<script>
$(function () {
@ -2607,7 +2531,7 @@ if (isset($_GET['use'])) {
usemagic($_GET['use'], $_POST['target']);
}
$online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time()-60));
$online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time() - 60));
?>
<div id=hint3 class=ahint></div>