Example #1
0
    function js_show_msg($a = 0)
    {
        $return = "{$GLOBALS['schedule_html']}";
        if ($GLOBALS['jsg_schedule_mark'] || jsg_getcookie('jsg_schedule')) {
            $return .= jsg_schedule();
        }
        if (($js_show_msg = $GLOBALS['js_show_msg'] ? $GLOBALS['js_show_msg'] : jsg_getcookie('js_show_msg')) && !$GLOBALS['js_show_msg_executed']) {
            $GLOBALS['js_show_msg_executed'] = 1;
            jsg_setcookie('js_show_msg', '', -311040000);
            unset($GLOBALS['js_show_msg'], $_COOKIE['js_show_msg']);
            $return .= "<script language='javascript'>\r\n            \t\$(document).ready(function(){show_message('{$js_show_msg}');});\r\n            </script>";
        }
        $return .= '<script type="text/javascript">
$(document).ready(function(){
		$("ul.imgList img, div.avatar img.lazyload").lazyload({
		skip_invisible : false,
		threshold : 200,
		effect : "fadeIn"
	});
});
</script>';
        if ($a) {
            $return = $js_show_msg;
        }
        return $return;
    }
Example #2
0
 function DoReg()
 {
     $this->_check_oauth2();
     $this->_hash_check();
     if (false != ($check_result = $this->_reg_check())) {
         $this->Messager($check_result, null);
     }
     $username = trim($this->Post['username']);
     $nickname = trim($this->Post['nickname']);
     $password = trim($this->Post['password']);
     $email = trim($this->Post['email']);
     $face = trim($this->Post['face']);
     $synface = $this->Post['synface'] ? 1 : 0;
     $uid = $ret = jsg_member_register($nickname, $password, $email);
     if ($ret < 1) {
         $this->Messager("注册失败{$ret}", null);
     }
     $rets = jsg_member_login($uid, $password, 'uid');
     if ($this->module_config['is_sync_face'] && $synface && $face) {
         jsg_schedule(array('uid' => $uid, 'face' => $face), 'syn_sina_face', $uid);
     }
     $bind_info = $this->Post['bind_info'];
     if ($bind_info) {
         $this->_bind($uid, $bind_info);
     }
     if ($this->module_config['reg_pwd_display']) {
         $this->Messager("您的帐户 <strong>{$rets['nickname']}</strong> 已经注册成功,请牢记您的密码 <strong>{$password}</strong>,现在为您转入到首页{$rets['uc_syn_html']}", $this->Config['site_url'], 15);
     } else {
         $this->Messager("注册成功,现在为您转入到首页{$rets['uc_syn_html']}", $this->Config['site_url'], 10);
     }
 }
Example #3
0
?>
 <?php 
if ($checkUser) {
    ?>
 <span style='display:none;'><img src='<?php 
    echo $GLOBALS['_J']['config']['site_url'];
    ?>
/ajax.php?mod=misc&code=checkuser' border='0' width='0' height='0' /></span> <?php 
}
?>
 <?php 
echo $GLOBALS['schedule_html'];
?>
 <?php 
if ($GLOBALS['jsg_schedule_mark'] || jsg_getcookie('jsg_schedule')) {
    echo jsg_schedule();
}
?>
 <div id="ajax_output_area"></div> <?php 
$_web_info = jconf::get('web_info');
?>
 <?php 
if ($_web_info['float_align'] && $_web_info['float_align'] != 'none') {
    ?>
 <?php 
    if ($_web_info['float_style'] == 'mini') {
        ?>
 <?php 
        $fs_mini = '';
        $fs_normal = 'display:none;';
        ?>
Example #4
0
 function _syn_to_renren($data = array())
 {
     if ($GLOBALS['_J']['config']['renren_enable'] && $data['uid'] > 0 && $data['tid'] > 0 && 'renren' != $data['from'] && renren_init() && renren_bind($data['uid']) && !$GLOBALS['imjiqiren_sys_config']['imjiqiren']['renren_update_disable']) {
         $renren_config = jconf::get('renren');
         if ($data['totid'] > 0 && $renren_config['is_sync_topic'] || $data['totid'] < 1 && $renren_config['is_sync_topic'] && jget('syn_to_renren')) {
             if (TRUE === IN_JISHIGOU_INDEX || TRUE === IN_JISHIGOU_AJAX || TRUE === IN_JISHIGOU_ADMIN) {
                 $result = jsg_schedule($data, 'syn_to_renren');
             } else {
                 renren_sync($data);
             }
         }
     }
 }
Example #5
0
 function DoReg()
 {
     $this->_hash_check();
     if (false != ($check_result = $this->_reg_check())) {
         $this->Messager($check_result, null);
     }
     $nickname = trim($this->Post['nickname']);
     $password = trim($this->Post['password']);
     $email = trim($this->Post['email']);
     $face = trim($this->Post['face']);
     $synface = $this->Post['synface'] ? 1 : 0;
     $uid = $ret = jsg_member_register($nickname, $password, $email);
     if ($ret < 1) {
         $this->Messager("注册失败{$ret}", null);
     }
     $this->_bind($uid);
     $rets = jsg_member_login($uid, $password, 'uid');
     if ($this->QQWBConfig['is_sync_face'] && $synface && $face) {
         jsg_schedule(array('uid' => $uid, 'face' => $face), 'syn_qqwb_face', $uid);
     }
     if ($this->QQWBConfig['reg_pwd_display']) {
         $this->Messager("您的帐户 <strong>{$rets['nickname']}</strong> 已经注册成功,请牢记您的密码 <strong>{$password}</strong> {$rets['uc_syn_html']}", $this->redirect_to, 15);
     } else {
         $this->Messager("注册成功{$rets['uc_syn_html']}", $this->redirect_to, 10);
     }
 }