diff --git a/cache/cache_js.php b/cache/cache_js.php
index 240c0c7..8b87cb4 100644
--- a/cache/cache_js.php
+++ b/cache/cache_js.php
@@ -47,7 +47,7 @@ class cache_js {
public static function ident($files){
$ident = '';
foreach($files as $f){
- $ident .= $f->SERVERPATH().';';}
+ $ident .= $f->SERVERPATH().';'.filemtime($f->SERVERPATH()).';';}
return sha1($ident);
}
diff --git a/lib/system/lib/system.css b/lib/system/lib/system.css
index 59d53c2..60f40c1 100644
--- a/lib/system/lib/system.css
+++ b/lib/system/lib/system.css
@@ -7,18 +7,13 @@ table.sai_table tr:nth-child(odd) {
table.sai_table tr:hover {
background-color: #FFEFD5;
}
-table.sai_table {
- word-break: break-all;
-}
a.active{
background-color: #e7e7e7;
}
#menu_start {
- height: 50px;
font-size: 20px;
- padding-top: 12px;
padding-left: 15px;
padding-right: 15px;
display: block;
diff --git a/log/error_handler/error_handler_dbwriter.php b/log/error_handler/error_handler_dbwriter.php
index 41c6ceb..3804ecb 100644
--- a/log/error_handler/error_handler_dbwriter.php
+++ b/log/error_handler/error_handler_dbwriter.php
@@ -33,10 +33,35 @@ class error_handler_dbwriter implements \SYSTEM\LOG\error_handler {
array_key_exists('HTTP_USER_AGENT',$_SERVER) ? $_SERVER['HTTP_USER_AGENT'] : null,
($user = \SYSTEM\SECURITY\security::getUser()) ? $user->id : null,$thrown ? 1 : 0));
if(!\property_exists(get_class($E), 'do_not_todo_log')){
- \SYSTEM\SAI\saimod_sys_todo::exception($E,false);}
+ self::todo_exception($E,false);}
} catch (\Exception $E){
return false;} //Error -> Ignore
return false; //We just log and do not handle the error!
- }
+ }
+
+ /**
+ * Save a Exception as ToDo in the Database
+ * This is used as Errorhandler in some form.
+ *
+ * @param \Exception $E Exception to be saved
+ * @param bool $thrown Was the Exception thrown?
+ * @param int $type Type of the Todo(Exception)
+ * @return bool Returns false
+ */
+ public static function todo_exception(\Exception $E, $thrown, $type = \SYSTEM\SQL\system_todo::FIELD_TYPE_EXCEPTION){
+ try{
+ if(\property_exists(get_class($E), 'todo_logged') && $E->todo_logged){
+ return false;} //alrdy logged(this prevents proper thrown value for every system exception)
+ \SYSTEM\SQL\SYS_LOG_TODO_INSERT::Q1(array( get_class($E), $E->getMessage(), $E->getCode(), $E->getFile(), $E->getLine(), $E->getTraceAsString(),
+ getenv('REMOTE_ADDR'),round(microtime(true) - \SYSTEM\time::getStartTime(),5),date('Y-m-d H:i:s', microtime(true)),
+ $_SERVER["SERVER_NAME"],$_SERVER["SERVER_PORT"],$_SERVER['REQUEST_URI'], serialize($_POST),
+ array_key_exists('HTTP_REFERER', $_SERVER) ? $_SERVER['HTTP_REFERER'] : null,
+ array_key_exists('HTTP_USER_AGENT',$_SERVER) ? $_SERVER['HTTP_USER_AGENT'] : null,
+ ($user = \SYSTEM\SECURITY\security::getUser()) ? $user->id : null,$thrown ? 1 : 0,$E->getMessage(),$type));
+ if(\property_exists(get_class($E), 'logged')){
+ $E->todo_logged = true;} //we just did log
+ } catch (\Exception $E){return false;} //Error -> Ignore
+ return false; //We just log and do not handle the error!
+ }
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_todo/qq/SYS_SAIMOD_TODO_EXCEPTION_INSERT.php b/log/qq/SYS_LOG_TODO_INSERT.php
similarity index 98%
rename from sai/modules/saimod_sys_todo/qq/SYS_SAIMOD_TODO_EXCEPTION_INSERT.php
rename to log/qq/SYS_LOG_TODO_INSERT.php
index 569a28d..7e5544b 100644
--- a/sai/modules/saimod_sys_todo/qq/SYS_SAIMOD_TODO_EXCEPTION_INSERT.php
+++ b/log/qq/SYS_LOG_TODO_INSERT.php
@@ -14,7 +14,7 @@ namespace SYSTEM\SQL;
/**
* QQ to log a execption to system_todo
*/
-class SYS_SAIMOD_TODO_EXCEPTION_INSERT extends \SYSTEM\DB\QP {
+class SYS_LOG_TODO_INSERT extends \SYSTEM\DB\QP {
/**
* Get Classname of the QQ
*
diff --git a/sai/modules/autoload.inc b/sai/modules/autoload.inc
index 0f10e62..9f7db1b 100644
--- a/sai/modules/autoload.inc
+++ b/sai/modules/autoload.inc
@@ -4,15 +4,15 @@ SYSTEM\autoload::registerFolder(dirname(__FILE__),'SYSTEM\SAI');
require_once dirname(__FILE__).'/saistart_sys_sai/autoload.inc';
//System Mod
require_once dirname(__FILE__).'/saimod_sys_log/autoload.inc';
-require_once dirname(__FILE__).'/saimod_sys_security/autoload.inc';
-require_once dirname(__FILE__).'/saimod_sys_mod/autoload.inc';
+//require_once dirname(__FILE__).'/saimod_sys_security/autoload.inc';
+//require_once dirname(__FILE__).'/saimod_sys_mod/autoload.inc';
require_once dirname(__FILE__).'/saimod_sys_config/autoload.inc';
-require_once dirname(__FILE__).'/saimod_sys_api/autoload.inc';
-require_once dirname(__FILE__).'/saimod_sys_page/autoload.inc';
-require_once dirname(__FILE__).'/saimod_sys_text/autoload.inc';
-require_once dirname(__FILE__).'/saimod_sys_files/autoload.inc';
-require_once dirname(__FILE__).'/saimod_sys_cache/autoload.inc';
-require_once dirname(__FILE__).'/saimod_sys_cron/autoload.inc';
+//require_once dirname(__FILE__).'/saimod_sys_api/autoload.inc';
+//require_once dirname(__FILE__).'/saimod_sys_page/autoload.inc';
+//require_once dirname(__FILE__).'/saimod_sys_text/autoload.inc';
+//require_once dirname(__FILE__).'/saimod_sys_files/autoload.inc';
+//require_once dirname(__FILE__).'/saimod_sys_cache/autoload.inc';
+//require_once dirname(__FILE__).'/saimod_sys_cron/autoload.inc';
require_once dirname(__FILE__).'/saimod_sys_todo/autoload.inc';
require_once dirname(__FILE__).'/saimod_sys_git/autoload.inc';
require_once dirname(__FILE__).'/saimod_sys_docu/autoload.inc';
diff --git a/sai/modules/saimod_sys_api/tpl/menu.tpl b/sai/modules/saimod_sys_api/tpl/menu.tpl
index 9f500e8..1b3dc7e 100644
--- a/sai/modules/saimod_sys_api/tpl/menu.tpl
+++ b/sai/modules/saimod_sys_api/tpl/menu.tpl
@@ -1,6 +1,6 @@
-