mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update edit_user_profile.php
This commit is contained in:
parent
c06d03f3a6
commit
d69af451e8
@ -128,6 +128,11 @@ switch ($field)
|
||||
$table = BB_BT_USERS;
|
||||
$value = (float) str_replace(',', '.', $this->request['value']);
|
||||
|
||||
if ($value < 0.0)
|
||||
{
|
||||
$this->ajax_die($lang['WRONG_INPUT']);
|
||||
}
|
||||
|
||||
foreach (array('KB'=>1,'MB'=>2,'GB'=>3,'TB'=>4,'PB'=>5,'EB'=>6,'ZB'=>7,'YB'=>8) as $s => $m)
|
||||
{
|
||||
if (stripos($this->request['value'], $s) !== false)
|
||||
|
Loading…
Reference in New Issue
Block a user