Location: PHPKode > projects > M_Gbook > mgbook/captcha.php
<?php
header('Content-type: image/png');
$im = @imagecreatefromstring(base64_decode("iVBORw0KGgoAAAANSUhEUgAAAFcAAAAiCAIAAAHSQuLfAAAACXBIWXMAAAsSAAALEgHS3X78AAAK3klEQVR4nN3aZ4sVyxYG4FbbnHXMV8ecGEVFQVDw1wuCgiBGjOOYxpyzznl2v2Pdnr17j3I+nHO59WHsXV211rvyqmrr169fr1y58s2bN8P+1itWrHj8+PHbt2+rqsrUsmXL7t27t3379iyqnz17tmnTpm/fvpV9ly9fXrVqlefv37/3aKxbt84/Fp0/f/7EiRMXL148evSomeXLl9u8du3a2o/FixdfunRpw4YN165d8/r69ev79u3D10yPxu+R/vz588aNG3C9ePEC+3Pnzu3evfvp06fr169/9OjR5s2ba7BR+/Tp08uXL1+9enXy5Mnsfv78udc9GhhjBNSaNWsAMoUq+WGfltbruq7R9AOZd+/eLV26tLzu0UCZ0tBYsGDB6tWriTA1NUV7fn7+/Hnu3LnRpL8hb41nGIh8+vRpz/WcOXOePHmCCawWmUKRWB5+/PiRDbdu3aI5Dx8/fgzRkZER+7O+ZzdMSGw1SVAEhCSHDh16//79xMQEM4INlHkzW7ZsgeX27duoBF2N4devX7du3Yp8cQD7qYDkO3fuJJd5RjaP0NmzZ605depUROuRsLQt7d94rvMbQ9w42caNG73wTMHs27fBAvg9X7hwYdu2bTTYI7Fo0aKHDx8S+ObNm/v37zf14cMHZtu1a5dnwsd5CeKBjapmoH7nzp1pEma5EiWNjY19+fIFK/vtISAsUd7du3d5tAe6sGBycnLv3r3Hjh2bFoQT7tixg8KWLFmC5/z588PHfmZmJjsXLlwI2ujoaMSh/qo16gMHDviHFFBxBKIiGvkBuXLlCi86c+YMYcUY+TkIB23rqA6l7A8t/kMWNkbiP80wT80mSQqdWKCX/6K4evWq+OI8nApt2i36JxqemTfjJ5fjqeQ6fvw4caZ1gTyGyAc/4WkLFaAkC6/soaCQJnW2zdBFgiqj/TpY/pn5XqwDLr5Iw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j025KncpCaXUxRls6lqmsJhVnU78jTbp10qkyFlSQHEojJgBTbnNlvhF3NOyQWsPXpf3jWHFtUNbGWkcBufjdf6C1fcdIVroq51tiKmvhIlJ6SXZPqU01bQYMBdpqEVTdiXUCZ9ynmTcx4UjpDHpFHhw/TS2HMfyY1hUJ/GEdI5N8fz20bhkKd7o/Dl4AIRbWKUQwkoknh/f6WS6qhmdSNJiQQtPublNVjIf4w2r0N1aoHLgqsYIudtOuzKs2cwXvKTrdjocGxvrXF/QCDGM8hUhVvWQitjWfif6XPXE+FwDqTTRNDI+Pl6WpeiivLYZfUTy9ai7X2AZmd/rfIlCJT1cGrgS9qWD+vMCWS7D+mpHPii0u6Y4WjVQ/9vildbb35SnHKIHu9I0l4NE8gGn81XP/g7q7fOMVMxvJyYmirMFKO+gYPGZK7R2mfSWcSYnJ03mo5SH1EX5LPYRruyZe+E+cNhVv660k27SthXJiwGKRsqJo/3Z9W+POt+30pymvOVk0a4oye1pe5IFI1JKevo5G8mQsppdcb/ctFuWW6v256CMJPw0fGnJLc5/Dyn5zxpaXtaMYf4SGNWvy8jBBUmc7VxWxl9SAd57Jz0gdgAAAABJRU5ErkJggg== "));
$tc  = imagecolorallocate($im, 255, 0, 0);
$number=round(rand()/1000000);
setcookie("m_captcha", md5($number));
imagestring($im,  5, rand(2,35), rand(2,20), $number, $tc);
imagepng($im); 

?> 
Return current item: M_Gbook