fix
This commit is contained in:
novgorodschi catalin
2026-06-02 14:20:21 +03:00
parent 37397a63bc
commit 6e139a1b61
3 changed files with 51 additions and 10 deletions
+38 -5
View File
@@ -348,7 +348,14 @@ if(isset($_POST['lang']))
========================= --> ========================= -->
<table cellpadding="1" cellspacing="1" id="completion" class="set"> <table cellpadding="1" cellspacing="1" id="completion" class="set">
<thead> <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> <tr><td colspan="2">Used for rally point and marketplace:</td></tr>
</thead> </thead>
<tbody> <tbody>
@@ -376,7 +383,14 @@ if(isset($_POST['lang']))
========================= --> ========================= -->
<table cellpadding="1" cellspacing="1" id="big_map" class="set"> <table cellpadding="1" cellspacing="1" id="big_map" class="set">
<thead> <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> </thead>
<tbody> <tbody>
<tr> <tr>
@@ -393,7 +407,14 @@ if(isset($_POST['lang']))
========================= --> ========================= -->
<table cellpadding="1" cellspacing="1" id="report_filter" class="set"> <table cellpadding="1" cellspacing="1" id="report_filter" class="set">
<thead> <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> </thead>
<tbody> <tbody>
@@ -420,7 +441,14 @@ if(isset($_POST['lang']))
========================= --> ========================= -->
<table cellpadding="1" cellspacing="1" id="time" class="set"> <table cellpadding="1" cellspacing="1" id="time" class="set">
<thead> <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> <tr><td colspan="2">Here you can change Travian's displayed time to fit your time zone.</td></tr>
</thead> </thead>
<tbody> <tbody>
@@ -492,7 +520,12 @@ if(isset($_POST['lang']))
<table cellpadding="1" cellspacing="1" id="language" class="set"> <table cellpadding="1" cellspacing="1" id="language" class="set">
<thead> <thead>
<tr> <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> </tr>
</thead> </thead>
<tbody> <tbody>
+12 -4
View File
@@ -17,6 +17,13 @@
if (NEW_FUNCTIONS_VACATION) { 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' ?>"> <li style="color:<?= vac_ok('ACCOUNT_DELETION',$errors) ? 'green':'red' ?>">
Account is not scheduled for deletion Account is not scheduled for deletion
</li> </li>
<?php if ($isAdmin || $isMH): ?>
<li style="color:<?= vac_ok('NO_VACATION_ACCESS',$errors) ? 'green':'red' ?>"> <li style="color:<?= vac_ok('NO_VACATION_ACCESS', $errors) ? 'green' : 'red' ?>">
Account is Admin or MH Account is Admin or MH
</li> </li>
<?php endif; ?>
</ul> </ul>
</div> </div>
+1 -1
View File
@@ -64,7 +64,7 @@
strtolower($_POST['aname']) != 'multihunter' && strtolower($_POST['aname']) != 'multihunter' &&
strtolower($_POST['aname']) != 'support' 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); $uid = mysqli_insert_id($database->dblink);
$admin_village_created = false; $admin_village_created = false;
$xcoor = round(WORLD_MAX / 2); $xcoor = round(WORLD_MAX / 2);