Update edit_user_profile.php

This commit is contained in:
Roman Kelesidis 2024-02-05 21:30:56 +07:00
parent c06d03f3a6
commit d69af451e8

View File

@ -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)