Quote of the day : "Waaaaaa, hah, haaaaahheeee!" Shibuki (Retard Girl voice pack)

Next quote in 4.2 hours. [suggest a quote]

Turing number

New : Don't have MySQL ? Here is a version that doesn't need any database.
Archive contents :
- create_table.php : 
	run it once to create the data table.
- l_db.php :
	parameters + connection to the db
- l_gen.php :
	creates the picture
- l_form.php :
	form script
- GNUGPL.txt : 
	The GNU General Public License :)

Required : PHP and MySQL

Based on : IMAGE CRYPTÉE DE PROTECTION POUR FORMULAIRE WEB, by matrey : http://www.phpcs.com/code.aspx?ID=13359
	and published with the author's authorization

How to get it work :
1. Enter your database informations in l_db.php
2. Run create_table.php to create the table
3. Edit l_form.php to add whatever you want (login form...)


/*************************************************************************
*                                                                        *
* This script generates and checks a turing number                       *
*                                                                        *
* Copyright (C) 2004-2005 PatheticCockroach                              *
*                         <http://patheticcockroach.com>                 *
* Version 1.1                                                            *
*                                                                        *
* This program is free software; you can redistribute it and/or modify   *
* it under the terms of the GNU General Public License as published by   *
* the Free Software Foundation; either version 2, or (at your option)    *
* any later version.                                                     *
*                                                                        *
* This program is distributed in the hope that it will be useful,        *
* but WITHOUT ANY WARRANTY; without even the implied warranty of         *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
* GNU General Public License for more details.                           *
*                                                                        *
* You should have received a copy of the GNU General Public License      *
* along with this program; if not, write to the Free Software            *
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.              *
* You can also provide yourself with an online copy of the text:         *
* <http://www.gnu.org/copyleft/gpl.html>                                 *
* <http://www.gnu.org/copyleft/gpl.txt>                                  *
*                                                                        *
*************************************************************************/

!======> Change log <======!
2005-07-29 (1.1) :
	- SECURITY FIXES (SQL injection)
	- translated a comment that was accidentally left in French
Download
Script listed @ Hotscripts.com

If you like this script, please rate it @ :
Scripts.com :
ScriptSearch.com :
Web Scripts Directory :
Comments :
HELP! (dogrir, on Mon, 24 Oct 2005 20:22:05 +0200) Report Reply
Young Citizen I tried to use the forum but I don't know any French.

I like this Turing Number script but I'm having trouble implementing it.

I successfully ran the create_table.php file and verified that the table exists in my MySql Database.

My host is running PHP 4.3.4 and GD and GD2.

But when I try to run the script, I get a blank frame for the graphic instead of the graphic.

I have "test" installed the basic script at:

http://www.dogrir.org/test/l_form.php

Any help you can give is appreciated. If I can get this running I'm looking forward to giving it a top rating at HotScripts and Scriptsearch. It's so simple! THANKS!
Replies :
Thanks! (dogrir, on Fri, 28 Oct 2005 02:52:00 +0200) Report
Young Citizen My webhost got back to me to say that GD was installed but not activated. It is now and everything appears to be working fine!!
Re : HELP! (PatheticCockroach, on Tue, 25 Oct 2005 22:42:29 +0200) Report
Admin Hi,

When I try to open the picture on your server, I get this error :
Fatal error: Call to undefined function: imagecreate() in D:\Inetpub\wwwroot\dogrir.org\html\test\l_gen.php on line 21
Are you sure that GD is enabled on your server ? (to check that, use phpinfo() and search for a line named GD Support)

Regards,
PatheticCockroach

PS : the forum is supposed to be primarily in English, you can use it ;)

Edited on Tue, 25 Oct 2005 22:42:59 +0200
Great !! (Bob007, on Mon, 23 May 2005 20:57:29 +0200) Report Reply
Security Guard Thanks for this script, very useful
[Add a comment]