Welcome to Gaia! ::

Reply Gaia pour les nuls (Tutoriaux et aides en tout genre)
[Guide] Signature Aléatoire

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit

Tu essaies?
  Oui^^
  Non =___=
View Results

[-JellyFish-]

PostPosted: Wed Apr 19, 2006 4:33 am


~~{ Pour ceux qui ne comprennent pas la version de RedSeed ou ceux avec qui ca ne marchent pas, je vous propose une seconde version où il n'y aura rien à modifier.
Ouvrez un fichier texte avec blocnote ou Word comme vous voulez.
Copiez ceci:
}~~




/*
Userbar al�atoire
http://fg.logiciel.free.fr
*/

$dir_list = "ban_img/";

/*
Ne pas modifier la suite
*/

$dir = opendir($dir_list)
$a = 0;



function get_ext($fil)
{
$fin = @strlen($fil)
return @substr($fil,($fin-3),$fin)
}

while($f = readdir($dir))
{
if(is_file($dir_list.$f))
{
$img[$a] = $dir_list.$f;
$a++;
}
}

$img_n = @rand(0,(count($img)-1))

@header("Pragma: no-cache")
@header("Cache-Control: no-store")

switch(@get_ext($img[$img_n]))
{
case 'gif':
@header("Content-Type: image/gif")
break;

case 'png':
@header("Content-Type: image/png")
break;

case 'jpg':
@header("Content-Type: image/jpeg")
break;

}
@header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT")

$pic = @file_get_contents($img[$img_n])

if($pic)
{
echo $pic;
}
?>


~~{ Ca a l'air compliqué mais pas besoin de comprendre je vous rassure^^
Ensuite, vous enregistrez ceci sous le nom ban.php
Créez ensuite un dossier nomm� ban_img et mettez y toutes vos images en .jpg seulement.
Mettez tout ceci sur votre serveur.

Il ne vous reste plus qu'à allez dans votre signature et à placez ceci:
}~~

[img][u]http://monsite.com/[/u]ban.php/.jpg[/img]

~~{ Modifiez seulement ce qui est souligné.
Et là ca devrait marcher^^
}~~
PostPosted: Tue May 02, 2006 9:39 am


[ Message temporarily off-line ]

redseed666


[-JellyFish-]

PostPosted: Tue May 02, 2006 10:23 am


~~{ *res' d'accord aveec l'avis de redseed mais adepte du "tant que ca marche" * ^^}~~
PostPosted: Sun Jun 18, 2006 9:19 am


Moi il me marque "malformed url" quand je la met dans ma signature sweatdrop

little-lys


Reyiel

PostPosted: Sun Jun 18, 2006 11:32 am


euh ca me sort aussi le malformed...
PostPosted: Tue Jan 16, 2007 2:41 am


lol

Gayana

Reply
Gaia pour les nuls (Tutoriaux et aides en tout genre)

 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum