Skip to content

Commit

Permalink
Update phpfm.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Dec 29, 2017
1 parent 9b82c7a commit 2347cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/web/admin/phpfm.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@
// +--------------------------------------------------
// | Header and Globals
// +--------------------------------------------------
@session_start();
require_once("../include/db_info.inc.php");
if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator'])
||isset($_SESSION[$OJ_NAME.'_'.'problem_editor'])
)){
echo $_SESSION[$OJ_NAME.'_'.'administrator'];
echo "<a href='../loginpage.php'>Please Login First!</a>";
exit(1);
}
require_once("../include/db_info.inc.php");

$charset = "UTF-8";
//@setlocale(LC_CTYPE, 'C');
header("Pragma: no-cache");
Expand Down

0 comments on commit 2347cfc

Please sign in to comment.