Upload Image:
Scrolling Text (optional):
 

Can not connect to mysql server!

"); @mysql_select_db($mysql_db) or die("

Can not select database!

"); if ((isset($_REQUEST["page"])) and ($_REQUEST["page"]=="try")) { $zippath = "iconz/favicon_".$_REQUEST["id"].".zip"; if (!isset($_REQUEST["type"])) { $_REQUEST["type"] = "none"; } ?>


 
 
Sorry. Only GIF, JPG and PNG formats are supported!

"; $someerror = true; break; } if (!$someerror) { $unique = md5(time().$fname); //mkdir("iconz/".$unique); //mkdir("iconz/".$unique."/extra"); $q = "INSERT INTO iconz (`date`, `unique`, `text`, `datetime`) values ('".time()."', '".$unique."', '".$_POST["string"]."', NOW())"; mysql_query($q); imagecopyresampled($small_image, $my_im, 0, 0, 0, 0, 16, 16, $size[0], $size[1]); imagepng($small_image, "iconz/".$unique."_extra_preview_16x16.png"); imagecopyresampled($small_image2, $my_im, 0, 0, 0, 0, 32, 32, $size[0], $size[1]); imagepng($small_image2, "iconz/".$unique."_extra_preview_32x32.png"); imagedestroy($small_image2); $maxwidth = 999; $maxheight = 15; $im = imagecreate($maxwidth+1, 16); $col1 = imagecolorallocate($im, 255, 255, 255); $col = imagecolorallocate($im, 0, 0, 0); imagecopy($im, $small_image, 0, 0, 0, 0, 15, 15); imagestring($im, 4, 15, 0, $_POST["string"], $col); $f = false; for ($i = $maxwidth; $i>17; $i--) { for ($y = 0; $y<$maxheight; $y++) { if (imagecolorat($im, $i, 10) != $col1) { $f = true; break; } } if ($f == true) break; } //======================================================== $im2 = imagecreate($i+3+16+5, $maxheight+1); imagecopy($im2, $im, 0,0, 0,0, $i+3+15, 16); imagedestroy($im); imagecopy($im2, $small_image, $i+9, 0, 0, 0, 15, 15); for($ii = 0; $ii <= $i+3+5; $ii++) { $im3 = imagecreate(16,16); imagecopy($im3, $im2, 0, 0, $ii, 0, $ii+15, 16); $tmp_name = "tmp/mytmp".$ii.$unique.".gif"; imagegif($im3, $tmp_name); $__i[] = $tmp_name; $__d[] = 6; $__x[] = 0; $__y[] = 0; imagedestroy($im3); } $__d[count($__d)-1] = 180; $gifmerge = new GifMerge($__i, 55, 55, 55, -10, $__d, 2, $__x, $__y, 'C_FILE'); $f = fopen("iconz/".$unique."_extra_animated_favicon.gif", "w"); fputs($f, $gifmerge -> getAnimation()); fclose($f); foreach ($__i as $pth) { unlink($pth); } $readme = ' * Thank you for using our FavIcon Generator! Here are the contents of this compressed package: favicon.ico -- The favicon file (supports both 16*16 and 32*32 dimensions). * You can add a favicon to your web page by uploading favicon.ico to Root of your website and inserting the following HTML tag between the ... tags of your web page. * How to use the Animated FavIcon: if you would like to display the animated favicon, upload animated_favicon1.gif also and insert the following HTML tags. * Other extra files in this package * The following files are included for your convenience. These are optional files: - favicon.ico - favicon. - preview_16x16.png - 16*16 PNG image file of the favicon. - preview_32x32.png - 32*32 PNG image file of the favicon. - animated_favicon.gif - animated version of the favicon. - readme.txt - this quick reference. '; $f = fopen("iconz/".$unique."_readme.txt", "w"); fputs($f, $readme); fclose($f); if (isset($_REQUEST['second'])) echo $_REQUEST['second']; copy("iconz/".$unique."_readme.txt", "tmp/ico/readme.txt"); copy("iconz/".$unique."_extra_animated_favicon.gif", "tmp/ico/animated_favicon.gif"); copy("iconz/".$unique."_extra_preview_16x16.png", "tmp/ico/preview_16x16.png"); copy("iconz/".$unique."_extra_preview_32x32.png", "tmp/ico/preview_32x32.png"); require_once('phpThumb.config.php'); $thisThumb = phpThumbUrl('src='.$root2.'tmp/ico/preview_32x32.png&w=50&f=ico'); $s = file_get_contents($root.$thisThumb); $f = fopen("iconz/".$unique."_favicon.ico", "w"); fputs($f, $s); fclose($f); copy("iconz/".$unique."_favicon.ico", "tmp/ico/favicon.ico"); include_once('Zip.php'); //$zippath = "iconz/favicon_".$unique.".zip"; $zippath = "tmp/ico/favicon_".$unique.".zip"; $zip = new Archive_Zip($zippath); $files = array( 'tmp/ico/readme.txt', 'tmp/ico/animated_favicon.gif', 'tmp/ico/preview_16x16.png', 'tmp/ico/preview_32x32.png', 'tmp/ico/favicon.ico'); $zip->create($files,array('remove_path'=>"tmp/ico/")); //$zip->create("tmp/ico", array('remove_path'=>"tmp/ico/")); unlink("tmp/ico/readme.txt"); unlink("tmp/ico/animated_favicon.gif"); unlink("tmp/ico/preview_16x16.png"); unlink("tmp/ico/preview_32x32.png"); unlink("tmp/ico/favicon.ico"); ?>
Your Preview: Download your new FavIcon :
 
 FavIcon Preview
 FavIcon Preview
 FavIcon Preview
 FavIcon Preview
 FavIcon Preview
 
 
NEW! Animated Favicon!
 FavIcon Preview
 FavIcon Preview
 FavIcon Preview
 FavIcon Preview
 FavIcon Preview
 
Favicon Download & Installation Instructions

1) Click the "Get It Now" button above, this will download the a .zip file. Unzip it and your favicon.ico file is inside.

2) Upload the favicon.ico file to your web site root folder (Your root is where your index page is located).

3) Next open your webpage and between your <head> and </head> tags enter the follow code:

<link rel="shortcut icon" href="favicon.ico">

4) Finally read the text file that comes in the .zip and you can begin using your new favicon immediately!

Last 10 Favicons

"; while ($elem = mysql_fetch_array($r)) { echo ' '.$elem[''].""; } echo ""; } mysql_query("DELETE FROM iconz WHERE datetime < NOW() - INTERVAL ".$delete_days_interval." DAY"); ?>