<?php

$power_text = '<div id="city"><a class="home_sc" href="sethomepage.php" onclick="try{this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\''.trim($web['sitehttp'], '/').$_SERVER['REQUEST_URI'].'\');return(false);}catch(e){}" title="设为首页">设为首页</a> | <a class="home_sc" href="#" onclick="addFavor();return false;">收藏本页</a></div>';
$power_text .= '<span id="session_online" class="session_online">';
if (POWER >= 1) {
  $power_text .= '<b>'.$session[0].'</b> '.$userface.' | <a href="member.php?get=messbox">短信箱(<span id="new_mess" title="最新来信">0</span>)</a> | <a href="member.php">用户中心</a> | <a href="member.php?post=login&act=logout&m=1" onclick="return logoutM(this);">退出</a> | <span id="fw">您上次登陆是'.$session[1].'</span>';
} else {
  if (POWER == 0.5) {
    $power_text .= '<img src="inc/images/'.$session[6].'.png" width="16" height="16" /><b>'.$session[0].'</b> | <a href="member.php">用户中心</a> | <a href="member.php?post=login&act=logout&m=1" onclick="return logoutM(this);">退出</a>'; // | <span id="fw">您上次登陆是'.$session[1].'</span>
  } else {
    $power_text .= '<span id="session_in" class="session_in">';
    if (is_array($web['login_key']) && count($web['login_key']) > 0) {
      $power_text .= '<span id="login_keys" class="login_key">';
      foreach ($web['login_key'] as $lv) {
        $power_text .= '<a href="javascript:void(0);" onclick="toQzoneLogin(\''.$lv.'\');return false;" title="用'.@file_get_contents('login_key/'.$lv.'/title.txt').'帐号登录"><img src="inc/images/'.$lv.'.png" width="16" height="16" /></a> ';
      }
      $power_text .= '</span>';
    }
    $power_text .= '<a href="login.php" onmouseover="showLogin(this, \'session_in\');">登陆您的帐号</a> | <a href="reg.php">免费注册帐号</a>';
    $power_text .= '</span>';
  }
}
$power_text .= '</span>';
echo $power_text;
unset($power_text);
?>