Update registrations.php
This commit is contained in:
@@ -50,10 +50,6 @@
|
|||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
$document['title'] = $text['header-registrations'];
|
$document['title'] = $text['header-registrations'];
|
||||||
|
|
||||||
//set the variables
|
|
||||||
$profile = (isset($_REQUEST['profile']) && $_REQUEST['profile'] != '') ? $_REQUEST['profile'] : "internal";
|
|
||||||
$show = trim($_REQUEST["show"]);
|
|
||||||
|
|
||||||
//check permissions
|
//check permissions
|
||||||
if (permission_exists("registration_domain") || permission_exists("registration_all") || if_group("superadmin")) {
|
if (permission_exists("registration_domain") || permission_exists("registration_all") || if_group("superadmin")) {
|
||||||
//access granted
|
//access granted
|
||||||
@@ -68,9 +64,10 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//get the HTTP values and set as variables
|
//get the HTTP values and set as variables
|
||||||
|
$profile = trim($_REQUEST["profile"]);
|
||||||
$search = trim($_REQUEST["search"]);
|
$search = trim($_REQUEST["search"]);
|
||||||
$show = trim($_REQUEST["show"]);
|
$show = trim($_REQUEST["show"]);
|
||||||
if ($show != "all") { $show = ''; }
|
if ($show == "all") { $profile = 'all'; }
|
||||||
|
|
||||||
//define variables
|
//define variables
|
||||||
$c = 0;
|
$c = 0;
|
||||||
@@ -94,7 +91,7 @@
|
|||||||
|
|
||||||
//get the registrations
|
//get the registrations
|
||||||
$obj = new registrations;
|
$obj = new registrations;
|
||||||
$registrations = $obj->get($show);
|
$registrations = $obj->get($profile);
|
||||||
|
|
||||||
//count the registrations
|
//count the registrations
|
||||||
$registration_count = 0;
|
$registration_count = 0;
|
||||||
@@ -107,7 +104,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//show the registrations
|
//show the registrations
|
||||||
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>\n";
|
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>\n";
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user