Clean up edit_* pages, some config changes, bug fixes

- Class Basic convert string to bytes fix
- admin edit_* pages do not need JS except pop call, moved that into the
template and do not load any other JS anymore
- changed the EDIT_STYLESHEET/JAVACSRIPT names to ADMIN_ to give them
the proper name that they are admin based functions
- paths are in an extra config file
- plan on moving edit_* css rules into a special CSS file just for this
This commit is contained in:
Clemens Schwaighofer
2019-06-27 14:41:56 +09:00
parent 436025dd22
commit 19a44d9340
9 changed files with 62 additions and 47 deletions

View File

@@ -1241,8 +1241,8 @@ class Basic
// DESC : calculates the bytes based on a string with nnG, nnM, etc
public static function stringByteFormat($number)
{
$number = (int)trim($number);
$last = strtolower($number[strlen($number) - 1]);
$number = (int)trim($number);
switch ($last) {
case 't':
$number *= 1024;