25/03/2002, 21:21
|
| | Fecha de Ingreso: febrero-2002
Mensajes: 503
Antigüedad: 22 años, 9 meses Puntos: 0 | |
Re: Los Mejores Scripts de lo que sea Una herramienta de administración
Calificacion: 9
print("<b>Curent directory<br>");
if($dir == "..")
{
print("<a href='main_left.php?dir='>Root://</a>");
}
else
{
print("<a href='main_left.php?dir='>Root://</a>");
}
$counter = 0;
$dirW = $dir;
$dirW .= "/";
$pos2 = 1;
$lenght = strlen("$dirW");
while($pos2 != "")
{
$write2 .= "$write";
print(" <a href='main_left.php?dir=..$write2'>$write</a> <br>");
$pos = strpos($dirW, "/");
$dirA = substr($dirW, $pos , $lenght);
$dirW = substr($dirW, $pos+1 , $lenght);
$pos2 = strpos($dirW, "/");
$write = substr($dirA, 0 , $pos2+1);
$counter++;
if($counter == 100)
{
break;
}
}
print("</b><p>");
print("<b><a href='main_left.php?type=dir&dir=$dirr'>Dir s</a></b><br>");
for($a = 0; $a < count($dirs); $a++)
{
print("<a href='main_left.php?dir=$dir/$dirs[$a]'><img src='images/map.jpg' border='0'></a> $dirs[$a]<br>");
}
print("<p>");
print("<b><a href='main_left.php?type=file&dir=$dirr'>Fi les</a></b><br>");
for($a = 0; $a < count($files); $a++)
{
$position = strrpos($files[$a], ".");
$temp = substr($files[$a] , $position+1, 5);
print("<a href='main_right.php?file=..$write2/$files[$a]' target='main_right'><img src='images/$temp.jpg' border='0' width='14' height='14'></a>$files[$a]<br>");
}
print("</b><p>");
print("<b><a href='main_left.php?type=upload&dir=$dirr'> Upload</a></b><br>");
?>
<?
if($type != "")
{
?>
<form action='main_left.php' method='post'>
<?
if($type == "dir")
{
?>
Directory<br>
<input type='hidden' name='doit' value='make'>
<input type='hidden' name='type' value='dir' >
<input type='hidden' name='dir' value='<?print("$write2");?>'>
<input type='text' name='name' size='18' style='font-family:verdana;font-size: 10px'><br>
<input type='submit' value='make dir' style='font-family:verdana;font-size: 10px'>
</from>
<?
}
if($type == "file")
{
?>
File<br>
<input type='hidden' name='doit' value='m |