Jump to content
Create New...

The Ultimate Sig Whore tool!!!


Guest NEO-X

Recommended Posts

check it out

 

index.php

 

Refresh this page to see a new sig

 

 

I would set this at my sig here...but dont want to change my "staff" sig...

 

I just had to show this off.. since its freakin awesome...

 

Sig whores world wide REQUIRE THIS!!

 

Link to comment
Share on other sites

Really? You sure you want to know....ok….! ……But just so you know, no way this won’t require a long goat post.. so read on if you really really want to know otherwise it might be too much for your itsy bitsy brain to handle…

 

It;’s the latest fad called PHP. Ha! ok Da Goat’s gonna have to put on his Geek hat for this one… Where TH did I put my Geek hat?? Oh there it is.. right next to the stack of popular mechanics magazines.. Ok hat on! Here we go!

 

What’s PHP you say..

Self-referentially short for PHP: Hypertext Preprocessor, an open source, server-side, HTML embedded scripting language used to create dynamic Web pages.

 

Basically it requires a scripting language like Java or PHP. With PHP I would just name all the images like image1.png", image2.png", image3.png and so on… when the refresh page loads you use php to get a random number assign that random number to a variable such as $random. (use a number between 1 and 10) and than you echo.. echo echo echo.. echo..

 

LOL something like this..

 

 echo "<img src=\"image$random.gif\" alt=\"\" />"; 

 

or else like this..

 

 echo '<img src="'.$img_folder.$image.'" border=0>'; 

 

it works of course because you placed the PHP script somewhere in the page of the link which contains the scripted code and the url of the pictures..

 

Hold on, Let’s see if I can just copy the code from somewhere online.. let me look this one up for the actual code,

 

Ok here ya go this is sort of what the code looks like

 

<?php 
$path_to_images = "images/"; // path to your images 
$default_img = "turtle.gif"; // image to display if directory listing fails 

function getRandomImage($path, $img) { 
 if ( $list = getImagesList($path) ) { 
   mt_srand( (double)microtime() * 1000000 ); 
   $num = array_rand($list); 
   $img = $list[$num]; 
 } 
 return $path . $img; 
} 

function getImagesList($path) { 
 $ctr = 0; 
 if ( $img_dir = @opendir($path) ) { 
   while ( false !== ($img_file = readdir($img_dir)) ) { 
     // can add checks for other image file types here 
     if ( preg_match("/(\.gif|\.jpg)$/", $img_file) ) { 
       $images[$ctr] = $img_file; 
       $ctr++; 
     } 
   } 
   closedir($img_dir); 
   return $images; 
 } 
 return false; 
} 
?> 
Add this where you wish the random image to appear in your document:
<!-- Random image code from dyn-web.com -->
<img src="<?php echo getRandomImage($path_to_images, $default_img) ?>" alt="">

 

Ok of course there are programs that let you just click on the photos and they put the code in for you.. but that’s basically how it works..

 

PHP! Kicking Java’s ass!!

 

And now you know!

 

Link to comment
Share on other sites

_SEQUOYAH ]

Goat.....WOW! You really need to get on some ridlin or something similar. LOL!

 

Seriously....

 

 

but yeah.. all it is... is a php code that rotates the images found in a given directory... its friggin cool tho

Link to comment
Share on other sites

Thats pretty cool. Since were on this type of topic. I created a sig along time ago while I was still in SOTG. It was made in flash and every time somebody hovered there mouse pointer over it it would start playing music. Dose anybody know how to set this up on the forums that Sniper has set up for say HollowGround, APC etc.? Im sure you have to have some type of code that needs to be add to your forums to do this, but I'm still not to sure about it.

Link to comment
Share on other sites

AuDaCiOu5 ]

Does anybody know what those security risks are by chance? Do you half to enable html?

 

Well with any kind of risk, its all about exploitation, and finding the flaws, which allow back doors, etc.. which might lead to things like hacks, or in this case something that might damage the forums database, or something of that nature

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

Military including Active, Reserve, Veteran and Dependents get 50% off of our Spec Ops Premium Experience

×
×
  • Create New...

Important Information

By visiting this site you agree to our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Write what you are looking for and press enter or click the search icon to begin your search