Add files via upload

This commit is contained in:
Justin 2022-07-20 09:46:53 -04:00 committed by GitHub
commit 055c6e8903
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,16 @@
<?php
header('Content-Type: text/css');
require_once("../../inc/conx.php");
if($logged_in == false) {
header("location: /");
exit();
}
$g_user = safe($_GET['u']);
if(mysqli_num_rows($cnv_q = mysqli_query($conx, "SELECT css FROM accounts WHERE username='$g_user'")) == '0') {
header("location: /hub");
exit();
}
$cnv_r = mysqli_fetch_assoc($cnv_q);
$cnv_css = $cnv_r['css'];
echo $cnv_css;
?>

View file

@ -1 +1,3 @@
<?php
header("location: /");
?>