logging.js 579 B

12345678910111213141516171819202122232425
  1. /*
  2. [Discuz!] (C)2001-2099 Comsenz Inc.
  3. This is NOT a freeware, use is subject to license terms
  4. $Id: logging.js 23838 2011-08-11 06:51:58Z monkey $
  5. */
  6. function lsSubmit(op) {
  7. var op = !op ? 0 : op;
  8. if(op) {
  9. $('lsform').cookietime.value = 2592000;
  10. }
  11. if($('ls_username').value == '' || $('ls_password').value == '') {
  12. showWindow('login', 'member.php?mod=logging&action=login' + (op ? '&cookietime=1' : ''));
  13. } else {
  14. ajaxpost('lsform', 'return_ls', 'return_ls');
  15. }
  16. return false;
  17. }
  18. function errorhandle_ls(str, param) {
  19. if(!param['type']) {
  20. showError(str);
  21. }
  22. }