Skip to content

Commit

Permalink
admin panel now uses secondary theme
Browse files Browse the repository at this point in the history
  • Loading branch information
x35gaming authored Feb 5, 2020
1 parent a08d381 commit 0e08303
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions admin/manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ function joinToLinks($text) {

function loadCss($file) {
global $conf;
$style = "../themes/".$conf["theme"]."/$file"; //load css files without typing the dir
$style = "../themes/".$conf["secondary-theme"]."/$file"; //load css files without typing the dir
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$style\"></link>" ;
}
function loadJs($file) {
global $conf;
$script = "../themes/".$conf["theme"]."/$file"; //load css files without typing the dir
$script = "../themes/".$conf["secondary-theme"]."/$file"; //load css files without typing the dir
echo "<script src=\"$script\"></script>" ;
}
if (isset($_SESSION["passwd"])) {
Expand Down Expand Up @@ -62,8 +62,7 @@ function joinToMain($text) {
// <body>
joinToMain($Parsedown->text(file_get_contents("admin.md")));


// </body>
require("../themes/".$conf["theme"]."/theme.php"); //load theme
require("../themes/".$conf["secondary-theme"]."/theme.php"); //load theme
};}else{echo "<script> window.location.href=\"index.php\" </script>";}
?>
?>

0 comments on commit 0e08303

Please sign in to comment.