Remove superfluous exit-statement

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-08-01 15:05:58 +02:00
parent 14e54ff41a
commit 526eb84b71
8 changed files with 1 additions and 12 deletions

View File

@@ -23,7 +23,6 @@ require './lib/init.php';
// redirect if this customer page is hidden via settings // redirect if this customer page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','domains')) { if (Settings::IsInList('panel.customer_hide_options','domains')) {
redirectTo('customer_index.php'); redirectTo('customer_index.php');
exit;
} }
if (isset($_POST['id'])) { if (isset($_POST['id'])) {

View File

@@ -23,7 +23,6 @@ require './lib/init.php';
// redirect if this customer page is hidden via settings // redirect if this customer page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','email')) { if (Settings::IsInList('panel.customer_hide_options','email')) {
redirectTo('customer_index.php'); redirectTo('customer_index.php');
exit;
} }
if (isset($_POST['id'])) { if (isset($_POST['id'])) {

View File

@@ -22,7 +22,6 @@ require './lib/init.php';
// redirect if this customer page is hidden via settings // redirect if this customer page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','extras')) { if (Settings::IsInList('panel.customer_hide_options','extras')) {
redirectTo('customer_index.php'); redirectTo('customer_index.php');
exit;
} }
if (isset($_POST['id'])) { if (isset($_POST['id'])) {
@@ -39,7 +38,6 @@ if ($page == 'overview') {
// redirect if this customer sub-page is hidden via settings // redirect if this customer sub-page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','extras.directoryprotection')) { if (Settings::IsInList('panel.customer_hide_options','extras.directoryprotection')) {
redirectTo('customer_index.php'); redirectTo('customer_index.php');
exit;
} }
if ($action == '') { if ($action == '') {
@@ -279,7 +277,6 @@ if ($page == 'overview') {
// redirect if this customer sub-page is hidden via settings // redirect if this customer sub-page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','extras.pathoptions')) { if (Settings::IsInList('panel.customer_hide_options','extras.pathoptions')) {
redirectTo('customer_index.php'); redirectTo('customer_index.php');
exit;
} }
if ($action == '') { if ($action == '') {
@@ -543,7 +540,6 @@ if ($page == 'overview') {
// redirect if this customer sub-page is hidden via settings // redirect if this customer sub-page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','extras.backup')) { if (Settings::IsInList('panel.customer_hide_options','extras.backup')) {
redirectTo('customer_index.php'); redirectTo('customer_index.php');
exit;
} }
if (Settings::Get('system.backupenabled') == 1) if (Settings::Get('system.backupenabled') == 1)

View File

@@ -23,7 +23,6 @@ require './lib/init.php';
// redirect if this customer page is hidden via settings // redirect if this customer page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','ftp')) { if (Settings::IsInList('panel.customer_hide_options','ftp')) {
redirectTo('customer_index.php'); redirectTo('customer_index.php');
exit;
} }
$id = 0; $id = 0;

View File

@@ -23,7 +23,6 @@ require './lib/init.php';
// redirect if this customer page is hidden via settings // redirect if this customer page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','extras.logger')) { if (Settings::IsInList('panel.customer_hide_options','extras.logger')) {
redirectTo('customer_index.php'); redirectTo('customer_index.php');
exit;
} }
if ($page == 'log' if ($page == 'log'

View File

@@ -23,7 +23,6 @@ require './lib/init.php';
// redirect if this customer page is hidden via settings // redirect if this customer page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','mysql')) { if (Settings::IsInList('panel.customer_hide_options','mysql')) {
redirectTo('customer_index.php'); redirectTo('customer_index.php');
exit;
} }
// get sql-root access data // get sql-root access data

View File

@@ -23,7 +23,6 @@ require './lib/init.php';
// redirect if this customer page is hidden via settings // redirect if this customer page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','domains')) { if (Settings::IsInList('panel.customer_hide_options','domains')) {
redirectTo('customer_index.php'); redirectTo('customer_index.php');
exit;
} }
if (isset($_POST['id'])) { if (isset($_POST['id'])) {
@@ -333,7 +332,7 @@ if ($page == 'overview') {
$subject = $subticket->Get('subject'); $subject = $subticket->Get('subject');
$message = $subticket->Get('message'); $message = $subticket->Get('message');
$row2 = htmlentities_array($row2); $row2 = htmlentities_array($row2);
eval("\$ticket_replies.=\"" . getTemplate("tickets/tickets_tickets_list") . "\";"); eval("\$ticket_replies.=\"" . getTemplate("tickets/tickets_tickets_list") . "\";");
} }

View File

@@ -24,7 +24,6 @@ require './lib/init.php';
// redirect if this customer page is hidden via settings // redirect if this customer page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','traffic')) { if (Settings::IsInList('panel.customer_hide_options','traffic')) {
redirectTo('customer_index.php'); redirectTo('customer_index.php');
exit;
} }
$traffic = ''; $traffic = '';