clans fixes
This commit is contained in:
@@ -4,6 +4,8 @@ session_start();
|
||||
if ($_SESSION['uid'] == null) header("Location: index.php");
|
||||
include_once 'config.php';
|
||||
include_once 'functions.php';
|
||||
|
||||
|
||||
if (!$user['klan']) {
|
||||
die(err('Вы не состоите в клане!'));
|
||||
}
|
||||
@@ -58,8 +60,8 @@ $polno = unserialize($klan['vozm']);
|
||||
Hint3Name = '';
|
||||
}
|
||||
|
||||
function use() {
|
||||
document.getElementById("add_member").innerHTML = "<form method='post'><input placeholder='Имя персонажа' name='login'><button name='add_member' type='submit'>Ок</button></form>";
|
||||
function use(option) {
|
||||
document.getElementById(option).innerHTML = "<form method='post'><input placeholder='Имя персонажа' name='login'><button name='"+option+"' type='submit'>Ок</button></form>";
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
@@ -94,7 +96,7 @@ $polno = unserialize($klan['vozm']);
|
||||
|
||||
?>
|
||||
|
||||
<span id="add_member"><input type="submit" onclick="use()" value="Принять в клан"></span>
|
||||
<span id="add_member"><input type="submit" onclick="use('add_member')" value="Принять в клан"></span>
|
||||
<?php
|
||||
|
||||
if ($klan['glava'] == $user['id'] OR $polno[$user['id']][0] == 1 OR $polno[$user['id']][1] == 1) {
|
||||
@@ -229,6 +231,7 @@ $polno = unserialize($klan['vozm']);
|
||||
while ($row = $data->fetch_assoc()) {
|
||||
if ($row['online'] > 0) {
|
||||
echo '<A HREF="javascript:top.AddToPrivate(\'', nick7($row['id']), '\', top.CtrlPress)" target=refreshed><img src="i/lock.gif" width=20 height=15></A>';
|
||||
nickname($row['id']);
|
||||
nick2($row['id']);
|
||||
if ($row['id'] == $klan['glava']) {
|
||||
echo ' - <font color=#008080><b>Глава клана</b></font>';
|
||||
|
||||
Reference in New Issue
Block a user