mirror of
https://silica.codes/islehorse/HorseIsleWeb.git
synced 2025-04-06 05:05:47 +12:00
update webiste
This commit is contained in:
parent
66bbfd7913
commit
ed3ee67204
4 changed files with 13 additions and 8 deletions
|
@ -47,10 +47,14 @@ if(!is_logged_in() && isset($_GET["SLID"], $_GET["C"]))
|
|||
$_SESSION['PLAYER_ID'] = $id;
|
||||
$_SESSION['USERNAME'] = get_username($id);
|
||||
$_SESSION['SEX'] = get_sex($id);
|
||||
$_SESSION['ADMIN'] = get_admin($id);
|
||||
$_SESSION['MOD'] = get_mod($id);
|
||||
$_SESSION['ADMIN'] = get_admin($id) ? "YES" : "NO";
|
||||
$_SESSION['MOD'] = get_mod($id) ? "YES" : "NO";
|
||||
$_SESSION['PASSWORD_HASH'] = get_password_hash($id);
|
||||
$_SESSION['SALT'] = get_salt($id);
|
||||
|
||||
if($_SESSION['ADMIN'] == 'YES')
|
||||
$_SESSION['MOD'] = 'YES';
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -18,8 +18,8 @@ if(isset($_POST["USER"], $_POST["PASS"]))
|
|||
$_SESSION['PLAYER_ID'] = $id;
|
||||
$_SESSION['USERNAME'] = get_username($id);
|
||||
$_SESSION['SEX'] = get_sex($id);
|
||||
$_SESSION['ADMIN'] = get_admin($id);
|
||||
$_SESSION['MOD'] = get_mod($id);
|
||||
$_SESSION['ADMIN'] = get_admin($id) ? "YES" : "NO";
|
||||
$_SESSION['MOD'] = get_mod($id) ? "YES" : "NO";
|
||||
$_SESSION['PASSWORD_HASH'] = get_password_hash($id);
|
||||
$_SESSION['SALT'] = get_salt($id);
|
||||
|
||||
|
|
|
@ -302,8 +302,8 @@ function createAccountOnServer(string $database)
|
|||
$id = intval($_SESSION['PLAYER_ID']);
|
||||
$username = $_SESSION['USERNAME'];
|
||||
$sex = $_SESSION['SEX'];
|
||||
$admin = ($_SESSION['ADMIN'] ? "YES" : "NO");
|
||||
$mod = ($_SESSION['MOD'] ? "YES" : "NO");
|
||||
$admin = $_SESSION['ADMIN'];
|
||||
$mod = $_SESSION['MOD'];
|
||||
$passhash = $_SESSION['PASSWORD_HASH'];
|
||||
$salt = $_SESSION['SALT'];
|
||||
|
||||
|
|
|
@ -35,7 +35,8 @@ include("header.php");
|
|||
|
||||
if(!isset($_POST['VIEWID'])){
|
||||
$thread = create_fourm_thread($subject, $forum);
|
||||
create_fourm_reply($thread, $_SESSION['USERNAME'], $text, $forum, $_SESSION['ADMIN']);
|
||||
|
||||
create_fourm_reply($thread, $_SESSION['USERNAME'], $text, $forum, $_SESSION['ADMIN'] == 'YES');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -46,7 +47,7 @@ include("header.php");
|
|||
goto ex;
|
||||
}
|
||||
|
||||
create_fourm_reply($threadId, $_SESSION['USERNAME'], $text, $forum, $_SESSION['ADMIN']);
|
||||
create_fourm_reply($threadId, $_SESSION['USERNAME'], $text, $forum, $_SESSION['ADMIN'] == 'YES');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue