Browse Source

Removed unused minecraft settings

development
Teknikode 4 years ago
parent
commit
164cb7a0a8
2 changed files with 1 additions and 26 deletions
  1. 1
    9
      includes/delete_account.php
  2. 0
    17
      includes/update_profile.php

+ 1
- 9
includes/delete_account.php View File

@@ -19,18 +19,10 @@ if(isset($_POST))
{
echo $result;
}
/*
$r = new minecraftRcon($CONF['minecraft_server'], $CONF['rcon_port'], $CONF['rcon_pass']);

// Authenticate, and if so, execute command(s)
if ( $r->Auth() ) {
$r->mcRconCommand('pex user '.$user->minecraft_user." group remove Member");
}
*/
//delete the user from the main database
$user->delete($db);
//log the user out
$userTools->logout($CONF);
echo "true";

+ 0
- 17
includes/update_profile.php View File

@@ -6,7 +6,6 @@ $current_password = "";
$password = "";
$password_confirm = "";
$theme = "";
$minecraft = "";
$website = "";
$profile_image = "";
$quote = "";
@@ -35,7 +34,6 @@ if(isset($_POST))
$password = rawurldecode($_POST['password']);
$password_confirm = rawurldecode($_POST['password_confirm']);
$theme = rawurldecode($_POST['theme']);
//$minecraft = rawurldecode($revised_post_array['minecraft']);
$website = rawurldecode($revised_post_array['website']);
$quote = rawurldecode($revised_post_array['quote']);
$about = rawurldecode($revised_post_array['about']);
@@ -124,22 +122,7 @@ if(isset($_POST))
}
}

/*
if ($minecraft != $user->minecraft_user)
{
// code to add/remove user from permissionsex
// Connect to the server
$r = new minecraftRcon($CONF['minecraft_server'], $CONF['rcon_port'], $CONF['rcon_pass']);
// Authenticate, and if so, execute command(s)
if ( $r->Auth() ) {
$r->mcRconCommand('pex user '.$user->minecraft_user." group remove Member");
$r->mcRconCommand('pex user '.$minecraft." group add Member");
}
}
*/
$user->theme = $theme;
//$user->minecraft_user = $minecraft;
$user->website = $website;
$user->quote = $quote;
$user->about = $about;

Loading…
Cancel
Save