and the 2nd encoded bit, at least there arnt any nastys hidden in there

PHP Code: 
if (!empty($_POST['links']))
{

    
$isrename $_POST['renamefiles'];
    
$isdelfile $_POST['delfile'];
    
$newname $_POST['newname'];
    
$isupload $_POST['hostupload'];
    
$links explode("\n"$_POST['links']);
    if (
file_exists("includes/download.php"))
    {
        include_once(
"includes/download.php");
    }
    
sleep(2); 

    
$filelist = array();
    
$handle opendir($filespath);
    while (
false !== ($files readdir($handle)))
    {
        if (
$files !== '.' && $files !== '..')
        {
            
array_push($filelist$files);
        }
    }
    
closedir($handle);
    
sort($filelist);
    if (
$isrename)
    {
        if(
file_exists("includes/rename.php"))
            include_once(
"includes/rename.php");
    }
    
    
$filelist = array();
    
$handle opendir($filespath);
    while (
false !== ($files readdir($handle)))
    {
        if (
$files !== '.' && $files !== '..')
        {
            
array_push($filelist$files);
        }
    }
    
closedir($handle);
    
sort($filelist);
    if (
$isupload)
    {
        if (
file_exists("includes/upload.php"))
            include_once(
"includes/upload.php");
    }

echo 
""

    if(
$isdelfile)
    { 
        foreach (
$filelist as $file)
        {
            
$filelocation $filespath $file;
            
unlink ($filelocation);
            echo 
"<br /><br />Deleted <strong>" $file " </strong>from files<br />";
        }
        echo 
"<br /><br />";
        echo 
"******* Done *******";
        
sleep(2); 
    }