echo BASEURL; ?> css/style_administration.css"> </head> <body> <?php Controller::exec('Administration', 'header'); ?> <?php Controller::exec($module, $action); ?> <?php Controller::exec('Administration', 'footer'); ?> <!-- Javascript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="<?php echo BASEURL; ?> bootstrap/js/bootstrap.min.js"></script> <script> document.addEventListener('DOMContentLoaded', function(){ $('.deleteLink').bind('click', function(e){ if(!confirm('Do you want to delete this user?')){ e.preventDefault(); }
header('Content-type: text/css'); $scss = new SmartCSS(); $scss->parse(file_get_contents($this->filename)); echo $scss->publish(); } function getTargetFile() { if (!isset($_GET['file'])) { return false; } $filename = str_replace(array("", "\n", "\r"), '', $_GET['file']); if (!preg_match('/\\.css$/', $filename)) { return false; } $filename = preg_replace('/\\.css$/', '.scss', $filename); if (!file_exists($filename) || !ScssUtils::isValidPath($filename, dirname(__FILE__))) { return false; } $this->filename = $filename; return true; } function notFoundError() { header('HTTP/1.0 404 Not Found'); header('Content-type: text/plain'); die('File not found.'); } } $c = new Controller(); $c->exec();
} if (substr($queryString, -1) == '/') { $queryString = substr($queryString, 0, -1); } if (empty($queryString)) { Controller::exec('FindGuidelines', 'index'); } else { if ($queryString == 'download') { Controller::exec('FindGuidelines', 'download'); } else { if ($queryString == 'about') { Controller::exec('FindGuidelines', 'about'); } else { if (class_exists('AdministrationController') && $queryString == AdministrationController::DIRECTORY_ADMINISTRATION) { Controller::exec('administration', 'display'); } else { $brand = new Brand(); $brand->withSlug($queryString); if ($brand->hasId()) { Controller::exec('FindGuidelines', 'brandRedirect'); } else { Controller::exec('FindGuidelines', 'error404'); } } } } } } catch (Exception $e) { var_dump($e); echo 'Oups! Something do not work... :('; }