mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-01 08:07:14 +00:00
@@ -149,6 +149,12 @@ class Units {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($post['t'.$i]>30000000)
|
||||||
|
{
|
||||||
|
$form->addError("error","Bug attempt!");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if(preg_match('/[^0-9]/',$post['t'.$i]))
|
if(preg_match('/[^0-9]/',$post['t'.$i]))
|
||||||
{
|
{
|
||||||
$form->addError("error","Special characters can't entered");
|
$form->addError("error","Special characters can't entered");
|
||||||
@@ -168,6 +174,11 @@ class Units {
|
|||||||
$form->addError("error","You can't send negative units.");
|
$form->addError("error","You can't send negative units.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if($post['t11']>2)
|
||||||
|
{
|
||||||
|
$form->addError("error","Bug attempt!");
|
||||||
|
break;
|
||||||
|
}
|
||||||
if(preg_match('/[^0-9]/',$post['t11']))
|
if(preg_match('/[^0-9]/',$post['t11']))
|
||||||
{
|
{
|
||||||
$form->addError("error","Special characters can't entered");
|
$form->addError("error","Special characters can't entered");
|
||||||
|
|||||||
Reference in New Issue
Block a user