diff --git a/sai/modules/saimod_sys_error/saimod_sys_error.php b/sai/modules/saimod_sys_error/saimod_sys_error.php index c4ebfa3..f92d039 100644 --- a/sai/modules/saimod_sys_error/saimod_sys_error.php +++ b/sai/modules/saimod_sys_error/saimod_sys_error.php @@ -10,7 +10,7 @@ class saimod_sys_error extends \SYSTEM\SAI\SaiModule { $now = microtime(true); - $result = ''. + $result = '
'. ''.''.''.''.''.''.''.''.''.''; while($r = $res->next()){ $result .= ''.''.''.''.''.''.''.''.''.''; diff --git a/sai/modules/saimod_sys_login/login.js b/sai/modules/saimod_sys_login/login.js new file mode 100644 index 0000000..83268d0 --- /dev/null +++ b/sai/modules/saimod_sys_login/login.js @@ -0,0 +1,21 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + + + +/* jQuery on document ready */ +$(document).ready(function() { + + $("#submitButton").click(function(){ + $.get('./api.php?call=account&action=login&username='+$('#username').val()+'&password_sha='+$.sha1($('#password').val())+'&password_md5='+hex_md5($('#password').val()), function (data) { + if(data === 1){ + $("#loginStatusMsg").html('Login successful!!'); + } else { + $("#loginStatusMsg").html('Wrong username or password!'); + } + }); + }); + +}); diff --git a/sai/modules/saimod_sys_login/login.tpl b/sai/modules/saimod_sys_login/login.tpl index 806f1a2..14f29cf 100644 --- a/sai/modules/saimod_sys_login/login.tpl +++ b/sai/modules/saimod_sys_login/login.tpl @@ -1,18 +1,22 @@ Please login for developer access.
-${message} + + + - -
- Login - - - +
+ Login + - - + + - -
- \ No newline at end of file + + +
+ +
+ + + \ No newline at end of file
'.'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'].'