echo $item; ?> </a></li><?php } ?> </ul></li> <?php if (user == FALSE) { echo "<span class='userbar-link-li'>Not logged in! <a href='" . get_blog_stuff("url") . "login.php'>go login now!</a></span>"; } else { ?> <li><a id="userbar-username" href="<?php echo get_blog_stuff("url"); ?> admin/users.php?action=me"> <img class="userbar-icon" src=" <?php echo get_user_stuff(get_user_stuff(user, "email"), "avatar"); ?> "> <ul> <li><a href="<?php echo get_blog_stuff("url"); ?> admin/users.php?action=me">Me</a></li> </ul> </li></a> <?php } ?> </ul>
$password = $dbpass; $dbname = $dbname; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT * FROM " . $prefix . "_users WHERE nickname='" . $_COOKIE["user"] . "'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while ($row = $result->fetch_assoc()) { ?> <strong>Avatar:</strong><?php echo get_user_stuff($row["email"], "avatar"); ?> <strong>Email:</strong><?php echo $row["email"]; ?> <strong>Name:</strong><?php echo $row["name"]; ?> <strong>ID:</strong><?php echo $row["id"]; ?> <strong>Nickname:</strong><?php echo $row["nickname"]; ?> <strong>Registred:</strong><?php echo $row["reg_date"];
<label for="update_nickname">Nickname:</label> <input id="update_nickname" name="update_nickname" value="<?php echo get_user_stuff(get_user_ID(user), "nickname"); ?> " disabled> </fieldset> <fieldset> <legend>Contact Info</legend> <label for="update_email">E-Mail:</label> <input id="update_email" type="email" name="update_email" value="<?php echo get_user_stuff(get_user_ID(user), "email"); ?> "> <label>OC Username:</label> <?php oc_login_button(); ?> </fieldset> <fieldset> <legend>Biograpy</legend> <textarea name="update_description"><?php echo get_user_stuff(get_user_ID(user), "description"); ?> </textarea> </fieldset> <input type="reset"> <input type="submit"> </form> <?php } require "footer.php";
/includes/css/all.css"> <link rel="stylesheet" type="text/css" href="css/style.css"> <?php if (file_exists(abspath . "/admin/css/" . $page . ".css")) { ?> <link rel="stylesheet" type="text/css" href="css/<?php echo $page; ?> .css"><?php } ?> <title><?php echo $page; echo " | " . $title; ?> Admin</title></head> <body oncontextmenu="runstopcopy(); return false;"> <?php include abspath . "/includes/resources/userbar/userbar.php"; include 'menu.php'; ?> <div id="page"> <?php if (get_user_stuff(user, "role") < 4 and $page != "pages") { oc_die("permission error", 403); } ?> <h1><?php echo $page; ?> </h1>