<?php require 'init.php'; if (!Auth\Auth::check()) { die('error'); } $user = Auth\Auth::get(); var_dump(Auth\Auth::edit($user->id, $_GET['mail'], $_GET['name'], isset($_GET['pass']) ? $_GET['pass'] : $_GET['pass'], isset($_GET['pass2']) ? $_GET['pass2'] : $_GET['pass2'])); ?> <form> <label>mail</label> <input type="email" name="mail" value="<?php echo $user->mail; ?> "> <label>name</label> <input type="text" name="name" value="<?php echo $user->name; ?> "> <label>pass</label> <input type="password" name="pass"> <label>pass2</label> <input type="password" name="pass2"> <input type="submit"> </form>
protected function check_user_is_admin() { return Auth\Auth::check() && Auth\Auth::get('group', -1) == 100; }