From a343e449735e9eab0a7c1941be58df6fc5999b85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Mon, 28 Nov 2022 11:33:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/templets/index.htm | 4 ++-- src/apps/feedback.php | 2 +- src/static/web/img/{avatar.png => admin.png} | Bin src/system/common.func.php | 2 +- src/system/taglib/feedback.lib.php | 2 +- src/user/config.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename src/static/web/img/{avatar.png => admin.png} (100%) diff --git a/src/admin/templets/index.htm b/src/admin/templets/index.htm index a24dc58a..ac68abc5 100644 --- a/src/admin/templets/index.htm +++ b/src/admin/templets/index.htm @@ -50,8 +50,8 @@
diff --git a/src/apps/feedback.php b/src/apps/feedback.php index fa585110..beaa7ea9 100755 --- a/src/apps/feedback.php +++ b/src/apps/feedback.php @@ -65,7 +65,7 @@ if ($action == '' || $action == 'show') { $dsql->Execute('fb', $querystring." LIMIT 20 "); $data = array(); while ($row = $dsql->GetArray('fb')) { - $row['face'] = empty($row['mface']) ? $GLOBALS['cfg_cmspath'].'/static/web/img/avatar.png' : $row['mface']; + $row['face'] = empty($row['mface']) ? $GLOBALS['cfg_cmspath'].'/static/web/img/admin.png' : $row['mface']; $row['dtimestr'] = MyDate('Y-m-d', $row['dtime']); unset($row['ip']); $data[] = $row; diff --git a/src/static/web/img/avatar.png b/src/static/web/img/admin.png similarity index 100% rename from src/static/web/img/avatar.png rename to src/static/web/img/admin.png diff --git a/src/system/common.func.php b/src/system/common.func.php index c50a6f07..0c66a199 100755 --- a/src/system/common.func.php +++ b/src/system/common.func.php @@ -436,7 +436,7 @@ function face($mid) if ($mid <> 0) { $row = $dsql->GetOne("SELECT * FROM `#@__member` WHERE mid='$mid'"); if ($row['face'] == "") { - $face = "/static/web/img/avatar.png"; + $face = "/static/web/img/admin.png"; } else { $face = $row['face']; $face = "$face"; diff --git a/src/system/taglib/feedback.lib.php b/src/system/taglib/feedback.lib.php index c6ade116..eb262678 100755 --- a/src/system/taglib/feedback.lib.php +++ b/src/system/taglib/feedback.lib.php @@ -45,7 +45,7 @@ function lib_feedback(&$ctag, &$refObj) $ctp->LoadSource($innertext); $dsql->Execute('fb', $equery); while ($arr = $dsql->GetArray('fb')) { - $arr['face'] = empty($arr['mface']) ? $GLOBALS['cfg_cmspath'].'/static/web/img/avatar.png' : $arr['mface']; + $arr['face'] = empty($arr['mface']) ? $GLOBALS['cfg_cmspath'].'/static/web/img/admin.png' : $arr['mface']; $arr['title'] = cn_substr($arr['arctitle'], $titlelen); $arr['msg'] = jsTrim(Html2Text($arr['msg']), $infolen); foreach ($ctp->CTags as $tagid => $ctag) { diff --git a/src/user/config.php b/src/user/config.php index 2adffa17..3642d541 100755 --- a/src/user/config.php +++ b/src/user/config.php @@ -149,7 +149,7 @@ if ($cfg_ml->IsLogin()) { $myurl = $cfg_memberurl."/index.php?uid=".urlencode($cfg_ml->M_LoginID); if (!preg_match("#^http[s]?:#i", $myurl)) $myurl = $cfg_basehost.$myurl; if ($cfg_ml->fields['face'] == "") { - $cfg_ml->fields['face'] = $cfg_cmsurl."../static/web/img/avatar.png"; + $cfg_ml->fields['face'] = $cfg_cmsurl."../static/web/img/admin.png"; } PmRead(); }