14.06.2016, 14:54
here we go:
What is strins!
What is strlen!
Stop the abuse of stock!
PHP Code:
loadb()
{
Database = db_open(_DB_);
new Query[1500];
strins(Query,"CREATE TABLE IF NOT EXISTS `users`(`userid` INTEGER PRIMARY KEY AUTOINCREMENT, `username` TEXT, `IP` TEXT, `joindate` TEXT, `password` TEXT, `admin` NUMERIC,", strlen(Query));
strins(Query," `kills` NUMERIC, `deaths` NUMERIC, `score` NUMERIC, `fbscore` NUMERIC, `ddscore` NUMERIC, `frscore` NUMERIC, `rscore` NUMERIC, `dmscore` NUMERIC, `money` NUMERIC,", strlen(Query));
strins(Query," `warn` NUMERIC, `mute` NUMERIC, `mutesec` NUMERIC, `cmute` NUMERIC, `cmutesec` NUMERIC, `jail` NUMERIC, `jailsec` NUMERIC, `hours` NUMERIC, `minutes` NUMERIC, `seconds` NUMERIC, `question` TEXT, `answer` TEXT, `vip` NUMERIC)", strlen(Query));
db_query(Database,Query);
db_query(Database,
"CREATE TABLE IF NOT EXISTS `bans` (`username` TEXT, `ip` TEXT, `banby` TEXT, `banreason` TEXT, `banwhen` TEXT)");
return 1;
}
What is strlen!
Stop the abuse of stock!