Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

ftw.generation.no

Name: Anonymous 2006-12-19 19:45

what script do they run?

and if its custom made is there anything similar in php?

Name: Anonymous 2006-12-19 20:18

Yes

Name: Anonymous 2006-12-19 20:37

and what might that be?

Name: Anonymous 2006-12-19 20:39

Don't know

Name: Anonymous 2006-12-20 5:16

.... thanks alot

Name: Anonymous 2006-12-20 9:44

>>1

Homemade probably. That looks *very* easy to make.

Name: Anonymous 2006-12-20 10:15

OH HAY! I made a quick script for you.

Name it index.php and set $IMAGEFOLDER to be some folder in that is in the same folder as the script.


<?
# COPYRIGHT ANONYMOUS IN /LOUNGE/
# YOU MAY DO WHAT YOU WANT WITH THIS. MOER LIEK PUBLIC DOMAIN RIGHT?

$IMAGEFOLDER = "my_images";


$images = array();
$dir = opendir($IMAGEFOLDER);

while ($file = readdir($dir)) {
    if (ereg("jpg$", $file)) {
        $images[] = $file;
    }
}


# Set current_image to selected image, if not selected, to last.
$current_image = null;
if (isset($_GET['n'])) {
    $current_image = $_GET['n'];
}

if (isset($_GET['r'])) {
    $current_image = rand(0, count($images));
}

if (!is_numeric($current_image)) {
    $current_image = count($dir) - 1;
}


?>

<h1>Welcome to my websight!</h1>

<div>
<a href="index.php?n=0">First</a> -
<?
if ($current_image != 0) {
    $prev = $current_image - 1;
    print "<a href=\"index.php?n=$prev\">Prev</a> - ";
}
else {
    print "Prev - ";
}
?>
<a href="index.php?r=y">Random</a> -
<?
if ($current_image != (count($images) - 1)) {
    $next = $current_image + 1;
    print "<a href=\"index.php?n=$next\">Next</a> - ";
}
else {
    print "Next - ";
}
print '<a href="index.php?n=' . (count($images) - 1) . '">Last</a>';
print "</div">


print "<div><img src=\"$IMAGEFOLDER/" . $images[$current_image] . "\" alt=\"\" /></div>";
?>

Name: Anonymous 2006-12-20 10:22

You should probably change that

    if (ereg("jpg$", $file)) {


to

    if (ereg("(jpg|png|gif|jpeg)$", $file)) {

to also show jpeg, png and gif images.

Name: Anonymous 2006-12-20 10:42

You should probably change ereg to eregi (case insensitive)

Name: Anonymous 2006-12-20 11:44

OMG thankyou Anonymous its just what i wanted!

Name: Anonymous 2006-12-20 12:20

You're welcome sweetie :)

Name: Anonymous 2006-12-20 14:30

>>11
youre cute and nice. would you mind if i make sweet love to you?

Name: Anonymous 2006-12-28 20:20

>>1 let me see your site !!

Don't change these.
Name: Email:
Entire Thread Thread List