Skip to content
Permalink
Browse files Browse the repository at this point in the history
e_TOKEN added.
  • Loading branch information
CaMer0n committed Mar 2, 2021
1 parent 4e58326 commit d9efdb9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions usersettings.php
Expand Up @@ -21,7 +21,10 @@
USET_01 - admin changed user data
*/


if(!empty($_POST) && !isset($_POST['e-token']))
{
$_POST['e-token'] = '';
}
require_once ('class2.php');

// TODO - Remove all the adminEdit stuff.
Expand Down Expand Up @@ -1032,6 +1035,7 @@ private function renderPasswordForm($changedUserData, $changedEUFData )
<input type='hidden' name='updated_key' value='{$validation_key}' />
<input type='hidden' name='updated_extended' value='{$updated_extended}' />
<input type='hidden' name='extended_key' value='{$extended_key}' />
<input type='hidden' name='e-token' value='".defset('e_TOKEN')."' />
</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td style='text-align:center'>
Expand Down Expand Up @@ -1085,8 +1089,6 @@ private function renderForm($changedUserData)

$text = '<form method="post" action="'.$target.'" id="dataform" class="usersettings-form form-horizontal" enctype="multipart/form-data" autocomplete="off">';

//$text = (is_numeric($_uid) ? $rs->form_open("post", e_SELF."?".e_QUERY, "dataform", "", " class='form-horizontal' role='form' enctype='multipart/form-data'") : $rs->form_open("post", e_SELF, "dataform", "", " class='form-horizontal' role='form' enctype='multipart/form-data'"));

if (e_QUERY == "update")
{
$text .= "<div class='fborder' style='text-align:center'><br />".str_replace("*", "<span class='required'>*</span>", LAN_USET_9)."<br />".LAN_USET_10."<br /><br /></div>";
Expand All @@ -1102,6 +1104,7 @@ private function renderForm($changedUserData)


$text .= "<div><input type='hidden' name='_uid' value='{$uuid}' /></div>
<input type='hidden' name='e-token' value='".defset('e_TOKEN')."' />
</form>
";

Expand All @@ -1110,9 +1113,6 @@ private function renderForm($changedUserData)
$ns->tablerender($caption, $text);





}


Expand Down

0 comments on commit d9efdb9

Please sign in to comment.