Browse Source

管理员头像调整

tags/6.2.0
叙述、别离 1 year ago
parent
commit
a343e44973
6 changed files with 6 additions and 6 deletions
  1. +2
    -2
      src/admin/templets/index.htm
  2. +1
    -1
      src/apps/feedback.php
  3. +0
    -0
      src/static/web/img/admin.png
  4. +1
    -1
      src/system/common.func.php
  5. +1
    -1
      src/system/taglib/feedback.lib.php
  6. +1
    -1
      src/user/config.php

+ 2
- 2
src/admin/templets/index.htm View File

@@ -50,8 +50,8 @@
</div>
<div class="top-admin">
<ul class="mb-0">
<li><a href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="../static/web/img/avatar.png" title="<?php echo $cuserLogin->getUserName();?>"><?php echo $cuserLogin->getUserName();?><?php if ($cuserLogin->getUserType()==10){echo "管理员";} else if ($cuserLogin->getUserType()==5) {echo "栏目员";} else {echo "文档员";}?></a></li>
<li><a href="exit.php" title="退出系统">退了</a></li>
<li><a href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="../static/web/img/admin.png" title="<?php echo $cuserLogin->getUserName();?>"><?php echo $cuserLogin->getUserName();?><?php if ($cuserLogin->getUserType()==10){echo "管理员";} else if ($cuserLogin->getUserType()==5) {echo "栏目员";} else {echo "文档员";}?></a></li>
<li><a href="exit.php">退了</a></li>
</ul>
</div>
</div>


+ 1
- 1
src/apps/feedback.php View File

@@ -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;


src/static/web/img/avatar.png → src/static/web/img/admin.png View File


+ 1
- 1
src/system/common.func.php View File

@@ -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";


+ 1
- 1
src/system/taglib/feedback.lib.php View File

@@ -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) {


+ 1
- 1
src/user/config.php View File

@@ -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();
}


Loading…
Cancel
Save