Skip to content

Commit

Permalink
Merge pull request #30 from OGSteam/develop
Browse files Browse the repository at this point in the history
Remove Deprecated strftime
  • Loading branch information
darknoon29 authored May 3, 2023
2 parents 416f792 + 8add2b0 commit d89be93
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 21 deletions.
8 changes: 4 additions & 4 deletions cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@
if ($sNameXml == "CST_PLAYERS") {
traitement_player($value);
logmemoryusage("fin traitement_player");
} else if ($sNameXml == "CST_ALLIANCES") {
} elseif ($sNameXml == "CST_ALLIANCES") {
traitement_alliance($value);
logmemoryusage("fin traitement_alliance");
} else if ($sNameXml == "CST_UNIVERSE") {
} elseif ($sNameXml == "CST_UNIVERSE") {
traitement_universe($value);
logmemoryusage("fin traitement_universe");
} else if (strstr($sNameXml, "CST_ALLIANCES_RANK_")) {
} elseif (strstr($sNameXml, "CST_ALLIANCES_RANK_")) {
traitement_alliance_rank($value, $sNameXml);
logmemoryusage("fin traitement_alliance_rank " . $sNameXml);
} else if (strstr($sNameXml, "CST_PLAYERS_RANK_")) {
} elseif (strstr($sNameXml, "CST_PLAYERS_RANK_")) {
traitement_player_rank($value, $sNameXml);
logmemoryusage("fin traitement_player_rank " . $sNameXml);
} else {
Expand Down
1 change: 0 additions & 1 deletion info.txt

This file was deleted.

2 changes: 1 addition & 1 deletion update.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
$security = false;
$security = update_mod('superapix', 'superapix');

if ($security == true) {
if ($security) {
// on ajoute

insert_config("requete_max", 500);
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Superapix
0.4.5
0.4.6
superapix,superapix,superapix,superapix,index.php,1,1
3.3.7

24 changes: 10 additions & 14 deletions vue/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
insert_config("pays", $pub_pays);
}
if (isset($pub_tempo) && $adminview == 1) {
$tempo= (int)$pub_tempo >3 ? 3 : (int)$pub_tempo; // inf a 3 s
$tempo= (int)$pub_tempo < 1 ? 1 : (int)$tempo; // sup a 1 s
$tempo = (int)$pub_tempo > 3 ? 3 : (int)$pub_tempo; // inf a 3 s
$tempo = (int)$pub_tempo < 1 ? 1 : (int)$tempo; // sup a 1 s
insert_config("tempo", (int)$tempo);
}
if (isset($pub_debug) && $adminview == 1) {
Expand Down Expand Up @@ -100,7 +100,7 @@
<ul>
<?php foreach ($tab as $key => $value) : ?>
<li>
<?php echo lang($value); ?>: <strong><?php echo strftime("%d %b %Y %H:%M", ((int) find_config("last_" . $value))); ?></strong>
<?php echo lang($value); ?>: <strong><?php echo date('d M Y H:i', ((int) find_config("last_" . $value))); ?></strong>
</li>
<?php endforeach; ?>
</ul>
Expand Down Expand Up @@ -176,8 +176,8 @@
<div class="pop-title">Temporisation</div>
Temps d attente entre deux appels.<br /> 1, 2 ou 3 seconde(s).
</span>
</div>
</div>

<div class="form-grp tooltip">
<label for="enquiry">Mode developpeur </label>
<select id="debug" name="debug">
Expand Down Expand Up @@ -340,19 +340,15 @@
</tr>

<?php foreach ($tab as $key => $value) : ?>
<tr>
<th width="60%"><?php echo lang($value); ?></th>
<th><?php echo strftime("%d %b %Y %H:%M", ((int) find_config("last_" . $value))); ?></th>
</tr>
<tr>
<th width="60%"><?php echo lang($value); ?></th>
<th><?php echo date('d M Y H:i', ((int) find_config("last_" . $value))); ?></th>
</tr>
<?php endforeach; ?>
</table>


<?php
endif;
?>




<script src="mod/superapix/js/step.js"><script>
<script src="mod/superapix/js/step.js"><script>

0 comments on commit d89be93

Please sign in to comment.