MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/sb_web/b2920/hilmajohnson.com/admin/
File Upload :
Current < : /hermes/sb_web/b2920/hilmajohnson.com/admin/upnews.php

<?php
    ob_start();
    session_start(); /// initialize session 
    include("./inc/pw.php"); 
    check_logged();
    include("./inc/dirscan.php");
    include("./inc/array_xml.php");
    include("./inc/jscript.php");
    $finale= xml2ary(file_get_contents('../easy.xml'));
    $module= xml2ary(file_get_contents('tmp/module.xml'));
    $tsub= xml2ary(file_get_contents('tmp/easytemp.xml'));
    $newssize=count($finale['easyweb']['_c']['data']['_c']['menu']);  
    $modulesize=count($module['module']['_c']['item']);  





    echo "<table width='700' border='0' cellspacing='0' cellpadding='2'>"  ;



    echo "<tr><td colspan='3'><h1>UPLOAD PANEL</h1>"; 
    echo   "<br/><br/>" ;
    echo "</td>"; 


    echo "<form enctype='multipart/form-data' action='upload.php' method='post'><input type='hidden' name='MAX_FILE_SIZE' value='10000000' />";   
///background

    echo "<tr>"       ;

    

        echo"<td><h1>GENERAL FILES</h1></td>";
        echo"<td><p><label>
        <input name='imagefolder' type='radio' id='imagetype_0' value='../component/data/background_a' checked='checked' />
        Background</label>
        <br />
        <label>
        <input type='radio' name='imagefolder' value='../component/data' id='imagetype_1' />
        Images and others</label><br />
          <label>
        <input type='radio' name='imagefolder' value='../component/data/images' id='imagetype_1' />
        Folder Images</label><br />
       </p>";
        echo"<td><h1>x</h1></td>";

   
    echo "</tr> "  ;
    
    
    
    
    //////news 
    echo "<tr>"       ;

    if(!file_exists("../component/news")){

        echo"<td><h1>NO NEWS MODULE</h1></td><td><h1>x</h1></td><td><h1>x</h1></td>";

    }else{

        echo"<td><h1>NEWS MODULE</h1></td>";
        echo"<td><p><label>
        <input name='imagefolder' type='radio' id='imagetype_0' value='../component/news/img' checked='checked' />
        img</label>
        <br />
        <label>
        <input type='radio' name='imagefolder' value='../component/news/img/big' id='imagetype_1' />
        imgbig</label></p>";
        echo"<td><h1>x</h1></td>";

    }
    echo "</tr> "  ;


    /////team
    echo "<tr>"       ;
    if(!file_exists("../component/team")){

        echo"<td><h1>NO NEWS MODULE</h1></td><td><h1>x</h1></td><td><h1>x</h1></td>";

    }else{

        echo"<td><h1>TEAM MODULE</h1></td>";
        echo"<td><p><label>
        <input name='imagefolder' type='radio' id='imagetype_0' value='../component/team/img' checked='checked' />
        img</label>
        <br />
        <label>
        <input type='radio' name='imagefolder' value='../component/team/img/big' id='imagetype_1' />
        imgbig</label></p>";
        echo"<td><h1>x</h1></td>";

    }
    echo "</tr> "  ;

    ///custom list

    if (!array_searchRecursive('list',$module )){
        echo "<tr>";
        echo"<td><h1>NO CUSTOM MODULE</h1></td><td><h1>x</h1></td><td><h1>x</h1></td>";
        echo "</tr>"; 
    }else{
        for($i=0;$i<$modulesize;$i++){

            if($i>1 && $module['module']['_c']['item'][$i]['_c']['type']['_v'] === "list"){
                echo "<tr>";
                echo"<td><h1>LIST : ". $module['module']['_c']['item'][$i]['_c']['name']['_v']."</h1></td>";
                 echo"<td><p><label>
        <input name='imagefolder' type='radio' id='imagetype_0' value='". $module['module']['_c']['item'][$i]['_c']['path']['_v']."/img' checked='checked' />
        img</label>
        <br />
        <label>
        <input type='radio' name='imagefolder' value='". $module['module']['_c']['item'][$i]['_c']['path']['_v']."/img/big' id='imagetype_1' />
        imgbig</label></p>";
        echo"<td><h1>x</h1></td>";
                echo "</tr>";

            }

        }

    }
    /// photogallery
    
    
   
    
    
    /// music
    echo "<tr>"       ;
    if(!file_exists("../component/music")){

        echo"<td><h1>NO MUSIC MODULE</h1></td><td><h1>x</h1></td><td><h1>x</h1></td>";

    }else{

        echo"<td><h1>MUSIC MODULE</h1></td>";
        echo"<td><p><label>
        <input name='imagefolder' type='radio' id='imagetype_0' value='../component/music' checked='checked' />Song</p></label></td>";
       
        echo"<td><h1>x</h1></td>";

    }
    echo "</tr> "  ;
    //////////////
    
    echo "<tr>";
 echo"<td colspan='3'><h1>Choose a file to upload:<br/><input name='uploaded_file' type='file' size='60' />
        <input type='submit' value='Upload' /></h1>";
        echo "</tr>";
    echo "</form>";



    echo "</table> " ;




?>