mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Fix
fix
This commit is contained in:
@@ -348,7 +348,14 @@ if(isset($_POST['lang']))
|
||||
========================= -->
|
||||
<table cellpadding="1" cellspacing="1" id="completion" class="set">
|
||||
<thead>
|
||||
<tr><th colspan="2">Auto completion</th></tr>
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
Auto completion
|
||||
<span style="color:#999; font-weight:400; font-size:0.9em; font-style:italic; opacity:0.7;">
|
||||
(not coded yet)
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td colspan="2">Used for rally point and marketplace:</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -376,7 +383,14 @@ if(isset($_POST['lang']))
|
||||
========================= -->
|
||||
<table cellpadding="1" cellspacing="1" id="big_map" class="set">
|
||||
<thead>
|
||||
<tr><th colspan="2">Large map</th></tr>
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
Large map
|
||||
<span style="color:#999; font-weight:400; font-size:0.9em; font-style:italic; opacity:0.7;">
|
||||
(not coded yet)
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
@@ -393,7 +407,14 @@ if(isset($_POST['lang']))
|
||||
========================= -->
|
||||
<table cellpadding="1" cellspacing="1" id="report_filter" class="set">
|
||||
<thead>
|
||||
<tr><th colspan="2">Report filter</th></tr>
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
Report filter
|
||||
<span style="color:#999; font-weight:400; font-size:0.9em; font-style:italic; opacity:0.7;">
|
||||
(not coded yet)
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -420,7 +441,14 @@ if(isset($_POST['lang']))
|
||||
========================= -->
|
||||
<table cellpadding="1" cellspacing="1" id="time" class="set">
|
||||
<thead>
|
||||
<tr><th colspan="2">Time preferences</th></tr>
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
Time Preference
|
||||
<span style="color:#999; font-weight:400; font-size:0.9em; font-style:italic; opacity:0.7;">
|
||||
(not coded yet)
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td colspan="2">Here you can change Travian's displayed time to fit your time zone.</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -492,7 +520,12 @@ if(isset($_POST['lang']))
|
||||
<table cellpadding="1" cellspacing="1" id="language" class="set">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Language settings</th>
|
||||
<th colspan="2">
|
||||
Language settings
|
||||
<span style="color:#999; font-weight:400; font-size:0.9em; font-style:italic; opacity:0.7;">
|
||||
(not coded yet)
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -17,6 +17,13 @@
|
||||
|
||||
if (NEW_FUNCTIONS_VACATION) {
|
||||
|
||||
// -----------------------------------------------------
|
||||
// Admin validation check
|
||||
// -----------------------------------------------------
|
||||
|
||||
$isAdmin = (isset($session->access) && $session->access == ADMIN);
|
||||
$isMH = (isset($session->access) && $session->access == MULTIHUNTER);
|
||||
|
||||
?>
|
||||
|
||||
<!-- =========================
|
||||
@@ -132,10 +139,11 @@ function vac_ok($key, $errors)
|
||||
<li style="color:<?= vac_ok('ACCOUNT_DELETION',$errors) ? 'green':'red' ?>">
|
||||
Account is not scheduled for deletion
|
||||
</li>
|
||||
|
||||
<li style="color:<?= vac_ok('NO_VACATION_ACCESS',$errors) ? 'green':'red' ?>">
|
||||
Account is Admin or MH
|
||||
</li>
|
||||
<?php if ($isAdmin || $isMH): ?>
|
||||
<li style="color:<?= vac_ok('NO_VACATION_ACCESS', $errors) ? 'green' : 'red' ?>">
|
||||
Account is Admin or MH
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
strtolower($_POST['aname']) != 'multihunter' &&
|
||||
strtolower($_POST['aname']) != 'support'
|
||||
) {
|
||||
mysqli_query($database->dblink, "INSERT INTO " . TB_PREFIX . "users SET username = '".$database->escape($_POST['aname'])."', password = '" . password_hash($_POST['apass'], PASSWORD_BCRYPT, ['cost' => 12]) . "', email = '".$database->escape($_POST['aemail'])."', tribe = ".(int) $_POST['atribe'].", access = 9, is_bcrypt = 1, desc1 = '[#MULTIHUNTER]', desc2 = '[#MH]\n[#TEAM]'") OR DIE (mysqli_error($database->dblink));
|
||||
mysqli_query($database->dblink, "INSERT INTO " . TB_PREFIX . "users SET username = '".$database->escape($_POST['aname'])."', password = '" . password_hash($_POST['apass'], PASSWORD_BCRYPT, ['cost' => 12]) . "', email = '".$database->escape($_POST['aemail'])."', tribe = ".(int) $_POST['atribe'].", access = 9, is_bcrypt = 1, desc1 = '[#MH]\n[#TEAM]', desc2 = '[#MULTIHUNTER]\n[#roman]'") OR DIE (mysqli_error($database->dblink));
|
||||
$uid = mysqli_insert_id($database->dblink);
|
||||
$admin_village_created = false;
|
||||
$xcoor = round(WORLD_MAX / 2);
|
||||
|
||||
Reference in New Issue
Block a user