aboutsummaryrefslogtreecommitdiff
path: root/app/class
diff options
context:
space:
mode:
Diffstat (limited to 'app/class')
-rw-r--r--app/class/Controllerfont.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/app/class/Controllerfont.php b/app/class/Controllerfont.php
index 63b3ced..91a7936 100644
--- a/app/class/Controllerfont.php
+++ b/app/class/Controllerfont.php
@@ -13,18 +13,23 @@ class Controllerfont extends Controller
{
parent::__construct($router);
$this->fontmanager = new Modelfont();
-
}
public function desktop()
{
- if($this->user->iseditor()) {
-
+ if ($this->user->iseditor()) {
$this->fontmanager->fontdircheck();
$fontlist = $this->fontmanager->getfontlist();
- $this->showtemplate('font', ['fontlist' => $fontlist, 'fonttypes' => $this->fontmanager->getfonttypes(), 'fontfile' => Model::globalpath().'fonts.css']);
+ $this->showtemplate(
+ 'font',
+ [
+ 'fontlist' => $fontlist,
+ 'fonttypes' => $this->fontmanager->getfonttypes(),
+ 'fontfile' => Model::globalpath() . 'fonts.css'
+ ]
+ );
} else {
$this->routedirect('home');
}
@@ -38,19 +43,16 @@ class Controllerfont extends Controller
public function add()
{
- if(isset($_POST['fontname'])) {
+ if (isset($_POST['fontname'])) {
$fontname = $_POST['fontname'];
} else {
$fontname = '';
}
$message = $this->fontmanager->upload($_FILES, 2 ** 16, $fontname);
- if($message !== true) {
+ if ($message !== true) {
echo $message;
} else {
$this->render();
}
}
}
-
-
-?> \ No newline at end of file