Update headshot.php
This commit is contained in:
parent
f1904071b8
commit
af5e01fc02
|
|
@ -1,16 +1,17 @@
|
|||
<?php
|
||||
// this file is entirely made by nolanwhy, no skid pls
|
||||
// thanx u nolan im also gonna add some comments here cuz why not - mario
|
||||
require_once '../../../core/classes.php';
|
||||
require_once '../../../core/config.php';
|
||||
$id = (int)$_GET["userId"] ?? 0;
|
||||
$stmt = $con->prepare("SELECT * FROM users WHERE id = :id");
|
||||
$id = (int)$_GET["userId"] ?? 1; // get the id!! if its no id then 1
|
||||
$stmt = $con->prepare("SELECT * FROM users WHERE id = :id"); // get everythin from users where the id is the id
|
||||
$stmt->bindParam(':id',$id,PDO::PARAM_INT);
|
||||
$stmt->execute();
|
||||
$ruser = $stmt->fetch();
|
||||
if(!$ruser) {
|
||||
exit;
|
||||
}
|
||||
function renderUser($id, $times = 1) {
|
||||
function renderUser($id, $times = 1) { // render function noice
|
||||
global $RCCServiceSoap;
|
||||
global $site;
|
||||
// times is the like, if you rendered 2 times or shit.
|
||||
|
|
@ -51,3 +52,4 @@ if(empty($ruser["headshot"])) {
|
|||
} else {
|
||||
echo base64_decode($ruser["headshot"]);
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue