diff --git a/log/error_handler/error_handler_dbwriter.php b/log/error_handler/error_handler_dbwriter.php index 0a1f650..6551f97 100644 --- a/log/error_handler/error_handler_dbwriter.php +++ b/log/error_handler/error_handler_dbwriter.php @@ -4,7 +4,7 @@ namespace SYSTEM\LOG; //Register this before every other handler, cuz this will need to handle every single error. //And only the first ErrorHandler will be called if he returns true in CALL. -abstract class error_handler_dbwriter extends \SYSTEM\LOG\error_handler { +class error_handler_dbwriter extends \SYSTEM\LOG\error_handler { public static function CALL(\Exception $E, $errno, $thrown){ try{ if(\SYSTEM\system::isSystemDbInfoPG()){ @@ -14,13 +14,13 @@ abstract class error_handler_dbwriter extends \SYSTEM\LOG\error_handler { 'VALUES ($1, $2, $3, $4, $5, $6, $7, $8);', array( get_class($E), $E->getMessage(), $E->getCode(), $E->getFile(), $E->getLine(), $E->getTraceAsString(), getenv('REMOTE_ADDR'),round(microtime(true) - \SYSTEM\time::getStartTime(),5))); - } else { + } else { $con = new \SYSTEM\DB\Connection(\SYSTEM\system::getSystemDBInfo()); $con->prepare( 'sysLogStmt', 'INSERT INTO system_log '. - '(class, message, code, file, line, trace, ip, querytime) '. - 'VALUES (?, ?, ?, ?, ?, ?, ?, ?);', + '(class, message, code, file, line, trace, ip, querytime, time) '. + 'VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);', array( get_class($E), $E->getMessage(), $E->getCode(), $E->getFile(), $E->getLine(), $E->getTraceAsString(), - getenv('REMOTE_ADDR'),round(microtime(true) - \SYSTEM\time::getStartTime(),5))); + getenv('REMOTE_ADDR'),round(microtime(true) - \SYSTEM\time::getStartTime(),5),microtime(true))); } } catch (\Exception $E){} //Error -> Ignore diff --git a/sai/modules/saimod_sys_locale/saimod_sys_locale.php b/sai/modules/saimod_sys_locale/saimod_sys_locale.php index 1fd7eda..65575e8 100644 --- a/sai/modules/saimod_sys_locale/saimod_sys_locale.php +++ b/sai/modules/saimod_sys_locale/saimod_sys_locale.php @@ -27,9 +27,9 @@ class saimod_sys_locale extends \SYSTEM\SAI\SaiModule { } while($r = $res->next()){ - $result .= ''.''.$r["id"].'
'.''.''.$r["category"].''; + $result .= ''.''.$r["id"].'
'.''.''.$r["category"].''; foreach ($languages as $columns){ - $result .= ''.$r[$columns].'
'.''; + $result .= ''.$r[$columns].'
'.''; } $result .= ''; @@ -41,7 +41,7 @@ class saimod_sys_locale extends \SYSTEM\SAI\SaiModule { return $result; } - public static function html_li_menu(){return '
  • Locale
  • ';} + public static function html_li_menu(){return '
  • DB Text
  • ';} public static function right_public(){return false;} public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\system::getSystemDBInfo(), \SYSTEM\SECURITY\RIGHTS::SYS_SAI);} diff --git a/sai/modules/saimod_sys_locale/saimod_sys_locale_submit.js b/sai/modules/saimod_sys_locale/saimod_sys_locale_submit.js index 091a9b6..af79fa8 100644 --- a/sai/modules/saimod_sys_locale/saimod_sys_locale_submit.js +++ b/sai/modules/saimod_sys_locale/saimod_sys_locale_submit.js @@ -1,3 +1,3 @@ function init__SYSTEM_SAI_saimod_sys_locale() { - alert("huhu"); + //alert("huhu"); } diff --git a/sai/modules/saimod_sys_log/saimod_sys_log.php b/sai/modules/saimod_sys_log/saimod_sys_log.php index a2a1c05..68edc3a 100644 --- a/sai/modules/saimod_sys_log/saimod_sys_log.php +++ b/sai/modules/saimod_sys_log/saimod_sys_log.php @@ -43,9 +43,12 @@ class saimod_sys_log extends \SYSTEM\SAI\SaiModule { $result = '
    '. ''.''.''.''.''.''.''.''.''.''; while($r = $res->next()){ - - - $result .= ''.''.''.''.''.''.''.''.''.''.''; + //TODO make time conversion on database + if(\SYSTEM\system::isSystemDbInfoPG()){ + $result .= ''.''.''.''.''.''.''.''.''.''.''; + } else { + $result .= ''.''.''.''.''.''.''.''.''.''.''; + } } $result .= '
    '.'time ago in sec'.''.'time'.''.'class'.''.'message'.''.'code'.''.'file'.''.'line'.''.'ip'.''.'querytime'.'
    '.(int)($now - strtotime($r['time'])).''.$r['time'].''.$r['class'].''.$r['message'].''.$r['code'].''.$r['file'].''.$r['line'].''.$r['ip'].''.$r['querytime'].'
    '.(int)($now - strtotime($r['time'])).''.$r['time'].''.$r['class'].''.$r['message'].''.$r['code'].''.$r['file'].''.$r['line'].''.$r['ip'].''.$r['querytime'].'
    '.(int)($now - $r['time']).''.$r['time'].''.$r['class'].''.$r['message'].''.$r['code'].''.$r['file'].''.$r['line'].''.$r['ip'].''.$r['querytime'].'
    '; diff --git a/sai/modules/saimod_sys_login/login.tpl b/sai/modules/saimod_sys_login/login.tpl index a16a0c5..e71f419 100644 --- a/sai/modules/saimod_sys_login/login.tpl +++ b/sai/modules/saimod_sys_login/login.tpl @@ -1,6 +1,7 @@ -Please login for developer access. -
    - +
    +

    Login / Register

    +

    Please login for developer access (if you are a developer).

    +
    @@ -29,4 +30,6 @@ Please login for developer access. type="submit" id="login_submit">${login}
    - \ No newline at end of file + +Register an Account
    +Can't really remember your Password? \ No newline at end of file diff --git a/sai/modules/saimod_sys_login/login.tpl.tpl b/sai/modules/saimod_sys_login/login.tpl.tpl deleted file mode 100644 index a16a0c5..0000000 --- a/sai/modules/saimod_sys_login/login.tpl.tpl +++ /dev/null @@ -1,32 +0,0 @@ -Please login for developer access. -
    - -
    -
    -
    - -
    -
    - -
    -
    - - -
    -
    \ No newline at end of file diff --git a/sai/modules/saimod_sys_login/logout.tpl b/sai/modules/saimod_sys_login/logout.tpl index eb0849a..a31c3fa 100644 --- a/sai/modules/saimod_sys_login/logout.tpl +++ b/sai/modules/saimod_sys_login/logout.tpl @@ -1,6 +1,7 @@ -You are logged in -
    - +
    +

    Logout

    +

    You are logged in

    +
    diff --git a/sai/modules/saimod_sys_mod/saimod_sys_mod.php b/sai/modules/saimod_sys_mod/saimod_sys_mod.php index 2b36459..6902cd7 100644 --- a/sai/modules/saimod_sys_mod/saimod_sys_mod.php +++ b/sai/modules/saimod_sys_mod/saimod_sys_mod.php @@ -24,7 +24,7 @@ class saimod_sys_mod extends \SYSTEM\SAI\SaiModule { return $result; } - public static function html_li_menu(){return '
  • Mods
  • ';} + public static function html_li_menu(){return '
  • SAI Mods
  • ';} public static function right_public(){return false;} public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\system::getSystemDBInfo(), \SYSTEM\SECURITY\RIGHTS::SYS_SAI);} diff --git a/sai/modules/saimod_sys_sai/carousel.tpl b/sai/modules/saimod_sys_sai/carousel.tpl index de51308..aeab5f2 100644 --- a/sai/modules/saimod_sys_sai/carousel.tpl +++ b/sai/modules/saimod_sys_sai/carousel.tpl @@ -1,6 +1,6 @@

    Design.Simple.Fast.Reliable.Innovative.

    -

    We write awesome code.

    +

    We write awesome code and we use Twitter Bootstrap.