"diogenes_auth"); /** Labels for the authentication tables */ var $tlabel = array('native'=>"Diogenes"); /** Should we display W3C validator links from user-created pages ? */ var $validatepages = 0; /** Should we debug database calls ? */ var $debugdatabase = 0; /** Should we show plugin debugging information ? */ var $debugplugins = 0; /** What file should we write the WebDAV log to? (empty = none) */ var $debugwebdav = ''; /** Should we capture all WebDAV output to a log? */ var $debugwebdav_capture = 0; /** Invalid locations for barrel pages */ var $invalidlocations = array("admin", "webdav"); /** Invalid barrel names */ var $invalidaliases = array("CVSROOT", "templates_c", "tree_c", "diogenes"); /** Available HTML editors */ var $html_editors = array( 'kafenio' => "Kafenio", 'ekit' => "Ekit" ); /** Availables languages */ var $locales = array( 'en_US'=> "English", 'es_ES'=> "Español", 'fr_FR'=> "Français", 'nl_NL'=> "Nederlands", 'sv_SE'=> "Svenska" ); /** Available menu styles */ var $menu_styles = array( 0=> "classic", 1=> "dynamic tree", 2=> "dynamic tree, save state" ); /** Available menu themes */ var $menu_themes = array( 'gnome' => 'gnome', 'gorilla' => 'gorilla', 'lush' => 'lush', 'mozilla' => 'mozilla' ); /** Available style sheets */ var $style_sheets = array( 'default_blue' => 'Default Blue', 'fresh_blue' => 'Fresh Blue', 'funky_doc' => 'Funky Doc', ); /** Default stylesheet for new barrels */ var $barrel_style_sheet = 'default_blue'; /** The HTML editor to use (ekit, kafenio) */ var $html_editor = "kafenio"; /** Toplevel menu style */ var $menu_style = 0; /** Toplevel menu theme */ var $menu_theme = "gorilla"; /** Template directory */ var $template_dir = ""; /** Default template for barrel pages */ var $template = ""; /** Utility to use for Word file import. * set 'wvHtml' to make us of wv for Word import * otherwise leave empty to disable word import. */ //var $word_import = 'wvHtml'; var $word_import = ''; /** Available Word import utilities */ var $word_imports = array( '' => "disabled", 'wvHtml' => "wvHtml" ); /** Check that RootURL is a full URL */ function checkRootUrl() { return preg_match('/^http(s)?:\/\/.*/i', $this->rooturl); } /** Read extra options from database. */ function readOptions() { $res = $this->db->query("select name,value from {$this->table_global_options} where barrel=''"); // we only accept options which already exist in this // class while (list($key,$value) = mysql_fetch_row($res)) { if (isset($this->$key)) $this->$key = $value; } } /** Store a preference to database. */ function updateOption($name,$value) { $this->$name = stripslashes($value); $this->db->query("replace into {$this->table_global_options} set barrel='',name='$name',value='$value'"); } } ?>