浏览代码

fixed undefined variable index error popping up when nobody is logged in

pull/16/head
mauirixxx 7 年前
父节点
当前提交
ab2f1169dc
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      footer.php

+ 3
- 1
footer.php 查看文件

@@ -1,7 +1,9 @@
</center>
<?php
echo '<hr>';
echo '<center>| Preferred game account: <b>' . $_SESSION['prefaccname'] . '</b> | Preferred character: <b>' . $_SESSION['prefcharname'] . '</b> |</center><br />';
if (isset($_SESSION['prefaccname']) && ($_SESSION['prefcharname'])) {
echo '<center>| Currently selected game account: <b>' . $_SESSION['prefaccname'] . '</b> | Current character: <b>' . $_SESSION['prefcharname'] . '</b> |</center><br />';
}
// the footer just adds a logout button at the bottom of every page for the currently logged in user
if (isset($_SESSION['userid']) && ($_SESSION['username'])) {
echo '<center><br /><br /><form method="post" action="logout.php"><input type="hidden" name="action" value="logout" ><input type="submit" value="Logout"></form></center>';


正在加载...
取消
保存