Help Xhtml Download System

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help Xhtml Download System

    Hello friends,
    I want a script in xhtml that show all the directory/ subdirectory/files with my sites custom logo...

    Suppose I have created folders like this....

    Downloads
    ringtones
    mp3------ 1.mp3, 2.mp3, a.mp3
    wav-------1.wav, 2.wav, b.wav
    games
    java------ a.jar, b.jar
    sis--------x.sis, b.sis
    etc............................................... .

    What show me the coding for directory structure..........
    I will add my logo header & footer

    Thanks in advance.

    #2
    hmmm.............

    xhtml have you try making xhtml with

    Code:
    <?php
    ////////////////////HEAD/////////////////////////////////
    echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n";
    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"
    \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";
    echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
    echo "<head>\n";
    echo "<title>Grim-Reapers</title>";
    echo "</head>\n";
    echo &#39;
    <style>
       span { font-size: 11pt; font-family: arial; color: red; font-weight: bold }
       p { font-size: 11pt; font-family: arial; color: red; font-weight: bold }
       select { font-size: 11pt; font-family: arial; color: red; }
       a { font-size: 11pt; font-family: arial; color: navy; font-weight: bold }
       td { font-size: 11pt; font-family: arial; color: brown; font-weight: normal;}
    </style> 
    <body bgcolor="black">
    &#39;;
    ////////////////GET TIME/////////////////////////////
    $New_Time = time() + (0 * 60 * 60);               
    $time=date("Hi",$New_Time); 
    //////////////MAIN PAGE/////////////////////////////
    echo "\n";
    echo "\n";
    echo "\n";
    $conf["items_per_page"] = 1;
    if (!isset($page)) {$page = 0;}
    $total = 0;
    if(!($dp = opendir("./"))) die ("Cannot open ./");
    $file_array = array();
    while ($file = readdir ($dp))
    {
    if(substr($file,0,1) != &#39;.&#39; and $file != "index.php")
    {
    $file_array[] = $file;
    }
    }
    $file_count = count ($file_array);
    sort ($file_array);
    
    echo "<p align=\"center\">\n";
    echo "So let&#39;s have fun and enjoy it
    
    
    \n";
    echo "<font color=\"yellow\">[b]Welcome[/b]</font>
    
    \n";
    echo "\n";
    if ($file_count > 0)
    {
    $first_record = $page * $conf["items_per_page"];
    $last_record = $first_record + $conf["items_per_page"];
    while (list($fileIndexValue, $file_name) = each ($file_array))
    {
    if (($fileIndexValue >= $first_record) AND ($fileIndexValue < $last_record))
    {
    $name = str_replace ("", "", $file_name);
    echo "<a href=\"$file_name\"/>$name</a>
    \n";
    $total = $total + filesize($file_name);
    }
    }
    if (($file_count > 0) AND ($page != 0))
    {
    // previous button
    $prev_page = $page -1;
    echo "[<a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page&amp;file=$New_Time\">Prev</a>]\n";
    }
    if (($file_count > 0) AND ($last_record < $file_count))
    {
    // next button
    $next_page = $page + 1;
    echo " [<a href=\"".$_SERVER["PHP_SELF"]."?page=$next_page&amp;file=$New_Time\">Next</a>]\n";
    }
    echo "
    PAGE: [$first_record|$file_count]";
    echo "
    
    [size="1"]---[/size]
    \n";
    echo "<a href=\"../\">Home</a>\n";
    echo "[size="1"]
    ---
    © Grim-Reaper - mini player 2006[/size]\n";
    }
    echo "\n";
    closedir($dp);
    echo "</p>\n";
    echo "</body>\n";
    echo "</html>\n";
    exit();
    ?>
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment

    Working...
    X