- query('SELECT `img`,`align`,`name` FROM `aligns` ORDER BY `align`');
- while ($row = $aligns->fetch_assoc()): ?>
- "; document.all.ali.value="=$row['align']?>"; document.all.txt.value="=$row['name']?>";'>
- |
- =$row['align']?> |
- =$row['name']?> |
+ fetch_assoc()): ?>
+
"; document.all.ali.value="= $row['align'] ?>"; document.all.txt.value="= $row['name'] ?>";'>
+ |
+ = $row['align'] ?> |
+ = $row['name'] ?> |
-
+
Добавить |
@@ -164,26 +118,31 @@ if ($_POST['sbr_par']) {
- |
+
+ |
|
|
|
- |
+
+ |
|
- |
+
+ |
|
- |
+
+ |
|
-
+ |
|
|
@@ -191,29 +150,41 @@ if ($_POST['sbr_par']) {
src='../i/magic/teleport.gif'>
|
- |
+
+ |
|
- |
- |
+
+ |
+
+ |
- |
- |
- |
+
+ |
+
+ |
+
+ |
|
-
+ |
|
|
- |
- |
- |
+
+ |
+
+ |
+
+ |
|
- |
-
+ |
+ |
+
|
|
@@ -238,7 +209,7 @@ if ($_POST['sbr_par']) {
$cl_reg_curr = db::c()->query('SELECT * FROM `reg_klan` LIMIT 1')->fetch_assoc();
// Clan adder : add clan
if ($_POST['clan_reg'] == 'add_clan') {
- $ser_cl_rights = array();
+ $ser_cl_rights = [];
$ser_cl_rights[$cl_reg_curr['owner']][0] = 1;
$ser_cl_rights[$cl_reg_curr['owner']][1] = 1;
$cl_rights = serialize($ser_cl_rights);
@@ -885,7 +856,7 @@ foreach ($moj as $k => $v) {
break;
}
# Эта строка генерирует свитки с навыком. Но нам нужен просто перечень всего…
- if ($script_name) print " ";
+ if ($script_name) print " ";
}
echo "";
?>
@@ -975,9 +946,9 @@ echo "";
query('SELECT `id` FROM `users` WHERE `login`= "?s"',$_POST['receiver'])->fetch_row();
- telegraph($receiverId[0],$_POST['tgmsg']);
+if (!empty($_POST['receiver']) and !empty($_POST['tgmsg'])) {
+ $receiverId = db::c()->query('SELECT `id` FROM `users` WHERE `login`= "?s"', $_POST['receiver'])->fetch_row();
+ telegraph($receiverId[0], $_POST['tgmsg']);
echo "Успешно.";
}
# Показывает невидимок.
@@ -995,8 +966,8 @@ if (!empty($_POST['newsmsg'])) {
if ($_POST['login'] && $_POST['status']) {
$dd = db::c()->query('SELECT `ip`, `login` FROM `users` WHERE `login` = "?s"', $_POST['login'])->fetch_assoc();
if ($dd) {
- db::c()->query('UPDATE `users` SET `status` = "?s" WHERE `login` = "?s"', $_POST['status']. $_POST['login']);
- echo "Статус ".$dd['login']." изменен на ". $_POST['status']. " ";
+ db::c()->query('UPDATE `users` SET `status` = "?s" WHERE `login` = "?s"', $_POST['status'] . $_POST['login']);
+ echo "Статус " . $dd['login'] . " изменен на " . $_POST['status'] . " ";
}
}
# Меняем склонности
@@ -1025,7 +996,7 @@ if ($_POST['login'] && $_POST['krest']) {
break;
}
if ($_POST['krest'] == -1) db::c()->query('UPDATE `users` SET `align`="?s", `status`="?s" WHERE `login` = "?s" LIMIT 1;', '0', '', $_POST['login']);
- else db::c()->query('UPDATE `users` SET `align` = "?s", `status` = "?s" WHERE `login` = "?s"',$_POST['krest'],$rang,$_POST['login']);
+ else db::c()->query('UPDATE `users` SET `align` = "?s", `status` = "?s" WHERE `login` = "?s"', $_POST['krest'], $rang, $_POST['login']);
}
@@ -1064,12 +1035,10 @@ if ($_POST['login'] && $_POST['krest']) {
let xmlHttp1 = null;
try {
xmlHttp1 = new XMLHttpRequest();
- }
- catch (e) {
+ } catch (e) {
try {
xmlHttp1 = new ActiveXObject("Msxml2.XMLHTTP");
- }
- catch (e) {
+ } catch (e) {
xmlHttp1 = new ActiveXObject("Microsoft.XMLHTTP");
}
}
@@ -1270,13 +1239,11 @@ if ($_POST['login'] && $_POST['krest']) {
try {
// Firefox, Opera 8.0+, Safari
xmlHttp1 = new XMLHttpRequest();
- }
- catch (e) {
+ } catch (e) {
//Internet Explorer
try {
xmlHttp1 = new ActiveXObject("Msxml2.XMLHTTP");
- }
- catch (e) {
+ } catch (e) {
xmlHttp1 = new ActiveXObject("Microsoft.XMLHTTP");
}
}
diff --git a/css/admin.css b/css/admin.css
new file mode 100644
index 0000000..ec50615
--- /dev/null
+++ b/css/admin.css
@@ -0,0 +1,40 @@
+body {
+ background: silver;
+ margin: 25px;
+}
+
+legend, legend a, .legend {
+ color: dimgray;
+ font-family: consolas, sans-serif;
+ font-size: 18px;
+ margin-top: 10px;
+}
+
+table.additem input {
+ width: 200px;
+}
+
+table.additem select {
+ width: 206px;
+}
+
+.abils {
+ background: #CFCFC4;
+ margin: 5px 0;
+ padding: 5px;
+}
+
+.appblock {
+ background: gold;
+ border-radius: 5px;
+ /* float: left;*/
+ margin: 10px;
+ max-width: 300px;
+ position: absolute;
+ top: 100px;
+ left: 100px;
+}
+
+div.appblock form, div.appblock legend {
+ margin: 5px;
+}
\ No newline at end of file
|