RooConfig.php
authorAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 08:26:50 +0000 (16:26 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 08:26:50 +0000 (16:26 +0800)
RooConfig.php [deleted file]

diff --git a/RooConfig.php b/RooConfig.php
deleted file mode 100644 (file)
index 2c7f304..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-
-class Pman_Core_RooConfig extends Pman {
-    
-    function getAuth()
-    {
-        return true; // everyone allowed
-    }
-    
-    function post() {
-        $this->jerr("access denied");
-    }
-    
-    function get()
-    {
-        // at present these are public core enums..
-        // if we want to include private ones, we will have to load them after the page has loaded..
-        
-        
-        $fonts = DB_DataObject::factory('core_enum')->fetchAllByType('HtmlEditor.font-family');
-        $ar = array();
-        foreach($fonts as $f) {
-            $ar[] = array( $f->name, $f->display_name );
-        }
-        if (!empty($ar)) { 
-            echo "Roo.form.HtmlEditor.ToolbarContext.options['font-family'] = " . json_encode($ar) .";\n";
-        }
-        /// add any other generic data in here..
-        
-    }
-}