From 595c8981854ee98f41626ee1a2f4a91038c3ef85 Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Thu, 23 Dec 2004 19:50:43 +0000 Subject: [PATCH] modules files update git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-129 --- bin/devel/modules_status | 2 +- bin/{xhtml/get_classes.pl => devel/xhtml.classes.pl} | 0 bin/{xhtml/validate.pl => devel/xhtml.validate.pl} | 0 hooks/README | 12 ++++++++++-- include/xorg/page.inc.php | 2 +- install.d/banana/files | 4 +--- install.d/lists/files | 4 +--- install.d/money/files | 2 -- install.d/newsletter/files | 4 +--- install.d/platal-dev/files | 6 ++---- install.d/platal/files | 6 ++---- install.d/search/files | 2 -- install.d/skins/files | 1 - install.d/webredirect/files | 1 - 14 files changed, 19 insertions(+), 27 deletions(-) rename bin/{xhtml/get_classes.pl => devel/xhtml.classes.pl} (100%) rename bin/{xhtml/validate.pl => devel/xhtml.validate.pl} (100%) diff --git a/bin/devel/modules_status b/bin/devel/modules_status index 185e0b8..5cfd066 100755 --- a/bin/devel/modules_status +++ b/bin/devel/modules_status @@ -3,7 +3,7 @@ chdir ${1:-.} dirs=(bin configs htdocs hooks include plugins scripts templates) -opts=(-type f -not -path '*CVS*' -not -name '.cvsignore' -not -path '*.arch*') +opts=(-type f -not -path '*CVS*' -not -name '.cvsignore' -not -path '*.arch*' -not -path '*TESTS*') diff -u <(cat install.d/**/files|sort) <(find $dirs $opts|sort) \ | grep '^[-+][a-z]' | sed -e 's,^+,Orphaned: ,;s,^-,Missing : ,' diff --git a/bin/xhtml/get_classes.pl b/bin/devel/xhtml.classes.pl similarity index 100% rename from bin/xhtml/get_classes.pl rename to bin/devel/xhtml.classes.pl diff --git a/bin/xhtml/validate.pl b/bin/devel/xhtml.validate.pl similarity index 100% rename from bin/xhtml/validate.pl rename to bin/devel/xhtml.validate.pl diff --git a/hooks/README b/hooks/README index 10f933b..764717b 100644 --- a/hooks/README +++ b/hooks/README @@ -1,2 +1,10 @@ -function menu() -function subscribe($forlife, $uid, $promo, $pass) +config() + function used to create new config entries in $globals. + usually, a module need to create a ....Config class to store the defaults. + +menu() + function used to add entries to $globals->menu + +subscribe($forlife, $uid, $promo, $pass) + triggered when a user subscription is sucessfull + diff --git a/include/xorg/page.inc.php b/include/xorg/page.inc.php index 4cd0b64..e91716c 100644 --- a/include/xorg/page.inc.php +++ b/include/xorg/page.inc.php @@ -123,7 +123,7 @@ class XorgPage extends DiogenesCorePage fwrite($fd, $result); fclose($fd); - exec($globals->spoolroot."/bin/xhtml/validate.pl ".$this->cache_dir."valid.html", $val); + exec($globals->spoolroot."/bin/devel/validate.pl ".$this->cache_dir."valid.html", $val); foreach ($val as $h) { if (preg_match("/^X-W3C-Validator-Errors: (\d+)$/", $h, $m)) { if ($m[1]) { diff --git a/install.d/banana/files b/install.d/banana/files index c3ffeda..e534e5e 100644 --- a/install.d/banana/files +++ b/install.d/banana/files @@ -1,4 +1,4 @@ -hooks/core/banana.inc.php +hooks/banana.inc.php htdocs/banana/article.php htdocs/banana/banana.css htdocs/banana/disconnect.php @@ -20,8 +20,6 @@ htdocs/banana/subscribe.php htdocs/banana/thread.php htdocs/banana/xface.php htdocs/confbanana.php -include/conf.d/banana.globals.inc.php -include/conf.d/banana.menu.inc.php templates/banana.head.tpl templates/banana.tpl templates/confbanana.tpl diff --git a/install.d/lists/files b/install.d/lists/files index bd652c3..76beea6 100644 --- a/install.d/lists/files +++ b/install.d/lists/files @@ -1,7 +1,7 @@ bin/lists.mhonarc_by_month.pl bin/lists.mhonarc_pipe.sh bin/lists.rpc.py -hooks/core/lists.inc.php +hooks/lists.inc.php htdocs/admin/lists.php htdocs/images/lists_date.png htdocs/images/lists_firstia.png @@ -24,8 +24,6 @@ htdocs/listes/moderate.php htdocs/listes/options.php htdocs/listes/soptions.php htdocs/listes/trombi.php -include/conf.d/lists.globals.inc.php -include/conf.d/lists.menu.inc.php include/lists.inc.php include/validations/listes.inc.php templates/admin/lists.tpl diff --git a/install.d/money/files b/install.d/money/files index b4074dc..b69d0c9 100644 --- a/install.d/money/files +++ b/install.d/money/files @@ -3,8 +3,6 @@ htdocs/paiement/cyberpaiement_retour.php htdocs/paiement/index.php htdocs/trezo/gere_operations.php htdocs/trezo/index.php -include/conf.d/money.globals.inc.php -include/conf.d/money.menu.inc.php include/money/cyberpaiement.inc.php include/money.inc.php include/money/trezo.inc.php diff --git a/install.d/newsletter/files b/install.d/newsletter/files index 4a0ee42..460a409 100644 --- a/install.d/newsletter/files +++ b/install.d/newsletter/files @@ -1,5 +1,5 @@ bin/newsletter.send.php -hooks/core/newsletter.inc.php +hooks/newsletter.inc.php htdocs/admin/newsletter_cats.php htdocs/admin/newsletter_edit.php htdocs/admin/newsletter.php @@ -7,8 +7,6 @@ htdocs/css/nl.css htdocs/newsletter/index.php htdocs/newsletter/show.php htdocs/newsletter/submit.php -include/conf.d/newsletter.globals.inc.php -include/conf.d/newsletter.menu.inc.php include/newsletter.inc.php templates/admin/newsletter_edit.tpl templates/admin/newsletter.tpl diff --git a/install.d/platal-dev/files b/install.d/platal-dev/files index c25d87e..ccb882f 100644 --- a/install.d/platal-dev/files +++ b/install.d/platal-dev/files @@ -1,10 +1,8 @@ -include/conf.d/README - bin/devel/modules_status bin/devel/tplgettext.php bin/devel/lists.foreach_template.py -bin/xhtml/get_classes.pl -bin/xhtml/validate.pl +bin/devel/xhtml.classes.pl +bin/devel/xhtml.validate.pl templates/database-debug.tpl diff --git a/install.d/platal/files b/install.d/platal/files index 7843d02..a16996e 100644 --- a/install.d/platal/files +++ b/install.d/platal/files @@ -261,12 +261,12 @@ htdocs/tmpPWD.php include/validations.inc.php include/xml-rpc-client.inc.php include/xorg.globals.inc.php.in -include/xorg.hook.inc.php +include/xorg/hook.inc.php include/xorg.inc.php include/xorg.mailer.inc.php include/xorg/menu.inc.php include/xorg.misc.inc.php -include/xorg.page.inc.php +include/xorg/page.inc.php include/xorg.plugin.inc.php include/xorg/session.inc.php include/xorg/smarty.plugins.inc.php @@ -294,7 +294,6 @@ templates/admin/valider.tpl templates/cookie_off.tpl templates/cookie_on.tpl templates/deconnexion.tpl -templates/failure.tpl templates/index.tpl templates/logger-view.tpl templates/motdepassemd5.head.tpl @@ -311,5 +310,4 @@ templates/skin/common.footer.tpl templates/skin/common.header.tpl templates/skin/default.tpl templates/table-editor.tpl -templates/tmpPWD.failure.tpl templates/tmpPWD.success.tpl diff --git a/install.d/search/files b/install.d/search/files index 0ff7d58..ea59be8 100644 --- a/install.d/search/files +++ b/install.d/search/files @@ -1,8 +1,6 @@ htdocs/advanced_search.php htdocs/search.php include/search.classes.inc.php -include/conf.d/search.globals.inc.php -include/conf.d/search.menu.inc.php bin/cron/recherche.php bin/cron/recherche.pl bin/cron/recherche.sql diff --git a/install.d/skins/files b/install.d/skins/files index f2a3a78..e3cf383 100644 --- a/install.d/skins/files +++ b/install.d/skins/files @@ -69,7 +69,6 @@ htdocs/images/sk_trapped_menu.gif htdocs/images/sk_trapped_monstre.jpg htdocs/images/sk_trapped_titre.gif htdocs/skins.php -include/conf.d/skin.globals.inc.php templates/preferences.tpl.d/90.skin.tpl templates/skin/espace.tpl templates/skin/humlinux.tpl diff --git a/install.d/webredirect/files b/install.d/webredirect/files index e33d654..366be3c 100644 --- a/install.d/webredirect/files +++ b/install.d/webredirect/files @@ -1,5 +1,4 @@ htdocs/webredirect.php -include/conf.d/webredirect.globals.inc.php scripts/webredirect_error.php scripts/webredirect.php templates/webredirect.tpl -- 2.1.4