Beispiel #1
0
 protected function init()
 {
     \zing\view\Base::$view_paths[] = ZING_ROOT . '/plugins/zing.cms/app/views';
     \zing\view\Base::$stylesheet_collections['zing.cms.admin-core'] = array('zing.cms/admin/reset.css', 'zing.cms/admin/typography.css', 'zing.cms/admin/flash.css', 'zing.cms/admin/helpers.css', 'zing.cms/admin/layout.css');
     \zing\view\Base::$stylesheet_collections['zing.cms.admin-session'] = array(':zing.cms.admin-core', 'zing.cms/admin/session.css');
     \zing\view\Base::$stylesheet_collections['zing.cms.admin'] = array(':zing.cms.admin-core', 'zing.cms/admin/widgets.css', 'zing.cms/admin/main.css', 'zing.cms/admin/asset-dialog.css', 'zing.cms/jscalendar-1.0/calendar-win2k-1.css');
     \zing\view\Base::$javascript_collections['zing.cms.admin'] = array('zing.cms.config.admin.js', 'zing.cms/jscalendar-1.0/calendar_stripped.js', 'zing.cms/jscalendar-1.0/lang/calendar-en.js', 'zing.cms/admin/jquery.min.js', 'zing.cms/admin/zing.js', 'zing.cms/admin/jquery.drag-queen.js', 'zing.cms/tiny_mce/jquery.tinymce.js', 'zing.cms/admin/jquery.rebind.js', 'zing.cms/admin/admin.js');
     $this->layout('admin/main');
     $this->helper('\\zing\\cms\\admin\\helpers\\BaseHelper');
     $this->helper('\\zing\\cms\\admin\\helpers\\URLHelper');
     \zing_load_config('zing.cms.admin');
     $this->admin_structure = \ff\admin\structure\Structure::instance();
 }
Beispiel #2
0
 public static function load()
 {
     $config = new self();
     zing_load_config('zing.cms.assets.warp', array('WARP' => $config));
     return $config;
 }
Beispiel #3
0
 */
function zing_class_name($class)
{
    if (is_object($class)) {
        $class = get_class($class);
    }
    if (($p = strrpos($class, '\\')) !== false) {
        $class = substr($class, $p + 1);
    }
    return strtolower(preg_replace('|([^^])([A-Z])|', '$1_$2', $class));
}
//
// Bail out if we're running from the console
// Everything hereafter is web-only...
if (ZING_CONSOLE) {
    zing_load_config('system');
    echo "Zing! Console initialised (environment=" . ZING_ENV . ", php=" . phpversion() . ")\n";
    return;
}
//
// Input transformation
//
// Compatibility
if (strpos($_SERVER['SERVER_SOFTWARE'], 'lighttpd') !== false) {
    if (($p = strpos($_SERVER['REQUEST_URI'], '?')) !== false) {
        $_SERVER['QUERY_STRING'] = substr($_SERVER['REQUEST_URI'], $p + 1);
        parse_str($_SERVER['QUERY_STRING'], $_GET);
    }
}
//
// Rejig $_FILES layout to be sane and create objects in $_POST for each