Ignore:
Timestamp:
03/28/11 14:00:33 (2 years ago)
Author:
benjamin
Message:

debugging bro_editor on var

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/bureau/admin/bro_main.php

    r2900 r2914  
    6666    $p=$bro->GetPrefs(); 
    6767    if ($p["createfile"]==1) { 
    68       $file=$nomfich; 
     68      $editfile=$nomfich; 
    6969      include("bro_editor.php"); 
    7070      exit(); 
     
    8686    <input type="hidden" name="R" value="<?php echo $R?>" /> 
    8787    <p class="error"><?php __("WARNING: Confirm the deletion of this files"); ?></p> 
    88 <?php foreach($_REQUEST["d"] as $file){ ?> 
    89         <p><?php echo stripslashes($file); ?></p> 
    90         <input type="hidden" name="d[]" value="<?php echo htmlentities(stripslashes($file)); ?>" /> 
     88<?php foreach($_REQUEST["d"] as $editfile){ ?> 
     89        <p><?php echo stripslashes($editfile); ?></p> 
     90        <input type="hidden" name="d[]" value="<?php echo htmlentities(stripslashes($editfile)); ?>" /> 
    9191<?php } ?> 
    9292    <blockquote> 
     
    323323} 
    324324echo "<td><a href=\""; 
    325 echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
     325echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
    326326echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; 
    327327echo "  <td>".format_size($c[$i]["size"])."</td>"; 
     
    377377if ($c[$i]["type"]) { 
    378378echo "  <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\" /></td><td><a href=\""; 
    379 echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
     379echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
    380380echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; 
    381381echo "  <td>".format_size($c[$i]["size"])."</td><td>"; 
     
    407407if ($c[$i]["type"]) { 
    408408echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; 
    409 echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
     409echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
    410410echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; 
    411411echo "  <td>".format_size($c[$i]["size"])."</td><td>"; 
     
    444444if ($c[$i]["type"]) { 
    445445echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; 
    446 echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
     446echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
    447447echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; 
    448448echo "  <td>".format_size($c[$i]["size"])."</td><td>"; 
     
    474474if ($c[$i]["type"]) { 
    475475echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; 
    476 echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
     476echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
    477477echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; 
    478478echo "  <td>".format_size($c[$i]["size"])."</td><td>"; 
     
    505505if ($c[$i]["type"]) { 
    506506echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; 
    507 echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
     507echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R); 
    508508echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; 
    509509echo "  <td>".format_size($c[$i]["size"])."</td><td>"; 
Note: See TracChangeset for help on using the changeset viewer.