<?php

################################################
# EVILCMS FLATFILE RECODE - 100% FUNCTIONALITY #
################################################

Session_Start();

If($CMS->LoggedIn):
	If($_USER['rank'] == "admin") {
		Echo "<center><h3>Housekeeping</h3></center>";
		Echo "Welcome to the Housekeeping, here you can administrate the hotel, modify users and such.<br />";
		Echo "<b>Abuse of Housekeeping will result in 20 infraction points.</b><br />";
		Echo "<span style=\"color: gray;\">________________________- TOOLS -__________________________</span><br />";
		Echo "<a href=\"?p=edituser\">Edit a user</a> - <a href=\"?p=bancontrol\">(Un)Ban a User</a><br />";
		Echo "<a href=\"?p=editarticles\">Edit news articles</a> - <a href=\"?p=articlehelp\">README: Our Unique Article System</a><br />";
		Echo "<a href=\"?p=addvouchers\">Add vouchers</a><br />";		If(file_exists("DCR/Control.php")) {
			Echo "<a href=\"".$CMS->DCR['BASE']."/Control.php\">Setup DCRs</a><br />";
		}
	}else{
		Echo "You dont have sufficient rights.";
	}
Else:
	Echo "Please login first.";
EndIf;

?>