diff --git a/pages/friends.php b/pages/friends.php
index d1b72bc..548484b 100644
--- a/pages/friends.php
+++ b/pages/friends.php
@@ -1,16 +1,19 @@
setHTMLTitle("Online Anzeige");
- $HTML->importSeitenInhalt("pages/HTML/online-anzeige.html");
-
if(@$_REQUEST['action'] == 'remove' && @$_REQUEST['uuid'] != '')
{
$statementMembership = $RUNTIME['PDO']->prepare("DELETE FROM Friends WHERE Friend = ? AND PrincipalID = ?");
$statementMembership->execute(array($_REQUEST['uuid'], $_SESSION['UUID']));
$statementMembership = $RUNTIME['PDO']->prepare("DELETE FROM Friends WHERE PrincipalID = ? AND Friend = ?");
- $statementMembership->execute(array($_REQUEST['uuid'], $_SESSION['UUID']));
+ $statementMembership->execute(array($_REQUEST['uuid'], $_SESSION['UUID']));
+
+ header('Location: index.php?page=friends');
+ die();
}
+ $HTML->setHTMLTitle("Online Anzeige");
+ $HTML->importSeitenInhalt("pages/HTML/online-anzeige.html");
+
$table = '
';
$statement = $RUNTIME['PDO']->prepare("SELECT PrincipalID,Friend FROM Friends WHERE PrincipalID = ? ORDER BY Friend ASC");
diff --git a/pages/groups.php b/pages/groups.php
index 7c3d908..037e803 100644
--- a/pages/groups.php
+++ b/pages/groups.php
@@ -1,13 +1,16 @@
setHTMLTitle("Gruppen");
- $HTML->importSeitenInhalt("pages/HTML/deine-regionen.html");
-
if(@$_REQUEST['action'] == 'leave' && @$_REQUEST['group'] != '')
{
$statementMembership = $RUNTIME['PDO']->prepare("DELETE FROM os_groups_membership WHERE GroupID = ? AND PrincipalID = ?");
$statementMembership->execute(array($_REQUEST['group'], $_SESSION['UUID']));
+
+ header('Location: index.php?page=groups');
+ die();
}
+ $HTML->setHTMLTitle("Gruppen");
+ $HTML->importSeitenInhalt("pages/HTML/deine-regionen.html");
+
$table = 'Name | Gründer | Aktionen |
%%ENTRY%%
';
$statementMembership = $RUNTIME['PDO']->prepare("SELECT GroupID FROM os_groups_membership WHERE PrincipalID = ? ORDER BY GroupID ASC");
diff --git a/pages/identities.php b/pages/identities.php
index 01eab7c..56489a3 100644
--- a/pages/identities.php
+++ b/pages/identities.php
@@ -84,6 +84,9 @@
$statementUserIdentitys = $RUNTIME['PDO']->prepare('INSERT INTO UserIdentitys (PrincipalID, IdentityID) VALUES (:PrincipalID, :IdentityID)');
$statementUserIdentitys->execute(['PrincipalID' => $_SESSION['UUID'], 'IdentityID' => $avatarUUID]);
//print_r($statementUserIdentitys->errorInfo());
+
+ header('Location: index.php?page=identities');
+ die();
}else{
$HTML->ReplaceSeitenInhalt("%%MESSAGE%%", 'Dieser Name ist schon in Benutzung.
');
}
diff --git a/pages/password.php b/pages/password.php
index 02355b0..fe1ab6e 100644
--- a/pages/password.php
+++ b/pages/password.php
@@ -28,7 +28,10 @@
$statement = $RUNTIME['PDO']->prepare('UPDATE auth SET passwordHash = :PasswordHash WHERE UUID = :PrincipalID');
$statement->execute(['PasswordHash' => md5(md5($NewPassword).":".$_SESSION['SALT']), 'PrincipalID' => $_SESSION['UUID']]);
$_SESSION['PASSWORD'] = md5(md5($NewPassword).":".$_SESSION['SALT']);
- $HTML->ReplaceSeitenInhalt("%%INFOMESSAGE%%", 'Neues Passwort gespeichert.');
+ $_SESSION['pwChanged'] = true;
+
+ header('Location: index.php?page=password');
+ die();
}else{
$HTML->ReplaceSeitenInhalt("%%INFOMESSAGE%%", 'Passwörter stimmen nicht überein!');
}
@@ -61,10 +64,14 @@
$HTML->ReplaceSeitenInhalt("%%lastname%%", htmlspecialchars($_SESSION['LASTNAME']));
$HTML->ReplaceSeitenInhalt("%%partner%%", htmlspecialchars($PartnerName));
$HTML->ReplaceSeitenInhalt("%%email%%", htmlspecialchars($RUNTIME['OPENSIM']->getUserMail($_SESSION['UUID'])));
- $HTML->ReplaceSeitenInhalt("%%listAllResidentsAsJSArray%%", "");
- $HTML->ReplaceSeitenInhalt("%%INFOMESSAGE%%", ' ');
- $HTML->ReplaceSeitenInhalt("%%INFOMESSAGE%%", ' ');
- $HTML->ReplaceSeitenInhalt("%%INFOMESSAGE%%", ' ');
+ $HTML->ReplaceSeitenInhalt("%%listAllResidentsAsJSArray%%", "");
+
+ $pwChanged = false;
+ if(isset($_SESSION['pwChanged'])) {
+ $pwChanged = true;
+ unset($_SESSION['pwChanged']);
+ }
+ $HTML->ReplaceSeitenInhalt("%%INFOMESSAGE%%", $pwChanged ? 'Neues Passwort gespeichert.' : ' ');
$HTML->build();
echo $HTML->ausgabe();
diff --git a/pages/regions.php b/pages/regions.php
index 924e724..cc72dd4 100644
--- a/pages/regions.php
+++ b/pages/regions.php
@@ -40,9 +40,9 @@
return array();
}
- if(@$_REQUEST['action'] == 'remove' && @$_REQUEST['region'] != '')
+ if(isset($_REQUEST['action']) && isset($_REQUEST['region']) && $_REQUEST['action'] == 'remove' && $_REQUEST['region'] != '')
{
- if(@$_SESSION['LEVEL'] >= 100)
+ if(isset($_SESSION['LEVEL']) && $_SESSION['LEVEL'] >= 100)
{
$statementMembership = $RUNTIME['PDO']->prepare("DELETE FROM regions WHERE uuid = ?");
$statementMembership->execute(array($_REQUEST['region']));
@@ -50,6 +50,9 @@
$statementMembership = $RUNTIME['PDO']->prepare("DELETE FROM regions WHERE uuid = ? AND owner_uuid = ?");
$statementMembership->execute(array($_REQUEST['region'], $_SESSION['UUID']));
}
+
+ header('Location: index.php?page=regions');
+ die();
}
$table = 'Region Name | Eigentümer | Position | Aktionen |
%%ENTRY%%
';
diff --git a/pages/register.php b/pages/register.php
index 23a7854..e604acd 100644
--- a/pages/register.php
+++ b/pages/register.php
@@ -127,6 +127,7 @@
$_SESSION['LEVEL'] = 0;
$_SESSION['DISPLAYNAME'] = strtoupper(trim($RUNTIME['REGISTER']['Name']));
$_SESSION['LOGIN'] = 'true';
- include "./pages/dashboard.php";
+
+ header('Location: index.php?page=dashboard');
die();
?>
\ No newline at end of file