Auto index - remove the underscore

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

  • bOrN2pwn
    replied
    Ok I think its Fixed now..... And yes I'am from South Africa.

    PHP Code:
    Originally Posted by the script
    <?
    /*
    ----------------------------------------------------------
    POCKETWAP.NET AUTO INDEX PHP SCRIPT
    Version: 2.0 ( html)
    Last update: 02 July 2009
    ----------------------------------------------------------
    Author : SANJAYCITY
    Website: POCKETWAP.NET : Free Mobile Ringtones, Themes, Animation, Mp3, Fickr Images Search, Youtube Videos Search, Chat, Blog, Forum Etc.
    Sript Forum : POCKETWAP SCRIPTS FORUM - Index
    Email: admin@pocketwap.net
    Copyright (c) 2009 SANJAYCITY. All rights reserved.
    -----------------------------------------------------------
    Get More Free PHP scripts at POCKETWAP SCRIPTS FORUM - Index
    ----------------------------------------------------------
    */

    ?>

    <title>POCKETWAP.NET - FOLDER MANAGEMENT SCRIPT</title>

    <meta name="description" content=" Free Mobile Wallpapers, Ringtones, Amr ringtones, Mp3 ringtones, MMf ringtones, free wallpaper,themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam,
    kannada, pakistani, punjabi, bengali, english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood,
    mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,
    Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen
    Savers,Java Games,Java Application">

    <meta name="keywords" content=" free SMS, SMS, free ringtone, Amr ringtones,
    Mp3 ringtones, MMf ringtones, free wallpaper, themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam, kannada, pakistani, punjabi, bengali,
    english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood, mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,
    Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil
    Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen Savers,Java Games,Java Application, Mobile Secret Codes, Mobile Codes,
    Codes, Mobile, Nokia, Nokia Codes, Nokia Secret Codes,Sony Ericsson, Sony Ericsson Codes, Sony Ericsson Secret Codes, Motorola, Motorola Codes,
    Motorola Secret Codes, Samsung,Samsung Codes, Samsung Secret Codes, LG ,LG Codes,LG Secret Codes, BenQ-Siemens,BenQ-Siemens Codes, BenQ-Siemens
    Secret Codes, Sagem, Sagem Codes,Sagem Secret Codes,sharp, Sharp Codes, Sharp Secret Codes," />

    <link rel="StyleSheet" type="text/css" href="style.css" />


    <center>
    <div class="head"><b>
    Write Folder Name</b></center></div>


    <?
    print $changed_text;
    $search_txt = str_replace("_"," ",$file_name);
    $items_per_page = "10";
    $size_bytes = 100072000;
    $kb = $size_bytes / 1024;
    $mb = $size_bytes / 1024000;
    if (!isset($_GET['page']))
    { $page=0; }
    else { $page = $_GET['page']; }
    $total = 0;

    if(!($dp = opendir("./"))) die ("Cannot open ./");
    $file_array = array();
    while ($file = readdir ($dp))
    {
    if(substr($file,0,1) != '.' and $file != "index.php")
    {
    $file_array[] = $file;
    }
    }
    $file_count = count ($file_array);
    sort ($file_array);

    if ($file_count > 0)
    {
    $first_record = $page * $items_per_page;
    $last_record = $first_record + $items_per_page;

    while (list($fileIndexValue, $file_name) = each ($file_array))
    {

    if (($fileIndexValue >= $first_record) AND ($fileIndexValue < $last_record))
    {

    echo "<img src=\"http://pocketwap.net/icon/dir.png\"><a href=\"$file_name/\">$file_name</a><br />";
    $total = $total + filesize($file_name);

    }
    }
    ?><hr><center>
    <?

    if (($file_count > 0) AND ($page != 0))
    {



    // previous button

    $prev_page = $page -1;

    echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page\">[Back]</a> | ";

    }


    if (($file_count > 0) AND ($last_record < $file_count))
    {
    // next button
    $next_page = $page + 1;
    echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$next_page\">[Next]</a>";
    }


    echo "<br/>Directory:<br/>$file_count ";
    if ($file_count == 1)
    {echo "file";}
    else
    {echo "files";}

    echo " (" . round($total/1024,1) . "kb)";
    ?></div><?
    // Home index
    echo " <br/><a href=\"http://write here your url\">[Edit Your Back Link]</a>";
    $str_replace($look_for, $change_to, $search_text, &match_count);
    $search_text = "_";
    $look_for = "_";
    $change_to = " ";

    print $search_text . "<BR>";
    $changed_text = str_replace($look_for, $change_to, $search_text);


    /*
    -----------------------------------------------------------
    Please Support Us by providing back Link to Our Site,
    Don't delete this partner link.
    ----------------------------------------------------------
    */

    echo " <br/>Our Partner:";


    echo " <br/><a href=\"http://pocketwap.net\">[Pocketwap.net]</a><hr>";


    }

    closedir($dp);

    ?>
    All Rights Reserved.<hr/>

    Leave a comment:


  • Guest
    Guest replied
    oh and by the way are you from south africa ? because i am

    Leave a comment:


  • Guest
    Guest replied
    Originally Posted by the script
    <?
    /*
    ----------------------------------------------------------
    POCKETWAP.NET AUTO INDEX PHP SCRIPT
    Version: 2.0 ( html)
    Last update: 02 July 2009
    ----------------------------------------------------------
    Author : SANJAYCITY
    Website: POCKETWAP.NET : Free Mobile Ringtones, Themes, Animation, Mp3, Fickr Images Search, Youtube Videos Search, Chat, Blog, Forum Etc.
    Sript Forum : POCKETWAP SCRIPTS FORUM - Index
    Email: admin@pocketwap.net
    Copyright (c) 2009 SANJAYCITY. All rights reserved.
    -----------------------------------------------------------
    Get More Free PHP scripts at POCKETWAP SCRIPTS FORUM - Index
    ----------------------------------------------------------
    */

    ?>

    <title>POCKETWAP.NET - FOLDER MANAGEMENT SCRIPT</title>

    <meta name="description" content=" Free Mobile Wallpapers, Ringtones, Amr ringtones, Mp3 ringtones, MMf ringtones, free wallpaper,themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam,
    kannada, pakistani, punjabi, bengali, english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood,
    mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,
    Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen
    Savers,Java Games,Java Application">

    <meta name="keywords" content=" free SMS, SMS, free ringtone, Amr ringtones,
    Mp3 ringtones, MMf ringtones, free wallpaper, themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam, kannada, pakistani, punjabi, bengali,
    english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood, mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,
    Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil
    Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen Savers,Java Games,Java Application, Mobile Secret Codes, Mobile Codes,
    Codes, Mobile, Nokia, Nokia Codes, Nokia Secret Codes,Sony Ericsson, Sony Ericsson Codes, Sony Ericsson Secret Codes, Motorola, Motorola Codes,
    Motorola Secret Codes, Samsung,Samsung Codes, Samsung Secret Codes, LG ,LG Codes,LG Secret Codes, BenQ-Siemens,BenQ-Siemens Codes, BenQ-Siemens
    Secret Codes, Sagem, Sagem Codes,Sagem Secret Codes,sharp, Sharp Codes, Sharp Secret Codes," />

    <link rel="StyleSheet" type="text/css" href="style.css" />


    <center>
    <div class="head"><b>
    Write Folder Name</b></center></div>


    <?
    print $changed_text;
    $search_txt = str_replace("_"," ",$file_name);
    $items_per_page = "10";
    $size_bytes = 100072000;
    $kb = $size_bytes / 1024;
    $mb = $size_bytes / 1024000;
    if (!isset($_GET['page']))
    { $page=0; }
    else { $page = $_GET['page']; }
    $total = 0;

    if(!($dp = opendir("./"))) die ("Cannot open ./");
    $file_array = array();
    while ($file = readdir ($dp))
    {
    if(substr($file,0,1) != '.' and $file != "index.php")
    {
    $file_array[] = $file;
    }
    }
    $file_count = count ($file_array);
    sort ($file_array);

    if ($file_count > 0)
    {
    $first_record = $page * $items_per_page;
    $last_record = $first_record + $items_per_page;

    while (list($fileIndexValue, $file_name) = each ($file_array))
    {

    if (($fileIndexValue >= $first_record) AND ($fileIndexValue < $last_record))
    {

    echo "<img src=\"http://pocketwap.net/icon/dir.png\"><a href=\"$file_name/\">$file_name</a><br />";
    $total = $total + filesize($file_name);

    }
    }
    ?><hr><center>
    <?

    if (($file_count > 0) AND ($page != 0))
    {



    // previous button

    $prev_page = $page -1;

    echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page\">[Back]</a> | ";

    }


    if (($file_count > 0) AND ($last_record < $file_count))
    {
    // next button
    $next_page = $page + 1;
    echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$next_page\">[Next]</a>";
    }


    echo "<br/>Directory:<br/>$file_count ";
    if ($file_count == 1)
    {echo "file";}
    else
    {echo "files";}

    echo " (" . round($total/1024,1) . "kb)";
    ?></div><?
    // Home index
    echo " <br/><a href=\"http://write here your url\">[Edit Your Back Link]</a>";
    $str_replace($look_for, $change_to, $search_text, match_count);
    $search_text = "_";
    $look_for = "_";
    $change_to = " ";

    print $search_text . "<BR>";
    $changed_text = str_replace($look_for, $change_to, $search_text);


    /*
    -----------------------------------------------------------
    Please Support Us by providing back Link to Our Site,
    Don't delete this partner link.
    ----------------------------------------------------------
    */

    echo " <br/>Our Partner:";


    echo " <br/><a href=\"http://pocketwap.net\">[Pocketwap.net]</a><hr>";


    }

    closedir($dp);

    ?>
    All Rights Reserved.<hr/>

    Leave a comment:


  • bOrN2pwn
    replied
    Paste the folder.php file here cause that's waht's causing the problem.... I can take a look at it and correct it for you...

    Leave a comment:


  • Guest
    Guest replied
    oh ok thanks for your help anyway...
    Fatal error: Function name must be a string in /home/ahwapsta/public_html/downloads/games/copy/3gp/folder.php on line 121
    was the error ...otherwise its no big deal i will try do something about it

    Leave a comment:


  • bOrN2pwn
    replied
    Dont Have skype or MSN sorry mate.....

    Leave a comment:


  • Guest
    Guest replied
    hmmm it didnt work... do you mind if i invite you on skype or gmail messenger to send you the link where im editing it ? i dont wana send the link over the forum

    Leave a comment:


  • bOrN2pwn
    replied
    Create a separate file for your style sheets like I did here... Gives you more room to work.... Check If It Works Now.........

    style.css
    PHP Code:
    bodytdtr {
    text-decorationnone
    font-familyverdanaarialhelveticasans-serif
    font-size10pxcursor: default; 
    color:#666 ;
    }

    body {margin3pxpadding3pxbackground#ffffff; color:#666 ;padding-top: 3px; 
    padding-bottom3px;}


    a:activea:visiteda:link {
    color:#3399cc; #EE107B; 
    text-decorationnone
    font-size10px
    border-bottom1px solid #ccc; }

    a:hover {
    color#EE107B; 
    text-decoration
    underlinefont-size10px;
    }


    hr width:100%; border:noneborder-top:1px dashed #A9A9A9; height:1px; margin-bottom:3px; margin-top:3px;}
    div padding4pxmargin0px 0px 0px 0px;}

    div.head 
    text-align:center;
    background-color:#87CEFA;
    margin:0px 


    Your File
    PHP Code:
    Originally Posted by the script 
    <?
    /*
    ----------------------------------------------------------
    POCKETWAP.NET AUTO INDEX PHP SCRIPT
    Version: 2.0 ( html)
    Last update: 02 July 2009
    ----------------------------------------------------------
    Author : SANJAYCITY
    Website: POCKETWAP.NET : Free Mobile Ringtones, Themes, Animation, Mp3, Fickr Images Search, Youtube Videos Search, Chat, Blog, Forum Etc.
    Sript Forum : POCKETWAP SCRIPTS FORUM - Index
    Email: admin@pocketwap.net
    Copyright (c) 2009 SANJAYCITY. All rights reserved.
    -----------------------------------------------------------
    Get More Free PHP scripts at POCKETWAP SCRIPTS FORUM - Index
    ----------------------------------------------------------
    */

    ?>

    <title>POCKETWAP.NET - FOLDER MANAGEMENT SCRIPT</title>

    <meta name="description" content=" Free Mobile Wallpapers, Ringtones, Amr ringtones, Mp3 ringtones, MMf ringtones, free wallpaper,themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam,
    kannada, pakistani, punjabi, bengali, english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood,
    mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,
    Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen
    Savers,Java Games,Java Application">

    <meta name="keywords" content=" free SMS, SMS, free ringtone, Amr ringtones,
    Mp3 ringtones, MMf ringtones, free wallpaper, themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam, kannada, pakistani, punjabi, bengali,
    english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood, mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,
    Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil
    Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen Savers,Java Games,Java Application, Mobile Secret Codes, Mobile Codes,
    Codes, Mobile, Nokia, Nokia Codes, Nokia Secret Codes,Sony Ericsson, Sony Ericsson Codes, Sony Ericsson Secret Codes, Motorola, Motorola Codes, 
    Motorola Secret Codes, Samsung,Samsung Codes, Samsung Secret Codes, LG ,LG Codes,LG Secret Codes, BenQ-Siemens,BenQ-Siemens Codes, BenQ-Siemens 
    Secret Codes, Sagem, Sagem Codes,Sagem Secret Codes,sharp, Sharp Codes, Sharp Secret Codes," />

    <link rel="StyleSheet" type="text/css" href="style/style.css" />


    <center>
    <div class="head"><b>
    Write Folder Name</b></center></div>


    <?
    print $changed_text; 
    $search_txt = str_replace("_"," ",$file_name);
    $items_per_page = "10";
    $size_bytes = 100072000;
    $kb = $size_bytes / 1024;
    $mb = $size_bytes / 1024000;
    if (!isset($_GET['page']))
    { $page=0; }
    else { $page = $_GET['page']; }
    $total = 0;

    if(!($dp = opendir("./"))) die ("Cannot open ./");
    $file_array = array();
    while ($file = readdir ($dp))
    {
    if(substr($file,0,1) != '.' and $file != "index.php")
    {
    $file_array[] = $file;
    }
    }
    $file_count = count ($file_array);
    sort ($file_array);

    if ($file_count > 0)
    {
    $first_record = $page * $items_per_page;
    $last_record = $first_record + $items_per_page;

    while (list($fileIndexValue, $file_name) = each ($file_array))
    {

    if (($fileIndexValue >= $first_record) AND ($fileIndexValue < $last_record))
    {

    echo "<img src=\"http://pocketwap.net/icon/dir.png\"><a href=\"$file_name/\">$file_name</a><br />";
    $total = $total + filesize($file_name);

    }
    }
    ?><hr><center>
    <?

    if (($file_count > 0) AND ($page != 0))
    {



    // previous button

    $prev_page = $page -1;

    echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page\">[Back]</a> | ";

    }


    if (($file_count > 0) AND ($last_record < $file_count))
    {
    // next button
    $next_page = $page + 1;
    echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$next_page\">[Next]</a>";
    }


    echo "<br/>Directory:<br/>$file_count ";
    if ($file_count == 1)
    {echo "file";}
    else
    {echo "files";}

    echo " (" . round($total/1024,1) . "kb)";
    ?></div><?
    // Home index
    echo " <br/><a href=\"http://write here your url\">[Edit Your Back Link]</a>";
    $str_replace($look_for, $change_to, $search_text, match_count); 
    $search_text = "_"; 
    $look_for = "_"; 
    $change_to = " "; 

    print $search_text . "<BR>"; 
    $changed_text = str_replace($look_for, $change_to, $search_text); 


    /*
    -----------------------------------------------------------
    Please Support Us by providing back Link to Our Site,
    Don't delete this partner link.
    ----------------------------------------------------------
    */

    echo " <br/>Our Partner:";


    echo " <br/><a href=\"http://pocketwap.net\">[Pocketwap.net]</a><hr>"; 


    }

    closedir($dp);

    ?>
    All Rights Reserved.<hr/>

    Leave a comment:


  • Guest
    Guest replied
    Originally posted by the script
    <?
    /*
    ----------------------------------------------------------
    POCKETWAP.NET AUTO INDEX PHP SCRIPT
    Version: 2.0 ( html)
    Last update: 02 July 2009
    ----------------------------------------------------------
    Author : SANJAYCITY
    Website: POCKETWAP.NET : Free Mobile Ringtones, Themes, Animation, Mp3, Fickr Images Search, Youtube Videos Search, Chat, Blog, Forum Etc.
    Sript Forum : POCKETWAP SCRIPTS FORUM - Index
    Email: admin@pocketwap.net
    Copyright (c) 2009 SANJAYCITY. All rights reserved.
    -----------------------------------------------------------
    Get More Free PHP scripts at POCKETWAP SCRIPTS FORUM - Index
    ----------------------------------------------------------
    */

    ?>

    <title>POCKETWAP.NET - FOLDER MANAGEMENT SCRIPT</title>

    <meta name="description" content=" Free Mobile Wallpapers, Ringtones, Amr ringtones, Mp3 ringtones, MMf ringtones, free wallpaper,themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam,
    kannada, pakistani, punjabi, bengali, english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood,
    mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,
    Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen
    Savers,Java Games,Java Application">

    <meta name="keywords" content=" free SMS, SMS, free ringtone, Amr ringtones,
    Mp3 ringtones, MMf ringtones, free wallpaper, themes, free videos, download, movie, mp3 songs, 3gp mp4 avi videos, mobile software, games, free mp3 songs, tamil, telugu, malayalam, kannada, pakistani, punjabi, bengali,
    english, hindi, bhangra, pashto, ghazals, quawwalia, bollywood, tollywood, hollywood, kollywood, mulluwood, mp3,Tamil MP3,Tamil Compressed Mp3,
    Tamil Full MP3,Mp3,128 Bit Mp3,Hindi MP3,Tamil Wav Tones,Tamil New Mp3,2009 Hits Mp3,Tamil 3gp,Tamil Mp4,Tamil Ring tone,Tamil Midi Tones,Tamil
    Amr Tones,Mobile Software,Application,sis,sisx,jar,jad,thm,Wallpape r,Screen Savers,Java Games,Java Application, Mobile Secret Codes, Mobile Codes,
    Codes, Mobile, Nokia, Nokia Codes, Nokia Secret Codes,Sony Ericsson, Sony Ericsson Codes, Sony Ericsson Secret Codes, Motorola, Motorola Codes,
    Motorola Secret Codes, Samsung,Samsung Codes, Samsung Secret Codes, LG ,LG Codes,LG Secret Codes, BenQ-Siemens,BenQ-Siemens Codes, BenQ-Siemens
    Secret Codes, Sagem, Sagem Codes,Sagem Secret Codes,sharp, Sharp Codes, Sharp Secret Codes," />



    <style type="text/css" >

    body, td, tr {
    text-decoration: none;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 10px; cursor: default;
    color:#666 ;
    }

    body {margin: 3px; padding: 3px; background: #ffffff; color:#666 ;padding-top: 3px;
    padding-bottom: 3px;}


    a:active, a:visited, a:link {
    color:#3399cc; #EE107B;
    text-decoration: none;
    font-size: 10px;
    border-bottom: 1px solid #ccc; }

    a:hover {
    color: #EE107B;
    text-decoration:
    underline; font-size: 10px;
    }


    hr { width:100%; border:none; border-top:1px dashed #A9A9A9; height:1px; margin-bottom:3px; margin-top:3px;}
    div { padding: 4px; margin: 0px 0px 0px 0px;}

    div.head {
    text-align:center;
    background-color:#87CEFA;
    margin:0px
    }

    </style>
    <center>
    <div class="head"><b>
    Write Folder Name</b></center></div>


    <?
    print $changed_text;
    $search_txt = str_replace("_"," ",$file_name);
    $items_per_page = "10";
    $size_bytes = 100072000;
    $kb = $size_bytes / 1024;
    $mb = $size_bytes / 1024000;
    if (!isset($_GET['page']))
    { $page=0; }
    else { $page = $_GET['page']; }
    $total = 0;

    if(!($dp = opendir("./"))) die ("Cannot open ./");
    $file_array = array();
    while ($file = readdir ($dp))
    {
    if(substr($file,0,1) != '.' and $file != "index.php")
    {
    $file_array[] = $file;
    }
    }
    $file_count = count ($file_array);
    sort ($file_array);

    if ($file_count > 0)
    {
    $first_record = $page * $items_per_page;
    $last_record = $first_record + $items_per_page;

    while (list($fileIndexValue, $file_name) = each ($file_array))
    {

    if (($fileIndexValue >= $first_record) AND ($fileIndexValue < $last_record))
    {

    echo "<img src=\"http://pocketwap.net/icon/dir.png\"><a href=\"$file_name/\">$file_name</a><br />";
    $total = $total + filesize($file_name);

    }
    }
    ?><hr><center><?

    if (($file_count > 0) AND ($page != 0))
    {



    // previous button

    $prev_page = $page -1;

    echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page\">[Back]</a> | ";

    }


    if (($file_count > 0) AND ($last_record < $file_count))
    {
    // next button
    $next_page = $page + 1;
    echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$next_page\">[Next]</a>";
    }


    echo "<br/>Directory:<br/>$file_count ";
    if ($file_count == 1)
    {echo "file";}
    else
    {echo "files";}

    echo " (" . round($total/1024,1) . "kb)";
    ?></div><?
    // Home index
    echo " <br/><a href=\"http://write here your url\">[Edit Your Back Link]</a>";
    str_replace($look_for, $change_to, $search_text, match_count);
    $search_text = "_";
    $look_for = "_";
    $change_to = " ";

    print $search_text . "<BR>";
    $changed_text = str_replace($look_for, $change_to, $search_text);


    /*
    -----------------------------------------------------------
    Please Support Us by providing back Link to Our Site,
    Don't delete this partner link.
    ----------------------------------------------------------
    */

    echo " <br/>Our Partner:";


    echo " <br/><a href=\"http://pocketwap.net\">[Pocketwap.net]</a><hr>";


    }

    closedir($dp);

    ?>
    All Rights Reserved.<hr/>


    but then how would you include that function in the code ? when i try i get an error

    Leave a comment:


  • bOrN2pwn
    replied
    This allows you to replace one string with another. The syntaxt is:

    PHP Code:
    str_replace($look_for$change_to$search_textmatch_count); 
    The last one, match_count, is optional. It's counts how many matches it has found.

    In the example below, we're looking for "explore" and want to replace it with "explode".

    PHP Code:
    $search_text "The explore function";
    $look_for "explore";
    $change_to "explode";

    print 
    $search_text "<BR>";
    $changed_text str_replace($look_for$change_to$search_text);

    print 
    $changed_text
    Hope you understand what I mean here.

    Heres a few other ways hope they work.... Just a quick code...

    PHP Code:
    <?php $search_text "Search"?> 
    <form method="get" id="searchform"  
    action="<?php bloginfo('home'); ?>/"> 
    <input type="text" value="<?php echo $search_text?>"  
    name="s" id="s"  
    onblur="if (this.value == '')  
    {this.value = '<?php echo $search_text?>';}"  
    onfocus="if (this.value == '<?php echo $search_text?>')  
    {this.value = '';}" /> 
    <input type="hidden" id="searchsubmit" /> 
    </form>
    Last edited by bOrN2pwn; 02.01.10, 09:18.

    Leave a comment:


  • Guest
    Guest replied
    thanks by the way ... its fine you have helped me enough im gna try do it myself but thanks so much for the php screenshots 2

    Leave a comment:


  • Guest
    Guest replied
    just upload them in the directory ... but you see its not only for mp3s im gna be using it for all file types

    Leave a comment:


  • bOrN2pwn
    replied
    Originally posted by NoFx View Post
    forgive me i am very noob at this... i am trying to include that code with the auto index script but for some reason i cant get it right...
    Dos your mp3's work with a SQL or do you simply upload then in a directory.....

    Leave a comment:


  • Guest
    Guest replied
    forgive me i am very noob at this... i am trying to include that code with the auto index script but for some reason i cant get it right...

    Leave a comment:


  • Guest
    Guest replied
    thanks so much... how do i give you rep ? do i just thank you ?

    Leave a comment:

Working...
X