* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+// {{{ config HOOK
+
+// {{{ class SkinConfig
+
+class BananaConfig
+{
+ var $server = 'localhost';
+ var $port = 119;
+ var $password = '***';
+ var $web_user = '***';
+ var $web_pass = '***';
+
+ var $table_prefix = 'banana_';
+}
+
+// }}}
+
+function banana_config(&$return)
+{
+ global $globals;
+ $globals->banana = new BananaConfig;
+}
+
+// }}}
// {{{ menu HOOK
function &banana_menu(&$result)
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+// {{{ config HOOK
+
+// {{{ class SkinConfig
+
+class MailConfig
+{
+ var $domain = '';
+ var $domain2 = '';
+
+ var $alias_dom = '';
+ var $alias_dom2 = '';
+
+ var $send_form = true;
+
+ function shorter_domain()
+ {
+ if (empty($this->domain2) || strlen($this->domain2)>strlen($this->domain)) {
+ return $this->domain;
+ } else {
+ return $this->domain2;
+ }
+ }
+}
+
+// }}}
+
+function emails_config(&$return)
+{
+ global $globals;
+ $globals->mail = new MailConfig;
+}
+// }}}
// {{{ menu HOOK
function emails_menu(&$return)
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+// {{{ config HOOK
+// {{{ class ListsConfig
+
+class ListsConfig
+{
+ var $rpchost = 'localhost';
+ var $rpcport = 4949;
+
+ var $spool = '/var/spool/platal/archives/';
+
+ var $admin_owner = '';
+ var $vhost_sep = '-';
+}
+
+// }}}
+
+function lists_config(&$result)
+{
+ global $globals;
+ $globals->lists = new ListsConfig;
+}
+
+// }}}
// {{{ menu HOOK
function &lists_menu(&$result)
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+// {{{ config HOOK
+
+// {{{ class MoneyConfig
+
+class MoneyConfig
+{
+ var $mpay_enable = true;
+ var $mpay_def_id = 0;
+ var $mpay_def_meth = 0;
+ var $mpay_tprefix = 'paiement.';
+}
+
+// }}}
+
+function money_config(&$result)
+{
+ global $globals;
+ $globals->money = new MoneyConfig;
+}
+
+// }}}
// {{{ menu HOOK
+
function money_menu(&$result)
{
global $globals;
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+// {{{ config HOOK
+
+// {{{ class SkinConfig
+
+class NLConfig
+{
+ var $from = "Lettre Mensuelle <null@example.org>";
+ var $replyto = "";
+}
+
+// }}}
+
+function newsletter_config(&$return) {
+ global $globals;
+ $globals->newsletter = new NLConfig;
+}
+
+// }}}
// {{{ menu HOOK
function &newsletter_menu(&$result)
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+// {{{ config HOOK
+
+// {{{ class SearchConfig
+
+class SearchConfig
+{
+ var $public_max = 25;
+ var $private_max = 800;
+
+ var $per_page = 20;
+}
+
+// }}}
+
+function search_search(&$result)
+{
+ global $glabals;
+ $globals->search = new SearchConfig;
+}
+
+// }}}
// {{{ menu HOOK
function search_menu(&$result)
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+// {{{ config HOOK
+
// {{{ class SkinConfig
class SkinConfig
// }}}
-$globals->skin = new SkinConfig;
+function skin_config(&$result)
+{
+ global $globals;
+ $globals->skin = new SkinConfig;
+}
+
+// }}}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
?>
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+// {{{ config HOOK
+
// {{{ class WebRedirConfig
class WebRedirConfig
// }}}
-$globals->webredirect = new WebRedirConfig;
+function webredirect_config(&$result)
+{
+ global $globals;
+ $globals->webredirect = new WebRedirConfig;
+}
+
+// }}}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
?>
+++ /dev/null
-WHAT IS PUT HERE ?
-------------------
-
-*.globals.inc.php :
- in there you can extend $globals with new params.
- each module can have as many files it wants here.
- in thoses scripts, $this is the current $globals beeing created.
-
-*.menu.inc.php :
- quite the same as previous one, but for menus.
- you can add $this->addPrivateEntry/addPublicEntry to extend the menu.
+++ /dev/null
-<?php
-/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
- * http://opensource.polytechnique.org/ *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., *
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
- ***************************************************************************/
-
-// {{{ class SkinConfig
-
-class BananaConfig
-{
- var $server = 'localhost';
- var $port = 119;
- var $password = '***';
- var $web_user = '***';
- var $web_pass = '***';
-
- var $table_prefix = 'banana_';
-}
-
-// }}}
-
-$globals->banana = new BananaConfig;
-
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
-?>
+++ /dev/null
-<?php
-/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
- * http://opensource.polytechnique.org/ *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., *
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
- ***************************************************************************/
-
-// {{{ class SkinConfig
-
-class MailConfig
-{
- var $domain = '';
- var $domain2 = '';
-
- var $alias_dom = '';
- var $alias_dom2 = '';
-
- var $send_form = true;
-
- function shorter_domain()
- {
- if (empty($this->domain2) || strlen($this->domain2)>strlen($this->domain)) {
- return $this->domain;
- } else {
- return $this->domain2;
- }
- }
-}
-
-// }}}
-
-$globals->mail = new MailConfig;
-
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
-?>
+++ /dev/null
-<?php
-/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
- * http://opensource.polytechnique.org/ *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., *
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
- ***************************************************************************/
-
-// {{{ class ListsConfig
-
-class ListsConfig
-{
- var $rpchost = 'localhost';
- var $rpcport = 4949;
-
- var $spool = '/var/spool/platal/archives/';
-
- var $admin_owner = '';
- var $vhost_sep = '-';
-}
-
-// }}}
-
-$globals->lists = new ListsConfig;
-
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
-?>
+++ /dev/null
-<?php
-/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
- * http://opensource.polytechnique.org/ *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., *
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
- ***************************************************************************/
-
-// {{{ class MoneyConfig
-
-class MoneyConfig
-{
- var $mpay_enable = true;
- var $mpay_def_id = 0;
- var $mpay_def_meth = 0;
- var $mpay_tprefix = 'paiement.';
-}
-
-// }}}
-
-$globals->money = new MoneyConfig;
-
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
-?>
+++ /dev/null
-<?php
-/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
- * http://opensource.polytechnique.org/ *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., *
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
- ***************************************************************************/
-
-// {{{ class SkinConfig
-
-class NLConfig
-{
- var $from = "Lettre Mensuelle <null@example.org>";
- var $replyto = "";
-}
-
-// }}}
-
-$globals->newsletter = new NLConfig;
-
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
-?>
+++ /dev/null
-<?php
-/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
- * http://opensource.polytechnique.org/ *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., *
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
- ***************************************************************************/
-
-// {{{ class SearchConfig
-
-class SearchConfig
-{
- var $public_max = 25;
- var $private_max = 800;
-
- var $per_page = 20;
-}
-
-// }}}
-
-$globals->search = new SearchConfig;
-
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
-?>
require_once("xorg/hook.inc.php");
require_once("xorg/menu.inc.php");
- $globals = new XorgGlobals;
-
+ $globals = new XorgGlobals;
$globals->root = dirname(dirname(__FILE__));
+ $globals->hook = new XOrgHook();
+ $globals->menu = new XOrgMenu();
+
+ $globals->hook->config(null);
- foreach(glob($globals->root.'/include/conf.d/*.globals.inc.php') as $inc) {
- require_once($inc);
- }
-
$array = parse_ini_file($globals->root.'/configs/platal.conf', true);
if (!is_array($array)) {
return;
}
}
- $globals->hook = new XOrgHook();
- $globals->menu = new XOrgMenu();
$globals->hook->menu(null);
$globals->dbconnect();