From 24dd7ad81c14bf243940901cae8d117ab4e90012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=83=A1?= <3203164629@qq.com> Date: Mon, 22 Apr 2024 20:40:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BD=93=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E7=AB=99=E7=82=B9=E6=97=B6=EF=BC=8C=E6=97=A0=E6=B3=95=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=AB=99=E7=82=B9logo=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/login/login.php | 10 +++++-- core/function/function_mail.php | 10 +++++-- core/template/default/common/adminlogin.htm | 2 +- core/template/default/common/header_left.htm | 2 +- core/template/default/common/header_right.htm | 30 +++++++++---------- core/template/default/common/showmessage.htm | 2 +- dzz/index/template/header_left.htm | 2 +- dzz/shares/template/header_left.htm | 2 +- dzz/system/notification.php | 6 +++- user/login/logging/lostpasswd.php | 6 +++- user/login/template/getpasswd.htm | 2 +- user/login/template/getpasswd2.htm | 2 +- user/login/template/getpasswd3.htm | 2 +- user/login/template/login_single1.htm | 2 +- user/login/template/login_single2.htm | 2 +- user/login/template/login_single3.htm | 2 +- user/login/template/login_single4.htm | 3 +- user/login/template/lostpasswd.htm | 2 +- user/login/template/lostpasswd2.htm | 2 +- user/login/template/lostpasswd3.htm | 2 +- user/register/template/register2.htm | 2 +- user/register/template/register3.htm | 2 +- user/register/template/register_brand.htm | 2 +- user/space/about.php | 10 ++++++- 24 files changed, 67 insertions(+), 42 deletions(-) diff --git a/admin/login/login.php b/admin/login/login.php index 34bea01..103175c 100644 --- a/admin/login/login.php +++ b/admin/login/login.php @@ -73,9 +73,13 @@ function html_login_form() {
' : '
' . $_G['member']['username'] . '
' . $_G['member']['email'] . '
'; $sid = getglobal('sid'); $avatarstatus=getglobal('avatarstatus','member'); - if(!$uid ){ - $sitelogo=$_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'static/image/common/logo.png'; - $avastar=''; + if(!$uid){ + if(!$_G['setting']['bbclosed']){ + $sitelogo=$_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'static/image/common/logo.png'; + }else{ + $sitelogo = 'static/image/common/logo.png'; + } + $avastar=''; }else{ $avastar = avatar_block($uid); } diff --git a/core/function/function_mail.php b/core/function/function_mail.php index 5747dfa..a0f2555 100644 --- a/core/function/function_mail.php +++ b/core/function/function_mail.php @@ -23,9 +23,13 @@ function sendmail($toemail, $subject, $message, $from = '') { } } $sitename=$_G['setting']['sitename']; - $sitecopyright=replacesitevar($_G['setting']['sitecopyright']); - $sitelogo=IO::getFileUri('attach::'.$_G['setting']['sitelogo']); - $message = << diff --git a/core/template/default/common/adminlogin.htm b/core/template/default/common/adminlogin.htm index edb090c..626ee0c 100644 --- a/core/template/default/common/adminlogin.htm +++ b/core/template/default/common/adminlogin.htm @@ -116,7 +116,7 @@

-

logo

+

logo

$_G[setting][loginset][subtitle]

$_G[setting][metadescription]

diff --git a/core/template/default/common/header_left.htm b/core/template/default/common/header_left.htm index ca4d47c..02ecd0f 100644 --- a/core/template/default/common/header_left.htm +++ b/core/template/default/common/header_left.htm @@ -1,4 +1,4 @@ - + $_G['setting']['sitename'] \ No newline at end of file diff --git a/core/template/default/common/header_right.htm b/core/template/default/common/header_right.htm index 0572ac3..b235850 100644 --- a/core/template/default/common/header_right.htm +++ b/core/template/default/common/header_right.htm @@ -111,18 +111,20 @@ - + + + + -
  • @@ -131,20 +133,18 @@
  • + - - - + + {lang register} + + + - + {lang about} + + + \ No newline at end of file diff --git a/core/template/default/common/showmessage.htm b/core/template/default/common/showmessage.htm index 6b931ae..76806d1 100644 --- a/core/template/default/common/showmessage.htm +++ b/core/template/default/common/showmessage.htm @@ -42,7 +42,7 @@
    - +

    $show_message

    diff --git a/dzz/index/template/header_left.htm b/dzz/index/template/header_left.htm index 6a49e12..cd5954c 100644 --- a/dzz/index/template/header_left.htm +++ b/dzz/index/template/header_left.htm @@ -1,4 +1,4 @@ - + $_G['setting']['sitename'] \ No newline at end of file diff --git a/dzz/shares/template/header_left.htm b/dzz/shares/template/header_left.htm index 99b76d0..15bb16f 100644 --- a/dzz/shares/template/header_left.htm +++ b/dzz/shares/template/header_left.htm @@ -1,3 +1,3 @@ - + {$share[username]}{lang de}{lang file_share} \ No newline at end of file diff --git a/dzz/system/notification.php b/dzz/system/notification.php index 6caaf6b..e7a6fbd 100644 --- a/dzz/system/notification.php +++ b/dzz/system/notification.php @@ -45,7 +45,11 @@ if($filter=='new'){//列出所有新通知 foreach(DB::fetch_all("select distinct(from_id) from %t where uid = %d",array('notification',$_G['uid'])) as $v){ $searchappid[] = $v['from_id']; } - $sitelogo=$_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'static/image/common/logo.png'; + if(!$_G['setting']['bbclosed']){ + $sitelogo=$_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'static/image/common/logo.png'; + }else{ + $sitelogo = 'static/image/common/logo.png'; + } $searchcats = array(); if(in_array(0,$searchappid)){ $systemindex = array_search(0,$searchappid); diff --git a/user/login/logging/lostpasswd.php b/user/login/logging/lostpasswd.php index 67ce486..22241c0 100644 --- a/user/login/logging/lostpasswd.php +++ b/user/login/logging/lostpasswd.php @@ -34,7 +34,11 @@ elseif(isset($_GET['lostpwsubmit'])) { $idstring = random(6); $sitename=$_G['setting']['sitename']; - $sitelogo=IO::getFileUri('attach::'.$_G['setting']['sitelogo']); + if(!$_G['setting']['bbclosed']){ + $sitelogo=$_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'static/image/common/logo.png'; + }else{ + $sitelogo = 'static/image/common/logo.png'; + } C::t('user')->update($member['uid'], array('authstr' => "$_G[timestamp]\t1\t$idstring")); //require_once libfile('function/mail'); $get_passwd_message = <<
    - light year admin + light year admin

    {lang getpassword}

    diff --git a/user/login/template/getpasswd2.htm b/user/login/template/getpasswd2.htm index 7b27340..037a317 100644 --- a/user/login/template/getpasswd2.htm +++ b/user/login/template/getpasswd2.htm @@ -39,7 +39,7 @@
    - light year admin + light year admin

    {lang getpassword}