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/leftmenu -old.php

<?php
    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']);  
    //print_r($module);
    $sPattern = '/\s*/m'; 
    $sReplace = '';
    echo"
    <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
    <html xmlns='http://www.w3.org/1999/xhtml'>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
    <title>MENU</title>
    <link href='menu.css' rel='stylesheet' type='text/css' />
    <script language='JavaScript'>
    <!--

    function win1() {
    window.open('win1.php','Window1','menubar=no,width=460,height=360,toolbar=no');
    }

    function openWin2() {
    winnews = window.open('upnews.php', 'Upload file',
    'width=600,height=300,scrollbars=yes');
    }

    function openWin3() {
    win3 = window.open('', 'Window3', 'width=320,height=210,scrollbars=yes');
    }

    function writeTo3() {
    win3.document.writeln('<h2>This is written to Window 3 by the main window</h2>');

    }

    function openWinNav() {
    win2 = window.open('winnav.php', 'Navigation','width=200,height=300,scrollbars=no,status=no');
    }

    //-->
    </script>
    </head>

    <body>
    <table width='100%' border='0' cellspacing='0' cellpadding='0'>
    <tr>
    <td height='40'><a href='http://www.flashfiles.biz' target='_blank'><img src='img/menu.jpg' alt='Template Administration' width='180' border='0' longdesc='http://www.flashfiles.biz' /></td>
    </tr>
    <tr>
    <td height='40'><a  class='tooltip' title='Template main settings' href='config.php' target='mainFrame'>Config Template</a></td>
    </tr>
    <tr>
    <td height='40'><a href='menu.php' target='mainFrame'>Menu Editor</a></td>
    </tr>
    <tr>
    <td height='40'><a href='add_txt.php' target='mainFrame'>Add-Edit HTML page</a></td>
    </tr>";
     if(file_exists("../component/news")){
            echo "<tr>
    <td height='40'><a href='news.php' target='mainFrame'>Edit News</a></td>
    </tr>" ;

        }else{

           echo "<tr>
    <td height='40'><h1>NO NEWS MODULE</h1></td>
    </tr>" ;
        }
            if(file_exists("../component/team")){
            echo "<tr>
    <td height='40'><a href='team.php' target='mainFrame'>Edit Team</a></td>
    </tr>" ;

        }else{

           echo "<tr>
    <td height='40'><h1>NO TEAM MODULE</h1></td>
    </tr>" ;
        } 
    
   echo" <td height='40'><h1>EDIT LIST</h1><form action='list.php' method='post' target='mainFrame'>";

    if (!array_searchRecursive('list',$module )){

        echo "<span class='whitetext'>NO LIST MODULE</span><br/>" ;

    }else{     

        echo"<select name='listname'>";
        for($i=0;$i<$modulesize;$i++){

            if($i>1 && $module['module']['_c']['item'][$i]['_c']['type']['_v'] === "list"){



                echo"<option value='".$module['module']['_c']['item'][$i]['_c']['path']['_v']."'>".$module['module']['_c']['item'][$i]['_c']['name']['_v']."</option>";

            }

        }
        echo"</select><br/>";
        echo"<input type='submit' name='editlist' value='edit'><input name='deletelist'  type='submit' value='delete' />";




    }


    echo"               </form></td>
    </tr>
    <tr>
    <td height='40'><h1>EDIT GALLERY</h1><form action='photo.php' method='post' target='mainFrame'>";

    if (!array_searchRecursive('fullgallery',$module )){

        echo "<span class='whitetext'>NO GALLERY</span><br/>" ;

    }else{     

        echo"<select name='photoname'>";
        for($i=0;$i<$modulesize;$i++){

            if($i>1 && $module['module']['_c']['item'][$i]['_c']['type']['_v'] === "fullgallery"){



                echo"<option value='".$module['module']['_c']['item'][$i]['_c']['path']['_v']."'>".$module['module']['_c']['item'][$i]['_c']['name']['_v']."</option>";

            }

        }
        echo"</select><br/>";
        echo"<input type='submit' name='editphoto' value='edit'><input name='deletephoto'  type='submit' value='delete' />";




    }

    echo"               </form></td>
    </tr>




    <tr>
    <td height='40'><a href='music.php' target='mainFrame'>Edit Music</a></td>
    </tr>
    
    <tr>
    <td height='40'><a href='upnews.php' target='mainFrame'>Upload Files</a></td>
    </tr>

    <tr>
    <td height='40'><a href='../' target='_blank'>Test template</a></td>
    </tr>
    <tr>
    <td height='40'><a href='http://www.flashfiles.biz/indexphpoptioncomkunena/8-photo-designer-full-cms-template.html' target='_blank'>Support Forum</a></td>
    </tr>
    <tr>
    <td height='40'><a href='http://translate.google.com/translate?hl=en&sl=en&tl=it&u=http%3A%2F%2Fwww.marcosalvatori.com%2Fphotodesigner%2Fhelp%2Fpp.htm&anno=2' target='_blank'>Online Help</a></td>
    </tr>
    <tr>
    <td height='40'><a href='http://www.flashfiles.biz' target='_blank'>Copyright MS Design 2009</a></td>
    </tr>
    
<tr>
    <td height='40'>&nbsp;</td>
    </tr>
    </table>
    </body>
    </html>";
?>