if ( isset($_GET['W'])){
$W=$_GET['W'];
}else{
$W="";
}
if ( isset($_GET['H'])){
$H=$_GET['H'];
}else{
$H="";
}
if ( isset($_GET['BGCOLOR'])){
$BGCOLOR=$_GET['BGCOLOR'];
}else{
$BGCOLOR="";
}
if ( isset($_GET['GRADCOLOR'])){
$GRADCOLOR=$_GET['GRADCOLOR'];
}else{
$GRADCOLOR="";
}
if ( isset($_GET['OUT'])){
$OUT=$_GET['OUT'];
}else{
$OUT="";
}
if ( isset($_GET['ANGLE'])){
$ANGLE=$_GET['ANGLE'];
}else{
$ANGLE="";
}
$rand=rand(1, 1000);
$JPG="grads/GA_$rand.jpg";
$GIF="grads/GA_$rand.gif";
$PNG="grads/GA_$rand.png";
$IN="-size \($W\)x\($H\) gradient:$BGCOLOR-$GRADCOLOR";
exec ("/usr/bin/convert $IN -distort SRT $ANGLE $OUT");
$filename = "GradtableURL.txt";
$spc = "\r";
$fp = fopen ($filename, "a");
# w = write to the file only, create file if it does not exist,
#discard existing contents
$text="$OUT";
if ($fp) {
fwrite ($fp, $text);
fwrite ($fp, $spc);
fclose ($fp);
}
print "
";
print "Click Below To Get Image & URL
";
print "

";
print "
";
?>
IM GRADTABLES
IM GRADTABLES
TUTORIAL
|
Home