Анкета и игровая шапка.
This commit is contained in:
parent
61b0ca565b
commit
a97a29f87d
9
ch.php
9
ch.php
@ -8,8 +8,7 @@ if (!isset($_SESSION['uid'])) {
|
||||
include_once 'config.php';
|
||||
include_once 'functions.php';
|
||||
|
||||
$user = db::c()->query('SELECT * FROM `users` WHERE `id` = ?i', $_SESSION['uid'])->fetch_assoc();
|
||||
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']);
|
||||
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $u->i()['id']);
|
||||
|
||||
//function tolink($buf) /*Штука, убивающая чужие ссылки*/
|
||||
//{
|
||||
@ -29,7 +28,7 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
|
||||
if ($_GET['room'] && (int)$_GET['room'] < 500) {
|
||||
$user['room'] = (int)$_GET['room'];
|
||||
}
|
||||
if ($user['caveleader'] > 0) {
|
||||
if ($u->i()['caveleader'] > 0) {
|
||||
$data = mysql_query('
|
||||
SELECT
|
||||
`align`,
|
||||
@ -49,8 +48,8 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
|
||||
WHERE
|
||||
`o`.`id` = `u`.`id` AND
|
||||
(`o`.`date` >= ' . (time() - 90) . ' OR `u`.`in_tower` = 1) AND
|
||||
`o`.`room` = "' . $user['room'] . '" AND
|
||||
`u`.`caveleader` = "' . $user['caveleader'] . '"
|
||||
`o`.`room` = "' . $u->i()['room'] . '" AND
|
||||
`u`.`caveleader` = "' . $u->i()['caveleader'] . '"
|
||||
ORDER BY
|
||||
`u`.`login`
|
||||
');
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
require_once 'config.php';
|
||||
require_once 'classes/u.php';
|
||||
$u = new u($_SESSION['uid']);
|
||||
|
||||
define("HPADDICTIONEFFECT", 33);
|
||||
|
||||
@ -1159,29 +1160,7 @@ $exptable = array(
|
||||
1500000000 => array(10, 1, 5, 8000, 1, 9999999999), # Это тринадцатый уровень
|
||||
);
|
||||
|
||||
$RefBonus = array(
|
||||
"1" => array(5, 0),
|
||||
"2" => array(10, 10),
|
||||
"3" => array(20, 40),
|
||||
"4" => array(30, 60),
|
||||
"5" => array(40, 80),
|
||||
"6" => array(100, 120),
|
||||
"7" => array(150, 200),
|
||||
"8" => array(200, 300),
|
||||
"9" => array(400, 1000),
|
||||
"10" => array(500, 2000),
|
||||
"11" => array(1000, 4000),
|
||||
"12" => array(3000, 10000),
|
||||
"13" => array(10000, 30000),
|
||||
"14" => array(15000, 40000),
|
||||
"15" => array(20000, 50000),
|
||||
"16" => array(30000, 60000),
|
||||
"17" => array(40000, 70000),
|
||||
"18" => array(50000, 100000)
|
||||
|
||||
);
|
||||
|
||||
$rooms = array(
|
||||
$rooms = [
|
||||
"0" => "Секретная Комната",
|
||||
"1" => "Комната Новичков",
|
||||
"2" => "Комната Новичков 2",
|
||||
@ -1394,7 +1373,7 @@ $rooms = array(
|
||||
"2100" => "Сектор 2100"
|
||||
|
||||
|
||||
);
|
||||
];
|
||||
//эффективность магии
|
||||
$elem_align = array(
|
||||
"a" => array("a" => "1", "e" => "0", "f" => "0.5", "w" => "0.5"),
|
||||
|
210
top_menu.php
210
top_menu.php
@ -1,194 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<HEAD>
|
||||
<meta content="text/html; charset=utf-8" http-equiv=Content-type>
|
||||
<script src="http://yandex.st/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<style>
|
||||
.btn0 {
|
||||
background: url(/i/newd/up_right_dec.jpg) no-repeat;
|
||||
width: 78px;
|
||||
height: 33px;
|
||||
margin-top: 1px;
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.btn7 {
|
||||
background: url(/i/newd/up_right_dec2.jpg) no-repeat;
|
||||
width: 19px;
|
||||
height: 33px;
|
||||
div {
|
||||
margin: 0 auto;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.btn2, .btn4, .btn20, .btn5, .btn6 {
|
||||
cursor: pointer;
|
||||
width: 32px;
|
||||
height: 33px;
|
||||
ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.btn2 {
|
||||
background: url(/i/newd/up_butt2.jpg) no-repeat 0 -33px;
|
||||
|
||||
}
|
||||
|
||||
.btn4 {
|
||||
background: url(/i/newd/up_butt4.jpg) no-repeat 0 -33px;
|
||||
}
|
||||
|
||||
.btn20 {
|
||||
background: url(/i/newd/m_link1.png) no-repeat 0 -33px;
|
||||
}
|
||||
|
||||
.btn5 {
|
||||
background: url(/i/newd/up_butt5.jpg) no-repeat 0 -33px;
|
||||
}
|
||||
|
||||
.btn6 {
|
||||
background: url(/i/newd/up_butt6.jpg) no-repeat 0 -33px;
|
||||
}
|
||||
|
||||
.btn5:hover, .btn6:hover, .btn20:hover, .btn4:hover, .btn2:hover {
|
||||
background-position: 0 0;
|
||||
width: 32px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
li img {
|
||||
float: right;
|
||||
}</style>
|
||||
<script>
|
||||
setTimeout(function () {
|
||||
location.href = "plrfr.php"
|
||||
}, 52161000);
|
||||
function ShowActions2() {
|
||||
$('#btn2').removeClass('btn22');
|
||||
$('#btn2').addClass('btn2');
|
||||
margin: 6px;
|
||||
border: 1px solid #fff;
|
||||
|
||||
var o = top.frames['main'].document;
|
||||
|
||||
if (o.frames && o.frames['leftmap']) {
|
||||
o = o.frames['leftmap'].document;
|
||||
}
|
||||
|
||||
if (!o.getElementById("actiondiv")) {
|
||||
newdiv2 = o.createElement("div"),
|
||||
newdiv2.setAttribute("id", "actiondiv");
|
||||
newdiv2.setAttribute("style", "display:none;");
|
||||
newdiv2.setAttribute("style", "z-index:99999;");
|
||||
o.body.appendChild(newdiv2);
|
||||
}
|
||||
|
||||
var el = o.getElementById("actiondiv");
|
||||
txt = '<span style="color:#8F0000;font-weight:bold;">Текущие акции<br><br>';
|
||||
txt += '<table border=0 width=400><tr><td rowspan=2 width="60" valign=top><img alt="" src="/i/action/sale_pictures2.jpg"></td><td style="color:#8F0000;font-weight:bold;"><a href="http://old-dark.ru" target="_blank" style="font-size: 10pt;font-family: Verdana,Arial,Helvetica,Tahoma,sans-serif;color: #038;text-decoration: none;">Акция "Установи изображение"</a></td></tr><tr><td style="font-size: 10pt;font-family: Verdana,Arial,Helvetica,Tahoma,sans-serif;color:black;font-weight:normal;">Спешите! Скидка на установку любых изображений.<br><small><i>Акция действует в настоящий момент c 01/03/2016 00:00 по 15/03/2016 00:00</i></small></td></tr><tr><td colspan=2 height=25><img src="/i/newd/pop/razdelitel1.png"></td></tr></table>';
|
||||
txt += '<table border=0 width=400><tr><td rowspan=2 width="60" valign=top><img alt="" src="/i/action/sale_junior2.jpg"></td><td style="color:#8F0000;font-weight:bold;">"Подарки новичкам"</td></tr><tr><td style="font-size: 10pt;font-family: Verdana,Arial,Helvetica,Tahoma,sans-serif;color:black;font-weight:normal;">Перейдя на 5й уровень Вы получите ценное долларовое обмундирование в подарок.</td></tr><tr><td colspan=2 height=25><img src="/i/newd/pop/razdelitel1.png"></td></tr></table>';
|
||||
el.innerHTML = '<table border=0 cellspacing=0 cellpadding=0 width=505><tr><td width=505 style="background-repeat: no-repeat;" background="/i/newd/pop/up_bg.jpg"><img OnClick="document.getElementById(\'actiondiv\').style.display = \'none\';" OnMouseOut="this.src=\'/i/newd/pop/close_butt.jpg\';" OnMouseOver="this.src=\'/i/newd/pop/close_butt_hover.jpg\';" src="/i/newd/pop/close_butt.jpg" align=right></td></tr><tr><td background="/i/newd/pop/bg-y.jpg" align="center">' + txt + '</td></tr><tr><td width=500 height=8 background="/i/newd/pop/down_bg.jpg"></td></tr>';
|
||||
el.style.display = "";
|
||||
el.style.position = "absolute";
|
||||
el.style.width = "550px;";
|
||||
el.style.left = "50%";
|
||||
el.style.top = "10%";
|
||||
el.style.marginLeft = "-275px";
|
||||
$.get('plrfr.php?save=1');
|
||||
-webkit-transition: box-shadow 0.5s ease;
|
||||
-moz-transition: box-shadow 0.5s ease;
|
||||
-o-transition: box-shadow 0.5s ease;
|
||||
transition: box-shadow 0.5s ease;
|
||||
}
|
||||
top.an = 1;
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-17715832-1']);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function () {
|
||||
var ga = document.createElement('script');
|
||||
ga.type = 'text/javascript';
|
||||
ga.async = true;
|
||||
ga.src = ('https:' === document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
|
||||
(function (b) {
|
||||
(function (a) {
|
||||
"__CF" in b && "DJS" in b.__CF ? b.__CF.DJS.push(a) : "addEventListener" in b ? b.addEventListener("load", a, !1) : b.attachEvent("onload", a)
|
||||
})(function () {
|
||||
"FB" in b && "Event" in FB && "subscribe" in FB.Event && (FB.Event.subscribe("edge.create", function (a) {
|
||||
_gaq.push(["_trackSocial", "facebook", "like", a])
|
||||
}), FB.Event.subscribe("edge.remove", function (a) {
|
||||
_gaq.push(["_trackSocial", "facebook", "unlike", a])
|
||||
}), FB.Event.subscribe("message.send", function (a) {
|
||||
_gaq.push(["_trackSocial", "facebook", "send", a])
|
||||
}));
|
||||
"twttr" in b && "events" in twttr && "bind" in twttr.events && twttr.events.bind("tweet", function (a) {
|
||||
if (a) {
|
||||
var b;
|
||||
if (a.target && a.target.nodeName === "IFRAME")a:{
|
||||
if (a = a.target.src) {
|
||||
a = a.split("#")[0].match(/[^?=&]+=([^&]*)?/g);
|
||||
b = 0;
|
||||
for (var c; c = a[b]; ++b)if (c.indexOf("url") === 0) {
|
||||
b = unescape(c.split("=")[1]);
|
||||
break a
|
||||
}
|
||||
}
|
||||
b = void 0
|
||||
}
|
||||
_gaq.push(["_trackSocial", "twitter", "tweet", b])
|
||||
}
|
||||
})
|
||||
})
|
||||
})(window);
|
||||
/* ]]> */
|
||||
</script>
|
||||
li img:hover {
|
||||
-webkit-box-shadow: 0 0 7px rgba(255,255,255,0.9);
|
||||
box-shadow: 0 0 7px rgba(255,255,255,0.9);
|
||||
}
|
||||
</style>
|
||||
</HEAD>
|
||||
<body bgcolor="#d7d7d7">
|
||||
<table border=0 cellpadding=0 cellspacing=0 width="100%"
|
||||
style="height: 33px; background: url(/i/newd/bricks_bg.jpg) repeat-x;border-spacing: 0; border-collapse: collapse;">
|
||||
<tr>
|
||||
<td width=210 style="min-width:210px;" align="left">
|
||||
<img src="http://capitalcity.old-dark.ru/i/newd/up_left_dec.png">
|
||||
</td>
|
||||
<td align="center" style="position: relative;min-width: 350px;">
|
||||
<table border=0 width=350 cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<td align=left width=1><img src="i/newd/up_center_left.png"></td>
|
||||
<td style="background: url(/i/newd/up_center_bg.jpg) repeat-x;position:relative;vertical-align:top;"
|
||||
align="center" width=100%>
|
||||
<!-- RADIO PLACEHOLDER -->
|
||||
</td>
|
||||
<td align="right" width=1><img src="i/newd/up_center_right.png"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width=460 style="min-width:460px;">
|
||||
<ul style="margin: -5px 0 0;">
|
||||
<li>
|
||||
<div class="btn7"></div>
|
||||
</li>
|
||||
<li><a href="#" onclick="top.cht('/user_anketa.php'); return false;" title="Анкета">
|
||||
<div class="btn2" title="Анкета"></div>
|
||||
</a></li>
|
||||
<li><a href="#" onclick="top.cht('/blocknote.php'); return false;" title="Блокнот">
|
||||
<div class="btn5" title="Блокнот"></div>
|
||||
</a></li>
|
||||
<li><a href="#" onclick="top.cht('/friend.php'); return false;" title="Друзья">
|
||||
<div class="btn6" title="Друзья"></div>
|
||||
</a></li>
|
||||
<li><a href="#" onclick="top.cht('/ref.php'); return false;" title="Заработок">
|
||||
<div class="btn4" title="Заработок"></div>
|
||||
</a></li>
|
||||
<li><a href="#" onclick="top.cht('/main.php?edit=1'); return false;" title="Инвентарь">
|
||||
<div class="btn20" title="Инвентарь"></div>
|
||||
</a></li>
|
||||
<?php if ($user['first'] != 99): ?>
|
||||
<li><a href="#" OnClick="ShowActions2();">
|
||||
<div id="btn2" class="btn22" title="Квест"></div>
|
||||
</a></li>
|
||||
<?php endif; ?>
|
||||
<li>
|
||||
<div class="btn0"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<body>
|
||||
<div>
|
||||
<ul>
|
||||
<li><a href="#"><img src="http://placehold.it/32x32" /></a></li>
|
||||
<li><a href="/user_anketa.php" title="Анкета"><img src="http://placehold.it/32x32" /></a></li>
|
||||
<li><a href="/blocknote.php" title="Блокнот"><img src="http://placehold.it/32x32" /></a></li>
|
||||
<li><a href="/friend.php" title="Друзья"><img src="http://placehold.it/32x32" /></a></li>
|
||||
<li><a href="/main.php?edit=1" title="Инвентарь"><img src="http://placehold.it/32x32" /></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -4,25 +4,21 @@ if (!isset($_SESSION['uid'])) {
|
||||
header('Location: /index.php');
|
||||
die();
|
||||
}
|
||||
include('config.php');
|
||||
include('functions.php');
|
||||
|
||||
$u = new u($_SESSION['uid']);
|
||||
include_once('config.php');
|
||||
include_once('functions.php');
|
||||
|
||||
if ($u->i()['battle'] > 0) {
|
||||
header('Location: /fbattle.php');
|
||||
die();
|
||||
}
|
||||
|
||||
$name = filter_input(INPUT_POST, $_POST['name']);
|
||||
$color = filter_input(INPUT_POST, $_POST['color']);
|
||||
$hobbie = str_replace("\\n", "<br />", $_POST['hobbie']);
|
||||
$hobbie = str_replace("\\r", "", $_POST['hobbie']);
|
||||
$hobbie = str_replace("<br />", "<br />", $_POST['hobbie']);
|
||||
|
||||
if ($_POST['submit']) {
|
||||
$name = filter_input(INPUT_POST, $_POST['name']);
|
||||
$color = filter_input(INPUT_POST, $_POST['color']);
|
||||
// $name = htmlspecialchars($_POST['name'], NULL, 'cp1251');
|
||||
// $color = htmlspecialchars($_POST['color'], NULL, 'cp1251');
|
||||
$hobbie = str_replace("\\n", "<br />", $_POST['hobbie']);
|
||||
$hobbie = str_replace("\\r", "", $_POST['hobbie']);
|
||||
$hobbie = str_replace("<br />", "<br />", $_POST['hobbie']);
|
||||
if ($name || $color || $hobbie) {
|
||||
|
||||
$simbolcount = strlen($hobbie);
|
||||
|
||||
@ -38,7 +34,6 @@ if ($_POST['submit']) {
|
||||
db::c()->query('UPDATE `users` SET `realname` = "?s", `color` = "?s", `info` = "?s" WHERE `id` = ?i', $name, $color, $hobbie, $u->i()['id']);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<!doctype html>
|
||||
<html>
|
||||
@ -46,7 +41,6 @@ if ($_POST['submit']) {
|
||||
<meta charset="utf-8"/>
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<title>Анкета</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a href="main.php">← на главную</a>
|
||||
|
Loading…
Reference in New Issue
Block a user