Protecting Your MySQL-Enhanced Script
#9

Код:
This in script ..

#define mysql_host 												GetHost ( )		//the IP of the host, should be displayed when created a database
#define mysql_user 												GetUser ( )		//database username
#define mysql_password 										    GetPassword ( ) //database password
#define mysql_database 										    GetDataBase ( )	//database name
Add this All Function in one include..

Like
Example:
Код:
GetHost ( ) 
{
	new str25 [ 128 ] ;
	str25 = "host/ip" ;
	return str25 ;

}

GetUser ( )
{
	new str26 [ 128 ] ;
	str26 = "username" ;
	return str26 ;
}

GetPassword ( )
{
	new str27 [ 128 ] ;
	str27 = "password" ;
	return str27 ;
	
}

GetDataBase ( )
{
	new str28 [ 128 ] ;
	str28 = "nameofdatabase" ;
	return str28 ;
}

Make one include ..with this and add #include <yourincludename> into your script..
and finally then compile your script....
Reply


Messages In This Thread
Protecting Your MySQL-Enhanced Script - by Scenario - 26.11.2011, 05:37
Re: Protecting Your MySQL-Enhanced Script - by iggy1 - 26.11.2011, 06:38
Re: Protecting Your MySQL-Enhanced Script - by Scenario - 26.11.2011, 14:24
Re: Protecting Your MySQL-Enhanced Script - by Calgon - 26.11.2011, 14:26
Re: Protecting Your MySQL-Enhanced Script - by Scenario - 26.11.2011, 14:29
Re: Protecting Your MySQL-Enhanced Script - by Calgon - 26.11.2011, 14:29
Re: Protecting Your MySQL-Enhanced Script - by Scenario - 26.11.2011, 14:32
Re: Protecting Your MySQL-Enhanced Script - by Calgon - 26.11.2011, 14:37
Re: Protecting Your MySQL-Enhanced Script - by serman - 26.11.2011, 14:42
Re: Protecting Your MySQL-Enhanced Script - by Scenario - 26.11.2011, 14:44

Forum Jump:


Users browsing this thread: 3 Guest(s)