GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Smiley Script :) (https://gfy.com/showthread.php?t=83810)

Voodoo 10-20-2002 05:42 PM

Smiley Script :)
 
Hey there... Just thought I'd post this little script in case anyone wants it. It will read the current directory and display all of your pics/smiles in a formatted table w/ the [IMG] tag code to copy/past into your messages.

PHP Code:

[SIZE=1]
<?php
function flist() {
$website="www.YOURSITE.com/smiles";   //No trailing slashes, no [url]http://[/url]
$dirgetcwd();
$d=dir("$dir");
echo 
"<div align=\"center\"><table border=\"0\" cellspacing=\"2\" cellpadding=\"0\">";
 
while (
false !== ($entry=$d->read())) 
{
$x=is_file($entry);
 
if(
$entry[0] !="."
{
if(
$entry != $x) {
 
$path "$entry";
$file basename ($path,".php"); // $file is set to "index"
 
if(($entry != $x)&&($entry != "index.php")) {
echo 
"<tr><td width=\"184\" align=\"right\" valign=\"middle\"><img src=\"$entry\" border=0></td><td
 width=\"516\" align=\"left\" valign=\"middle\"><font size=\"1\" face=\"Verdana\">"
."["."img"."]"."http://$website/$entry"."["."/img"."]"."</font></td></tr>";
}}
else {echo 
"";}}}
echo 
"</table></div>";
$d->close();
}
flist();
?>[/SIZE]



Just copy/paste this into a plain text file, and save as index.php,
upload to your smiles directory, and point your browser to that page.

Hope you like it. :)

mrthumbs 10-20-2002 05:43 PM

Well now.. finally a useful contribution to gfy..

Voodoo 10-20-2002 05:44 PM

Hehehe

DrewKole 10-20-2002 05:48 PM

Lol, what a newb!

:thumbsup

Voodoo 10-20-2002 05:53 PM

Quote:

Originally posted by DrewKole
Lol, what a newb!

:thumbsup

That hurts my feelings Drew. LOL
I'm trying to spread smiles, and you call me a NewB.
Would it suit you better if I called it the "Frown Script"? LOL

DrewKole 10-20-2002 06:02 PM

Lol, yes... Smiley's are for newbs... Frowns are for pimps

Wuzzah

Voodoo 10-20-2002 06:03 PM

Quote:

Originally posted by DrewKole
Lol, yes... Smiley's are for newbs... Frowns are for pimps

Wuzzah

What about an "O-Face Script"?


All times are GMT -7. The time now is 02:57 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123