Skip to content

Commit

Permalink
Fix last commit
Browse files Browse the repository at this point in the history
[regression]
  • Loading branch information
machine62 committed Aug 29, 2019
1 parent a838f13 commit 2298801
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
13 changes: 4 additions & 9 deletions oversight.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,10 @@
//-------Logique-----------
$data["menuactif"] = "insert";
$data["getListOgspyUsers"]=getListOgspyUsers();
$data["player_id"] = (int)$user_data["user_id"];
if (isset($pub_all))
{
$data["insert"] = getALLInsert($data["player_id"]);
}
else
{
$data["insert"] = getMyInsert($data["player_id"]);
}
//si null on doit tout montrer ....
$data["player_id"] = (isset($data["player_id"]) ) ? (int)$pub_player_id : null ;
$data["insert"] = (isset($pub_all) ) ? getALLInsert($data["player_id"]) : getMyInsert($data["player_id"]) ;

$data["ListSurveillance"] = getListSurveillance();
//-------------------------

Expand Down
12 changes: 12 additions & 0 deletions view/insert.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
if (!defined('IN_SPYOGAME')) die("Hacking attempt"); ?>
<?php if ($data["player_id"]!=null) : ?>
<h2> Liste des insertions <?php echo $data["players"][$data["player_id"]]["name_player"]; ?>
<?php if (isset($pub_all)) : ?>
[<?php echo implode(", ",($data["ListSurveillance"][$data["player_id"]])); ?>]
Expand All @@ -18,6 +19,17 @@
<?php endif; ?>

</h2>
<?php else : ?>
<h2>
<?php if (isset($pub_all)) : ?>
Toutes mes insertions
<?php else : ?>
Toutes les insertions de l'alliance
<?php endif; ?>
</h2>


<?php endif; ?>

<table>
<thead>
Expand Down

0 comments on commit 2298801

Please sign in to comment.