// This file is part of Rogō // // Rogō is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Rogō is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Rogō. If not, see <http://www.gnu.org/licenses/>. /** * * @author Simon Wilkinson * @version 1.0 * @copyright Copyright (c) 2014 The University of Nottingham * @package */ require '../include/staff_auth.inc'; require_once '../include/errors.inc'; require_once '../classes/paperproperties.class.php'; require_once '../classes/raf.class.php'; $paperID = check_var('paperID', 'GET', true, false, true); $properties = PaperProperties::get_paper_properties_by_id($paperID, $mysqli, $string); $questions = $properties->get_questions(); $rafObject = new RAF($userObject, $configObject, $mysqli, $string); $rafObject->export($questions);
* @package */ require '../include/staff_auth.inc'; require_once '../include/errors.inc'; require_once '../include/media.inc'; require_once '../classes/paperproperties.class.php'; require_once '../classes/paperutils.class.php'; require_once '../classes/questionutils.class.php'; require_once '../classes/raf.class.php'; require_once '../classes/logger.class.php'; $paperID = check_var('paperID', 'GET', true, false, true); // Get some paper properties $propertyObj = PaperProperties::get_paper_properties_by_id($paperID, $mysqli, $string); $paper = $propertyObj->get_paper_title(); if (isset($_POST['submit'])) { $rafObject = new RAF($userObject, $configObject, $mysqli, $string); $rafObject->import($paperID); $mysqli->close(); header("location: ../paper/details.php?paperID={$paperID}"); } else { ?> <!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="content-type" content="text/html;charset=<?php echo $configObject->get('cfg_page_charset'); ?> " /> <title>Rogō: <?php
<?php if (!defined('init_pages')) { header('HTTP/1.0 404 not found'); exit; } $CORE->loggedInOrReturn(); //load the characters module $CORE->load_CoreModule('raf'); //setup the raf class $raf = new RAF(); //Set the title $TPL->SetTitle('Recruit a Friend'); //CSS $TPL->AddCSS('template/style/page-recruit-a-friend.css'); //Print the header $TPL->LoadHeader(); ?> <div class="content_holder"> <div class="sub-page-title"> <div id="title"><h1>Account Panel<p></p><span></span></h1></div> <style> .quick-menu:hover .dropdown-qmenu {height:212px !important;}</style> <div class="quick-menu"> <a class="arrow" href="#"></a> <ul class="dropdown-qmenu"> <li><a href="<?php echo $config['BaseURL']; ?> /index.php?page=store">Store</a></li> <li><a href="<?php
<?php if (!defined('init_executes')) { header('HTTP/1.0 404 not found'); exit; } //setup new instance of multiple errors $ERRORS->NewInstance('register'); //load the register module $CORE->load_CoreModule('accounts.register'); $CORE->load_CoreModule('raf'); $CORE->load_CoreModule('email.reservation'); $CORE->load_CoreModule('text.captcha'); $raf = new RAF(); $captcha = new TextCaptcha(); //Define the variables $username = isset($_POST['username']) ? $_POST['username'] : false; $displayName = isset($_POST['displayname']) ? $_POST['displayname'] : false; $password = isset($_POST['password']) ? $_POST['password'] : false; $password2 = isset($_POST['password2']) ? $_POST['password2'] : false; $email = isset($_POST['email']) ? $_POST['email'] : false; $birthdayMonth = isset($_POST['birthday']['month']) ? $_POST['birthday']['month'] : false; $birthdayDay = isset($_POST['birthday']['day']) ? $_POST['birthday']['day'] : false; $birthdayYear = isset($_POST['birthday']['year']) ? $_POST['birthday']['year'] : false; $country = isset($_POST['country']) ? $_POST['country'] : false; $secretQuestion = isset($_POST['secretQuestion']) ? (int) $_POST['secretQuestion'] : false; $secretAnswer = isset($_POST['secretAnswer']) ? $_POST['secretAnswer'] : false; $rafHash = isset($_POST['raf']) ? $_POST['raf'] : false; //missing inputs check ###################################### ######## USERNAME CHECK ##############
<?php if (!defined('init_pages')) { header('HTTP/1.0 404 not found'); exit; } $CORE->loggedInOrReturn(); $CORE->load_CoreModule('raf'); $raf = new RAF(); //Set the title $TPL->SetTitle('Account Panel'); //Print the header $TPL->LoadHeader(); ?> <div class="content_holder"> <div class="sub-page-title"> <div id="title"> <h1>Account Panel<p></p><span></span></h1> </div> <?php if (isset($realms_config) && count($realms_config) > 1) { echo ' <div style="float: right; margin-top: 22px; margin-right: 10px;"> <form action="execute.php?take=set_realm" method="post"> <select name="realm" styled="true" onchange="this.form.submit()"> <option value="0">Select operating realm</option>'; foreach ($realms_config as $id => $realm) { echo '<option value="', $id, '">', $realm['name'], '</option>'; } unset($id, $realm);