This commit is contained in:
Flatlogic Bot 2026-04-07 21:10:11 +00:00
parent 385244dfee
commit 897ca94a63
3 changed files with 33 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 740 KiB

14
info.php Normal file
View File

@ -0,0 +1,14 @@
<?php
$config = [
'upload_max_filesize',
'post_max_size',
'max_execution_time',
'max_input_time',
'session.gc_maxlifetime',
'session.save_path',
'session.cookie_lifetime'
];
foreach ($config as $c) {
echo "$c: " . ini_get($c) . "\n";
}
?>

View File

@ -57,8 +57,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$count_updated = 0;
$stmt_check = $db->prepare("SELECT cl_scobjs_id FROM tbl_scobjs WHERE cl_scobjs_uuid = :uuid");
$stmt_insert = $db->prepare("INSERT INTO tbl_scobjs (cl_scobjs_name, cl_scobjs_type, cl_scobjs_subtype, cl_scobjs_uuid, cl_scobjs_about) VALUES (:name, :type, :subtype, :uuid, :about)");
$stmt_update = $db->prepare("UPDATE tbl_scobjs SET cl_scobjs_name = :name, cl_scobjs_type = :type, cl_scobjs_subtype = :subtype, cl_scobjs_about = :about WHERE cl_scobjs_uuid = :uuid");
$stmt_insert = $db->prepare("INSERT INTO tbl_scobjs (cl_scobjs_name, cl_scobjs_type, cl_scobjs_subtype, cl_scobjs_uuid, cl_scobjs_rarity, cl_scobjs_about) VALUES (:name, :type, :subtype, :uuid, '', '')");
$stmt_update = $db->prepare("UPDATE tbl_scobjs SET cl_scobjs_name = :name, cl_scobjs_type = :type, cl_scobjs_subtype = :subtype WHERE cl_scobjs_uuid = :uuid");
foreach ($items as $item) {
$uuid = $item['reference'] ?? ($item['stdItem']['UUID'] ?? '');
@ -67,7 +67,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$name = $item['stdItem']['Name'] ?? '';
$type = $item['type'] ?? '';
$subtype = $item['subType'] ?? '';
$about = $item['stdItem']['Description'] ?? '';
$stmt_check->execute(['uuid' => $uuid]);
if ($stmt_check->fetch()) {
@ -75,7 +74,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
'name' => $name,
'type' => $type,
'subtype' => $subtype,
'about' => $about,
'uuid' => $uuid
]);
$count_updated++;
@ -84,8 +82,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
'name' => $name,
'type' => $type,
'subtype' => $subtype,
'uuid' => $uuid,
'about' => $about
'uuid' => $uuid
]);
$count_new++;
}
@ -152,6 +149,11 @@ if ($edit_id > 0) {
--success: #00ff88;
}
@font-face {
font-family: 'Electrolize';
src: url('fonts/Electrolize-Regular.ttf') format('truetype');
}
body {
background: radial-gradient(circle at top right, #1a1f2e, var(--bg-dark));
background-attachment: fixed;
@ -377,12 +379,19 @@ if ($edit_id > 0) {
<div class="form-group">
<label for="rarity">Rareté</label>
<input type="text" name="rarity" id="rarity" class="form-control" value="<?php echo htmlspecialchars($edit_item['cl_scobjs_rarity']); ?>" placeholder="Ex: Légendaire, Commun...">
<select name="rarity" id="rarity" class="form-control">
<option value="" <?php echo $edit_item['cl_scobjs_rarity'] === '' ? 'selected' : ''; ?>>- Sélectionner -</option>
<option value="L" <?php echo $edit_item['cl_scobjs_rarity'] === 'L' ? 'selected' : ''; ?>>Legendary (L)</option>
<option value="E" <?php echo $edit_item['cl_scobjs_rarity'] === 'E' ? 'selected' : ''; ?>>Epic (E)</option>
<option value="R" <?php echo $edit_item['cl_scobjs_rarity'] === 'R' ? 'selected' : ''; ?>>Rare (R)</option>
<option value="U" <?php echo $edit_item['cl_scobjs_rarity'] === 'U' ? 'selected' : ''; ?>>Uncommon (U)</option>
<option value="C" <?php echo $edit_item['cl_scobjs_rarity'] === 'C' ? 'selected' : ''; ?>>Common (C)</option>
</select>
</div>
<div class="form-group">
<label for="about">Description / Notes</label>
<textarea name="about" id="about" class="form-control" rows="5"><?php echo htmlspecialchars($edit_item['cl_scobjs_about']); ?></textarea>
<label for="about">Zone Admin / Infos</label>
<textarea name="about" id="about" class="form-control" rows="5" placeholder="Saisir les informations ici..."><?php echo htmlspecialchars($edit_item['cl_scobjs_about']); ?></textarea>
</div>
<div style="display: flex; gap: 10px;">
@ -469,4 +478,4 @@ if ($edit_id > 0) {
</div>
</div>
</body>
</html>
</html>