You make me smile with dboor
Try last version (clean version) not my version modified.
You must be registered to see links
clean...
lol for sql query again faudrais faith stop to 800 times the same queries for nothing ...
a simple example in the last edit file:
PHP:
//check if banned/admin:
$villageOwner = $database->getVillageField($id,'owner');
$userAccess = $database->getUserField($villageOwner,'access',0);
if($userAccess == '0' or $userAccess == '8' or $userAccess == '9'){
$form->addError("error","Player is Banned. You can't attack him");
//break;
}
//check if vacation mode:
$villageOwner = $database->getVillageField($id,'owner');
if($database->getvacmodexy($id)){
$form->addError("error","User is on vacation mode");
//break;
}
$villageOwner = $database->getVillageField($id,'owner'); 2 query identical and if the conditions are true we make other queries that could be avoided
build your queries based on overall need, add all the necessary information in order not to repeat the same thing 50 times for nothing
there are hundreds of similar error from around the script