Add files via upload
This commit is contained in:
parent
e3987d2692
commit
055c6e8903
2 changed files with 19 additions and 1 deletions
16
user_css/canvas/default_user.php
Normal file
16
user_css/canvas/default_user.php
Normal 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;
|
||||
?>
|
||||
|
|
@ -1 +1,3 @@
|
|||
|
||||
<?php
|
||||
header("location: /");
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue