mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-12 07:36:07 +00:00
Translate some code
Translate some code
This commit is contained in:
@@ -29,13 +29,13 @@ if(isset($_GET['e'])) {
|
||||
$villages = $_GET['vi']??$villages;
|
||||
$mode = $_GET['mo']??$mode;
|
||||
switch ($_GET['e']) {
|
||||
case 'BN2S': $errorMsg = "Base Name prea scurt (minim 4 caractere)"; break;
|
||||
case 'BN2L': $errorMsg = "Base Name prea lung (maxim 20 caractere)"; break;
|
||||
case 'AMLO': $errorMsg = "Minim 1 cont"; break;
|
||||
case 'AMHI': $errorMsg = "Maxim 200 conturi"; break;
|
||||
case 'VILO': $errorMsg = "Minim 1 sat"; break;
|
||||
case 'VIHI': $errorMsg = "Maxim 200 sate"; break;
|
||||
default: $errorMsg = "Eroare necunoscută";
|
||||
case 'BN2S': $errorMsg = "Base Name too short (minimum 4 characters)"; break;
|
||||
case 'BN2L': $errorMsg = "Base Name too long (maximum 20 characters)"; break;
|
||||
case 'AMLO': $errorMsg = "Minimum 1 account"; break;
|
||||
case 'AMHI': $errorMsg = "Maximum 200 accounts"; break;
|
||||
case 'VILO': $errorMsg = "Minimum 1 village"; break;
|
||||
case 'VIHI': $errorMsg = "Maximum 200 villages"; break;
|
||||
default: $errorMsg = "Unknown error";
|
||||
}
|
||||
}
|
||||
elseif(isset($_GET['g']) && $_GET['g']=='OK'){
|
||||
@@ -44,13 +44,13 @@ elseif(isset($_GET['g']) && $_GET['g']=='OK'){
|
||||
|
||||
if($mode==='many_accounts'){
|
||||
$amount=(int)$_GET['am'];
|
||||
$successMsg = "Creat <b>$amount</b> conturi cu baza <b>$baseName</b>";
|
||||
$successMsg = "Created <b>$amount</b> accounts with base <b>$baseName</b>";
|
||||
} else {
|
||||
$villages=(int)$_GET['vi'];
|
||||
$successMsg = "Creat contul <b>$baseName</b> cu <b>$villages</b> sate";
|
||||
$successMsg = "Created account <b>$baseName</b> with <b>$villages</b> villages";
|
||||
}
|
||||
$successMsg .= "<br>Protecție: ".($bp?"<span style='color:#27ae60'>DA</span>":"<span style='color:#c0392b'>NU</span>")." | Trib: <b>$tribe</b>";
|
||||
if($skipped>0) $successMsg .= "<br><span style='color:#e67e22'>$skipped nume existente - sărite</span>";
|
||||
$successMsg .= "<br>Protection: ".($bp?"<span style='color:#27ae60'>YES</span>":"<span style='color:#c0392b'>NO</span>")." | Tribe: <b>$tribe</b>";
|
||||
if($skipped>0) $successMsg .= "<br><span style='color:#e67e22'>$skipped existing names - skipped</span>";
|
||||
}
|
||||
?>
|
||||
<style>
|
||||
@@ -74,10 +74,10 @@ elseif(isset($_GET['g']) && $_GET['g']=='OK'){
|
||||
.check{margin:10px 0 12px;font-size:11px}
|
||||
.check label{display:flex;align-items:center;gap:5px}
|
||||
|
||||
/* TRIBURI VERTICAL */
|
||||
/* TRIBES VERTICAL */
|
||||
.tribe-wrap{margin-top:8px;}
|
||||
.tribe-title{font-size:11px;font-weight:bold;margin-bottom:4px;}
|
||||
.tribe-grid{display:flex;flex-direction:column;gap:4px;width:140px; /* poti modifica */}
|
||||
.tribe-grid{display:flex;flex-direction:column;gap:4px;width:140px;}
|
||||
.tribe-grid label{display:flex;align-items:center;gap:6px;padding:4px 6px;border:1px solid #bbb;border-radius:3px;background:#fcfcfc;cursor:pointer;min-height:24px;font-size:11px;}
|
||||
.tribe-grid label:hover{background:#f0f0f0;}
|
||||
.tribe-grid input{width:12px;height:12px;margin:0;}
|
||||
@@ -109,13 +109,13 @@ elseif(isset($_GET['g']) && $_GET['g']=='OK'){
|
||||
<?php if($successMsg){?><div class="alert alert-ok">✓ <?php echo $successMsg;?></div><?php }?>
|
||||
|
||||
<div class="mode-box">
|
||||
<label><input type="radio" name="mode" value="many_accounts" <?php echo $mode=='many_accounts'?'checked':'';?>><span>Multe conturi (1 sat)</span></label>
|
||||
<label><input type="radio" name="mode" value="single_with_villages" <?php echo $mode=='single_with_villages'?'checked':'';?>><span>1 cont (multe sate)</span></label>
|
||||
<label><input type="radio" name="mode" value="many_accounts" <?php echo $mode=='many_accounts'?'checked':'';?>><span>Many accounts (1 village)</span></label>
|
||||
<label><input type="radio" name="mode" value="single_with_villages" <?php echo $mode=='single_with_villages'?'checked':'';?>><span>1 account (many villages)</span></label>
|
||||
</div>
|
||||
|
||||
<div class="examples">
|
||||
<b>Base Name</b> 4-20 caractere. Ex: Farm | 5 → Farm1..Farm5. Ex single: FarmLord | 5 sate.<br>
|
||||
<b>Atenție:</b> valori mari pot bloca serverul!
|
||||
<b>Base Name</b> 4-20 characters. Ex: Farm | 5 → Farm1..Farm5. Single ex: FarmLord | 5 villages.<br>
|
||||
<b>Warning:</b> large values may freeze the server!
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@@ -124,23 +124,23 @@ elseif(isset($_GET['g']) && $_GET['g']=='OK'){
|
||||
</div>
|
||||
|
||||
<div class="row" id="accRow">
|
||||
<label>Câte conturi</label>
|
||||
<label>How many accounts</label>
|
||||
<input type="text" name="users_amount" value="<?php echo htmlspecialchars($amount);?>" maxlength="4">
|
||||
</div>
|
||||
<div class="hint">1 - 200</div>
|
||||
|
||||
<div class="row" id="vilRow">
|
||||
<label>Câte sate</label>
|
||||
<label>How many villages</label>
|
||||
<input type="text" name="villages_amount" value="<?php echo htmlspecialchars($villages);?>" maxlength="4">
|
||||
</div>
|
||||
<div class="hint">1 - 200 (doar single)</div>
|
||||
<div class="hint">1 - 200 (single only)</div>
|
||||
|
||||
<div class="check">
|
||||
<label><input type="checkbox" name="users_protection" checked> Activează protecție începători</label>
|
||||
<label><input type="checkbox" name="users_protection" checked> Enable beginner protection</label>
|
||||
</div>
|
||||
|
||||
<div class="tribe-wrap">
|
||||
<div class="tribe-title">Trib</div>
|
||||
<div class="tribe-title">Tribe</div>
|
||||
<div class="tribe-grid">
|
||||
<label><input type="radio" name="tribe" value="0" checked><span class="tribe-icon">🎲</span><span class="tribe-text"><?php echo RANDOM;?></span></label>
|
||||
<label><input type="radio" name="tribe" value="1"><span class="tribe-icon">🏛</span><span class="tribe-text"><?php echo TRIBE1;?></span></label>
|
||||
|
||||
@@ -127,7 +127,7 @@ function logCategory($entry) {
|
||||
?>
|
||||
<div class="log-wrap">
|
||||
<div class="log-head">
|
||||
<h2>📋 Admin Log Unificat - ultimele 300 acțiuni</h2>
|
||||
<h2>📋 Unified Admin Log – last 300 actions</h2>
|
||||
</div>
|
||||
|
||||
<div class="log-filters" id="logFilters">
|
||||
|
||||
@@ -52,7 +52,7 @@ $id = $_SESSION['id'];
|
||||
<svg viewBox="0 0 24 24"><path d="M12 4v16M4 12h16" stroke="white" stroke-width="3" stroke-linecap="round"/></svg>
|
||||
</div>
|
||||
<h3>Give Everyone Free Plus</h3>
|
||||
<p>Activează Travian Plus pentru TOȚI jucătorii de pe server.</p>
|
||||
<p>Activate Travian Plus for ALL players on the server.</p>
|
||||
|
||||
<form action="../GameEngine/Admin/Mods/givePlus.php" method="POST" class="plus-form">
|
||||
<input type="hidden" name="admid" value="<?php echo $id; ?>">
|
||||
@@ -66,6 +66,6 @@ $id = $_SESSION['id'];
|
||||
</div>
|
||||
|
||||
<?php if(isset($_GET['g'])){ ?>
|
||||
<div class="plus-success">✓ Plus a fost activat cu succes pentru toți jucătorii!</div>
|
||||
<div class="plus-success">✓ Plus has been successfully activated for all players!</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -58,7 +58,7 @@ $id = $_SESSION['id'];
|
||||
<svg viewBox="0 0 24 24"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>
|
||||
</div>
|
||||
<h3>Give Everyone Resource Bonus</h3>
|
||||
<p>Activează bonus 25% pentru toate resursele la TOȚI jucătorii.</p>
|
||||
<p>Activate a 25% bonus for all resources for ALL players.</p>
|
||||
</div>
|
||||
|
||||
<form action="../GameEngine/Admin/Mods/givePlusRes.php" method="POST" class="resbonus-form">
|
||||
@@ -91,6 +91,6 @@ $id = $_SESSION['id'];
|
||||
</div>
|
||||
|
||||
<?php if(isset($_GET['g'])){ ?>
|
||||
<div class="resbonus-success">✓ Resource bonuses au fost activate pentru toți jucătorii!</div>
|
||||
<div class="resbonus-success">✓ Resource bonuses have been activated for all players!</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -30,15 +30,15 @@ if(isset($_SESSION['id'])) {
|
||||
|
||||
if(isset($_POST['startMaint'])) {
|
||||
$database->setMaintenance(1, $uid);
|
||||
$error = "Maintenance ACTIVAT";
|
||||
$error = "Maintenance ON";
|
||||
}
|
||||
if(isset($_POST['removeMaint'])) {
|
||||
$database->setMaintenance(0, $uid);
|
||||
$error = "Maintenance OPRIT";
|
||||
$error = "Maintenance OFF";
|
||||
}
|
||||
$maint = $database->getMaintenance();
|
||||
|
||||
$starterName = 'Necunoscut';
|
||||
$starterName = 'Unknow';
|
||||
if($maint['started_by'] > 0){
|
||||
$u = $database->getUserArray($maint['started_by'], 1);
|
||||
$starterName = $u['username'] ?? 'UID '.$maint['started_by'];
|
||||
@@ -63,17 +63,17 @@ if($maint['started_by'] > 0){
|
||||
<div class="maint-card">
|
||||
<div class="maint-head">Server Maintenance</div>
|
||||
<div class="maint-status <?= $maint['active'] ? 'on' : 'off' ?>">
|
||||
<?= $maint['active'] ? 'ACTIV din '.($maint['started_at'] ? date('H:i d.m.Y',$maint['started_at']) : '-') : 'INACTIV – server deschis' ?>
|
||||
<?= $maint['active'] ? 'ACTIVE since '.($maint['started_at'] ? date('H:i d.m.Y',$maint['started_at']) : '-') : 'INACTIVE – server open' ?>
|
||||
</div>
|
||||
<?php if($maint['active']){ ?>
|
||||
<div class="maint-info">Pornit de: <b><?= htmlspecialchars($starterName) ?></b> (UID: <?= (int)$maint['started_by'] ?>)</div>
|
||||
<div class="maint-info">Started by: <b><?= htmlspecialchars($starterName) ?></b> (UID: <?= (int)$maint['started_by'] ?>)</div>
|
||||
<?php } ?>
|
||||
<div class="maint-row">
|
||||
<div>Activeaza mentenanta</div>
|
||||
<div>Enable maintenance</div>
|
||||
<button type="submit" name="startMaint" class="maint-btn start">Start</button>
|
||||
</div>
|
||||
<div class="maint-row">
|
||||
<div>Dezactiveaza mentenanta</div>
|
||||
<div>Disable maintenance</div>
|
||||
<button type="submit" name="removeMaint" class="maint-btn stop">Stop</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -56,25 +56,25 @@ $_SESSION['mass_color'] = $_SESSION['mass_color'] ?? 'black';
|
||||
</div>
|
||||
<div>
|
||||
<h3>Send Message to All Players</h3>
|
||||
<p>Mesaj in-game pentru toti userii (ID > 5)</p>
|
||||
<p>In-game message for all users (ID > 5)</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if(isset($_GET['confirm'])):?>
|
||||
<div class="massmsg-confirm">
|
||||
<b>Confirmare:</b> Esti sigur ca vrei sa trimiti?<br>
|
||||
<b>Confirm:</b> Are you sure you want to send?<br>
|
||||
<b>Subject:</b> <span style="color:<?=$_SESSION['mass_color']?>"><?=htmlspecialchars($_SESSION['mass_subject'])?></span>
|
||||
</div>
|
||||
<form action="../GameEngine/Admin/Mods/massmessage.php" method="POST" class="massmsg-form">
|
||||
<input type="hidden" name="admid" value="<?=$id?>">
|
||||
<input type="hidden" name="action" value="execute">
|
||||
<button type="submit" name="confirm" value="Yes" style="background:#27ae60">✓ Yes, Trimite</button>
|
||||
<button type="submit" name="confirm" value="No" style="background:#95a5a6;margin-top:8px">Anuleaza</button>
|
||||
<button type="submit" name="confirm" value="Yes" style="background:#27ae60">✓ Yes, Send</button>
|
||||
<button type="submit" name="confirm" value="No" style="background:#95a5a6;margin-top:8px">Cancel</button>
|
||||
</form>
|
||||
|
||||
<?php elseif(isset($_GET['sending'])):?>
|
||||
<div style="text-align:center;padding:30px">
|
||||
<div style="font-size:16px;margin-bottom:10px">Se trimit mesajele...</div>
|
||||
<div style="font-size:16px;margin-bottom:10px">Sending messages...</div>
|
||||
<div style="color:#666"><?=$_GET['msg']?? ''?></div>
|
||||
</div>
|
||||
|
||||
@@ -85,7 +85,7 @@ $_SESSION['mass_color'] = $_SESSION['mass_color'] ?? 'black';
|
||||
|
||||
<div class="field">
|
||||
<label>Subject</label>
|
||||
<input type="text" name="subject" placeholder="ex: Mentenanta" required maxlength="100">
|
||||
<input type="text" name="subject" placeholder="ex: Maintenance" required maxlength="100">
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
@@ -95,7 +95,7 @@ $_SESSION['mass_color'] = $_SESSION['mass_color'] ?? 'black';
|
||||
|
||||
<div class="field full">
|
||||
<label>Message Content</label>
|
||||
<textarea name="message" rows="12" placeholder="Scrie mesajul... poti folosi [url] [img]" required></textarea>
|
||||
<textarea name="message" rows="12" placeholder="Write the message... you can use [url][img]" required></textarea>
|
||||
</div>
|
||||
|
||||
<button type="submit">
|
||||
@@ -107,6 +107,6 @@ $_SESSION['mass_color'] = $_SESSION['mass_color'] ?? 'black';
|
||||
</div>
|
||||
|
||||
<?php if(isset($_GET['done'])){?>
|
||||
<div class="massmsg-success">✓ Mass message trimis cu succes la toti jucatorii!</div>
|
||||
<div class="massmsg-success">✓ Mass message successfully sent to all players!</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
@@ -2,28 +2,76 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename resetdone.tpl ##
|
||||
## Developed by: Ronix ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2012-2014. All rights reserved. ##
|
||||
## ##
|
||||
## Filename : resetdone.tpl ##
|
||||
## Type : Admin Panel Frontend ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Dzoki (Original) ##
|
||||
## Refactored by : Shadow ##
|
||||
## Redesign by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2025. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
unset($_SESSION['admin_username'], $_SESSION['sessid']);
|
||||
|
||||
// Set this to match the password you set in resetServer.php
|
||||
$mh_password = '123456';
|
||||
?>
|
||||
<table id="member">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Server Resetting</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<br />
|
||||
<div style="text-align: center">
|
||||
Resetting Server already done.</div>
|
||||
<br />Multihunter password is: 123456<br>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<style>
|
||||
.reset-wrap{max-width:720px;margin:20px auto;font-family:Tahoma,Verdana,Arial,sans-serif;padding:0 10px;box-sizing:border-box}
|
||||
.reset-card{background:#fff;border:1px solid #bbb;border-radius:8px;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,0.08)}
|
||||
.reset-head{background:#27ae60;color:#fff;padding:12px 16px;display:flex;align-items:center;gap:8px}
|
||||
.reset-head h2{margin:0;font-size:16px;font-weight:bold}
|
||||
.reset-body{padding:24px 20px 18px;text-align:center;color:#333;font-size:13px;line-height:1.6}
|
||||
.reset-success{background:#f0fff4;border:1px solid #27ae60;border-left:4px solid #1e8449;padding:14px;margin:0 auto 16px;max-width:520px;border-radius:4px;color:#1e8449;text-align:left}
|
||||
.reset-success strong{display:block;margin-bottom:4px;font-size:13px}
|
||||
.reset-info{background:#f7f7f7;border:1px solid #ddd;border-radius:6px;display:inline-block;padding:12px 20px;margin:15px 0}
|
||||
.reset-info code{font-size:18px;font-weight:bold;color:#c0392b;letter-spacing:1px}
|
||||
.reset-foot{display:flex;justify-content:center;align-items:center;padding:14px 16px;background:#f8f9fa;border-top:1px solid #ddd;gap:10px}
|
||||
.btn{padding:7px 16px;border-radius:4px;font-size:12px;font-weight:bold;cursor:pointer;border:1px solid transparent;text-decoration:none;display:inline-flex;align-items:center;gap:6px;transition:all 0.15s}
|
||||
.btn-login{background:#27ae60;color:#fff;border-color:#1e8449}
|
||||
.btn-login:hover{background:#219150}
|
||||
.btn-back{background:#ecf0f1;color:#2c3e50;border-color:#bdc3c7}
|
||||
.btn-back:hover{background:#d5dbdb}
|
||||
@media (max-width:600px){
|
||||
.reset-foot{flex-direction:column}
|
||||
.btn{width:100%;justify-content:center}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="reset-wrap">
|
||||
<div class="reset-card">
|
||||
<div class="reset-head">
|
||||
<h2>✓ Server Reset Complete</h2>
|
||||
</div>
|
||||
|
||||
<div class="reset-body">
|
||||
<div class="reset-success">
|
||||
<strong>SUCCESS!</strong>
|
||||
The server has been reset and is ready for a new round.
|
||||
</div>
|
||||
|
||||
<p>All game data has been deleted: players, villages, alliances, reports, and messages.<br>
|
||||
Admin sessions have been terminated automatically.</p>
|
||||
|
||||
<div class="reset-info">
|
||||
<span style="color:#333;">Multihunter account password:</span><br>
|
||||
<code><?php echo htmlspecialchars($mh_password); ?></code>
|
||||
</div>
|
||||
|
||||
<p style="color:#a93226;font-size:12px;margin-top:10px;">
|
||||
IMPORTANT: Change this password immediately after your first login!
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="reset-foot">
|
||||
<a href="../login.php" class="btn btn-login">Go to Login »</a>
|
||||
<a href="admin.php" class="btn btn-back">« Back to Admin</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user