Ignore:
Timestamp:
Jan 21, 2011, 8:44:43 PM (13 years ago)
Author:
Daimonos Tereutes
Message:

suppression des shortopentags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irpg/trunk/htdocs/playerview.php

    r1563 r4283  
    1010   
    1111    $irpg_page_title = "Joueur: " . htmlentities($_GET['player']);
    12     $showmap = $_GET['showmap'];
     12    $showmap = isset($_GET['showmap'])?$_GET['showmap']:false;
     13    $allmods = isset($_GET['allmods'])?$_GET['allmods']:false;
    1314   
    1415    include("header.php");
     
    127128        if (!is_null($temp) && count($temp)) {
    128129            echo('<h2>');
    129             echo $_GET['allmods']!=1?"Derni&egrave;res ":"";
     130            echo (!$allmods)?"Derni&egrave;res ":"";
    130131            echo('Modifications d\'Horlorge</h2><p>');
    131             if ($_GET['allmods'] == 1 || count($temp) < 6) {
     132            if ($allmods == 1 || count($temp) < 6) {
    132133                foreach ($temp as $line) {
    133134                    $line=htmlentities(trim($line));
     
    145146            }
    146147        }
    147         if ($_GET['allmods'] != 1 && count($temp) > 5) {
     148        if ($allmods != 1 && count($temp) > 5) {
    148149?>
    149150      <br />
    150       [<a href="<?php echo $_SERVER['PHP_SELF']."?player=".urlencode($user);?>&amp;allmods=1">Voir toutes les modifications</a> (<?=count($temp)?>)]
     151      [<a href="<?php echo $_SERVER['PHP_SELF']."?player=".urlencode($user);?>&amp;allmods=1">Voir toutes les modifications</a> (<?php echo count($temp)?>)]
    151152      </p>
    152153<?php
Note: See TracChangeset for help on using the changeset viewer.