If anyone wants it, here is a smaller updated one.
PHP Code:<?php
session_start();
/**
* @website InterStudios.co.uk
* @author James Rozee
*/
switch ( $_GET['cmd'] ) {
case 'link':
if ( $_SESSION['url'] === '' ) {
header( 'Location: http://google.co.uk' );
}
else {
header( 'Location: http://' . $_SESSION['url'] . '/' );
}
break;
default:
// Add images to the array below, you can have as many as you want. Btw its ur job 2 do the size enit fosho
$images = array(
array(
'image.png' , 'url2site.com'
) , array(
'test.gif' , 'url2site2.com'
)
);
// Choose image to display!
$image = $images[array_rand( $images )];
$image_source = $image[0]; // url 2 img
$image_url = $image[1]; // url 2 link
$file = @file_get_contents($image_source); // Read the file, get the contents.
$img = imagecreatefromstring($file); // Create the image from the string
header("Content-type: image/png"); // Lets use PNG, it's better.
imagepng($img);
imagedestroy($img);
$_SESSION['url'] = $image_url; // Set the link session.
}





Reply With Quote

{Luckily ahah.})
