[ Index ]

PHP Cross Reference of MyBB 1.8.12

title

Body

[close]

/ -> css.php (source)

   1  <?php
   2  /**
   3   * MyBB 1.8
   4   * Copyright 2014 MyBB Group, All Rights Reserved
   5   *
   6   * Website: http://www.mybb.com
   7   * License: http://www.mybb.com/about/license
   8   *
   9   */
  10  
  11  define("IN_MYBB", 1);
  12  define("NO_ONLINE", 1);
  13  define('THIS_SCRIPT', 'css.php');
  14  
  15  require_once  "./inc/init.php";
  16  require_once MYBB_ROOT . $config['admin_dir'] . '/inc/functions_themes.php';
  17  
  18  $stylesheet = $mybb->get_input('stylesheet', MyBB::INPUT_INT);
  19  
  20  if($stylesheet)
  21  {
  22      $options = array(
  23          "limit" => 1
  24      );
  25      $query = $db->simple_select("themestylesheets", "stylesheet", "sid=".$stylesheet, $options);
  26      $stylesheet = $db->fetch_field($query, "stylesheet");
  27  
  28      $plugins->run_hooks("css_start");
  29  
  30      if(!empty($mybb->settings['minifycss']))
  31      {
  32          $stylesheet = minify_stylesheet($stylesheet);
  33      }
  34  
  35      $plugins->run_hooks("css_end");
  36  
  37      header("Content-type: text/css");
  38      echo $stylesheet;
  39  }
  40  exit;


2005 - 2016 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref 0.7.1