-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.php
42 lines (40 loc) · 1.68 KB
/
styles.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
if(!session_id())
session_start();
$dir = pathinfo($_SERVER['PHP_SELF']);
$directory = $dir['dirname'];
$username = basename($directory);
if($directory == "/UniPortal"){
$styles = <<<MPW
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.css" rel="stylesheet">
<link href="css/dropzone.css" rel="stylesheet">
<link href="trumbowyg/ui/trumbowyg.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
MPW;
}elseif($directory == '/UniPortal/questions' || $directory == "/UniPortal/lessons" || $directory == "/UniPortal/users"){
$styles = <<<MPW
<link href="./../bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="./../css/font-awesome.css" rel="stylesheet">
<link href="./../css/dropzone.css" rel="stylesheet">
<link href="./../trumbowyg/ui/trumbowyg.css" rel="stylesheet">
<link href="./../css/main.css" rel="stylesheet">
MPW;
}elseif($directory == '/UniPortal/questions/tags' || $directory == "/UniPortal/users/$username"){
$styles = <<<MPW
<link href="../../bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../../css/font-awesome.css" rel="stylesheet">
<link href="../../css/dropzone.css" rel="stylesheet">
<link href="../../trumbowyg/ui/trumbowyg.css" rel="stylesheet">
<link href="../../css/main.css" rel="stylesheet">
MPW;
}else{
$styles = <<<MPW
<link href="./../../../bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="./../../../css/font-awesome.css" rel="stylesheet">
<link href="./../../css/dropzone.css" rel="stylesheet">
<link href="./../../../trumbowyg/ui/trumbowyg.css" rel="stylesheet">
<link href="./../../../css/main.css" rel="stylesheet">
MPW;
}
echo $styles;