本文整理汇总了PHP中getModuleName函数的典型用法代码示例。如果您正苦于以下问题:PHP getModuleName函数的具体用法?PHP getModuleName怎么用?PHP getModuleName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getModuleName函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getModuleName
print "</p>";
print "</div>";
?>
</div>
<div id="header-logo-report" style="text-align: right">
<img height='75px' width='300px' alt="Logo" src="<?php
print $_SESSION[$guid]["absoluteURL"] . "/" . $_SESSION[$guid]["organisationLogo"];
?>
"/>
</div>
</div>
<div id="content-wrap-report" style="min-height: 500px">
<?php
$_SESSION[$guid]["address"] = $_GET["q"];
$_SESSION[$guid]["module"] = getModuleName($_SESSION[$guid]["address"]);
$_SESSION[$guid]["action"] = getActionName($_SESSION[$guid]["address"]);
if (strstr($_SESSION[$guid]["address"], "..") != FALSE) {
print "<div class='error'>";
print _("Illegal address detected: access denied.");
print "</div>";
} else {
if (is_file("./" . $_SESSION[$guid]["address"])) {
include "./" . $_SESSION[$guid]["address"];
} else {
include "./error.php";
}
}
?>
</div>
<div id="footer-report">
示例2: PDO
*/
include '../../functions.php';
include '../../config.php';
//New PDO DB connection
try {
$connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword);
$connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
} catch (PDOException $e) {
echo $e->getMessage();
}
@session_start();
//Set timezone from session variable
date_default_timezone_set($_SESSION[$guid]['timezone']);
$gibbonSchoolYearID = $_POST['gibbonSchoolYearID'];
$URL = $_SESSION[$guid]['absoluteURL'] . '/index.php?q=/modules/' . getModuleName($_POST['address']) . '/badges_grant_add.php&gibbonPersonID2=' . $_GET['gibbonPersonID2'] . '&badgesBadgeID2=' . $_GET['badgesBadgeID2'] . "&gibbonSchoolYearID={$gibbonSchoolYearID}";
if (isActionAccessible($guid, $connection2, '/modules/Badges/badges_grant_add.php') == false) {
//Fail 0
$URL .= '&return=error0';
header("Location: {$URL}");
} else {
//Proceed!
if (isset($_POST['gibbonPersonIDMulti'])) {
$gibbonPersonIDMulti = $_POST['gibbonPersonIDMulti'];
} else {
$gibbonPersonIDMulti = null;
}
$badgesBadgeID = $_POST['badgesBadgeID'];
$date = $_POST['date'];
$comment = $_POST['comment'];
if ($gibbonPersonIDMulti == null or $date == '' or $badgesBadgeID == '' or $gibbonSchoolYearID == '') {
示例3: _
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@session_start();
$_SESSION[$guid]["report_student_emergencySummary.php_choices"] = "";
//Module includes
include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php";
if (isActionAccessible($guid, $connection2, "/modules/Library/report_catalogSummary.php") == FALSE) {
//Acess denied
print "<div class='error'>";
print _("You do not have access to this action.");
print "</div>";
} else {
//Proceed!
print "<div class='trail'>";
print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > </div><div class='trailEnd'>" . _('Catalog Summary') . "</div>";
print "</div>";
print "<h3>";
print _("Search & Filter");
print "</h3>";
//Get current filter values
$ownershipType = NULL;
if (isset($_POST["ownershipType"])) {
$ownershipType = trim($_POST["ownershipType"]);
}
if ($ownershipType == "") {
if (isset($_GET["ownershipType"])) {
$ownershipType = trim($_GET["ownershipType"]);
}
}
$gibbonLibraryTypeID = NULL;
示例4: date_default_timezone_set
}
@session_start();
//Set timezone from session variable
date_default_timezone_set($_SESSION[$guid]['timezone']);
//Search & Filters
$search = null;
if (isset($_GET['search'])) {
$search = $_GET['search'];
}
$filter2 = null;
if (isset($_GET['filter2'])) {
$filter2 = $_GET['filter2'];
}
$visualAssessmentGuideID = $_POST['visualAssessmentGuideID'];
$URL = $_SESSION[$guid]['absoluteURL'] . '/index.php?q=/modules/' . getModuleName($_POST['address']) . "/guides_manage_delete.php&visualAssessmentGuideID={$visualAssessmentGuideID}&search={$search}&filter2={$filter2}";
$URLDelete = $_SESSION[$guid]['absoluteURL'] . '/index.php?q=/modules/' . getModuleName($_POST['address']) . "/guides_manage.php&search={$search}&filter2={$filter2}";
if (isActionAccessible($guid, $connection2, '/modules/Visual Assessment/guides_manage_delete.php') == false) {
//Fail 0
$URL .= '&return=error0';
header("Location: {$URL}");
} else {
//Get action with highest precendence
$highestAction = getHighestGroupedAction($guid, $_POST['address'], $connection2);
if ($highestAction == false) {
//Fail2
$URL .= '&return=error2';
header("Location: {$URL}");
} else {
if ($highestAction != 'Manage Assessment Guides_all' and $highestAction != 'Manage Assessment Guides_myDepartments') {
//Fail 0
$URL .= '&return=error0';
示例5: _
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@session_start();
//Module includes
include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php";
if (isActionAccessible($guid, $connection2, "/modules/School Admin/externalAssessments_manage_edit.php") == FALSE) {
//Acess denied
print "<div class='error'>";
print _("You do not have access to this action.");
print "</div>";
} else {
//Proceed!
print "<div class='trail'>";
print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/externalAssessments_manage.php'>" . _('Manage External Assessments') . "</a> > </div><div class='trailEnd'>" . _('Edit External Assessment') . "</div>";
print "</div>";
if (isset($_GET["updateReturn"])) {
$updateReturn = $_GET["updateReturn"];
} else {
$updateReturn = "";
}
$updateReturnMessage = "";
$class = "error";
if (!($updateReturn == "")) {
if ($updateReturn == "fail0") {
$updateReturnMessage = _("Your request failed because you do not have access to this action.");
} else {
if ($updateReturn == "fail1") {
$updateReturnMessage = _("Your request failed because your inputs were invalid.");
} else {
示例6: PDO
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
include "../../functions.php";
include "../../config.php";
//New PDO DB connection
try {
$connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword);
$connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
} catch (PDOException $e) {
echo $e->getMessage();
}
@session_start();
//Set timezone from session variable
date_default_timezone_set($_SESSION[$guid]["timezone"]);
$URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/resources_manage_add.php&search=" . $_GET["search"];
$time = time();
if (isActionAccessible($guid, $connection2, "/modules/Resources/resources_manage_add.php") == FALSE) {
//Fail 0
$URL .= "&addReturn=fail0";
header("Location: {$URL}");
} else {
if (empty($_POST)) {
//Fail 5
$URL .= "&addReturn=fail5";
header("Location: {$URL}");
} else {
$highestAction = getHighestGroupedAction($guid, $_POST["address"], $connection2);
if ($highestAction == FALSE) {
//Fail 0
$URL .= "&updateReturn=fail0";
示例7: PDO
$connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword);
$connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
} catch (PDOException $e) {
echo $e->getMessage();
}
@session_start();
//Set timezone from session variable
date_default_timezone_set($_SESSION[$guid]["timezone"]);
$name = $_POST["name"];
$nameShort = $_POST["nameShort"];
$timeStart = $_POST["timeStart"];
$timeEnd = $_POST["timeEnd"];
$type = $_POST["type"];
$gibbonTTColumnID = $_POST["gibbonTTColumnID"];
$URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/ttColumn_edit_row_add.php&gibbonTTColumnID={$gibbonTTColumnID}";
if (isActionAccessible($guid, $connection2, "/modules/Timetable Admin/ttColumn_edit_row_add.php") == FALSE) {
//Fail 0
$URL .= "&addReturn=fail0";
header("Location: {$URL}");
} else {
//Proceed!
//Validate Inputs
if ($gibbonTTColumnID == "" or $name == "" or $nameShort == "" or $timeStart == "" or $timeEnd == "" or $type == "") {
//Fail 3
$URL .= "&addReturn=fail3";
header("Location: {$URL}");
} else {
//Check unique inputs for uniquness
try {
$data = array("name" => $name, "nameShort" => $nameShort, "gibbonTTColumnID" => $gibbonTTColumnID);
示例8: dateConvertBack
} else {
$extra = dateConvertBack($guid, $date);
}
$params = "";
if ($_GET["date"] != "") {
$params = $params . "&date=" . $_GET["date"];
}
if ($_GET["viewBy"] != "") {
$params = $params . "&viewBy=" . $_GET["viewBy"];
}
if ($_GET["gibbonCourseClassID"] != "") {
$params = $params . "&gibbonCourseClassID=" . $_GET["gibbonCourseClassID"];
}
$params = $params . "&subView={$subView}";
print "<div class='trail'>";
print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/planner.php{$params}'>" . _('Planner') . " {$extra}</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/planner_view_full.php{$params}&gibbonPlannerEntryID={$gibbonPlannerEntryID}'>" . _('View Lesson Plan') . "</a> > </div><div class='trailEnd'>" . _('Add Comment') . "</div>";
print "</div>";
if (isset($_GET["updateReturn"])) {
$updateReturn = $_GET["updateReturn"];
} else {
$updateReturn = "";
}
$updateReturnMessage = "";
$class = "error";
if (!($updateReturn == "")) {
if ($updateReturn == "fail0") {
$updateReturnMessage = _("Your request failed because you do not have access to this action.");
} else {
if ($updateReturn == "fail1") {
$updateReturnMessage = _("Your request failed because your inputs were invalid.");
} else {
示例9: PDO
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
include "../../functions.php";
include "../../config.php";
//New PDO DB connection
try {
$connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword);
$connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
} catch (PDOException $e) {
echo $e->getMessage();
}
@session_start();
//Set timezone from session variable
date_default_timezone_set($_SESSION[$guid]["timezone"]);
$URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/externalAssessmentSettings.php";
if (isActionAccessible($guid, $connection2, "/modules/School Admin/alertLevelSettings.php") == FALSE) {
//Fail 0
$URL .= "&updateReturn=fail0";
header("Location: {$URL}");
} else {
$gibbonYearGroupID = $_POST["gibbonYearGroupID"];
$gibbonExternalAssessmentID = $_POST["gibbonExternalAssessmentID"];
if (isset($_POST["category"])) {
$category = $_POST["category"];
}
$count = 0;
$primaryExternalAssessmentByYearGroup = array();
foreach ($gibbonYearGroupID as $year) {
if (isset($gibbonExternalAssessmentID[$count]) and isset($category[$count]) and $category[$count] != "") {
$primaryExternalAssessmentByYearGroup[$year] = $gibbonExternalAssessmentID[$count] . "-" . $category[$count];
示例10: _
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@session_start();
//Module includes
include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php";
if (isActionAccessible($guid, $connection2, "/modules/User Admin/data_finance_edit.php") == FALSE) {
//Acess denied
print "<div class='error'>";
print _("You do not have access to this action.");
print "</div>";
} else {
//Proceed!
print "<div class='trail'>";
print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/User Admin/data_finance.php'>" . _('Finance Data Updates') . "</a> > </div><div class='trailEnd'>" . _('Edit Request') . "</div>";
print "</div>";
//Check if school year specified
$gibbonFinanceInvoiceeUpdateID = $_GET["gibbonFinanceInvoiceeUpdateID"];
if ($gibbonFinanceInvoiceeUpdateID == "Y") {
print "<div class='error'>";
print _("You have not specified one or more required parameters.");
print "</div>";
} else {
try {
$data = array("gibbonFinanceInvoiceeUpdateID" => $gibbonFinanceInvoiceeUpdateID);
$sql = "SELECT gibbonFinanceInvoiceeUpdate.gibbonFinanceInvoiceeID, gibbonFinanceInvoicee.invoiceTo AS invoiceTo, gibbonFinanceInvoicee.companyName AS companyName, gibbonFinanceInvoicee.companyContact AS companyContact, gibbonFinanceInvoicee.companyAddress AS companyAddress, gibbonFinanceInvoicee.companyEmail AS companyEmail, gibbonFinanceInvoicee.companyCCFamily AS companyCCFamily, gibbonFinanceInvoicee.companyPhone AS companyPhone, gibbonFinanceInvoicee.companyAll AS companyAll, gibbonFinanceInvoicee.gibbonFinanceFeeCategoryIDList AS gibbonFinanceFeeCategoryIDList, gibbonFinanceInvoiceeUpdate.invoiceTo AS newinvoiceTo, gibbonFinanceInvoiceeUpdate.companyName AS newcompanyName, gibbonFinanceInvoiceeUpdate.companyContact AS newcompanyContact, gibbonFinanceInvoiceeUpdate.companyAddress AS newcompanyAddress, gibbonFinanceInvoiceeUpdate.companyEmail AS newcompanyEmail, gibbonFinanceInvoiceeUpdate.companyCCFamily AS newcompanyCCFamily, gibbonFinanceInvoiceeUpdate.companyPhone AS newcompanyPhone, gibbonFinanceInvoiceeUpdate.companyAll AS newcompanyAll, gibbonFinanceInvoiceeUpdate.gibbonFinanceFeeCategoryIDList AS newgibbonFinanceFeeCategoryIDList FROM gibbonFinanceInvoiceeUpdate JOIN gibbonFinanceInvoicee ON (gibbonFinanceInvoiceeUpdate.gibbonFinanceInvoiceeID=gibbonFinanceInvoicee.gibbonFinanceInvoiceeID) WHERE gibbonFinanceInvoiceeUpdateID=:gibbonFinanceInvoiceeUpdateID";
$result = $connection2->prepare($sql);
$result->execute($data);
} catch (PDOException $e) {
print "<div class='error'>" . $e->getMessage() . "</div>";
示例11: PDO
*/
include "../../functions.php";
include "../../config.php";
//New PDO DB connection
try {
$connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword);
$connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
} catch (PDOException $e) {
echo $e->getMessage();
}
@session_start();
//Set timezone from session variable
date_default_timezone_set($_SESSION[$guid]["timezone"]);
$gibbonStudentNoteCategoryID = $_GET["gibbonStudentNoteCategoryID"];
$URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/studentsSettings_noteCategory_edit.php&gibbonStudentNoteCategoryID={$gibbonStudentNoteCategoryID}";
if (isActionAccessible($guid, $connection2, "/modules/School Admin/studentsSettings_noteCategory_edit.php") == FALSE) {
//Fail 0
$URL .= "&updateReturn=fail0";
header("Location: {$URL}");
} else {
//Proceed!
//Check if school year specified
if ($gibbonStudentNoteCategoryID == "") {
//Fail1
$URL .= "&updateReturn=fail1";
header("Location: {$URL}");
} else {
try {
$data = array("gibbonStudentNoteCategoryID" => $gibbonStudentNoteCategoryID);
$sql = "SELECT * FROM gibbonStudentNoteCategory WHERE gibbonStudentNoteCategoryID=:gibbonStudentNoteCategoryID";
示例12: _
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@session_start();
//Module includes
include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php";
if (isActionAccessible($guid, $connection2, "/modules/School Admin/gradeScales_manage_add.php") == FALSE) {
//Acess denied
print "<div class='error'>";
print _("You do not have access to this action.");
print "</div>";
} else {
//Proceed!
print "<div class='trail'>";
print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/gradeScales_manage.php'>" . _('Manage Grade Scales') . "</a> > </div><div class='trailEnd'>" . _('Add Grade Scale') . "</div>";
print "</div>";
if (isset($_GET["addReturn"])) {
$addReturn = $_GET["addReturn"];
} else {
$addReturn = "";
}
$addReturnMessage = "";
$class = "error";
if (!($addReturn == "")) {
if ($addReturn == "fail0") {
$addReturnMessage = _("Your request failed because you do not have access to this action.");
} else {
if ($addReturn == "fail2") {
$addReturnMessage = _("Your request failed due to a database error.");
} else {
示例13: catch
$connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
} catch (PDOException $e) {
echo $e->getMessage();
}
@session_start();
//Set timezone from session variable
date_default_timezone_set($_SESSION[$guid]["timezone"]);
$allStaff = "";
if (isset($_GET["allStaff"])) {
$allStaff = $_GET["allStaff"];
}
$search = "";
if (isset($_GET["search"])) {
$search = $_GET["search"];
}
$URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/staff_manage_add.php&search={$search}&allStaff={$allStaff}";
if (isActionAccessible($guid, $connection2, "/modules/User Admin/staff_manage_add.php") == FALSE) {
//Fail 0
$URL .= "&addReturn=fail0";
header("Location: {$URL}");
} else {
//Proceed!
$gibbonPersonID = $_POST["gibbonPersonID"];
$initials = $_POST["initials"];
if ($initials == "") {
$initials = NULL;
}
$type = $_POST["type"];
$jobTitle = $_POST["jobTitle"];
$firstAidQualified = $_POST["firstAidQualified"];
$firstAidExpiry = NULL;
示例14: PDO
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
include "../../functions.php";
include "../../config.php";
//New PDO DB connection
try {
$connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword);
$connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
} catch (PDOException $e) {
echo $e->getMessage();
}
@session_start();
//Set timezone from session variable
date_default_timezone_set($_SESSION[$guid]["timezone"]);
$URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/space_manage_add.php";
if (isActionAccessible($guid, $connection2, "/modules/School Admin/space_manage_add.php") == FALSE) {
//Fail 0
$URL .= "&addReturn=fail0";
header("Location: {$URL}");
} else {
//Proceed!
$name = $_POST["name"];
$type = $_POST["type"];
$gibbonPersonID1 = $_POST["gibbonPersonID1"];
if ($gibbonPersonID1 == "") {
$gibbonPersonID1 = "NULL";
}
$gibbonPersonID2 = $_POST["gibbonPersonID2"];
if ($gibbonPersonID2 == "") {
$gibbonPersonID2 = "NULL";
示例15: date_default_timezone_set
echo $e->getMessage();
}
@session_start();
//Set timezone from session variable
date_default_timezone_set($_SESSION[$guid]["timezone"]);
//Search & Filters
$search = NULL;
if (isset($_GET["search"])) {
$search = $_GET["search"];
}
$filter2 = NULL;
if (isset($_GET["filter2"])) {
$filter2 = $_GET["filter2"];
}
$gibbonRubricID = $_GET["gibbonRubricID"];
$URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/rubrics_duplicate.php&gibbonRubricID={$gibbonRubricID}&search={$search}&filter2={$filter2}";
if (isActionAccessible($guid, $connection2, "/modules/Rubrics/rubrics_duplicate.php") == FALSE) {
//Fail 0
$URL .= "&updateReturn=fail0";
header("Location: {$URL}");
} else {
$highestAction = getHighestGroupedAction($guid, $_POST["address"], $connection2);
if ($highestAction == FALSE) {
//Fail2
$URL .= "&updateReturn=fail2";
header("Location: {$URL}");
} else {
if ($highestAction != "Manage Rubrics_viewEditAll" and $highestAction != "Manage Rubrics_viewAllEditLearningArea") {
//Fail 0
$URL .= "&updateReturn=fail0";
header("Location: {$URL}");