Bonjour,

Un ancien collaborateur avait mis en place un fichier .php pour notre GLPI.

Celui ci faire apparaitre un carré pour nos formulaires.

J'ai désormais une erreur suite maj glpi dans mon php-errors.log mais le php s'execute bien..
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 
 *** PHP Warning(2): rawurlencode() expects parameter 1 to be string, array given
  Backtrace :
  :
  front/procedures.php:11                            rawurlencode()
  inc/ticket.class.php:4166                          include()
  front/tracking.injector.php:90                     Ticket->showFormHelpdesk()
  {"user":"613@sv-tca-glpdmt02.dimotrans.local","mem_usage":"0.000\", 7.69Mio)"}
 
Avez vous une idée ? Voici le fichier php :
 
<div class="container">
<?php
$username=$_SERVER["REMOTE_USER"];
/*if ($username=="fchatai" or $username=="rvardy"){*/
        $dir    = '../procedures';
        $Array = scandir($dir);
 
        echo '<div style="font-size:20px;font-weight:bold;">'.utf8_encode('Liste des formulaires disponible').'</div>';
        echo '<br><a href=https://glpi/plugins/formcreator/front/formdisplay.php?id=2'.rawurlencode ($value).' target="$
        echo $truc[2] . "<br />\n";
        echo '<br><a href=https://glpi/plugins/formcreator/front/formdisplay.php?id=4'.rawurlencode ($value).' target="$
    echo $truc[2] . "<br />\n";
        echo '<br><a href=https://glpi/plugins/formcreator/front/formdisplay.php?id=5'.rawurlencode ($value).' target="$
    echo $truc[2] . "<br />\n";
        echo '<br><a href=https://glpi/plugins/formcreator/front/formdisplay.php?id=14'.rawurlencode ($value).' target=$
        echo $truc[2] . "<br />\n";
        echo '<br><a href=https://glpi/plugins/formcreator/front/formdisplay.php?id=10'.rawurlencode ($value).' target=$


        echo '<div class="listeprocedures">';
        foreach ($Array as $value){
                if ($value!='.' AND $value!='..') {
                        /*echo '<br><a href=../procedures/"'.urlencode($value).'" target="blank">';*/
                        echo '<br><a href=../procedures/'.rawurlencode ($value).' target="blank">';
                        echo ''.utf8_encode($value).'</a>';
                        echo "<br>";
                        };
        }
        echo '</div>';
        /*};*/

?>
</div>