mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-25 02:00:54 +00:00
Die, don't exit
This commit is contained in:
parent
6d98bb0493
commit
50a3791553
44 changed files with 579 additions and 581 deletions
|
@ -22,20 +22,20 @@ function activate_plugin() {
|
||||||
{
|
{
|
||||||
// if result is successfull it redirects and shows success message
|
// if result is successfull it redirects and shows success message
|
||||||
header( "Location: index.php?page=plugins&result=3" );
|
header( "Location: index.php?page=plugins&result=3" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//if result is unsuccessfull it redirects and throws error
|
//if result is unsuccessfull it redirects and throws error
|
||||||
header( "Location: index.php?page=plugins&result=4" );
|
header( "Location: index.php?page=plugins&result=4" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//if $_GET variable is not set it redirects and shows error
|
//if $_GET variable is not set it redirects and shows error
|
||||||
header( "Location: index.php?page=plugins&result=4" );
|
header( "Location: index.php?page=plugins&result=4" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,12 +41,12 @@ function add_sgroup(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,14 +30,14 @@ function add_user(){
|
||||||
if(Helpers::check_if_game_client()){
|
if(Helpers::check_if_game_client()){
|
||||||
//if registering ingame then we have to set the header and dont need to reload the template.
|
//if registering ingame then we have to set the header and dont need to reload the template.
|
||||||
header('Location: email_sent.php');
|
header('Location: email_sent.php');
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
$pageElements['status'] = $status;
|
$pageElements['status'] = $status;
|
||||||
$pageElements['no_visible_elements'] = 'TRUE';
|
$pageElements['no_visible_elements'] = 'TRUE';
|
||||||
$pageElements['ingame_webpath'] = $INGAME_WEBPATH;
|
$pageElements['ingame_webpath'] = $INGAME_WEBPATH;
|
||||||
helpers :: loadtemplate( 'register_feedback', $pageElements);
|
helpers :: loadtemplate( 'register_feedback', $pageElements);
|
||||||
exit;
|
die();
|
||||||
}elseif ($_POST['page']=="settings"){
|
}elseif (isset($_POST['page']) && $_POST['page']=="settings"){
|
||||||
// pass error and reload template accordingly
|
// pass error and reload template accordingly
|
||||||
$result['prevUsername'] = $_POST["Username"];
|
$result['prevUsername'] = $_POST["Username"];
|
||||||
$result['prevPassword'] = $_POST["Password"];
|
$result['prevPassword'] = $_POST["Password"];
|
||||||
|
@ -45,7 +45,7 @@ function add_user(){
|
||||||
$result['prevEmail'] = $_POST["Email"];
|
$result['prevEmail'] = $_POST["Email"];
|
||||||
$result['no_visible_elements'] = 'TRUE';
|
$result['no_visible_elements'] = 'TRUE';
|
||||||
helpers :: loadtemplate( 'settings', $result);
|
helpers :: loadtemplate( 'settings', $result);
|
||||||
exit;
|
die();
|
||||||
}else{
|
}else{
|
||||||
// pass error and reload template accordingly
|
// pass error and reload template accordingly
|
||||||
$result['prevUsername'] = $_POST["Username"];
|
$result['prevUsername'] = $_POST["Username"];
|
||||||
|
@ -55,7 +55,7 @@ function add_user(){
|
||||||
$result['no_visible_elements'] = 'TRUE';
|
$result['no_visible_elements'] = 'TRUE';
|
||||||
$pageElements['ingame_webpath'] = $INGAME_WEBPATH;
|
$pageElements['ingame_webpath'] = $INGAME_WEBPATH;
|
||||||
helpers :: loadtemplate( 'register', $result);
|
helpers :: loadtemplate( 'register', $result);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,9 +83,7 @@ function write_user($newUser){
|
||||||
}catch (PDOException $e) {
|
}catch (PDOException $e) {
|
||||||
//go to error page or something, because can't access website db
|
//go to error page or something, because can't access website db
|
||||||
print_r($e);
|
print_r($e);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,18 +40,18 @@ function add_user_to_sgroup(){
|
||||||
}else{
|
}else{
|
||||||
header("Location: ".$WEBPATH."?page=show_sgroup&id=".$id);
|
header("Location: ".$WEBPATH."?page=show_sgroup&id=".$id);
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -97,29 +97,29 @@ function change_info(){
|
||||||
global $INGAME_WEBPATH;
|
global $INGAME_WEBPATH;
|
||||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||||
helpers :: loadtemplate( 'settings', $result);
|
helpers :: loadtemplate( 'settings', $result);
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: permission denied!
|
//ERROR: permission denied!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: The form was not filled in correclty
|
//ERROR: The form was not filled in correclty
|
||||||
header("Location: index.php?page=settings");
|
header("Location: index.php?page=settings");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: user is not logged in
|
//ERROR: user is not logged in
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}catch (PDOException $e) {
|
}catch (PDOException $e) {
|
||||||
//go to error page or something, because can't access website db
|
//go to error page or something, because can't access website db
|
||||||
print_r($e);
|
print_r($e);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ function change_mail(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
helpers :: loadtemplate( 'settings', $result);
|
helpers :: loadtemplate( 'settings', $result);
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
$result['EMAIL'] = $reply;
|
$result['EMAIL'] = $reply;
|
||||||
|
@ -72,31 +72,31 @@ function change_mail(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
helpers :: loadtemplate( 'settings', $result);
|
helpers :: loadtemplate( 'settings', $result);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: permission denied!
|
//ERROR: permission denied!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: The form was not filled in correclty
|
//ERROR: The form was not filled in correclty
|
||||||
header("Location: index.php?page=settings");
|
header("Location: index.php?page=settings");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: user is not logged in
|
//ERROR: user is not logged in
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}catch (PDOException $e) {
|
}catch (PDOException $e) {
|
||||||
//go to error page or something, because can't access website db
|
//go to error page or something, because can't access website db
|
||||||
print_r($e);
|
print_r($e);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ function change_password(){
|
||||||
$succresult['username'] = $_SESSION['user'];
|
$succresult['username'] = $_SESSION['user'];
|
||||||
$succresult['target_id'] = $_POST['target_id'];
|
$succresult['target_id'] = $_POST['target_id'];
|
||||||
helpers :: loadtemplate( 'settings', $succresult);
|
helpers :: loadtemplate( 'settings', $succresult);
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
|
@ -65,31 +65,31 @@ function change_password(){
|
||||||
|
|
||||||
$result = array_merge($result,$settings);
|
$result = array_merge($result,$settings);
|
||||||
helpers :: loadtemplate( 'settings', $result);
|
helpers :: loadtemplate( 'settings', $result);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: permission denied!
|
//ERROR: permission denied!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: The form was not filled in correclty
|
//ERROR: The form was not filled in correclty
|
||||||
header("Location: index.php?page=settings");
|
header("Location: index.php?page=settings");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: user is not logged in
|
//ERROR: user is not logged in
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}catch (PDOException $e) {
|
}catch (PDOException $e) {
|
||||||
//go to error page or something, because can't access website db
|
//go to error page or something, because can't access website db
|
||||||
print_r($e);
|
print_r($e);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,30 +27,30 @@ function change_receivemail(){
|
||||||
}else{
|
}else{
|
||||||
header("Location: ".$WEBPATH."?page=settings&id=".$user_id);
|
header("Location: ".$WEBPATH."?page=settings&id=".$user_id);
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: permission denied!
|
//ERROR: permission denied!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: The form was not filled in correclty
|
//ERROR: The form was not filled in correclty
|
||||||
header("Location: index.php?page=settings");
|
header("Location: index.php?page=settings");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: user is not logged in
|
//ERROR: user is not logged in
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}catch (PDOException $e) {
|
}catch (PDOException $e) {
|
||||||
//go to error page or something, because can't access website db
|
//go to error page or something, because can't access website db
|
||||||
print_r($e);
|
print_r($e);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,32 +35,32 @@ function create_ticket(){
|
||||||
}else{
|
}else{
|
||||||
header("Location: ".$WEBPATH."?page=show_ticket&id=".$ticket_id);
|
header("Location: ".$WEBPATH."?page=show_ticket&id=".$ticket_id);
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}catch (PDOException $e) {
|
}catch (PDOException $e) {
|
||||||
//ERROR: LIB DB is not online!
|
//ERROR: LIB DB is not online!
|
||||||
print_r($e);
|
print_r($e);
|
||||||
exit;
|
die();
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: permission denied!
|
//ERROR: permission denied!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: The form was not filled in correclty
|
//ERROR: The form was not filled in correclty
|
||||||
header("Location: index.php?page=create_ticket");
|
header("Location: index.php?page=create_ticket");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: user is not logged in
|
//ERROR: user is not logged in
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,13 +23,13 @@ function deactivate_plugin() {
|
||||||
{
|
{
|
||||||
// if result is successfull it redirects and shows success message
|
// if result is successfull it redirects and shows success message
|
||||||
header( "Location: index.php?page=plugins&result=5" );
|
header( "Location: index.php?page=plugins&result=5" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// if result is unsuccessfull it redirects and shows success message
|
// if result is unsuccessfull it redirects and shows success message
|
||||||
header( "Location: index.php?page=plugins&result=6" );
|
header( "Location: index.php?page=plugins&result=6" );
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ function deactivate_plugin() {
|
||||||
{
|
{
|
||||||
//if $_GET variable is not set it redirects and shows error
|
//if $_GET variable is not set it redirects and shows error
|
||||||
header( "Location: index.php?page=plugins&result=6" );
|
header( "Location: index.php?page=plugins&result=6" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,14 +30,14 @@ function delete_plugin() {
|
||||||
|
|
||||||
//if result successfull redirect and show success message
|
//if result successfull redirect and show success message
|
||||||
header( "Location: index.php?page=plugins&result=2" );
|
header( "Location: index.php?page=plugins&result=2" );
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// if result unsuccessfull redirect and show error message
|
// if result unsuccessfull redirect and show error message
|
||||||
header( "Location: index.php?page=plugins&result=0" );
|
header( "Location: index.php?page=plugins&result=0" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ function delete_plugin() {
|
||||||
{
|
{
|
||||||
// if result unsuccessfull redirect and show error message
|
// if result unsuccessfull redirect and show error message
|
||||||
header( "Location: index.php?page=plugins&result=0" );
|
header( "Location: index.php?page=plugins&result=0" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ function forgot_password(){
|
||||||
$result['EMAIL_ERROR'] = 'TRUE';
|
$result['EMAIL_ERROR'] = 'TRUE';
|
||||||
$result['no_visible_elements'] = 'TRUE';
|
$result['no_visible_elements'] = 'TRUE';
|
||||||
helpers :: loadtemplate( 'forgot_password', $result);
|
helpers :: loadtemplate( 'forgot_password', $result);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
$webUser = new WebUsers($target_id);
|
$webUser = new WebUsers($target_id);
|
||||||
$target_username = $webUser->getUsername();
|
$target_username = $webUser->getUsername();
|
||||||
|
@ -44,7 +44,7 @@ function forgot_password(){
|
||||||
$result['prevEmail'] = $email;
|
$result['prevEmail'] = $email;
|
||||||
$result['no_visible_elements'] = 'TRUE';
|
$result['no_visible_elements'] = 'TRUE';
|
||||||
helpers :: loadtemplate( 'forgot_password', $result);
|
helpers :: loadtemplate( 'forgot_password', $result);
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -59,17 +59,17 @@ function install_plugin() {
|
||||||
if ( $x == '1' )
|
if ( $x == '1' )
|
||||||
{
|
{
|
||||||
echo "update found";
|
echo "update found";
|
||||||
exit();
|
die();
|
||||||
}
|
}
|
||||||
else if ( $x == '2' )
|
else if ( $x == '2' )
|
||||||
{
|
{
|
||||||
echo "Plugin already exists with same name .";
|
echo "Plugin already exists with same name .";
|
||||||
exit();
|
die();
|
||||||
}
|
}
|
||||||
else if ( $x == '3' )
|
else if ( $x == '3' )
|
||||||
{
|
{
|
||||||
echo "Update info is not present in the update";
|
echo "Update info is not present in the update";
|
||||||
exit();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -80,18 +80,18 @@ function install_plugin() {
|
||||||
{
|
{
|
||||||
if ( move_uploaded_file( $fileTmpLoc, $temp_path . "/" . $fileName ) ) {
|
if ( move_uploaded_file( $fileTmpLoc, $temp_path . "/" . $fileName ) ) {
|
||||||
echo "$fileName upload is complete.</br>" . "<button type='submit' class='btn btn-primary' style='margin-left:5px; margin-top:10px;' name='install_plugin'>Install Plugin</button></br>";
|
echo "$fileName upload is complete.</br>" . "<button type='submit' class='btn btn-primary' style='margin-left:5px; margin-top:10px;' name='install_plugin'>Install Plugin</button></br>";
|
||||||
exit();
|
die();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo "Error in uploading file.";
|
echo "Error in uploading file.";
|
||||||
exit();
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo "Please select a file with .zip extension to upload.";
|
echo "Please select a file with .zip extension to upload.";
|
||||||
exit();
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -126,28 +126,28 @@ function install_plugin() {
|
||||||
|
|
||||||
// if everything is successfull redirecting to the plugin template
|
// if everything is successfull redirecting to the plugin template
|
||||||
header( "Location: index.php?page=plugins&result=1" );
|
header( "Location: index.php?page=plugins&result=1" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// file .info not exists
|
// file .info not exists
|
||||||
rmdir( $target_path );
|
rmdir( $target_path );
|
||||||
header( "Location: index.php?page=install_plugin&result=2" );
|
header( "Location: index.php?page=install_plugin&result=2" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
// extraction failed
|
// extraction failed
|
||||||
header( "Location: index.php?page=install_plugin&result=0" );
|
header( "Location: index.php?page=install_plugin&result=0" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo "Please Browse for a file before clicking the upload button";
|
echo "Please Browse for a file before clicking the upload button";
|
||||||
exit();
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -279,7 +279,7 @@ function checkForUpdate( $fileName, $findPath, $tempFile, $tempPath )
|
||||||
if ( pluginUpdateExists( $info['Id'], $tempPath . "/" . trim( $fileName, ".zip" ) . "_" . $result['Version'] . ".zip" ) )
|
if ( pluginUpdateExists( $info['Id'], $tempPath . "/" . trim( $fileName, ".zip" ) . "_" . $result['Version'] . ".zip" ) )
|
||||||
{
|
{
|
||||||
echo "Update already exists";
|
echo "Update already exists";
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// removing the preivous update
|
// removing the preivous update
|
||||||
|
@ -294,7 +294,7 @@ function checkForUpdate( $fileName, $findPath, $tempFile, $tempPath )
|
||||||
$update['UpdateInfo'] = json_encode( $result );
|
$update['UpdateInfo'] = json_encode( $result );
|
||||||
$dbr -> insert( "updates", $update );
|
$dbr -> insert( "updates", $update );
|
||||||
header( "Location: index.php?page=plugins&result=7" );
|
header( "Location: index.php?page=plugins&result=7" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,21 +38,21 @@ function login(){
|
||||||
}else{
|
}else{
|
||||||
header( 'Location: '. $WEBPATH . $GETString);
|
header( 'Location: '. $WEBPATH . $GETString);
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
}else{
|
}else{
|
||||||
//handle login failure
|
//handle login failure
|
||||||
$result = Array();
|
$result = Array();
|
||||||
$result['login_error'] = 'TRUE';
|
$result['login_error'] = 'TRUE';
|
||||||
$result['no_visible_elements'] = 'TRUE';
|
$result['no_visible_elements'] = 'TRUE';
|
||||||
helpers :: loadtemplate( 'login', $result);
|
helpers :: loadtemplate( 'login', $result);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}catch (PDOException $e) {
|
}catch (PDOException $e) {
|
||||||
//go to error page or something, because can't access website db
|
//go to error page or something, because can't access website db
|
||||||
print_r($e);
|
print_r($e);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,18 +49,18 @@ function modify_email_of_sgroup(){
|
||||||
}else{
|
}else{
|
||||||
header("Location: ".$WEBPATH."?page=show_sgroup&id=".$sgroupid);
|
header("Location: ".$WEBPATH."?page=show_sgroup&id=".$sgroupid);
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -46,25 +46,25 @@ function reply_on_ticket(){
|
||||||
}else{
|
}else{
|
||||||
header("Location: ".$WEBPATH."?page=show_ticket&id=".$ticket_id);
|
header("Location: ".$WEBPATH."?page=show_ticket&id=".$ticket_id);
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}catch (PDOException $e) {
|
}catch (PDOException $e) {
|
||||||
//ERROR: LIB DB is not online!
|
//ERROR: LIB DB is not online!
|
||||||
print_r($e);
|
print_r($e);
|
||||||
//header("Location: index.php");
|
//header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -24,7 +24,7 @@ function reset_password(){
|
||||||
}
|
}
|
||||||
$result['no_visible_elements'] = 'TRUE';
|
$result['no_visible_elements'] = 'TRUE';
|
||||||
helpers :: loadtemplate( 'reset_success', $result);
|
helpers :: loadtemplate( 'reset_success', $result);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
$GETString = "";
|
$GETString = "";
|
||||||
foreach($_GET as $key => $value){
|
foreach($_GET as $key => $value){
|
||||||
|
@ -38,7 +38,7 @@ function reset_password(){
|
||||||
$result['prevConfirmNewPass'] = $confirmpass;
|
$result['prevConfirmNewPass'] = $confirmpass;
|
||||||
$result['no_visible_elements'] = 'TRUE';
|
$result['no_visible_elements'] = 'TRUE';
|
||||||
helpers :: loadtemplate( 'reset_password', $result);
|
helpers :: loadtemplate( 'reset_password', $result);
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -31,7 +31,7 @@ function update_plugin() {
|
||||||
|
|
||||||
// if update is installed succesffully redirect to show success message
|
// if update is installed succesffully redirect to show success message
|
||||||
header( "Location: index.php?page=plugins&result=8" );
|
header( "Location: index.php?page=plugins&result=8" );
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ function change_permission(){
|
||||||
}else{
|
}else{
|
||||||
header("Location: ".$WEBPATH."?page=show_user&id=".$user_id);
|
header("Location: ".$WEBPATH."?page=show_user&id=".$user_id);
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
@ -37,21 +37,21 @@ function change_permission(){
|
||||||
}else{
|
}else{
|
||||||
header("Location: ".$WEBPATH."?page=show_user&id=".$user_id);
|
header("Location: ".$WEBPATH."?page=show_user&id=".$user_id);
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ function createticket(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//if user_id is given, then set it as the target_id
|
//if user_id is given, then set it as the target_id
|
||||||
|
@ -48,7 +48,7 @@ function createticket(){
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -30,14 +30,14 @@ function dashboard(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ function login() {
|
||||||
} else {
|
} else {
|
||||||
header('Location: ' . $WEBPATH);
|
header('Location: ' . $WEBPATH);
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$pageElements['ingame_webpath'] = $INGAME_WEBPATH;
|
$pageElements['ingame_webpath'] = $INGAME_WEBPATH;
|
||||||
|
|
|
@ -33,7 +33,7 @@ function plugins()
|
||||||
// ERROR: No access!
|
// ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header( "Location: index.php?page=error" );
|
header( "Location: index.php?page=error" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,6 @@ function plugins_update()
|
||||||
// ERROR: No access!
|
// ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header( "Location: index.php?page=error" );
|
header( "Location: index.php?page=error" );
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,6 @@ function reset_password(){
|
||||||
global $WEBPATH;
|
global $WEBPATH;
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: ".$WEBPATH."?page=error");
|
header("Location: ".$WEBPATH."?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -13,7 +13,7 @@ function settings(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}else{
|
}else{
|
||||||
$webUser = new Webusers($_GET['id']);
|
$webUser = new Webusers($_GET['id']);
|
||||||
$result = $webUser->getInfo();
|
$result = $webUser->getInfo();
|
||||||
|
@ -47,7 +47,7 @@ function settings(){
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ function sgroup_list(){
|
||||||
}else{
|
}else{
|
||||||
header("Location: ".$WEBPATH."?page=sgroup_list");
|
header("Location: ".$WEBPATH."?page=sgroup_list");
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
if(Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
if(Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||||
$result['isAdmin'] = "TRUE";
|
$result['isAdmin'] = "TRUE";
|
||||||
|
@ -34,12 +34,12 @@ function sgroup_list(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -149,19 +149,19 @@ function show_queue(){
|
||||||
//ERROR: Doesn't exist!
|
//ERROR: Doesn't exist!
|
||||||
$_SESSION['error_code'] = "404";
|
$_SESSION['error_code'] = "404";
|
||||||
header("Location: ams?page=error");
|
header("Location: ams?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -44,11 +44,11 @@ function show_reply(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -25,7 +25,7 @@ function show_sgroup(){
|
||||||
}else{
|
}else{
|
||||||
header("Location: ".$WEBPATH."?page=show_sgroup&id=" . $result['target_id']);
|
header("Location: ".$WEBPATH."?page=show_sgroup&id=" . $result['target_id']);
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,19 +65,19 @@ function show_sgroup(){
|
||||||
//ERROR: No page specified!
|
//ERROR: No page specified!
|
||||||
$_SESSION['error_code'] = "404";
|
$_SESSION['error_code'] = "404";
|
||||||
header("Location: ams?page=error");
|
header("Location: ams?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -83,11 +83,11 @@ function show_ticket(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -50,11 +50,11 @@ function show_ticket_info(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -68,11 +68,11 @@ function show_ticket_log(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -42,11 +42,11 @@ function show_user(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//ERROR: not logged in!
|
//ERROR: not logged in!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,6 @@ function syncing(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -31,6 +31,6 @@ function userlist(){
|
||||||
//ERROR: No access!
|
//ERROR: No access!
|
||||||
$_SESSION['error_code'] = "403";
|
$_SESSION['error_code'] = "403";
|
||||||
header("Location: index.php?page=error");
|
header("Location: index.php?page=error");
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,7 +101,7 @@ function ryzom_app_authenticate(&$user, $ask_login=true, $welcome_message='', $w
|
||||||
$c .= '<div style="text-align: center"><strong style="color: #FF5555">'._t($user['message']).'</strong></div><br />';
|
$c .= '<div style="text-align: center"><strong style="color: #FF5555">'._t($user['message']).'</strong></div><br />';
|
||||||
$c .= ryzom_render_login_form($name, false);
|
$c .= ryzom_render_login_form($name, false);
|
||||||
echo ryzom_app_render(_t('app_'.APP_NAME), $c);
|
echo ryzom_app_render(_t('app_'.APP_NAME), $c);
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -328,10 +328,10 @@ function ryzom_redirect($url, $group='', $extra_lua='') {
|
||||||
$lua .= 'getUI("ui:interface:'.$group.':content:html"):browse("'.str_replace('&', '&', $url).'")';
|
$lua .= 'getUI("ui:interface:'.$group.':content:html"):browse("'.str_replace('&', '&', $url).'")';
|
||||||
}
|
}
|
||||||
echo '<lua>'.$lua.'</lua>';
|
echo '<lua>'.$lua.'</lua>';
|
||||||
exit();
|
die();
|
||||||
} else {
|
} else {
|
||||||
header('Location: '.$url);
|
header('Location: '.$url);
|
||||||
exit();
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
$MY_PATH = dirname(__FILE__);
|
$MY_PATH = dirname(__FILE__);
|
||||||
|
|
||||||
if(file_exists("parser.stop")) {
|
if(file_exists("parser.stop")) {
|
||||||
exit(0);
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once("class/mySQL_class.php");
|
require_once("class/mySQL_class.php");
|
||||||
|
@ -360,5 +360,5 @@ for($dtrun=0;$dtrun<2;$dtrun++) {
|
||||||
|
|
||||||
#$log->logf("Run complete; exiting...");
|
#$log->logf("Run complete; exiting...");
|
||||||
$log->close();
|
$log->close();
|
||||||
exit(0);
|
die();
|
||||||
?>
|
?>
|
|
@ -37,5 +37,5 @@
|
||||||
|
|
||||||
echo "</ryzom_progress>";
|
echo "</ryzom_progress>";
|
||||||
|
|
||||||
exit(0);
|
die();
|
||||||
?>
|
?>
|
|
@ -109,5 +109,5 @@
|
||||||
|
|
||||||
echo "</ryzom_achievements>";
|
echo "</ryzom_achievements>";
|
||||||
|
|
||||||
exit(0);
|
die();
|
||||||
?>
|
?>
|
|
@ -63,14 +63,14 @@ if ( isset( $_GET['search'] ) && isset( $_GET['format'] ) )
|
||||||
$response = $c;
|
$response = $c;
|
||||||
// sending the response
|
// sending the response
|
||||||
echo( $response );
|
echo( $response );
|
||||||
exit;
|
die();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo 'Invalid response';
|
echo 'Invalid response';
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,7 @@ function joinShardFromId( $userId, $domainId, $destSessionId )
|
||||||
// Note: the answer is a joinSessionResult message
|
// Note: the answer is a joinSessionResult message
|
||||||
echo "No response from server, joinShard failed<br>";
|
echo "No response from server, joinShard failed<br>";
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -166,7 +166,7 @@ function getShardList($userId, $domainId)
|
||||||
{
|
{
|
||||||
echo "No response from server, getShards failed<br>";
|
echo "No response from server, getShards failed<br>";
|
||||||
}
|
}
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -211,7 +211,7 @@ function displayAllShards(&$onlineShardsBySessionId)
|
||||||
|
|
||||||
//echo "<input type='submit' name='button' value='Teleport' />";
|
//echo "<input type='submit' name='button' value='Teleport' />";
|
||||||
//echo "</form></font>";
|
//echo "</form></font>";
|
||||||
exit;
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue