* @copyright Australian Consortium for Social and Political Research Incorporated (ACSPRI) 2013 * @package queXS * @subpackage user * @link http://www.acspri.org.au/ queXS was writen for ACSPRI * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) Version 2 * */ /** * Configuration file */ include_once(dirname(__FILE__) . "/../config.inc.php"); /** * Database file */ include_once(dirname(__FILE__) . "/../db.inc.php"); if ((defined('PHP_SESSION_ACTIVE') && session_status() !== PHP_SESSION_ACTIVE) || !session_id()) { session_name(LS_SESSION_NAME); session_set_cookie_params(0,QUEXS_PATH); session_start(); } //check if the session exists or loginID not set if (session_id() == "" || !isset($_SESSION['loginID'])) { //need to log in header('Location: ../include/limesurvey/admin/admin.php'); die(); } if ($_SESSION['USER_RIGHT_SUPERADMIN'] != 1) { include_once(dirname(__FILE__) . "/../lang.inc.php"); include_once(dirname(__FILE__) . "/../functions/functions.xhtml.php"); xhtml_head(); print "

" . T_("You do not have permission to access this area") . "

"; print "

" . T_("Logout") . "

"; xhtml_foot(); die(); }