<div class="content">	
			<div class="content-header">
				<h4><a href="?p=admin">Main Menu</a> / <a href="?p=admin&sub=users">Manage Users</a> / <?php 
            echo $profile['username'];
            ?>
</h4>
			</div> <!-- .content-header -->				
			<div class="main-content">
			
				<?php 
            if (isset($_POST['action'])) {
                if ($user['account_level'] <= $profile['account_level'] && $user['account_level'] != '4') {
                    output_message('error', 'You cannot edit this infomation. Not enough Privilages!');
                } else {
                    if ($_POST['action'] == 'editProfile') {
                        changeDetails();
                    } elseif ($_POST['action'] == 'changePass') {
                        changePass();
                    } elseif ($_POST['action'] == 'editWeb') {
                        editUser();
                    }
                }
            }
            ?>
				
				<!-- Table for general account details -->
				<table style="border-bottom: 1px solid #E5E2E2;">
					<thead>
						<th colspan="4"><center><b><?php 
            echo $lang['general_stats'];
            ?>
示例#2
0
                    if (strlen($password) != 128) {
                        // The hashed pwd should be 128 characters long.
                        // If it's not, something really odd has happened
                        $result = '<p class="error">Invalid password configuration.</p>';
                    }
                    $random_salt = hash('sha512', uniqid(mt_rand(1, mt_getrandmax()), true));
                    $value = hash('sha512', $password . $random_salt);
                    if (!$value == "") {
                        $col = "password";
                        $session_name = "password";
                        if (!changeDetails($mysqli, $random_salt, "salt", "")) {
                            $result = "can not update your details";
                        } else {
                            $result = "updated";
                        }
                        if (!changeDetails($mysqli, $value, $col, "")) {
                            $result = "can not update your details";
                        } else {
                            $result = "updated";
                        }
                    } else {
                        $result = "error , there is a mistake with your email";
                    }
                }
            }
        }
    }
}
?>

<ul class="user-details">