What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » crystal/glassy icons

crystal/glassy icons
Author: Message:
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
35 / Male / –
Joined: Jun 2004
RE: crystal/glassy icons
quote:
Originally posted by Absorbation
It's a php script :)

code:
<?php
error_reporting(E_ALL ^ E_NOTICE);


$folderdir = "./images"; //EDIT THIS
$types = array('jpeg','.png','.bmp','.jpg','.gif');

//------ dont edit--------
$dir = array();
$folder=opendir($folderdir);
while ($file = readdir($folder)) $dir[] = $file;
closedir($folder);
$files = array();
for ($i=0;$dir[$i];$i++){
$ext=strtolower(substr($dir[$i],-4));
if (in_array($ext,$types)){
$files[]=$dir[$i];
    }
}

$image =  $files[rand(0,count($files)-1)];
$ext=strtolower(substr($image,-4));
$ext = str_replace('.','',$ext);

Header ("Content-type: image/$ext");
readfile($folderdir . '/' .$image);


?>


Eewww use Header("Location: $imageurl"); so it redirects to the images, so that people can cache them.
11-17-2005 06:49 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
crystal/glassy icons - by stoshrocket on 11-17-2005 at 05:21 PM
RE: crystal/glassy icons - by absorbation on 11-17-2005 at 05:48 PM
RE: crystal/glassy icons - by stoshrocket on 11-17-2005 at 05:57 PM
RE: crystal/glassy icons - by absorbation on 11-17-2005 at 06:10 PM
RE: RE: crystal/glassy icons - by stoshrocket on 11-17-2005 at 06:48 PM
RE: crystal/glassy icons - by stoshrocket on 11-17-2005 at 06:13 PM
RE: crystal/glassy icons - by absorbation on 11-17-2005 at 06:30 PM
RE: crystal/glassy icons - by stoshrocket on 11-17-2005 at 06:33 PM
RE: crystal/glassy icons - by Plik on 11-17-2005 at 06:49 PM
RE: crystal/glassy icons - by stoshrocket on 11-17-2005 at 07:02 PM
RE: crystal/glassy icons - by Plik on 11-17-2005 at 07:20 PM
RE: crystal/glassy icons - by stoshrocket on 11-17-2005 at 08:05 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On