gforge/common/docman/engine/parser_pdf.php -text
gforge/common/docman/engine/parser_text.inc.php -text
gforge/common/docman/engine/parser_text.php -text
+gforge/common/include/Navigation.class.php -text
gforge/common/include/TextSanitizer.class.php -text
+gforge/common/include/config.php -text
gforge/common/include/database-mysql.php -text
gforge/common/include/group_section_texts.php -text
gforge/common/include/rbac_texts.php -text
gforge/db/20090507-add_project_query.sql -text
gforge/db/20090507-browse_list.sql -text
gforge/db/20090507-install_workflow.php -text
+gforge/db/20100308-drop-forum-attachment-type.sql -text
gforge/db/20100308-forum-attachment-types.sql -text
gforge/db/FTI-20061025.sql -text
gforge/db/gforge-data-mysql.sql -text
gforge/debian/NEWS.Debian -text
gforge/debian/README.source -text
gforge/debian/compat -text
-gforge/debian/dsf-in/common.links -text
+gforge/debian/dsf-in/plugin-contribtracker.postinst -text
+gforge/debian/dsf-in/plugin-contribtracker.prerm -text
gforge/debian/dsf-in/plugin-extratabs.postinst -text
gforge/debian/dsf-in/plugin-extratabs.prerm -text
gforge/debian/dsf-in/plugin-globalsearch.postinst -text
gforge/debian/dsf-in/plugin-globalsearch.prerm -text
-gforge/debian/dsf-in/plugin-mediawiki.links -text
gforge/debian/dsf-in/plugin-mediawiki.postinst -text
gforge/debian/dsf-in/plugin-mediawiki.prerm -text
gforge/debian/dsf-in/plugin-projectlabels.postinst -text
gforge/debian/dsf-in/plugin-scmcpold.prerm -text
gforge/debian/dsf-in/plugin-scmcvs.postinst -text
gforge/debian/dsf-in/plugin-scmcvs.prerm -text
-gforge/debian/dsf-in/plugin-scmdarcs.links -text
gforge/debian/dsf-in/plugin-scmdarcs.postinst -text
gforge/debian/dsf-in/plugin-scmdarcs.prerm -text
-gforge/debian/dsf-in/plugin-scmgit.links -text
gforge/debian/dsf-in/plugin-scmgit.postinst -text
gforge/debian/dsf-in/plugin-scmgit.prerm -text
gforge/debian/dsf-in/plugin-scmhg.postinst -text
gforge/debian/dsf-po/gl.po -text
gforge/debian/dsf-po/pt.po -text
gforge/debian/dsf-po/ru.po -text
-gforge/debian/gforge-plugin-contribtracker.postinst -text
-gforge/debian/gforge-plugin-contribtracker.prerm -text
gforge/debian/patches/disable-dav.dpatch -text
gforge/debian/patches/use-nusoap-from-distro.dpatch -text
gforge/debian/patches/use-snoopy-from-distro.dpatch -text
gforge/docs/docbook/docbook/entities/authors/alain_peyrat.xml -text
gforge/docs/docbook/docbook/entities/xinclude.ent -text svneol=unset#application/octet-stream
gforge/docs/docbook/docbook/user_guide/project_functions/activity.xml -text
+gforge/docs/fusionforge.doxygen -text
gforge/docs/images/sflogo2-105a.png -text
+gforge/docs/phpdoc/phpDocumentor.ini.patch -text
+gforge/etc/config.ini -text
gforge/etc/httpd.d/01common.ssl -text
gforge/etc/httpd.d/060maindirhttp.vhost -text
gforge/etc/httpd.d/06zmaindirhttp.vhost -text
gforge/packaging/install/shell-postgresql -text
gforge/packaging/install/web-apache2 -text
gforge/packaging/install/web-apache2-vhosts -text
+gforge/packaging/links/common -text
+gforge/packaging/links/plugin-mediawiki -text
+gforge/packaging/links/plugin-scmdarcs -text
+gforge/packaging/links/plugin-scmgit -text
gforge/plugins/contribtracker/INSTALL -text
gforge/plugins/contribtracker/bin/db-delete.pl -text
gforge/plugins/contribtracker/bin/db-upgrade.pl -text
gforge/plugins/contribtracker/www/global_admin.php -text
gforge/plugins/contribtracker/www/index.php -text
gforge/plugins/contribtracker/www/project_admin.php -text
-gforge/plugins/createplugin.sh -text
gforge/plugins/cvstracker/db/cvstracker-init-mysql.sql -text
gforge/plugins/cvstracker/gforge-plugin-cvstracker.spec -text svneol=unset#application/octet-stream
gforge/plugins/cvstracker/rpm-specific/cron.d/gforge-plugin-cvstracker -text svneol=unset#application/octet-stream
gforge/plugins/wiki/www/doc/README.phpwiki-cache -text
gforge/plugins/wiki/www/doc/README.security -text
gforge/plugins/wiki/www/doc/THEMES -text
+gforge/plugins/wiki/www/doc/phpwiki.doxygen -text
gforge/plugins/wiki/www/doc/phpwiki_architecture.png -text
gforge/plugins/wiki/www/favicon.ico -text
gforge/plugins/wiki/www/g -text
gforge/www/plugins/helloworld -text
gforge/www/plugins/mailman -text
gforge/www/plugins/mantis -text
+gforge/www/plugins/mediawiki -text
gforge/www/plugins/online_help -text
gforge/www/plugins/projects_hierarchy -text
gforge/www/plugins/quota_management -text
gforge/www/themes/gforge/images/ic/wiki20g.png -text svneol=unset#unset
gforge/www/themes/gforge/images/ic/write16w.png -text
gforge/www/themes/gforge/images/ic/xmail16w.png -text
+gforge/www/themes/gforge/images/logo200x200.png -text
gforge/www/themes/gforge/images/notes.png -text svneol=unset#unset
gforge/www/themes/gforge/images/spacer.gif -text svneol=unset#unset
gforge/www/themes/gforge/images/t.png -text
packaging/tag_delivery_delete -text
packaging/tag_packaging_create -text
packaging/tag_packaging_delete -text
+plugins/templates/createplugin.sh -text
+plugins/templates/helloworld/debian/README.Debian -text
+plugins/templates/helloworld/debian/README.source -text
+plugins/templates/helloworld/debian/changelog -text
+plugins/templates/helloworld/debian/compat -text
+plugins/templates/helloworld/debian/control -text
+plugins/templates/helloworld/debian/copyright -text
+plugins/templates/helloworld/debian/docs -text
+plugins/templates/helloworld/debian/po/templates.pot -text
+plugins/templates/helloworld/debian/rules -text
+plugins/templates/helloworld/debian/source/format -text
+plugins/templates/helloworld/packaging/control/000source -text
+plugins/templates/helloworld/packaging/control/222plugin-helloworld -text
+plugins/templates/helloworld/packaging/control/222plugin-helloworld.shortdesc -text
+plugins/templates/helloworld/packaging/dirs/plugin-helloworld -text
+plugins/templates/helloworld/packaging/docs/plugin-helloworld -text
+plugins/templates/helloworld/packaging/install/plugin-helloworld -text
+plugins/templates/helloworld/packaging/links/plugin-helloworld -text
+plugins/templates/helloworld/translations/en.po -text
+plugins/templates/helloworld/translations/gforge.pot -text
+plugins/templates/helloworld/utils/manage-translations.sh -text
tests/AllFullTests.php -text
tests/AllTests.php -text
tests/SeleniumTests.php -text
tests/scripts/stop_vm.sh -text
tests/scripts/stop_vz.sh -text
tests/unit/AllTests.php -text
+tests/unit/config/AllTests.php -text
+tests/unit/config/ConfigTests.php -text
tests/unit/utils/AllTests.php -text
tests/unit/utils/DbUtilsTests.php -text
tests/unit/utils/TextSanitizerTests.php -text
ARCHIVE=$(CURDIR)/depot
BUILDRESULT=$(CURDIR)/result
+DOXYGEN=doxygen
+
VER=$(shell LANG=C grep '>software_version' gforge/common/include/FusionForge.class.php | cut -d\' -f2)
in_svn_repo:= $(wildcard .svn/)
ifeq ($(strip $(in_svn_repo)),)
@echo "Use one of the following target with "
@echo "make -f Makefile.$(DIST) <target>"
@echo "=========================================================================="
- @make -f Makefile.$(DIST)
+ @$(MAKE) -f Makefile.$(DIST)
check:
cd tests ; php AllTests.php
cd tests; phpunit --log-xml $(BUILDDIR)/reports/phpunit.xml --log-pmd $(BUILDDIR)/reports/phpunit.pmd.xml --coverage-clover $(BUILDDIR)/reports/coverage/clover.xml --coverage-html $(BUILDDIR)/reports/coverage/ AllTests.php
cp $(BUILDDIR)/reports/phpunit.xml $(BUILDDIR)/reports/phpunit.xml.org; xalan -in $(BUILDDIR)/reports/phpunit.xml.org -xsl fix_phpunit.xslt -out $(BUILDDIR)/reports/phpunit.xml
+build-doc:
+ $(DOXYGEN) gforge/docs/fusionforge.doxygen
+ $(DOXYGEN) gforge/plugins/wiki/www/doc/phpwiki.doxygen
+
build-full-tests:
+ mkdir -p $(BUILDDIR)/build/packages $(BUILDDIR)/reports/coverage
find $(BUILDDIR)/build/packages -type f -exec rm -f {} \;
- mkdir -p $(BUILDDIR)/reports/coverage
- phpdoc --title 'API Documentation' -ue on -t $(BUILDDIR)/apidocs -d gforge/common -tb '/usr/share/php/data/phpUnderControl/data/phpdoc' -o HTML:Phpuc:phpuc
-phpcs --tab-width=4 --standard=PEAR --report=checkstyle gforge/common > $(BUILDDIR)/reports/checkstyle.xml
cd tests; phpunit --log-xml $(BUILDDIR)/reports/phpunit.xml --log-pmd $(BUILDDIR)/reports/phpunit.pmd.xml --coverage-clover $(BUILDDIR)/reports/coverage/clover.xml --coverage-html $(BUILDDIR)/reports/coverage/ AllFullTests.php
cp $(BUILDDIR)/reports/phpunit.xml $(BUILDDIR)/reports/phpunit.xml.org; xalan -in $(BUILDDIR)/reports/phpunit.xml.org -xsl fix_phpunit.xslt -out $(BUILDDIR)/reports/phpunit.xml
gforge/plugins/mediawiki/mediawiki-skin/FusionForge.php:
- cd gforge/plugins/mediawiki/mediawiki-skin ; make
+ $(MAKE) -C gforge/plugins/mediawiki/mediawiki-skin
%: gforge/plugins/mediawiki/mediawiki-skin/FusionForge.php
- @make -f Makefile.$(DIST) $@
+ $(MAKE) -f Makefile.$(DIST) $@
// key words for in-document search
$kw = new Parsedata ($this->engine_path);
- $kwords = $kw->get_parse_data (stripslashes($data1), htmlspecialchars($title), htmlspecialchars($description), $filetype);
+ $kwords = $kw->get_parse_data ($data1, htmlspecialchars($title), htmlspecialchars($description), $filetype);
$filesize = strlen($data);
$filename,
$filetype,
$filesize,
- base64_encode(stripslashes($data)),
+ base64_encode($data),
$kwords,
$user_id));
if (!$result) {
// key words for in-document search
$kw = new Parsedata ($this->engine_path);
- $kwords = $kw->get_parse_data (stripslashes($data1), htmlspecialchars($title), htmlspecialchars($description), $filetype);
+ $kwords = $kw->get_parse_data ($data1, htmlspecialchars($title), htmlspecialchars($description), $filetype);
$res = db_query_params ('UPDATE doc_data SET data=$1, filesize=$2, data_words=$3 WHERE group_id=$4 AND docid=$5',
- array (base64_encode(stripslashes($data)),
+ array (base64_encode($data),
strlen($data),
$kwords,
$this->Group->getID(),
return false;
}
if ($send_all_posts_to) {
+ $send_all_posts_to = str_replace(';', ',', $send_all_posts_to);
$invalid_mails = validate_emails($send_all_posts_to);
if (count($invalid_mails) > 0) {
$this->setInvalidEmailError();
_("You are receiving this email because you elected to monitor this forum.".
"\nTo stop monitoring this forum, login to %s and visit: \n%s\n"),
$text,
- $GLOBALS['sys_name'],
+ forge_get_config ('forge_name'),
util_make_url('/forum/monitor.php?forum_id='.$this->Forum->getID().
'&group_id='.$this->Forum->Group->getID().'&stop=1')
);
$body .=
"\n\n______________________________________________________________________".
"\nYou are receiving this email because you elected to monitor this forum.".
- "\nTo stop monitoring this forum, login to ".$GLOBALS['sys_name']." and visit: ".
+ "\nTo stop monitoring this forum, login to ".forge_get_config ('forge_name')." and visit: ".
"\n".util_make_url ('/forum/monitor.php?forum_id='.$this->Forum->getID() .'&group_id='.$this->Forum->Group->getID().'&stop=1');
$extra_headers = "Return-Path: <noreply@".$GLOBALS['sys_default_domain'].">\n";
$this->FRSPackage->Group->getUnixName(),
$this->FRSPackage->getName(),
util_make_url ("/frs/?group_id=". $this->FRSPackage->Group->getID() ."&release_id=". $this->getID()),
- $GLOBALS['sys_name'],
+ forge_get_config ('forge_name'),
util_make_url ("/frs/monitor.php?filemodule_id=".$this->FRSPackage->getID()."&group_id=".$this->FRSPackage->Group->getID()."&stop=1")));
// $text = util_line_wrap($text);
if (count($arr)) {
* @param string The name of the new SCM_BOX
*/
function setSCMBox($scm_box) {
+
+ if ($scm_box == $this->data_array['scm_box']) {
+ return true;
+ }
if ($scm_box) {
db_begin();
$res = db_query_params ('UPDATE groups SET scm_box=$1 WHERE group_id=$2', array ($scm_box, $this->getID ()));
$this->getPublicName(),
$this->getUnixName(),
util_make_url ('/project/admin/?group_id='.$this->getID()),
- $GLOBALS['sys_name']);
+ forge_get_config ('forge_name'));
- util_send_message($row_admins['email'], sprintf(_('%1$s Project Approved'), $GLOBALS['sys_name']), $message);
+ util_send_message($row_admins['email'], sprintf(_('%1$s Project Approved'), forge_get_config ('forge_name')), $message);
setup_gettext_from_context();
}
Reasons for negative decision:
-'), $this->getPublicName(), $this->getUnixName(), $GLOBALS['sys_name']);
+'), $this->getPublicName(), $this->getUnixName(), forge_get_config ('forge_name'));
// Check to see if they want to send a custom rejection response
if ($response_id == 0) {
"response_text");
}
- util_send_message($row_admins['email'], sprintf(_('%1$s Project Denied'), $GLOBALS['sys_name']), $response);
+ util_send_message($row_admins['email'], sprintf(_('%1$s Project Denied'), forge_get_config ('forge_name')), $response);
setup_gettext_from_context();
}
Please visit the following URL to approve or reject this project:
%4$s'),
- $GLOBALS['sys_name'],
+ forge_get_config ('forge_name'),
$this->getPublicName(),
util_unconvert_htmlspecialchars($this->getRegistrationPurpose()),
util_make_url ('/admin/approve-pending.php'),
$submitter->getRealName(),
$submitter->getUnixName());
- util_send_message($admin_email, sprintf(_('New %1$s Project Submitted'), $GLOBALS['sys_name']), $message);
+ util_send_message($admin_email, sprintf(_('New %1$s Project Submitted'), forge_get_config ('forge_name')), $message);
setup_gettext_from_context();
}
Project Full Name: %2$s
Submitted Description: %3$s
-The %1$s admin team will now examine your project submission. You will be notified of their decision.'), $GLOBALS['sys_name'], $this->getPublicName(), util_unconvert_htmlspecialchars($this->getRegistrationPurpose()), $GLOBALS['sys_default_domain']);
+The %1$s admin team will now examine your project submission. You will be notified of their decision.'), forge_get_config ('forge_name'), $this->getPublicName(), util_unconvert_htmlspecialchars($this->getRegistrationPurpose()), $GLOBALS['sys_default_domain']);
- util_send_message($email, sprintf(_('New %1$s Project Submitted'), $GLOBALS['sys_name']), $message);
+ util_send_message($email, sprintf(_('New %1$s Project Submitted'), forge_get_config ('forge_name')), $message);
setup_gettext_from_context();
return true;
return $users;
}
-
- /**
- * getMenu - get an array that contains data for the group menu
- *
- * @param string contains the name of the selected menu item
- * @return array array containing:
- * 'titles': array that stores the titles of the menu entries
- * 'dirs': array that stores the URLs of the menu entries
- * 'start': URL of the starting page of the project
- * 'admindirs': array that stores the URLs of the admin pages
- * for the menu entries, if accessible, false otherwise
- * 'selected': number of the menu entry selected by $toptab
- * 'last_toptab': required internally: stores the
- * value of $toptab for the last call to getMenu()
- */
- function &getMenu($toptab = "") {
- // rebuild menu if it has never been built before, or
- // if the toptab was set differently
- if (!isset($this->menu_data)
- || ($toptab != "")
- || ($toptab != $this->menu_data['last_toptab']))
- {
- $selected = 0;
- $group = $this->getId();
-
- $this->menu_data = array () ;
- $this->menu_data['titles'] = array();
- $this->menu_data['dirs'] = array();
- $this->menu_data['admindirs'] = array();
-
- // Summary
- $this->menu_data['titles'][] = _('Summary');
- if (isset ($GLOBALS['sys_noforcetype']) && $GLOBALS['sys_noforcetype']) {
- $dir = util_make_url ('/project/?group_id=' . $group);
- } else {
- $dir = util_make_url ('/projects/' . $this->getUnixName() .'/');
- }
- $this->menu_data['dirs'][] = $dir;
- $this->menu_data['admindirs'][] = false;
- if ($toptab == "home") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
- // setting 'start' allows to change the
- // projects start page
- $this->menu_data['start'] = $dir;
-
- // Project Admin
- $perm =& $this->getPermission( session_get_user() );
- if ($perm->isAdmin()) {
- $this->menu_data['titles'][] = _('Admin');
- $this->menu_data['dirs'][] = util_make_url ('/project/admin/?group_id=' . $group);
- $this->menu_data['admindirs'][] = false;
- if ($toptab == "admin") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
- }
-
- /* Homepage
- // check for use_home_tab?
- $TABS_DIRS[]='http://'. $this->getHomePage();
- $TABS_TITLES[]=_('Home Page');
- */
-
- // Project Activity tab
- $this->menu_data['titles'][] = _('Activity');
- $this->menu_data['dirs'][] = util_make_url ('/activity/?group_id=' . $group);
- $this->menu_data['admindirs'][] = false;
- if ($toptab == "activity") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
-
- // Forums
- if ($this->usesForum()) {
- $this->menu_data['titles'][] = _('Forums');
- $this->menu_data['dirs'][] = util_make_url ('/forum/?group_id=' . $group);
- if ($perm->isAdmin() || $perm->isForumAdmin()) {
- $this->menu_data['admindirs'][] = util_make_url('/forum/admin/?group_id='.$group);
- } else {
- $this->menu_data['admindirs'][] = false;
- }
- if ($toptab == "forums") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
- }
-
- // Artifact Tracking
- if ($this->usesTracker()) {
- $this->menu_data['titles'][] = _('Tracker');
- $this->menu_data['dirs'][] = util_make_url ('/tracker/?group_id=' . $group);
- if ($perm->isAdmin() || $perm->isArtifactAdmin()) {
- $this->menu_data['admindirs'][] = util_make_url('/tracker/admin/?group_id='.$group);
- } else {
- $this->menu_data['admindirs'][] = false;
- }
- if ($toptab == "tracker" ||
- $toptab == "bugs" ||
- $toptab == "support" ||
- $toptab == "patch") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
- }
-
-
- // Mailing Lists
- if ($this->usesMail()) {
- $this->menu_data['titles'][] = _('Lists');
- $this->menu_data['dirs'][] = util_make_url ('/mail/?group_id=' . $group);
- if ($perm->isAdmin()) {
- $this->menu_data['admindirs'][] = util_make_url('/mail/admin/?group_id='.$group);
- } else {
- $this->menu_data['admindirs'][] = false;
- }
- if ($toptab == "mail") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
-
- }
-
- // Project/Task Manager
- if ($this->usesPm()) {
- $this->menu_data['titles'][] = _('Tasks');
- $this->menu_data['dirs'][] = util_make_url ('/pm/?group_id=' . $group);
- if ($perm->isAdmin() || $perm->isPMAdmin()) {
- $this->menu_data['admindirs'][] = util_make_url ('/pm/admin/?group_id='.$group);
- } else {
- $this->menu_data['admindirs'][] = false;
- }
- if ($toptab == "pm") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
-
- }
-
- // Doc Manager
- if ($this->usesDocman()) {
- $this->menu_data['titles'][] = _('Docs');
- $this->menu_data['dirs'][] = util_make_url ('/docman/?group_id=' . $group);
- if ($perm->isAdmin() || $perm->isDocEditor()) {
- $this->menu_data['admindirs'][] = util_make_url ('/docman/admin/?group_id='.$group);
- } else {
- $this->menu_data['admindirs'][] = false;
- }
- if ($toptab == "docman") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
-
- }
-
- // Surveys
- if ($this->usesSurvey()) {
- $this->menu_data['titles'][] = _('Surveys');
- $this->menu_data['dirs'][] = util_make_url ('/survey/?group_id=' . $group);
- if ($perm->isAdmin()) {
- $this->menu_data['admindirs'][] = util_make_url ('/survey/admin/?group_id='.$group);
- } else {
- $this->menu_data['admindirs'][] = false;
- }
- if ($toptab == "surveys") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
- }
-
- // News
- if ($this->usesNews()) {
- $this->menu_data['titles'][] = _('News');
- $this->menu_data['dirs'][] = util_make_url ('/news/?group_id=' . $group);
- if ($perm->isAdmin()) {
- $this->menu_data['admindirs'][] = util_make_url ('/news/admin/?group_id='.$group);
- } else {
- $this->menu_data['admindirs'][] = false;
- }
- if ($toptab == "news") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
- }
-
- // SCM systems
- if ($this->usesSCM()) {
- $this->menu_data['titles'][] = _('SCM');
- $this->menu_data['dirs'][] = util_make_url ('/scm/?group_id=' . $group);
- // eval cvs_flags?
- if ($perm->isAdmin()) {
- $this->menu_data['admindirs'][] = util_make_url ('/scm/admin/?group_id='.$group);
- } else {
- $this->menu_data['admindirs'][] = false;
- }
- if ($toptab == "scm") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
- }
-
- // groupmenu_after_scm hook
- $hookParams = array();
- $hookParams['group_id'] = $group ;
- $hookParams['DIRS'] =& $this->menu_data['dirs'];
- $hookParams['TITLES'] =& $this->menu_data['titles'];
- $hookParams['toptab'] =& $toptab;
- $hookParams['selected'] =& $selected;
-
- plugin_hook ("groupmenu_scm", $hookParams) ;
-
- // fill up admindirs
- for ($i = 0;
- $i < count($this->menu_data['dirs']) - count($this->menu_data['admindirs']);
- $i++) {
- $this->menu_data['admindirs'][] = false;
- }
-
- // Downloads
- if ($this->usesFRS()) {
- $this->menu_data['titles'][] = _('Files');
- $this->menu_data['dirs'][] = util_make_url ('/frs/?group_id=' . $group);
- if ($perm->isAdmin() || $perm->isReleaseTechnician()) {
- $this->menu_data['admindirs'][] = util_make_url ('/frs/admin/?group_id='.$group);
- } else {
- $this->menu_data['admindirs'][] = false;
- }
- if ($toptab == "frs") {
- $selected = (count($this->menu_data['dirs'])-1);
- }
- }
-
- // groupmenu hook
- $hookParams = array();
- $hookParams['group'] = $group ;
- $hookParams['DIRS'] =& $this->menu_data['dirs'];
- $hookParams['TITLES'] =& $this->menu_data['titles'];
- $hookParams['toptab'] =& $toptab;
- $hookParams['selected'] =& $selected;
-
- plugin_hook ("groupmenu", $hookParams) ;
-
- // fill up admindirs
- for ($i = 0;
- $i < count($this->menu_data['dirs']) - count($this->menu_data['admindirs']);
- $i++) {
- $this->menu_data['admindirs'][] = false;
- }
-
- // store selected menu item (if any)
- $this->menu_data['selected'] = $selected;
- if ($toptab != "") {
- $this->menu_data['last_toptab'] = $toptab;
- }
- }
- return $this->menu_data ;
- }
}
/**
--- /dev/null
+<?php
+ /**
+ * FusionForge navigation
+ *
+ * Copyright 2009 - 2010, Olaf Lenz
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge 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.
+ *
+ * FusionForge 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 FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+
+require_once $gfwww.'search/include/SearchManager.class.php';
+
+/**
+ * This class provides all the navigational elements to be used by the themes,
+ * like the site menu, the project menus, and the user links.
+ * Some of the methods return HTML code, some return abstract data
+ * structures, and some methods give you the choice. The HTML code
+ * always tries to be as generic as possible so that it can easily be
+ * styled via CSS.
+ */
+class Navigation extends Error {
+ /**
+ * Associative array of data for the project menus.
+ *
+ * @var array $project_menu_data.
+ */
+ var $project_menu_data;
+
+ /** Constructor */
+ function Navigation() {
+ $this->Error();
+ return true;
+ }
+
+ /** Get the HTML code of the title of the page. If the array
+ * $params contains a value for the key 'title', this title
+ * is appended to the title generated here. If $asHTML is
+ * set to false, it will return only the title in plain
+ * text. */
+ function getTitle($params, $asHTML=true) {
+ if (!$asHTML) {
+ // get the title
+ if (!$params['title']) {
+ return forge_get_config ('forge_name') ;
+ } else {
+ return forge_get_config ('forge_name') . ': ' . $params['title'];
+ }
+ } else {
+ // return HTML code otherwise
+ return '<title>' . $this->getTitle($params, false) . '</title>';
+ }
+ }
+
+ /** Get the HTML code for the favicon links of the site (to be
+ * put into the <head>. If $asHTML is false, it will return
+ * the URL of the favicon.
+ *
+ * @todo: Make favicon configurable
+ */
+ function getFavIcon($asHTML=true) {
+ if (!$asHTML) {
+ return util_make_url('/images/icon.png');
+ } else {
+ return '<link rel="icon" type="image/png" href="'
+ . $this->getFavIcon(false) .'" />'
+ . '<link rel="shortcut icon" type="image/png" href="'
+ . $this->getFavIcon(false) .'" />';
+ }
+ }
+
+ /** Get the HTML code for the RSS feeds of the site (to be put
+ * into the <head>. If $asHTML is false, it will return an
+ * array with the following structure: $result['titles']:
+ * list of titles of the feeds; $result['urls'] list of urls
+ * of the feeds. */
+ function getRSS($asHTML=true) {
+ if (!$asHTML) {
+ $res = array() ;
+ $res['titles'] = array();
+ $res['urls'] = array();
+
+ $res['titles'][] = forge_get_config ('forge_name').' - Project News Highlights RSS';
+ $res['urls'][] = util_make_url('/export/rss_sfnews.php');
+
+ $res['titles'][] = forge_get_config ('forge_name').' - Project News Highlights RSS 2.0';
+ $res['urls'][] = util_make_url('/export/rss20_news.php');
+
+ $res['titles'][] = forge_get_config ('forge_name').' - New Projects RSS';
+ $res['urls'][] = util_make_url('/export/rss_sfprojects.php');
+
+ if (isset($GLOBALS['group_id'])) {
+ $res['titles'][] = forge_get_config ('forge_name') . ' - New Activity RSS';
+ $res['urls'][] = util_make_url('/export/rss20_activity.php?group_id='.$GLOBALS['group_id']);
+ }
+ return $res;
+ } else {
+ $feeds = $this->getRSS(false);
+ for ($j = 0; $j < count($feeds['urls']); $j++) {
+ echo '
+ <link rel="alternate" title="' . $feeds['titles'][$j]
+ . '" href="' . $feeds['urls'][$j]
+ . '" type="application/rss+xml"/>';
+ }
+ }
+ }
+
+ /** Get the searchBox HTML code. */
+ function getSearchBox() {
+ global $words,$forum_id,$group_id,$group_project_id,$atid,$exact,$type_of_search;
+
+ $res = "";
+ if (get_magic_quotes_gpc()) {
+ $defaultWords = stripslashes($words);
+ } else {
+ $defaultWords = $words;
+ }
+
+ $defaultWords = htmlspecialchars($defaultWords);
+
+ // if there is no search currently, set the default
+ if (!isset($type_of_search) ) {
+ $exact = 1;
+ }
+
+ $res .= '<form id="searchBox" action="'.util_make_url ('/search/').'" method="get">
+ <div>';
+ $parameters = array(
+ SEARCH__PARAMETER_GROUP_ID => $group_id,
+ SEARCH__PARAMETER_ARTIFACT_ID => $atid,
+ SEARCH__PARAMETER_FORUM_ID => $forum_id,
+ SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id
+ );
+
+ $searchManager =& getSearchManager();
+ $searchManager->setParametersValues($parameters);
+ $searchEngines =& $searchManager->getAvailableSearchEngines();
+
+ $res .= '<label for="searchBox-words">
+ <select name="type_of_search">';
+ for($i = 0, $max = count($searchEngines); $i < $max; $i++) {
+ $searchEngine =& $searchEngines[$i];
+ $res .= '<option value="' . $searchEngine->getType() . '"'
+ . ( $type_of_search == $searchEngine->getType() ? ' selected="selected"' : '' )
+ . '>' . $searchEngine->getLabel($parameters) . '</option>' . "\n";
+ }
+ $res .= '</select></label>';
+
+ $parameters = $searchManager->getParameters();
+ foreach($parameters AS $name => $value) {
+ $res .= '<input type="hidden" value="'.$value.'" name="'.$name.'" />' . "\n";
+ }
+ $res .= '<input type="text" size="12" id="searchBox-words" name="words" value="'
+ . $defaultWords . '" />' . "\n";
+ $res .= '<input type="submit" name="Search" value="'._('Search').'" />' . "\n";
+
+ if (isset($group_id) && $group_id) {
+ $res .= util_make_link('/search/advanced_search.php?group_id=' .
+ $group_id, _('Advanced search'));
+ }
+ $res .= '</div>';
+ $res .= '</form>';
+
+ return $res;
+ }
+
+
+ /** Get an array of the user links (Login/Logout/My
+ Account/Register) with the following structure:
+ $result['titles']: list of the titles. $result['urls']: list
+ of the urls.
+ */
+ function getUserLinks() {
+ $res = array();
+ if (session_loggedin()) {
+ $u =& user_get_object(user_getid());
+ $res['titles'][] = sprintf("%s (%s)", _('Log Out'), $u->getRealName());
+ $res['urls'][] = util_make_url ('/account/logout.php');
+
+ $res['titles'][] = _('My Account');
+ $res['urls'][] = util_make_url ('/account/');
+ } else {
+ $url = '/account/login.php';
+ if(getStringFromServer('REQUEST_METHOD') != 'POST') {
+ $url .= '?return_to=';
+ $url .= urlencode(getStringFromServer('REQUEST_URI'));
+ }
+ $res['titles'][] = _('Log In');
+ $res['urls'][] = util_make_url($url);
+
+ if (!forge_get_config ('user_registration_restricted')) {
+ $res['titles'][] = _('New Account');
+ $res['urls'][] = util_make_url('/account/register.php');
+ }
+ }
+ return $res;
+ }
+
+ /** Get an array of the menu of the site with the following
+ * structure: $result['titles']: list of titles of the
+ * links. $result['urls']: list of urls. $result['selected']:
+ * number of the selected menu entry.
+ */
+ function getSiteMenu() {
+ global $sys_use_trove,$sys_use_snippet,$sys_use_people,$sys_use_project_tags, $sys_use_project_full_list;
+
+ $request_uri = getStringFromServer('REQUEST_URI');
+
+ $menu = array();
+ $menu['titles'] = array();
+ $menu['urls'] = array();
+ $selected = 0;
+
+ // Home
+ $menu['titles'][] = _('Home');
+ $menu['urls'][] = util_make_url ('/');
+
+ // My Page
+ $menu['titles'][] = _('My Page');
+ $menu['urls'][] = util_make_url ('/my/');
+ if (strstr($request_uri, util_make_uri('/my/'))
+ || strstr($request_uri, util_make_uri('/account/'))
+ || strstr($request_uri, util_make_uri('/register/'))
+ || strstr($request_uri, util_make_uri('/themes/'))
+ )
+ {
+ $selected=count($menu['urls'])-1;
+ }
+
+ if ($sys_use_trove || $sys_use_project_tags || $sys_use_project_full_list) {
+ $menu['titles'][] = _('Projects');
+ $menu['urls'][] = util_make_url ('/softwaremap/') ;
+ if (strstr($request_uri, util_make_uri('/softwaremap/'))) {
+ $selected=count($menu['urls'])-1;
+ }
+ }
+
+ if ($sys_use_snippet) {
+ $menu['titles'][] = _('Code Snippets');
+ $menu['urls'][] = util_make_url ('/snippet/') ;
+ if (strstr($request_uri, util_make_uri('/snippet/'))) {
+ $selected=count($menu['urls'])-1;
+ }
+ }
+
+ if ($sys_use_people) {
+ $menu['titles'][] = _('Project Openings');
+ $menu['urls'][] = util_make_url ('/people/') ;
+ if (strstr($request_uri, util_make_uri('/people/'))) {
+ $selected=count($menu['urls'])-1;
+ }
+ }
+
+ // Outermenu hook
+ $before = count($menu['urls']);
+ $plugin_urls = array();
+ $hookParams['DIRS'] = &$menu['urls'];
+ $hookParams['TITLES'] = &$menu['titles'];
+ plugin_hook ("outermenu", $hookParams) ;
+
+ // try to find selected entry
+ for ($j = $before; $j < count($plugin_urls); $j++) {
+ $url = $menu['urls'][$j];
+ if (strstr($request_uri, parse_url ($url, PHP_URL_PATH))) {
+ $selected = $j;
+ break;
+ }
+ }
+
+ // Admin and Reporting
+ $user_is_super=false;
+ if (session_loggedin()) {
+ $projectmaster =& group_get_object(GROUP_IS_MASTER);
+ $projectstats =& group_get_object(GROUP_IS_STATS);
+ $permmaster =& $projectmaster->getPermission( session_get_user() );
+ $permstats =& $projectstats->getPermission( session_get_user() );
+
+ if ($permmaster->isAdmin()) {
+ $user_is_super = true;
+ $menu['titles'][] = _('Admin');
+ $menu['urls'][] = util_make_url('/admin/') ;
+ if (strstr($request_uri, util_make_uri('/admin/'))) {
+ $selected=count($menu['urls'])-1;
+ }
+ }
+ if ($permstats->isMember()) {
+ $menu['titles'][] = _('Reporting');
+ $menu['urls'][] = util_make_url ('/reporting/') ;
+ if (strstr($request_uri, util_make_uri('/reporting/'))) {
+ $selected=count($menu['urls'])-1;
+ }
+ }
+ }
+
+ // Project
+ if (isset($GLOBALS['group_id'])) {
+ // get group info using the common result set
+ $project =& group_get_object($GLOBALS['group_id']);
+ if ($project && is_object($project)) {
+ if ($project->isError()) {
+ } elseif (!$project->isProject()) {
+ } else {
+ $menu['titles'][] = $project->getPublicName();
+ if (isset ($GLOBALS['sys_noforcetype']) && $GLOBALS['sys_noforcetype']) {
+ $menu['urls'][]=util_make_url ('/project/?group_id') .$project->getId();
+ } else {
+ $menu['urls'][]=util_make_url ('/projects/') .$project->getUnixName().'/';
+ }
+ $selected=count($menu['urls'])-1;
+ }
+ }
+ }
+
+
+ $menu['selected'] = $selected;
+
+ return $menu;
+ }
+
+
+ /** Get a reference to an array of the projects menu for the
+ * project with the id $group_id with the following
+ * structure: $result['starturl']: URL of the
+ * projects starting page; $result['name']: public name of
+ * the project; $result['titles']: list of titles of the menu
+ * entries; $result['urls']: list of urls of the menu
+ * entries; $result['adminurls']: list of urls to the admin
+ * pages of the menu entries. If the user has no admin
+ * permissions, the correpsonding adminurl is
+ * false. $result['selected']: number of the menu entry that
+ * is currently selected.
+ */
+ function &getProjectMenu ($group_id, $toptab="") {
+ // rebuild menu if it has never been built before, or
+ // if the toptab was set differently
+ if (!isset($this->project_menu_data[$group_id])
+ || ($toptab != "")
+ || ($toptab != $this->project_menu_data[$group_id]['last_toptab']))
+ {
+ // get the group and permission objects
+ $group =& group_get_object($group_id);
+ if (!$group || !is_object($group)) {
+ return;
+ }
+ if ($group->isError()) {
+ //wasn't found or some other problem
+ return;
+ }
+ if (!$group->isProject()) {
+ return;
+ }
+
+ $perm =& $group->getPermission( session_get_user() );
+
+ $selected = 0;
+
+ $menu =& $this->project_menu_data[$group_id];
+ $menu['titles'] = array();
+ $menu['urls'] = array();
+ $menu['adminurls'] = array();
+
+ $menu['name'] = $group->getPublicName();
+
+ // Summary
+ $menu['titles'][] = _('Summary');
+ if (isset ($GLOBALS['sys_noforcetype']) && $GLOBALS['sys_noforcetype']) {
+ $url = util_make_url ('/project/?group_id=' . $group_id);
+ } else {
+ $url = util_make_url ('/projects/' . $group->getUnixName() .'/');
+ }
+ $menu['urls'][] = $url;
+ $menu['adminurls'][] = false;
+ if ($toptab == "home") {
+ $selected = (count($menu['urls'])-1);
+ }
+
+ // setting these allows to change the initial project page
+ $menu['starturl'] = $url;
+
+ // Project Admin
+ if ($perm->isAdmin()) {
+ $menu['titles'][] = _('Admin');
+ $menu['urls'][] = util_make_url ('/project/admin/?group_id=' . $group_id);
+ $menu['adminurls'][] = false;
+ if ($toptab == "admin") {
+ $selected = (count($menu['urls'])-1);
+ }
+ }
+
+ /* Homepage
+ // check for use_home_tab?
+ $TABS_DIRS[]='http://'. $this->getHomePage();
+ $TABS_TITLES[]=_('Home Page');
+ */
+
+ // Project Activity tab
+ $menu['titles'][] = _('Activity');
+ $menu['urls'][] = util_make_url ('/activity/?group_id=' . $group_id);
+ $menu['adminurls'][] = false;
+ if ($toptab == "activity") {
+ $selected = (count($menu['urls'])-1);
+ }
+
+ // Forums
+ if ($group->usesForum()) {
+ $menu['titles'][] = _('Forums');
+ $menu['urls'][] = util_make_url ('/forum/?group_id=' . $group_id);
+ if ($perm->isAdmin() || $perm->isForumAdmin()) {
+ $menu['adminurls'][] = util_make_url('/forum/admin/?group_id='.$group_id);
+ } else {
+ $menu['adminurls'][] = false;
+ }
+ if ($toptab == "forums") {
+ $selected = (count($menu['urls'])-1);
+ }
+ }
+
+ // Artifact Tracking
+ if ($group->usesTracker()) {
+ $menu['titles'][] = _('Tracker');
+ $menu['urls'][] = util_make_url ('/tracker/?group_id=' . $group_id);
+ if ($perm->isAdmin() || $perm->isArtifactAdmin()) {
+ $menu['adminurls'][] = util_make_url('/tracker/admin/?group_id='.$group_id);
+ } else {
+ $menu['adminurls'][] = false;
+ }
+ if ($toptab == "tracker" ||
+ $toptab == "bugs" ||
+ $toptab == "support" ||
+ $toptab == "patch") {
+ $selected = (count($menu['urls'])-1);
+ }
+ }
+
+
+ // Mailing Lists
+ if ($group->usesMail()) {
+ $menu['titles'][] = _('Lists');
+ $menu['urls'][] = util_make_url ('/mail/?group_id=' . $group_id);
+ if ($perm->isAdmin()) {
+ $menu['adminurls'][] = util_make_url('/mail/admin/?group_id='.$group_id);
+ } else {
+ $menu['adminurls'][] = false;
+ }
+ if ($toptab == "mail") {
+ $selected = (count($menu['urls'])-1);
+ }
+
+ }
+
+ // Project/Task Manager
+ if ($group->usesPm()) {
+ $menu['titles'][] = _('Tasks');
+ $menu['urls'][] = util_make_url ('/pm/?group_id=' . $group_id);
+ if ($perm->isAdmin() || $perm->isPMAdmin()) {
+ $menu['adminurls'][] = util_make_url ('/pm/admin/?group_id='.$group_id);
+ } else {
+ $menu['adminurls'][] = false;
+ }
+ if ($toptab == "pm") {
+ $selected = (count($menu['urls'])-1);
+ }
+
+ }
+
+ // Doc Manager
+ if ($group->usesDocman()) {
+ $menu['titles'][] = _('Docs');
+ $menu['urls'][] = util_make_url ('/docman/?group_id=' . $group_id);
+ if ($perm->isAdmin() || $perm->isDocEditor()) {
+ $menu['adminurls'][] = util_make_url ('/docman/admin/?group_id='.$group_id);
+ } else {
+ $menu['adminurls'][] = false;
+ }
+ if ($toptab == "docman") {
+ $selected = (count($menu['urls'])-1);
+ }
+
+ }
+
+ // Surveys
+ if ($group->usesSurvey()) {
+ $menu['titles'][] = _('Surveys');
+ $menu['urls'][] = util_make_url ('/survey/?group_id=' . $group_id);
+ if ($perm->isAdmin()) {
+ $menu['adminurls'][] = util_make_url ('/survey/admin/?group_id='.$group_id);
+ } else {
+ $menu['adminurls'][] = false;
+ }
+ if ($toptab == "surveys") {
+ $selected = (count($menu['urls'])-1);
+ }
+ }
+
+ // News
+ if ($group->usesNews()) {
+ $menu['titles'][] = _('News');
+ $menu['urls'][] = util_make_url ('/news/?group_id=' . $group_id);
+ if ($perm->isAdmin()) {
+ $menu['adminurls'][] = util_make_url ('/news/admin/?group_id='.$group_id);
+ } else {
+ $menu['adminurls'][] = false;
+ }
+ if ($toptab == "news") {
+ $selected = (count($menu['urls'])-1);
+ }
+ }
+
+ // SCM systems
+ if ($group->usesSCM()) {
+ $menu['titles'][] = _('SCM');
+ $menu['urls'][] = util_make_url ('/scm/?group_id=' . $group_id);
+ // eval cvs_flags?
+ if ($perm->isAdmin()) {
+ $menu['adminurls'][] = util_make_url ('/scm/admin/?group_id='.$group_id);
+ } else {
+ $menu['adminurls'][] = false;
+ }
+ if ($toptab == "scm") {
+ $selected = (count($menu['urls'])-1);
+ }
+ }
+
+ // groupmenu_after_scm hook
+ $hookParams = array();
+ $hookParams['group_id'] = $group_id ;
+ $hookParams['DIRS'] =& $menu['urls'];
+ $hookParams['TITLES'] =& $menu['titles'];
+ $hookParams['toptab'] =& $toptab;
+ $hookParams['selected'] =& $selected;
+
+ plugin_hook ("groupmenu_scm", $hookParams) ;
+
+ // fill up adminurls
+ for ($i = 0; $i < count($menu['urls']) - count($menu['adminurls']); $i++) {
+ $menu['adminurls'][] = false;
+ }
+
+ // Downloads
+ if ($group->usesFRS()) {
+ $menu['titles'][] = _('Files');
+ $menu['urls'][] = util_make_url ('/frs/?group_id=' . $group_id);
+ if ($perm->isAdmin() || $perm->isReleaseTechnician()) {
+ $menu['adminurls'][] = util_make_url ('/frs/admin/?group_id='.$group_id);
+ } else {
+ $menu['adminurls'][] = false;
+ }
+ if ($toptab == "frs") {
+ $selected = (count($menu['urls'])-1);
+ }
+ }
+
+ // groupmenu hook
+ $hookParams = array();
+ $hookParams['group'] = $group_id ;
+ $hookParams['DIRS'] =& $menu['urls'];
+ $hookParams['TITLES'] =& $menu['titles'];
+ $hookParams['toptab'] =& $toptab;
+ $hookParams['selected'] =& $selected;
+
+ plugin_hook ("groupmenu", $hookParams) ;
+
+ // fill up adminurls
+ for ($i = 0;
+ $i < count($menu['urls']) - count($menu['adminurls']);
+ $i++)
+ {
+ $menu['adminurls'][] = false;
+ }
+
+ // store selected menu item (if any)
+ $menu['selected'] = $selected;
+ if ($toptab != "") {
+ $menu['last_toptab'] = $toptab;
+ }
+ }
+ return $this->project_menu_data[$group_id] ;
+ }
+
+ /**
+ * Create the HTML code for the banner "Powered By
+ * FusionForge". If $asHTML is set to false, it will return an
+ * array with the following structure: $result['url']: URL for
+ * the link on the banner; $result['image']: URL of the banner
+ * image; $result['title']: HTML code that outputs the banner;
+ * $result['html']: HTML code that creates the banner and the link.
+ */
+ function getPoweredBy($asHTML=true) {
+ $res['url'] = 'http://fusionforge.org/';
+ $res['image'] = util_make_url ('/images/pow-fusionforge.png');
+ $res['title'] = '<img src="'
+ . $res['image']
+ . '" alt="Powered By FusionForge" border="0" />';
+ $res['html'] = util_make_link($res['url'], $res['title'], array(), true);
+ if ($asHTML) {
+ return $res['html'];
+ } else {
+ return $res;
+ }
+ }
+
+ /** Create the HTML code for the "Show Source" link if
+ * $sys_show_source is set, otherwise "". If $asHTML is set
+ * to false, it returns NULL when $sys_show_source is not
+ * set, otherwise an array with the following structure:
+ * $result['url']: URL of the link to the source code viewer;
+ * $result['title']: Title of the link.
+ */
+ function getShowSource($asHTML=true) {
+ global $sys_show_source;
+ if ($sys_show_source) {
+ $res['url'] = util_make_url('/source.php?file='.getStringFromServer('SCRIPT_NAME'));
+ $res['title'] = _('Show source');
+ } else {
+ return ($asHTML ? "" : NULL);
+ }
+ if (!$asHTML) {
+ return $res;
+ } else {
+ return util_make_link($res['url'], $res['title'],
+ array('class' => 'showsource'),
+ true);
+ }
+ }
+}
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
+?>
\ No newline at end of file
'),
$this->getUnixName(),
util_make_url ('/account/verify.php?confirm_hash=_'.$this->getConfirmHash()),
- $GLOBALS['sys_name']));
+ forge_get_config ('forge_name')));
util_send_message(
$this->getEmail(),
- sprintf(_('%1$s Account Registration'), $GLOBALS['sys_name']),
+ sprintf(_('%1$s Account Registration'), forge_get_config ('forge_name')),
$message
);
}
--- /dev/null
+<?php
+/**
+ * FusionForge configuration functions
+ *
+ * Copyright 2009, Roland Mas
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge 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.
+ *
+ * FusionForge 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 FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+
+class FusionForgeConfig {
+ static protected $instance = NULL ;
+ private $settings ;
+
+ public function get_instance () {
+ if (self::$instance == NULL) {
+ self::$instance = new FusionForgeConfig () ;
+ }
+ return self::$instance ;
+ }
+
+ public function get_value ($section, $var) {
+ if (!isset (self::$instance->settings[$section])
+ || !isset (self::$instance->settings[$section][$var])) {
+ return NULL ;
+ }
+ return self::$instance->settings[$section][$var] ;
+ }
+
+ public function set_value ($section, $var, $value) {
+ if (!isset (self::$instance->settings[$section])) {
+ self::$instance->settings[$section] = array () ;
+ }
+
+ if (!isset (self::$instance->settings[$section][$var])) {
+ self::$instance->settings[$section][$var] = $value ;
+ }
+ }
+
+ function read_config_file ($file) {
+ $sections = parse_ini_file ($file, true) ;
+ foreach ($sections as $section => $options) {
+ if (!isset (self::$instance->settings[$section]))
+ continue ;
+ foreach ($options as $var => $value) {
+ if (!isset (self::$instance->settings[$section][$var]))
+ continue ;
+ self::$instance->settings[$section][$var] = $value ;
+ }
+ }
+ return ;
+ }
+
+ }
+
+if (!isset ($fusionforge_config)) {
+ $fusionforge_config = new FusionForgeConfig () ;
+}
+
+function forge_get_config ($var, $section = 'core') {
+ $c = FusionForgeConfig::get_instance () ;
+ return $c->get_value ($section, $var) ;
+}
+
+function forge_get_config_array () {
+ $c = FusionForgeConfig::get_instance () ;
+
+ $ret = array () ;
+
+ foreach (func_get_args() as $item) {
+ if (! is_array ($item)) {
+ $item = array ($item) ;
+ }
+ $var = $item[0] ;
+ if (isset ($item[1])) {
+ $section = $item[1] ;
+ } else {
+ $section = 'core' ;
+ }
+ $ret[] = $c->get_value ($section, $var) ;
+ }
+
+ return $ret ;
+}
+
+function forge_set_vars_from_config () {
+ $c = FusionForgeConfig::get_instance () ;
+
+ foreach (func_get_args() as $item) {
+ if (is_array ($item)) {
+ $var = $item[0] ;
+ $x = $var ;
+ if (isset ($item[1])) {
+ $section = $item[1] ;
+ $x = $section.'__'.$var ;
+ $value = forge_get_config ($var, $section) ;
+ }
+ } else {
+ $var = $item ;
+ $x = $item ;
+ $value = forge_get_config ($var) ;
+ }
+
+ global $$x ;
+ $$x = $value ;
+ }
+}
+
+
+function forge_define_config_item ($var, $section, $default) {
+ $c = FusionForgeConfig::get_instance () ;
+
+ return $c->set_value ($section, $var, $default) ;
+}
+
+function forge_read_config_file ($file) {
+ $c = FusionForgeConfig::get_instance () ;
+
+ return $c->read_config_file ($file) ;
+}
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
+?>
* @return true/false
*/
function session_cookie($name ,$value, $domain = '', $expiration = 0) {
- if ( $expiration != 0){
- setcookie($name, $value, time() + $expiration, '/', $domain, 0);
- } else {
- setcookie($name, $value, $expiration, '/', $domain, 0);
+ if (php_sapi_name() != 'cli') {
+ if ( $expiration != 0){
+ setcookie($name, $value, time() + $expiration, '/', $domain, 0);
+ } else {
+ setcookie($name, $value, $expiration, '/', $domain, 0);
+ }
}
}
* fails checks.
*
* @param array Associative array specifying criteria
- * @param string Override error string (optional)
* @return does not return if check is failed
*
*/
if (!session_loggedin()) {
exit_not_logged_in();
}
+
+ $user =& user_get_object(user_getid());
+ if (! $user->isActive()) {
+ session_logout();
+ exit_error('Error','Your account is no longer active ; you have been disconnected');
+ }
if (array_key_exists('group', $req)) {
$group =& group_get_object($req['group']);
exit_permission_denied($reason);
}
- //don't really like this, but as admin_flags is not mandatory
- //I add @ to remove the warning
- if (@$req['admin_flags']) {
+ if (isset($req['admin_flags']) && $req['admin_flags']) {
if (!$perm->isAdmin()) {
exit_permission_denied($reason);
}
Thank you for registering your project with %1$s.
-- the %1$s staff
-'), $GLOBALS['sys_name'], $GLOBALS['sys_lists_host'], $realListName, $this->getExternalInfoUrl(), $this->getExternalAdminUrl(), $listPassword);
- $mailSubject = sprintf(_('%1$s New Mailing List'), $GLOBALS['sys_name']);
+'), forge_get_config ('forge_name'), $GLOBALS['sys_lists_host'], $realListName, $this->getExternalInfoUrl(), $this->getExternalAdminUrl(), $listPassword);
+ $mailSubject = sprintf(_('%1$s New Mailing List'), forge_get_config ('forge_name'));
util_send_message($userEmail, $mailSubject, $mailBody, 'admin@'.$GLOBALS['sys_default_domain']);
}
*/
function report_header($title) {
- global $HTML,$sys_name;
+ global $HTML ;
echo $HTML->header(array('title'=>" "._('Reporting').": " . $title));
if (isset($GLOBALS['feedback'])) {
echo html_feedback_top($GLOBALS['feedback']);
}
- echo "<h1>".sprintf(_('%1$s Reporting'), $sys_name)."</h1>\n";
+ echo "<h1>".sprintf(_('%1$s Reporting'), forge_get_config ('forge_name'))."</h1>\n";
}
function report_footer() {
*/
function create($survey_title, $add_questions, $is_active=0, $is_public=1, $is_result_public=0, $double_vote=0) {
if (!$survey_title) {
- $this->setError(_('UPDATE FAILED: Survey Title Required'));
+ $this->setError(_('Update Failed: Survey Title Required'));
return false;
/* We need at least one survey question at this point */
} else if (!$add_questions || !is_array($add_questions) || count($add_questions)<1) {
- $this->setError(_('UPDATE FAILED: Survey Questions Required'));
+ $this->setError(_('Update Failed: Survey Questions Required'));
return false;
}
*/
function update($survey_title, &$add_questions, &$del_questions, $is_active=0, $is_public=1, $is_result_public=0, $double_vote=0) {
if (!$survey_title) {
- $this->setError(_('UPDATE FAILED: Survey Title Required'));
+ $this->setError(_('Update Failed: Survey Title Required'));
return false;
/* We need at least one survey question at this point */
}
$res = $this->ArtifactType->getTechnicians();
$arr =& util_result_column_to_array($res,0);
if (!in_array($assigned_to, $arr)) {
- $this->setError("Invalid assigned_to (not member of the project)");
+ $this->setError("Invalid assigned_to (assigned person is not a technician)");
return false;
}
}
$changes['assigned_to'] = 1;
$update = true;
}
- if ($summary && ($this->getSummary() != htmlspecialchars(stripslashes($summary)))) {
+ if ($summary && ($this->getSummary() != htmlspecialchars($summary))) {
$this->addHistory('summary', $this->getSummary());
$changes['summary'] = 1;
$update = true;
}
- if ($description && ($this->getDetails() != htmlspecialchars(stripslashes($description)))) {
+ if ($description && ($this->getDetails() != htmlspecialchars($description))) {
$this->addHistory('details', $this->getDetails());
$changes['details'] = 1;
$update = true;
if (strlen($alias) == 0) return true; // empty alias
// invalid chars?
- if (preg_match("/[^[:alnum:]_\\-]/", $alias)) {
- $this->setError(_('The alias contains invalid characters. Only letters, numbers, hypens (-) and underscores (_) allowed.'));
+ if (preg_match("/[^[:alnum:]_@\\-]/", $alias)) {
+ $this->setError(_('The alias contains invalid characters. Only letters, numbers, hypens (-), arobase (@) and underscores (_) allowed.'));
return false;
} else if (in_array($alias, $reserved_alias)) { // alias is reserved?
$this->setError(sprintf(_('\'%1$s\' is a reserved alias. Please provide another name.'), $alias));
// called "Quality test", make an alias called "quality_test").
// The alias can be seen as a "unix name" for this field
$alias = preg_replace("/ /", "_", $name);
- $alias = preg_replace("/[^[:alnum:]_]/", "", $alias);
+ $alias = preg_replace("/[^[:alnum:]_@]/", "", $alias);
$alias = strtolower($alias);
} elseif (!$this->validateAlias($alias)) {
// alias is invalid...
"$sys_admin_email",
"ATT: Problems with massmail cron script",
"This is automatically generated message from\n
-the mass mailing cron script of $sys_name\n
+the mass mailing cron script of ".forge_get_config ('forge_name')."\n
installation. There was error querying massmail_queue\n
database table. Please take appropriate actions.\n"
);
by visiting following link:
<%3$s>
'),
- $GLOBALS['sys_name'],
+ forge_get_config ('forge_name'),
util_make_url('/account/'),
util_make_url('/account/unsubscribe.php?ch=_'.$row['confirm_hash'])) ;
} else {
--- /dev/null
+DROP TABLE forum_attachment_type;
require_once $gfwww.'include/squal_pre.php';
if (!$gfconn) {
- print "$sys_name Could Not Connect to Database: ".db_error();
+ print forge_get_config ('forge_name')." Could Not Connect to Database: ".db_error();
exit;
}
$dbh->commit () ;
}
- &update_with_sql("20100308-forum-attachment-types","4.8.99-6");
+ &update_with_sql("20100308-forum-attachment-types","4.8.99-6");
########################### INSERT HERE #################################
case "$1" in
configure)
- /usr/share/gforge/plugins/contribtracker/bin/db-upgrade.pl
- /usr/share/gforge/bin/register-plugin contribtracker "Contribution Tracker"
+ su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/gforge/plugins/contribtracker/bin/db-upgrade.pl'
+ su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/gforge/bin/register-plugin contribtracker "Contribution Tracker"'
;;
abort-upgrade|abort-remove|abort-deconfigure)
case "$1" in
configure)
- /usr/share/@OLDPACKAGE@/plugins/extratabs/bin/db-upgrade.pl
- /usr/share/@OLDPACKAGE@/bin/register-plugin extratabs "Extra Tabs"
+ su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/plugins/extratabs/bin/db-upgrade.pl'
+ su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/bin/register-plugin extratabs "Extra Tabs"'
;;
abort-upgrade|abort-remove|abort-deconfigure)
case "$1" in
configure)
- /usr/share/@OLDPACKAGE@/plugins/globalsearch/bin/db-upgrade.pl
- /usr/share/@OLDPACKAGE@/bin/register-plugin globalsearch "Global Search"
+ su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/plugins/globalsearch/bin/db-upgrade.pl'
+ su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/bin/register-plugin globalsearch "Global Search"'
;;
abort-upgrade|abort-remove|abort-deconfigure)
case "$1" in
configure)
- /usr/share/@OLDPACKAGE@/bin/register-plugin mediawiki "Mediawiki"
+ su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/bin/register-plugin mediawiki "Mediawiki"'
@OLDPACKAGE@-config
for flavour in apache apache-perl apache-ssl apache2 ; do
if [ -x /usr/sbin/$flavour ]; then
case "$1" in
configure)
- /usr/share/@OLDPACKAGE@/plugins/projectlabels/bin/db-upgrade.pl
- /usr/share/@OLDPACKAGE@/bin/register-plugin projectlabels "Project Labels"
+ su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/plugins/projectlabels/bin/db-upgrade.pl'
+ su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/bin/register-plugin projectlabels "Project Labels"'
;;
abort-upgrade|abort-remove|abort-deconfigure)
CRONDFILES=$(patsubst packaging/cron.d/%,debian/$(OLDPACKAGE)-%.cron.d,$(wildcard packaging/cron.d/[a-z]*))
DIRSFILES=$(patsubst packaging/dirs/%,debian/$(OLDPACKAGE)-%.dirs,$(wildcard packaging/dirs/[a-z]*))
+LINKSFILES=$(patsubst packaging/links/%,debian/$(OLDPACKAGE)-%.links,$(wildcard packaging/links/[a-z]*))
INSTALLFILES=$(patsubst packaging/install/%,debian/$(OLDPACKAGE)-%.install,$(wildcard packaging/install/[a-z]*))
DOCSFILES=$(patsubst packaging/docs/oldpkgname%,debian/$(OLDPACKAGE)%.docs,$(wildcard packaging/docs/oldpkgname*)) $(patsubst packaging/docs/pkgname%,debian/$(PACKAGE)%.docs,$(wildcard packaging/docs/pkgname*))
POFILES=$(patsubst debian/dsf-po/%,debian/po/%,$(wildcard debian/dsf-po/*) debian/po/POTFILES.in)
sh $(CURDIR)/deb-specific/manage-uufiles.sh clean
.PHONY: conffiles
-conffiles: $(CRONDFILES) $(DIRSFILES) $(INSTALLFILES) $(DOCSFILES) debian/control
+conffiles: $(CRONDFILES) $(DIRSFILES) $(LINKSFILES) $(INSTALLFILES) $(DOCSFILES) debian/control
debian/$(OLDPACKAGE)-%.cron.d:
(cat $(CURDIR)/packaging/cron.d/00phpcron ; sed -e 's/\$$FFUSER/$(OLDPACKAGE)/g' $(CURDIR)/packaging/cron.d/$*) > $@
debian/$(OLDPACKAGE)-%.dirs:
cp $(CURDIR)/packaging/dirs/$* $@
+debian/$(OLDPACKAGE)-%.links:
+ cp $(CURDIR)/packaging/links/$* $@
+
debian/$(OLDPACKAGE)-%.install:
cp $(CURDIR)/packaging/install/$* $@
rm -f $(CURDIR)/debian/*.cron.d
rm -f $(CURDIR)/debian/*.dirs
+ rm -f $(CURDIR)/debian/*.links
rm -f $(CURDIR)/debian/*.install
rm -f $(CURDIR)/debian/*.docs
rm -f $(CURDIR)/debian/$(OLDPACKAGE)-config.sgml
--- /dev/null
+# Doxyfile 1.6.3
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+# TAG = value [value, ...]
+# For lists items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+DOXYFILE_ENCODING = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+# by quotes) that should identify the project.
+
+PROJECT_NAME =
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
+# if some version control system is used.
+
+PROJECT_NUMBER =
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY =
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of
+# source files, where putting all generated files in the same directory would
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
+# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
+# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
+# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak,
+# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+
+OUTPUT_LANGUAGE = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is
+# used as the annotated text. Otherwise, the brief description is used as-is.
+# If left blank, the following values are used ("$name" is automatically
+# replaced with the name of the entity): "The $name class" "The $name widget"
+# "The $name file" "is" "provides" "specifies" "contains"
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF =
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
+# description.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES = YES
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
+# path to strip.
+
+STRIP_FROM_PATH =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful is your file systems
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like regular Qt-style comments
+# (thus requiring an explicit @brief command for a brief description.)
+
+JAVADOC_AUTOBRIEF = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
+# interpret the first line (until the first dot) of a Qt-style
+# comment as the brief description. If set to NO, the comments
+# will behave just like regular Qt-style comments (thus requiring
+# an explicit \brief command for a brief description.)
+
+QT_AUTOBRIEF = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
+# re-implements.
+
+INHERIT_DOCS = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+# a new page for each member. If set to NO, the documentation of a member will
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE = 4
+
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+# sources only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+# sources only. Doxygen will then generate output that is more tailored for
+# Java. For instance, namespaces will be presented as packages, qualified
+# scopes will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources only. Doxygen will then generate output that is more tailored for
+# Fortran.
+
+OPTIMIZE_FOR_FORTRAN = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for
+# VHDL.
+
+OPTIMIZE_OUTPUT_VHDL = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it parses.
+# With this tag you can assign which parser to use for a given extension.
+# Doxygen has a built-in mapping, but you can override or extend it using this tag.
+# The format is ext=language, where ext is a file extension, and language is one of
+# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP,
+# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat
+# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen.
+
+EXTENSION_MAPPING =
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should
+# set this tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+# func(std::string) {}). This also make the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+
+CPP_CLI_SUPPORT = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
+# Doxygen will parse them like normal C++ but will assume all classes use public
+# instead of private inheritance when no explicit protection keyword is present.
+
+SIP_SUPPORT = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate getter
+# and setter methods for a property. Setting this option to YES (the default)
+# will make doxygen to replace the get and set methods by a property in the
+# documentation. This will only work if the methods are indeed getting or
+# setting a simple type. If this is not the case, or you want to show the
+# methods anyway, you should set this option to NO.
+
+IDL_PROPERTY_SUPPORT = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
+# the \nosubgrouping command.
+
+SUBGROUPING = YES
+
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+# is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically
+# be useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+
+TYPEDEF_HIDES_STRUCT = NO
+
+# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
+# determine which symbols to keep in memory and which to flush to disk.
+# When the cache is full, less often used symbols will be written to disk.
+# For small to medium size projects (<1000 input files) the default value is
+# probably good enough. For larger projects a too small cache size can cause
+# doxygen to be busy swapping symbols to and from disk most of the time
+# causing a significant performance penality.
+# If the system has enough physical memory increasing the cache will improve the
+# performance by keeping more symbols in memory. Note that the value works on
+# a logarithmic scale so increasing the size by one will rougly double the
+# memory usage. The cache size is given by this formula:
+# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
+# corresponding to a cache size of 2^16 = 65536 symbols
+
+SYMBOL_CACHE_SIZE = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL = NO
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# will be included in the documentation.
+
+EXTRACT_PRIVATE = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# will be included in the documentation.
+
+EXTRACT_STATIC = NO
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES = YES
+
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base
+# name of the file that contains the anonymous namespace. By default
+# anonymous namespace are hidden.
+
+EXTRACT_ANON_NSPACES = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS = NO
+
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES = YES
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
+# of that file.
+
+SHOW_INCLUDE_FILES = YES
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
+# will list include files with double quotes in the documentation
+# rather than with sharp brackets.
+
+FORCE_LOCAL_INCLUDES = NO
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# is inserted in the documentation for inline members.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
+# declaration order.
+
+SORT_MEMBER_DOCS = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
+# declaration order.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
+# hierarchy of group names into alphabetical order. If set to NO (the default)
+# the group names will appear in their defined order.
+
+SORT_GROUP_NAMES = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
+# commands in the documentation.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
+# commands in the documentation.
+
+GENERATE_TESTLIST = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
+# commands in the documentation.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or define consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and defines in the
+# documentation can be controlled using \showinitializer or \hideinitializer
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES = YES
+
+# If the sources in your project are distributed over multiple directories
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+# in the documentation. The default is NO.
+
+SHOW_DIRECTORIES = NO
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
+# This will remove the Files entry from the Quick Index and from the
+# Folder Tree View (if specified). The default is YES.
+
+SHOW_FILES = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
+# Namespaces page.
+# This will remove the Namespaces entry from the Quick Index
+# and from the Folder Tree View (if specified). The default is YES.
+
+SHOW_NAMESPACES = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command <command> <input-file>, where <command> is the value of
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
+# provided by doxygen. Whatever the program writes to standard output
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER =
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
+# doxygen. The layout file controls the global structure of the generated output files
+# in an output format independent way. The create the layout file that represents
+# doxygen's defaults, run doxygen with the -l option. You can optionally specify a
+# file name after the option, if omitted DoxygenLayout.xml will be used as the name
+# of the layout file.
+
+LAYOUT_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET = YES
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
+# NO is used.
+
+WARNINGS = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED = YES
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR = YES
+
+# This WARN_NO_PARAMDOC option can be abled to get warnings for
+# functions that are documented, but have no documentation for their parameters
+# or return value. If set to NO (the default) doxygen will only warn about
+# wrong or incomplete parameter documentation, but not about the absence of
+# documentation.
+
+WARN_NO_PARAMDOC = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text. Optionally the format may contain
+# $version, which will be replaced by the version of the file (if it could
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
+# to stderr.
+
+WARN_LOGFILE = ../apidocs/fusionforge/output.log
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
+# with spaces.
+
+INPUT = gforge/common
+
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+# also the default input encoding. Doxygen uses libiconv (or the iconv built
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
+# the list of possible encodings.
+
+INPUT_ENCODING = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
+# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
+
+FILE_PATTERNS =
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
+# If left blank NO is used.
+
+RECURSIVE = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+
+EXCLUDE =
+
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+# directories that are symbolic links (a Unix filesystem feature) are excluded
+# from the input.
+
+EXCLUDE_SYMLINKS = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories. Note that the wildcards are matched
+# against the file with absolute path, so to exclude all test directories
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
+# the \include command).
+
+EXAMPLE_PATH =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank all files are included.
+
+EXAMPLE_PATTERNS =
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
+# the \image command).
+
+IMAGE_PATH =
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command <filter> <input-file>, where <filter>
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output.
+# If FILTER_PATTERNS is specified, this tag will be
+# ignored.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis.
+# Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match.
+# The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+# is applied to all files.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES
+# then for each documented function all documented
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES
+# then for each documented function all documented entities
+# called/used by that function will be listed.
+
+REFERENCES_RELATION = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
+# link to the source code.
+# Otherwise they will link to the documentation.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code
+# will point to the HTML generated by the htags(1) tool instead of doxygen
+# built-in source browser. The htags tool is part of GNU's global source
+# tagging system (see http://www.gnu.org/software/global/global.html). You
+# will need version 4.8.6 or higher.
+
+USE_HTAGS = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+# will generate a verbatim copy of the header file for each class for
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS = YES
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+# of all compounds will be generated. Enable this if the project
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX = NO
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX = 5
+
+# In case all classes in a project start with a common prefix, all
+# classes will be put under the same header in the alphabetical index.
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX =
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+# generate HTML output.
+
+GENERATE_HTML = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT = ../apidocs/fusionforge
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard header.
+
+HTML_HEADER =
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard footer.
+
+HTML_FOOTER =
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+# style sheet that is used by each HTML page. It can be used to
+# fine-tune the look of the HTML output. If the tag is left blank doxygen
+# will generate a default style sheet. Note that doxygen will try to copy
+# the style sheet file to the HTML output directory, so don't put your own
+# stylesheet in the HTML output directory as well, or it will be erased!
+
+HTML_STYLESHEET =
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
+# page will contain the date and time when the page was generated. Setting
+# this to NO can help when comparing the output of multiple runs.
+
+HTML_TIMESTAMP = YES
+
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+# files or namespaces will be aligned in HTML using tables. If set to
+# NO a bullet list will be used.
+
+HTML_ALIGN_MEMBERS = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded. For this to work a browser that supports
+# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
+# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
+
+HTML_DYNAMIC_SECTIONS = NO
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files
+# will be generated that can be used as input for Apple's Xcode 3
+# integrated development environment, introduced with OSX 10.5 (Leopard).
+# To create a documentation set, doxygen will generate a Makefile in the
+# HTML output directory. Running make will produce the docset in that
+# directory and running "make install" will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
+# it at startup.
+# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
+
+GENERATE_DOCSET = NO
+
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
+# feed. A documentation feed provides an umbrella under which multiple
+# documentation sets from a single provider (such as a company or product suite)
+# can be grouped.
+
+DOCSET_FEEDNAME = "Doxygen generated docs"
+
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
+# should uniquely identify the documentation set bundle. This should be a
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
+# will append .docset to the name.
+
+DOCSET_BUNDLE_ID = org.doxygen.Project
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+# will be generated that can be used as input for tools like the
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+# be used to specify the file name of the resulting .chm file. You
+# can add a path in front of the file if the result should not be
+# written to the html output directory.
+
+CHM_FILE =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+# be used to specify the location (absolute path including file name) of
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+# controls if a separate .chi index file is generated (YES) or that
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING
+# is used to encode HtmlHelp index (hhk), content (hhc) and project file
+# content.
+
+CHM_INDEX_ENCODING =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+# controls whether a binary table of contents is generated (YES) or a
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
+# are set, an additional index file will be generated that can be used as input for
+# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
+# HTML documentation.
+
+GENERATE_QHP = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
+# be used to specify the file name of the resulting .qch file.
+# The path specified is relative to the HTML output folder.
+
+QCH_FILE =
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#namespace
+
+QHP_NAMESPACE = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#virtual-folders
+
+QHP_VIRTUAL_FOLDER = doc
+
+# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add.
+# For more information please see
+# http://doc.trolltech.com/qthelpproject.html#custom-filters
+
+QHP_CUST_FILTER_NAME =
+
+# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see
+# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">Qt Help Project / Custom Filters</a>.
+
+QHP_CUST_FILTER_ATTRS =
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's
+# filter section matches.
+# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">Qt Help Project / Filter Attributes</a>.
+
+QHP_SECT_FILTER_ATTRS =
+
+# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
+# be used to specify the location of Qt's qhelpgenerator.
+# If non-empty doxygen will try to run qhelpgenerator on the generated
+# .qhp file.
+
+QHG_LOCATION =
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
+# will be generated, which together with the HTML files, form an Eclipse help
+# plugin. To install this plugin and make it available under the help contents
+# menu in Eclipse, the contents of the directory containing the HTML and XML
+# files needs to be copied into the plugins directory of eclipse. The name of
+# the directory within the plugins directory should be the same as
+# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before the help appears.
+
+GENERATE_ECLIPSEHELP = NO
+
+# A unique identifier for the eclipse help plugin. When installing the plugin
+# the directory name containing the HTML and XML files should also have
+# this name.
+
+ECLIPSE_DOC_ID = org.doxygen.Project
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+# top of each HTML page. The value NO (the default) enables the index and
+# the value YES disables it.
+
+DISABLE_INDEX = NO
+
+# This tag can be used to set the number of enum values (range [1..20])
+# that doxygen will group on one line in the generated HTML documentation.
+
+ENUM_VALUES_PER_LINE = 4
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+# structure should be generated to display hierarchical information.
+# If the tag value is set to YES, a side panel will be generated
+# containing a tree-like index structure (just like the one that
+# is generated for HTML Help). For this to work a browser that supports
+# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
+# Windows users are probably better off using the HTML help feature.
+
+GENERATE_TREEVIEW = NONE
+
+# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories,
+# and Class Hierarchy pages using a tree view instead of an ordered list.
+
+USE_INLINE_TREES = NO
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+# used to set the initial width (in pixels) of the frame in which the tree
+# is shown.
+
+TREEVIEW_WIDTH = 250
+
+# Use this tag to change the font size of Latex formulas included
+# as images in the HTML documentation. The default is 10. Note that
+# when you change the font size after a successful doxygen run you need
+# to manually remove any form_*.png images from the HTML output directory
+# to force them to be regenerated.
+
+FORMULA_FONTSIZE = 10
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box for the HTML output. The underlying search engine uses javascript
+# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) there is already a search function so this one should
+# typically be disabled. For large projects the javascript based search engine
+# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
+
+SEARCHENGINE = NO
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be implemented using a PHP enabled web server instead of at the web client using Javascript. Doxygen will generate the search PHP script and index
+# file to put on the web server. The advantage of the server based approach is that it scales better to large projects and allows full text search. The disadvances is that it is more difficult to setup
+# and does not have live searching capabilities.
+
+SERVER_BASED_SEARCH = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+# generate Latex output.
+
+GENERATE_LATEX = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked. If left blank `latex' will be used as the default command name.
+# Note that when enabling USE_PDFLATEX this option is only used for
+# generating bitmaps for formulas in the HTML output, but not in the
+# Makefile that is written to the output directory.
+
+LATEX_CMD_NAME = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+# generate index for LaTeX. If left blank `makeindex' will be used as the
+# default command name.
+
+MAKEINDEX_CMD_NAME = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+# LaTeX documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_LATEX = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used
+# by the printer. Possible values are: a4, a4wide, letter, legal and
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE = a4wide
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES =
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+# the generated latex document. The header should contain everything until
+# the first chapter. If it is left blank doxygen will generate a
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+# contain links (just like the HTML output) instead of page references
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS = YES
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+# plain latex in the generated Makefile. Set this option to YES to get a
+# higher quality PDF documentation.
+
+USE_PDFLATEX = YES
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+# command to the generated LaTeX files. This will instruct LaTeX to keep
+# running if errors occur, instead of asking the user for help.
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+# include the index chapters (such as File Index, Compound Index, etc.)
+# in the output.
+
+LATEX_HIDE_INDICES = NO
+
+# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER.
+
+LATEX_SOURCE_CODE = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+# The RTF output is optimized for Word 97 and may not look very pretty with
+# other RTF readers or editors.
+
+GENERATE_RTF = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+# RTF documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_RTF = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+# will contain hyperlink fields. The RTF file will
+# contain links (just like the HTML output) instead of page references.
+# This makes the output suitable for online browsing using WORD or other
+# programs which support those fields.
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's
+# config file, i.e. a series of assignments. You only have to provide
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE =
+
+# Set optional variables used in the generation of an rtf document.
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+# generate man pages
+
+GENERATE_MAN = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT = man
+
+# The MAN_EXTENSION tag determines the extension that is added to
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+# then it will generate one additional man file for each entity
+# documented in the real man page(s). These additional files
+# only source the real man page, but without them the man command
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will
+# generate an XML file that captures the structure of
+# the code including all documentation.
+
+GENERATE_XML = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_SCHEMA =
+
+# The XML_DTD tag can be used to specify an XML DTD,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_DTD =
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+# dump the program listings (including syntax highlighting
+# and cross-referencing information) to the XML output. Note that
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+# generate an AutoGen Definitions (see autogen.sf.net) file
+# that captures the structure of the code including all
+# documentation. Note that this feature is still experimental
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+# generate a Perl module file that captures the structure of
+# the code including all documentation. Note that this
+# feature is still experimental and incomplete at the
+# moment.
+
+GENERATE_PERLMOD = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+# nicely formatted so it can be parsed by a human reader.
+# This is useful
+# if you want to understand what is going on.
+# On the other hand, if this
+# tag is set to NO the size of the Perl module output will be much smaller
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY = YES
+
+# The names of the make variables in the generated doxyrules.make file
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+# This is useful so different doxyrules.make files included by the same
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+# evaluate all C-preprocessor directives found in the sources and include
+# files.
+
+ENABLE_PREPROCESSING = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+# names in the source code. If set to NO (the default) only conditional
+# compilation will be performed. Macro expansion can be done in a controlled
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION = NO
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+# then the macro expansion is limited to the macros specified with the
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF = NO
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+# in the INCLUDE_PATH (see below) will be search if a #include is found.
+
+SEARCH_INCLUDES = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by
+# the preprocessor.
+
+INCLUDE_PATH =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will
+# be used.
+
+INCLUDE_FILE_PATTERNS =
+
+# The PREDEFINED tag can be used to specify one or more macro names that
+# are defined before the preprocessor is started (similar to the -D option of
+# gcc). The argument of the tag is a list of macros of the form: name
+# or name=definition (no spaces). If the definition and the = are
+# omitted =1 is assumed. To prevent a macro definition from being
+# undefined via #undef or recursively expanded use the := operator
+# instead of the = operator.
+
+PREDEFINED =
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+# this tag can be used to specify a list of macro names that should be expanded.
+# The macro definition that is found in the sources will be used.
+# Use the PREDEFINED tag if you want to use a different macro definition.
+
+EXPAND_AS_DEFINED =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+# doxygen's preprocessor will remove all function-like macros that are alone
+# on a line, have an all uppercase name, and do not end with a semicolon. Such
+# function macros are typically used for boiler-plate code, and will confuse
+# the parser if not removed.
+
+SKIP_FUNCTION_MACROS = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles.
+# Optionally an initial location of the external documentation
+# can be added for each tagfile. The format of a tag file without
+# this location is as follows:
+#
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+#
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where "loc1" and "loc2" can be relative or absolute paths or
+# URLs. If a location is present for each tag, the installdox tool
+# does not have to be run to correct the links.
+# Note that each tag file must have a unique name
+# (where the name does NOT include the path)
+# If a tag file is not located in the directory in which doxygen
+# is run, you must also specify the path to the tagfile here.
+
+TAGFILES =
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE =
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+# in the class index. If set to NO only the inherited external classes
+# will be listed.
+
+ALLEXTERNALS = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will
+# be listed.
+
+EXTERNAL_GROUPS = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+# or super classes. Setting the tag to NO turns the diagrams off. Note that
+# this option is superseded by the HAVE_DOT option below. This is only a
+# fallback. It is recommended to install and use dot, since it yields more
+# powerful graphs.
+
+CLASS_DIAGRAMS = YES
+
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where
+# the mscgen tool resides. If left empty the tool is assumed to be found in the
+# default search path.
+
+MSCGEN_PATH =
+
+# If set to YES, the inheritance and collaboration graphs will hide
+# inheritance and usage relations if the target is undocumented
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz, a graph visualization
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT = NO
+
+# By default doxygen will write a font called FreeSans.ttf to the output
+# directory and reference it in all dot files that doxygen generates. This
+# font does not include all possible unicode characters however, so when you need
+# these (or just want a differently looking font) you can specify the font name
+# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
+# which can be done by putting it in a standard location or by setting the
+# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
+# containing the font.
+
+DOT_FONTNAME = FreeSans
+
+# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
+# The default size is 10pt.
+
+DOT_FONTSIZE = 10
+
+# By default doxygen will tell dot to use the output directory to look for the
+# FreeSans.ttf font (which doxygen will put there itself). If you specify a
+# different font using DOT_FONTNAME you can set the path where dot
+# can find it using this tag.
+
+DOT_FONTPATH =
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect inheritance relations. Setting this tag to YES will force the
+# the CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect implementation dependencies (inheritance, containment, and
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH = YES
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+
+UML_LOOK = NO
+
+# If set to YES, the inheritance and collaboration graphs will show the
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS = NO
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+# tags are set to YES then doxygen will generate a graph for each documented
+# file showing the direct and indirect include dependencies of the file with
+# other documented files.
+
+INCLUDE_GRAPH = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+# documented header file showing the documented files that directly or
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH = YES
+
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then
+# doxygen will generate a call dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable call graphs
+# for selected functions only using the \callgraph command.
+
+CALL_GRAPH = NO
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
+# doxygen will generate a caller dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable caller
+# graphs for selected functions only using the \callergraph command.
+
+CALLER_GRAPH = NO
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+# will graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY = YES
+
+# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
+# then doxygen will show the dependencies a directory has on other directories
+# in a graphical way. The dependency relations are determined by the #include
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. Possible values are png, jpg, or gif
+# If left blank png will be used.
+
+DOT_IMAGE_FORMAT = png
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH =
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the
+# \dotfile command).
+
+DOTFILE_DIRS =
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+# nodes that will be shown in the graph. If the number of nodes in a graph
+# becomes larger than this value, doxygen will truncate the graph, which is
+# visualized by representing a node as a red box. Note that doxygen if the
+# number of direct children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
+# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+
+DOT_GRAPH_MAX_NODES = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
+# graphs generated by dot. A depth value of 3 means that only nodes reachable
+# from the root by following a path via at most 3 edges will be shown. Nodes
+# that lay further from the root node will be omitted. Note that setting this
+# option to 1 or 2 may greatly reduce the computation time needed for large
+# code bases. Also note that the size of a graph can be further restricted by
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+
+MAX_DOT_GRAPH_DEPTH = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, because dot on Windows does not
+# seem to support this out of the box. Warning: Depending on the platform used,
+# enabling this option may lead to badly anti-aliased labels on the edges of
+# a graph (i.e. they become hard to read).
+
+DOT_TRANSPARENT = YES
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10)
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS = NO
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+# generate a legend page explaining the meaning of the various boxes and
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+# remove the intermediate dot files that are used to generate
+# the various graphs.
+
+DOT_CLEANUP = YES
# *
# * @var string TITLE
# */
-TITLE="GForge PHP Documentation"
+TITLE="FusionForge PHP Documentation"
#/**
# * name to use for the default package. If not specified, uses 'default'
# *
# * @var string PACKAGES
# */
-PACKAGES="GForge"
+PACKAGES="FusionForge"
#/**
# * name of a directory(s) to parse directory1,directory2
# *
# * @var string PATH_PHPDOC
# */
-PATH_PHPDOC=/tmp/phpdocumentor-1.3.0rc3/phpdoc
+PATH_PHPDOC=/tmp/PhpDocumentor-1.4.3/phpdoc
#/**
# * where documentation will be put
+++ /dev/null
-diff -ruN /tmp/phpdocumentor-1.3.0rc3/phpDocumentor.ini /home/bayle/tmp/phpdocumentor-1.3.0rc3/phpDocumentor.ini
---- /tmp/phpdocumentor-1.3.0rc3/phpDocumentor.ini 2004-01-11 04:25:39.000000000 +0100
-+++ /home/bayle/tmp/phpdocumentor-1.3.0rc3/phpDocumentor.ini 2005-01-04 22:24:30.000000000 +0100
-@@ -26,6 +26,7 @@
- php5
- phtml
- inc
-+class
-
- ;; deprecated in 1.2
- ;; this list is informational only - the following tags will be parsed as
--- /dev/null
+--- phpDocumentor.ini.orig 2010-02-25 11:48:58.918048044 +0100
++++ phpDocumentor.ini 2010-02-25 11:49:19.668076615 +0100
+@@ -22,7 +22,7 @@
+
+ ;; set max memory usage size to be very high, to avoid it crashing it the middle of its run
+ ;; due to using a boatload of memory
+-;;memory_limit = 512M
++memory_limit = 1536M
+
+ [_phpDocumentor_phpfile_exts]
+ php
+@@ -30,6 +30,7 @@
+ php4
+ phtml
+ inc
++class
+
+ ;; deprecated in 1.2
+ ;; this list is informational only - the following tags will be parsed as
--- /dev/null
+[core]
+forge_name = FusionForge
+user_registration_restricted = false
allow from all
</Directory>
+ RedirectMatch 301 ^({sys_urlprefix}plugins/mediawiki/wiki/[-a-zA-Z0-9_]*)/*$ $1/index.php
AliasMatch ^{sys_urlprefix}plugins/mediawiki/wiki/[-a-zA-Z0-9_]*/index.php {usr_share_gforge}/www/plugins/mediawiki/index.php
AliasMatch ^{sys_urlprefix}plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/images/(.*) {var_lib_gforge}/plugins/mediawiki/wikidata/$1/images/$2
AliasMatch ^{sys_urlprefix}plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/skins/(.*) /usr/share/mediawiki/skins/$2
allow from all
</Directory>
- AliasMatch ^{sys_urlprefix}plugins/mediawiki/wiki/[-a-zA-Z0-9_]*/index.php /usr/share/gforge/www/plugins/mediawiki/index.php
- AliasMatch ^{sys_urlprefix}plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/images/(.*) /var/lib/gforge/plugins/mediawiki/wikidata/$1/images/$2
+ RedirectMatch 301 ^({sys_urlprefix}plugins/mediawiki/wiki/[-a-zA-Z0-9_]*)/*$ $1/index.php
+ AliasMatch ^{sys_urlprefix}plugins/mediawiki/wiki/[-a-zA-Z0-9_]*/index.php {usr_share_gforge}/www/plugins/mediawiki/index.php
+ AliasMatch ^{sys_urlprefix}plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/images/(.*) {var_lib_gforge}/plugins/mediawiki/wikidata/$1/images/$2
AliasMatch ^{sys_urlprefix}plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/skins/(.*) /usr/share/mediawiki/skins/$2
Alias {sys_urlprefix}anonscm/ {var_lib_gforge}/chroot/scmrepos/
-FFCRON="/usr/share/gforge/cronjobs"
+FFDIR=/usr/share/gforge
+FFCRON=$FFDIR/cronjobs
FFUSER=gforge
# You may need to change the pathname to php CLI (command line interface)
# Create SVN tarballs
5 3 * * * root $PHP $GFORGE/plugins/scmsvn/cronjobs/tarballs.php
-
-# Docman parse word engine
-56 * * * * $FFUSER $PHP $FFCRON/update_docdata_dataword.php
#
# Create new wikis four times an hour
-*/15 * * * * root [ -x /usr/share/gforge/plugins/mediawiki/cronjobs/create-wikis.sh ] && /usr/share/gforge/plugins/mediawiki/cronjobs/create-wikis.sh
+*/15 * * * * root [ -x $FFDIR/plugins/mediawiki/cronjobs/create-wikis.sh ] && $FFDIR/plugins/mediawiki/cronjobs/create-wikis.sh
usr/share/gforge/plugins/mediawiki/bin
usr/share/gforge/plugins/mediawiki/common
usr/share/gforge/plugins/mediawiki/cronjobs
-usr/share/gforge/www/plugins/mediawiki
usr/share/gforge/etc/httpd.d
usr/share/mediawiki/skins
usr/share/mediawiki/skins/fusionforge
+etc/config.ini etc/fusionforge/
etc/httpd.d/[0-1,6-9][0-9]* usr/share/gforge/etc/httpd.d/
etc/httpd.d/httpd* usr/share/gforge/etc/httpd.d/
etc/local.d/[0-9][0-9]* usr/share/gforge/etc/local.d/
/usr/share/mediawiki/skins/@PACKAGE@/loader.php /etc/mediawiki-extensions/extensions-available/GforgeAuth.php
-/usr/share/mediawiki/StartProfiler.php /usr/share/gforge/www/plugins/mediawiki/StartProfiler.php
-/usr/share/mediawiki/api.php /usr/share/gforge/www/plugins/mediawiki/api.php
-/usr/share/mediawiki/extensions /usr/share/gforge/www/plugins/mediawiki/extensions
-/usr/share/mediawiki/img_auth.php /usr/share/gforge/www/plugins/mediawiki/img_auth.php
-/usr/share/mediawiki/includes /usr/share/gforge/www/plugins/mediawiki/includes
-/usr/share/mediawiki/index.php /usr/share/gforge/www/plugins/mediawiki/index.php
-/usr/share/mediawiki/languages /usr/share/gforge/www/plugins/mediawiki/languages
-/usr/share/mediawiki/maintenance /usr/share/gforge/www/plugins/mediawiki/maintenance
-/usr/share/mediawiki/opensearch_desc.php /usr/share/gforge/www/plugins/mediawiki/opensearch_desc.php
-/usr/share/mediawiki/profileinfo.php /usr/share/gforge/www/plugins/mediawiki/profileinfo.php
-/usr/share/mediawiki/redirect.php /usr/share/gforge/www/plugins/mediawiki/redirect.php
-/usr/share/mediawiki/thumb.php /usr/share/gforge/www/plugins/mediawiki/thumb.php
-/usr/share/mediawiki/trackback.php /usr/share/gforge/www/plugins/mediawiki/trackback.php
+/usr/share/mediawiki/StartProfiler.php /usr/share/gforge/plugins/mediawiki/www/StartProfiler.php
+/usr/share/mediawiki/api.php /usr/share/gforge/plugins/mediawiki/www/api.php
+/usr/share/mediawiki/extensions /usr/share/gforge/plugins/mediawiki/www/extensions
+/usr/share/mediawiki/img_auth.php /usr/share/gforge/plugins/mediawiki/www/img_auth.php
+/usr/share/mediawiki/includes /usr/share/gforge/plugins/mediawiki/www/includes
+/usr/share/mediawiki/index.php /usr/share/gforge/plugins/mediawiki/www/index.php
+/usr/share/mediawiki/languages /usr/share/gforge/plugins/mediawiki/www/languages
+/usr/share/mediawiki/maintenance /usr/share/gforge/plugins/mediawiki/www/maintenance
+/usr/share/mediawiki/opensearch_desc.php /usr/share/gforge/plugins/mediawiki/www/opensearch_desc.php
+/usr/share/mediawiki/profileinfo.php /usr/share/gforge/plugins/mediawiki/www/profileinfo.php
+/usr/share/mediawiki/redirect.php /usr/share/gforge/plugins/mediawiki/www/redirect.php
+/usr/share/mediawiki/thumb.php /usr/share/gforge/plugins/mediawiki/www/thumb.php
+/usr/share/mediawiki/trackback.php /usr/share/gforge/plugins/mediawiki/www/trackback.php
/usr/share/mediawiki/skins/monobook/FF2Fixes.css /usr/share/mediawiki/skins/fusionforge/FF2Fixes.css
/usr/share/mediawiki/skins/monobook/IE50Fixes.css /usr/share/mediawiki/skins/fusionforge/IE50Fixes.css
*
* Copyright 2005, Raphaël Hertzog
* Copyright 2006-2009, Roland Mas
- * Copyright 2009, Alain Peyrat
+ * Copyright 2009-2010, Alain Peyrat
*/
require_once ('../../../www/env.inc.php');
$group_id = getIntFromRequest ('group_id') ;
$index = getIntFromRequest ('index') ;
+$tab_name = htmlspecialchars(trim(getStringFromRequest ('tab_name')));
+$tab_url = htmlspecialchars(trim(getStringFromRequest ('tab_url', 'http://')));
+
session_require(array('group'=>$group_id,'admin_flags'=>'A'));
// get current information
// Do work before displaying so that the result is immediately visible
if (getStringFromRequest ('addtab') != '') {
- $tab_name = htmlspecialchars(trim(getStringFromRequest ('tab_name')));
- $tab_url = htmlspecialchars(trim(getStringFromRequest ('tab_url')));
- $res = db_query_params ('INSERT INTO plugin_extratabs_main (group_id, index, tab_name, tab_url) VALUES ($1,$2,$3,$4)',
- array ($group_id,
- $newid,
- $tab_name,
- $tab_url)) ;
- if (!$res || db_affected_rows($res) < 1) {
- $feedback = sprintf (_('Cannot insert new tab entry: %s'),
- db_error());
+ if ($tab_name == '' || $tab_url == '' || $tab_url == 'http://') {
+ $error_msg = _('ERROR: Missing Name or URL for the new tab');
+ } else if (!util_check_url($tab_url)) {
+ $error_msg = _('ERROR: Malformed URL (only http, https and ftp allowed)');
} else {
- $feedback = _('Tab added');
+ $res = db_query_params('SELECT * FROM plugin_extratabs_main WHERE group_id=$1 AND tab_name=$2',
+ array($group_id, $tab_name));
+ if ($res && db_numrows($res) > 0) {
+ $error_msg = _('ERROR: Name for tab is already used.');
+ } else {
+ $res = db_query_params ('INSERT INTO plugin_extratabs_main (group_id, index, tab_name, tab_url) VALUES ($1,$2,$3,$4)',
+ array ($group_id,
+ $newid,
+ $tab_name,
+ $tab_url)) ;
+ if (!$res || db_affected_rows($res) < 1) {
+ $feedback = sprintf (_('Cannot insert new tab entry: %s'),
+ db_error());
+ } else {
+ $tab_name = '';
+ $tab_url = 'http://';
+ $feedback = _('Tab successfully added');
+ }
+ }
}
} elseif (getStringFromRequest ('delete') != '') {
$res = db_query_params ('DELETE FROM plugin_extratabs_main WHERE group_id=$1 AND index=$2',
array ($group_id,
$index)) ;
if (!$res || db_affected_rows($res) < 1) {
- $feedback = sprintf (_('Cannot delete tab entry: %s'),
- db_error());
+ $error_msg = sprintf (_('Cannot delete tab entry: %s'), db_error());
} else {
$res = db_query_params ('UPDATE plugin_extratabs_main SET index=index-1 WHERE group_id=$1 AND index > $2',
array ($group_id,
$index)) ;
+ if ($res) {
+ $feedback = _('Tab successfully deleted');
+ } else {
+ $error_msg = sprintf (_('Cannot delete tab entry: %s'), db_error());
+ }
}
} elseif (getStringFromRequest ('up') != '') {
if ($index > 1) {
array ($previous,
$group_id)) ;
$selected = $previous;
+ $feedback = _('Tab successfully moved');
} else {
- $selected = $index;
+ $warning_msg = _('Tab not moved, already at first position');
+ $selected = $index;
}
} elseif (getStringFromRequest ('down') != '') {
if ($index < $newid - 1) {
$res = db_query_params('UPDATE plugin_extratabs_main SET index=$1 WHERE group_id=$2 AND index=0',
array ($next,
$group_id)) ;
+ $feedback = _('Tab successfully moved');
$selected = $next;
} else {
- $selected = $index;
+ $warning_msg = _('Tab not moved, already at last position');
+ $selected = $index;
}
}
if (!$res) {
?>
-<p> </p>
+<h1><?php echo _('Manage extra tabs') ;?></h1>
+
+<h2><?php echo _('Add new tab'); ?></h2>
-<h3><?php echo _('Add new tabs'); ?></h3>
<p><?php echo _('You can add your own tabs in the menu bar with the form below.') ?></p>
-<p />
<form name="new_tab" action="<?php echo util_make_url ('/plugins/extratabs/'); ?>" method="post">
+<fieldset>
+<legend>Add new tab</legend>
+<p>
<input type="hidden" name="group_id" value="<?php echo $group->getID() ?>" />
<input type="hidden" name="addtab" value="1" />
<strong><?php echo _('Name of the tab:') ?></strong>
<?php echo utils_requiredField(); ?><br/>
-<input type="text" size="15" maxlength="255" name="tab_name" /><br/>
+<input type="text" size="20" maxlength="255" name="tab_name" value="<?php echo $tab_name ?>" /><br />
<strong><?php echo _('URL of the tab:') ?></strong>
<?php echo utils_requiredField(); ?><br/>
-<input type="text" size="15" name="tab_url" value="http://" /><br/>
+<input type="text" size="60" name="tab_url" value="<?php echo $tab_url ?>" />
+</p>
+<p>
<input type="submit" value="<?php echo _('Add tab') ?>" />
+</p>
+</fieldset>
</form>
-<p />
<?php
$res = db_query_params ('SELECT * FROM plugin_extratabs_main WHERE group_id=$1 ORDER BY index ASC', array ($group_id)) ;
?>
-
- <h3><?php echo _('Manage extra tabs') ;?></h3>
+<h2><?php echo _('Move or delete extra tabs') ;?></h2>
<p>
- <?php echo _('You can move and delete the tabs that you already added. Please note that those extra tabs can only appear on the right of the standard tabs. And you can only move them inside the set of extra tabs.') ;
+ <?php echo _('You can move and delete the tabs that you already added. Please note that those extra tabs can only appear after the standard tabs. And you can only move them inside the set of extra tabs.') ;
+
+?>
+</p>
-?></p>
-<p />
<form name="change_tab" action="<?php echo util_make_url ('/plugins/extratabs/'); ?>" method="post">
+<fieldset>
+<legend>Move or delete tab</legend>
+<p>
<input type="hidden" name="group_id" value="<?php echo $group->getID() ?>" />
-<?php
+<?php
echo _('Tab to modify:')
?>
<select name="index">
<?php
while ($row = db_fetch_array($res)) {
if ($row['index'] == $selected) {
- echo "<option selected value='" . $row['index'] . "'>" . $row['tab_name'] . "</option>";
+ echo "<option selected=\"selected\" value='" . $row['index'] . "'>" . $row['tab_name'] . "</option>";
} else {
echo "<option value='" . $row['index'] . "'>" . $row['tab_name'] . "</option>";
}
} ?>
-</select><br/><br/>
+</select>
+</p>
+<p>
<?php if ($nbtabs > 1) { ?>
-<input type="submit" name="up" value="<?php echo _('Move tab left') ?>" /><br/>
-<input type="submit" name="down" value="<?php echo _('Move tab right') ?>" /><br/>
+<input type="submit" name="up" value="<?php echo _('Move tab before') ?>" />
+<input type="submit" name="down" value="<?php echo _('Move tab after') ?>" />
<?php } ?>
<input type="submit" name="delete" value="<?php echo _('Delete tab') ?>" />
+</p>
+</fieldset>
</form>
-<p />
<?php
}
#! /bin/sh
+sys_etc_path="/etc/gforge"
+sys_var_apth="/var/lib/gforge"
+
+# set the data dir for the plugin
+wdprefix=$sys_var_path/plugins/mediawiki/wikidata
+
+# get DB credentials
tmp3=$(mktemp)
-perl -e'require "/etc/gforge/local.pl"; print "*:*:$sys_dbname:$sys_dbuser:$sys_dbpasswd\n"' > $tmp3
+perl -e'require "'$sys_etc_path'/local.pl"; print "*:*:$sys_dbname:$sys_dbuser:$sys_dbpasswd\n"' > $tmp3
-projects=$(echo "SELECT g.unix_group_name from groups g, group_plugin gp, plugins p where g.group_id = gp.group_id and gp.plugin_id = p.plugin_id and p.plugin_name = 'mediawiki' ;" \
+# get all projects that use the mediawiki plugin
+all_projects=$(echo "SELECT g.unix_group_name from groups g, group_plugin gp, plugins p where g.group_id = gp.group_id and gp.plugin_id = p.plugin_id and p.plugin_name = 'mediawiki' ;" \
| PGPASSFILE=$tmp3 /usr/bin/psql -U gforge gforge \
| tail -n +3 \
| grep '^ ')
-wdprefix=/var/lib/gforge/plugins/mediawiki/wikidata
-
-for project in $projects ; do
+# create image directory and LocalSettings.php for all projects that don't have it yet
+for project in $all_projects ; do
if [ ! -d $wdprefix/$project/images ] ; then
mkdir -p $wdprefix/$project/images
fi
\$wgGroupPermissions['*']['createpage'] = false;
\$wgGroupPermissions['*']['createtalk'] = false;
+// Uncomment these if you must import XML dumps
+//\$wgGroupPermissions['Administrators']['import'] = true;
+//\$wgGroupPermissions['Administrators']['importupload'] = true;
+// Uncomment these if you must edit the MediaWiki:Sidebar
+//\$wgGroupPermissions['Administrators']['editinterface'] = true;
+
// Override default wiki logo
//\$wgLogo = "/themes/\$sys_theme/images/wgLogo.png";
EOF
- filteredprojects="$filteredprojects $project"
+ new_projects="$new_projects $project"
fi
done
-projects=$filteredprojects
-
-for project in $projects ; do
+# create mediawiki database for all projects that started to use mediawiki
+for project in $new_projects ; do
schema=$(echo plugin_mediawiki_$project | sed s/-/_/g)
tmp1=$(mktemp)
done
-projects=$(echo "SELECT g.unix_group_name from groups g, group_plugin gp, plugins p where g.group_id = gp.group_id and gp.plugin_id = p.plugin_id and p.plugin_name = 'mediawiki' ;" \
- | PGPASSFILE=$tmp3 /usr/bin/psql -U gforge gforge \
- | tail -n +3 \
- | grep '^ ')
-
tmp4=$(mktemp)
# Disable read anonymous if project is private
-for project in $projects ; do
+for project in $all_projects ; do
ispublic=$(echo "SELECT is_public from groups where unix_group_name = '${project}' ;" \
| PGPASSFILE=$tmp3 /usr/bin/psql -U gforge gforge \
| tail -n +3 \
| grep '^ ')
# Purge anonymous read
- cat $wdprefix/$project/LocalSettings.php | grep -vi "\$wgGroupPermissions\['Members'\]\['read'\]" > $tmp4
- cat $tmp4 > $wdprefix/$project/LocalSettings.php
- cat $wdprefix/$project/LocalSettings.php | grep -vi "\$wgGroupPermissions\['\*'\]\['read'\]" > $tmp4
- cat $tmp4 > $wdprefix/$project/LocalSettings.php
-
+ (fgrep -vie '$wgGroupPermissions['\''Members'\'']['\''read'\'']' \
+ -e '$wgGroupPermissions['\''*'\'']['\''read'\'']' \
+ $wdprefix/$project/LocalSettings.php
if [ $ispublic = '0' ] ; then
- echo "\$wgGroupPermissions['Members']['read'] = true;" >> $wdprefix/$project/LocalSettings.php
- echo "\$wgGroupPermissions['*']['read'] = false;" >> $wdprefix/$project/LocalSettings.php
- fi
+ echo "\$wgGroupPermissions['Members']['read'] = true;"
+ echo "\$wgGroupPermissions['*']['read'] = false;"
+ fi) >$wdprefix/$project/LocalSettings.php
done
rm -f $tmp4
# 03mediawiki begin
-<Directory /var/lib/gforge/plugins/mediawiki>
+<Directory {var_lib_gforge}/plugins/mediawiki>
Options +FollowSymLinks -Indexes
AllowOverride All
order allow,deny
allow from all
# Allow mediawiki to connect to gforge
- Include /etc/gforge/httpd.secrets
- php_admin_value include_path "/etc/gforge/custom:/etc/gforge:/usr/share/gforge:/usr/share/gforge/www/include:."
+ Include {gforge_etc}/httpd.secrets
+ php_admin_value include_path "{sys_custom_path}:/etc/gforge:{usr_share_gforge}:{usr_share_gforge}/www/include:."
</Directory>
# some directories must be protected
-<DirectoryMatch /var/lib/gforge/plugins/mediawiki/wikidata/[-a-zA-Z0-9_]*/upload>
+<DirectoryMatch {var_lib_gforge}/plugins/mediawiki/wikidata/[-a-zA-Z0-9_]*/images>
Options -FollowSymLinks
AllowOverride None
</DirectoryMatch>
<?php
+$sys_etc_path = "/etc/gforge";
+$sys_opt_path = "/usr/share/gforge";
+$sys_var_path = "/var/lib/gforge";
+
+define('MW_INSTALL_PATH', "$sys_opt_path/www/plugins/mediawiki/wikisrc");
+
$fusionforgeproject = 'siteadmin' ;
$exppath = explode ('/', $_SERVER['PHP_SELF']) ;
+
+# determine $fusionforgeproject
while (count ($exppath) >= 4) {
if (($exppath[0] == 'plugins') && ($exppath[1] == 'mediawiki') && ($exppath[2] == 'wiki') && ($exppath[4] == 'index.php')) {
$fusionforgeproject = $exppath[3] ;
}
}
-define('MW_INSTALL_PATH','/usr/share/gforge/www/plugins/mediawiki');
-$wikidata = "/var/lib/gforge/plugins/mediawiki/wikidata/$fusionforgeproject" ;
+$wikidata = $sys_var_path . "plugins/mediawiki/wikidata/$fusionforgeproject" ;
if( defined( 'MW_INSTALL_PATH' ) ) {
$IP = MW_INSTALL_PATH;
require_once( "$IP/includes/DefaultSettings.php" );
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
- require_once ('/etc/gforge/local.inc') ;
- require_once ('/usr/share/gforge/www/env.inc.php') ;
+ require_once ("$sys_etc_path/local.inc") ;
+ require_once ("$sys_opt_path/www/env.inc.php") ;
} else {
- require_once ('/etc/gforge/database.inc') ;
+ require_once ("$sys_etc_path/database.inc") ;
}
$sys_dbport = 5432;
die( "This script must be run from the command line\n" );
}
}
-$wgSitename = "$sys_name Wiki";
+$wgSitename = forge_get_config ('forge_name')." Wiki";
$wgScriptPath = "/plugins/mediawiki/wiki/$fusionforgeproject" ;
$wgEmergencyContact = "webmaster@fusionforge.org";
$wgLanguageCode = "en";
$wgDefaultSkin = 'fusionforge';
-$wgStyleDirectory = '/usr/share/mediawiki/skins' ;
-require ('/etc/gforge/local.inc') ;
-require ('/usr/share/gforge/www/env.inc.php') ;
$GLOBALS['sys_dbhost'] = $sys_dbhost ;
$GLOBALS['sys_dbport'] = $sys_dbport ;
$GLOBALS['sys_dbname'] = $sys_dbname ;
$GLOBALS['gfwww'] = $gfwww ;
$GLOBALS['gfplugins'] = $gfplugins ;
$GLOBALS['sys_lang'] = $sys_lang ;
-require ($gfwww.'include/pre.php') ;
+require ("$sys_opt_path/www/include/pre.php") ;
$GLOBALS['sys_urlroot'] = $sys_urlroot;
$GLOBALS['sys_session_key'] = $sys_session_key;
$GLOBALS['sys_session_expire'] = $sys_session_expire;
$unmanaged_lines_group = array();
// user description is something like "MyGForge user"
-$user_description = preg_replace('/[^[:alnum:] _-]/', '', $sys_name);
+$user_description = preg_replace('/[^[:alnum:] _-]/', '', forge_get_config ('forge_name'));
$user_description .= " user";
/*
--- /dev/null
+# Doxyfile 1.6.3
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+# TAG = value [value, ...]
+# For lists items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+DOXYFILE_ENCODING = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+# by quotes) that should identify the project.
+
+PROJECT_NAME =
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
+# if some version control system is used.
+
+PROJECT_NUMBER =
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY =
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of
+# source files, where putting all generated files in the same directory would
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
+# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
+# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
+# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak,
+# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+
+OUTPUT_LANGUAGE = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is
+# used as the annotated text. Otherwise, the brief description is used as-is.
+# If left blank, the following values are used ("$name" is automatically
+# replaced with the name of the entity): "The $name class" "The $name widget"
+# "The $name file" "is" "provides" "specifies" "contains"
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF =
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
+# description.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES = YES
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
+# path to strip.
+
+STRIP_FROM_PATH =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful is your file systems
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like regular Qt-style comments
+# (thus requiring an explicit @brief command for a brief description.)
+
+JAVADOC_AUTOBRIEF = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
+# interpret the first line (until the first dot) of a Qt-style
+# comment as the brief description. If set to NO, the comments
+# will behave just like regular Qt-style comments (thus requiring
+# an explicit \brief command for a brief description.)
+
+QT_AUTOBRIEF = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
+# re-implements.
+
+INHERIT_DOCS = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+# a new page for each member. If set to NO, the documentation of a member will
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE = 4
+
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+# sources only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+# sources only. Doxygen will then generate output that is more tailored for
+# Java. For instance, namespaces will be presented as packages, qualified
+# scopes will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources only. Doxygen will then generate output that is more tailored for
+# Fortran.
+
+OPTIMIZE_FOR_FORTRAN = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for
+# VHDL.
+
+OPTIMIZE_OUTPUT_VHDL = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it parses.
+# With this tag you can assign which parser to use for a given extension.
+# Doxygen has a built-in mapping, but you can override or extend it using this tag.
+# The format is ext=language, where ext is a file extension, and language is one of
+# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP,
+# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat
+# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen.
+
+EXTENSION_MAPPING =
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should
+# set this tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+# func(std::string) {}). This also make the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+
+CPP_CLI_SUPPORT = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
+# Doxygen will parse them like normal C++ but will assume all classes use public
+# instead of private inheritance when no explicit protection keyword is present.
+
+SIP_SUPPORT = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate getter
+# and setter methods for a property. Setting this option to YES (the default)
+# will make doxygen to replace the get and set methods by a property in the
+# documentation. This will only work if the methods are indeed getting or
+# setting a simple type. If this is not the case, or you want to show the
+# methods anyway, you should set this option to NO.
+
+IDL_PROPERTY_SUPPORT = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
+# the \nosubgrouping command.
+
+SUBGROUPING = YES
+
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+# is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically
+# be useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+
+TYPEDEF_HIDES_STRUCT = NO
+
+# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
+# determine which symbols to keep in memory and which to flush to disk.
+# When the cache is full, less often used symbols will be written to disk.
+# For small to medium size projects (<1000 input files) the default value is
+# probably good enough. For larger projects a too small cache size can cause
+# doxygen to be busy swapping symbols to and from disk most of the time
+# causing a significant performance penality.
+# If the system has enough physical memory increasing the cache will improve the
+# performance by keeping more symbols in memory. Note that the value works on
+# a logarithmic scale so increasing the size by one will rougly double the
+# memory usage. The cache size is given by this formula:
+# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
+# corresponding to a cache size of 2^16 = 65536 symbols
+
+SYMBOL_CACHE_SIZE = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL = NO
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# will be included in the documentation.
+
+EXTRACT_PRIVATE = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# will be included in the documentation.
+
+EXTRACT_STATIC = NO
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES = YES
+
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base
+# name of the file that contains the anonymous namespace. By default
+# anonymous namespace are hidden.
+
+EXTRACT_ANON_NSPACES = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS = NO
+
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES = YES
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
+# of that file.
+
+SHOW_INCLUDE_FILES = YES
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
+# will list include files with double quotes in the documentation
+# rather than with sharp brackets.
+
+FORCE_LOCAL_INCLUDES = NO
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# is inserted in the documentation for inline members.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
+# declaration order.
+
+SORT_MEMBER_DOCS = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
+# declaration order.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
+# hierarchy of group names into alphabetical order. If set to NO (the default)
+# the group names will appear in their defined order.
+
+SORT_GROUP_NAMES = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
+# commands in the documentation.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
+# commands in the documentation.
+
+GENERATE_TESTLIST = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
+# commands in the documentation.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or define consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and defines in the
+# documentation can be controlled using \showinitializer or \hideinitializer
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES = YES
+
+# If the sources in your project are distributed over multiple directories
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+# in the documentation. The default is NO.
+
+SHOW_DIRECTORIES = NO
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
+# This will remove the Files entry from the Quick Index and from the
+# Folder Tree View (if specified). The default is YES.
+
+SHOW_FILES = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
+# Namespaces page.
+# This will remove the Namespaces entry from the Quick Index
+# and from the Folder Tree View (if specified). The default is YES.
+
+SHOW_NAMESPACES = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command <command> <input-file>, where <command> is the value of
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
+# provided by doxygen. Whatever the program writes to standard output
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER =
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
+# doxygen. The layout file controls the global structure of the generated output files
+# in an output format independent way. The create the layout file that represents
+# doxygen's defaults, run doxygen with the -l option. You can optionally specify a
+# file name after the option, if omitted DoxygenLayout.xml will be used as the name
+# of the layout file.
+
+LAYOUT_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET = YES
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
+# NO is used.
+
+WARNINGS = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED = YES
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR = YES
+
+# This WARN_NO_PARAMDOC option can be abled to get warnings for
+# functions that are documented, but have no documentation for their parameters
+# or return value. If set to NO (the default) doxygen will only warn about
+# wrong or incomplete parameter documentation, but not about the absence of
+# documentation.
+
+WARN_NO_PARAMDOC = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text. Optionally the format may contain
+# $version, which will be replaced by the version of the file (if it could
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
+# to stderr.
+
+WARN_LOGFILE = ../apidocs/phpwiki/output.log
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
+# with spaces.
+
+INPUT = gforge/plugins/wiki/www/lib
+
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+# also the default input encoding. Doxygen uses libiconv (or the iconv built
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
+# the list of possible encodings.
+
+INPUT_ENCODING = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
+# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
+
+FILE_PATTERNS =
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
+# If left blank NO is used.
+
+RECURSIVE = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+
+EXCLUDE =
+
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+# directories that are symbolic links (a Unix filesystem feature) are excluded
+# from the input.
+
+EXCLUDE_SYMLINKS = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories. Note that the wildcards are matched
+# against the file with absolute path, so to exclude all test directories
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
+# the \include command).
+
+EXAMPLE_PATH =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank all files are included.
+
+EXAMPLE_PATTERNS =
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
+# the \image command).
+
+IMAGE_PATH =
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command <filter> <input-file>, where <filter>
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output.
+# If FILTER_PATTERNS is specified, this tag will be
+# ignored.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis.
+# Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match.
+# The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+# is applied to all files.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES
+# then for each documented function all documented
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES
+# then for each documented function all documented entities
+# called/used by that function will be listed.
+
+REFERENCES_RELATION = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
+# link to the source code.
+# Otherwise they will link to the documentation.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code
+# will point to the HTML generated by the htags(1) tool instead of doxygen
+# built-in source browser. The htags tool is part of GNU's global source
+# tagging system (see http://www.gnu.org/software/global/global.html). You
+# will need version 4.8.6 or higher.
+
+USE_HTAGS = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+# will generate a verbatim copy of the header file for each class for
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS = YES
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+# of all compounds will be generated. Enable this if the project
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX = NO
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX = 5
+
+# In case all classes in a project start with a common prefix, all
+# classes will be put under the same header in the alphabetical index.
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX =
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+# generate HTML output.
+
+GENERATE_HTML = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT = ../apidocs/phpwiki
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard header.
+
+HTML_HEADER =
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard footer.
+
+HTML_FOOTER =
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+# style sheet that is used by each HTML page. It can be used to
+# fine-tune the look of the HTML output. If the tag is left blank doxygen
+# will generate a default style sheet. Note that doxygen will try to copy
+# the style sheet file to the HTML output directory, so don't put your own
+# stylesheet in the HTML output directory as well, or it will be erased!
+
+HTML_STYLESHEET =
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
+# page will contain the date and time when the page was generated. Setting
+# this to NO can help when comparing the output of multiple runs.
+
+HTML_TIMESTAMP = YES
+
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+# files or namespaces will be aligned in HTML using tables. If set to
+# NO a bullet list will be used.
+
+HTML_ALIGN_MEMBERS = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded. For this to work a browser that supports
+# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
+# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
+
+HTML_DYNAMIC_SECTIONS = NO
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files
+# will be generated that can be used as input for Apple's Xcode 3
+# integrated development environment, introduced with OSX 10.5 (Leopard).
+# To create a documentation set, doxygen will generate a Makefile in the
+# HTML output directory. Running make will produce the docset in that
+# directory and running "make install" will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
+# it at startup.
+# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
+
+GENERATE_DOCSET = NO
+
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
+# feed. A documentation feed provides an umbrella under which multiple
+# documentation sets from a single provider (such as a company or product suite)
+# can be grouped.
+
+DOCSET_FEEDNAME = "Doxygen generated docs"
+
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
+# should uniquely identify the documentation set bundle. This should be a
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
+# will append .docset to the name.
+
+DOCSET_BUNDLE_ID = org.doxygen.Project
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+# will be generated that can be used as input for tools like the
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+# be used to specify the file name of the resulting .chm file. You
+# can add a path in front of the file if the result should not be
+# written to the html output directory.
+
+CHM_FILE =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+# be used to specify the location (absolute path including file name) of
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+# controls if a separate .chi index file is generated (YES) or that
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING
+# is used to encode HtmlHelp index (hhk), content (hhc) and project file
+# content.
+
+CHM_INDEX_ENCODING =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+# controls whether a binary table of contents is generated (YES) or a
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
+# are set, an additional index file will be generated that can be used as input for
+# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
+# HTML documentation.
+
+GENERATE_QHP = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
+# be used to specify the file name of the resulting .qch file.
+# The path specified is relative to the HTML output folder.
+
+QCH_FILE =
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#namespace
+
+QHP_NAMESPACE = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#virtual-folders
+
+QHP_VIRTUAL_FOLDER = doc
+
+# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add.
+# For more information please see
+# http://doc.trolltech.com/qthelpproject.html#custom-filters
+
+QHP_CUST_FILTER_NAME =
+
+# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see
+# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">Qt Help Project / Custom Filters</a>.
+
+QHP_CUST_FILTER_ATTRS =
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's
+# filter section matches.
+# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">Qt Help Project / Filter Attributes</a>.
+
+QHP_SECT_FILTER_ATTRS =
+
+# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
+# be used to specify the location of Qt's qhelpgenerator.
+# If non-empty doxygen will try to run qhelpgenerator on the generated
+# .qhp file.
+
+QHG_LOCATION =
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
+# will be generated, which together with the HTML files, form an Eclipse help
+# plugin. To install this plugin and make it available under the help contents
+# menu in Eclipse, the contents of the directory containing the HTML and XML
+# files needs to be copied into the plugins directory of eclipse. The name of
+# the directory within the plugins directory should be the same as
+# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before the help appears.
+
+GENERATE_ECLIPSEHELP = NO
+
+# A unique identifier for the eclipse help plugin. When installing the plugin
+# the directory name containing the HTML and XML files should also have
+# this name.
+
+ECLIPSE_DOC_ID = org.doxygen.Project
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+# top of each HTML page. The value NO (the default) enables the index and
+# the value YES disables it.
+
+DISABLE_INDEX = NO
+
+# This tag can be used to set the number of enum values (range [1..20])
+# that doxygen will group on one line in the generated HTML documentation.
+
+ENUM_VALUES_PER_LINE = 4
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+# structure should be generated to display hierarchical information.
+# If the tag value is set to YES, a side panel will be generated
+# containing a tree-like index structure (just like the one that
+# is generated for HTML Help). For this to work a browser that supports
+# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
+# Windows users are probably better off using the HTML help feature.
+
+GENERATE_TREEVIEW = NONE
+
+# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories,
+# and Class Hierarchy pages using a tree view instead of an ordered list.
+
+USE_INLINE_TREES = NO
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+# used to set the initial width (in pixels) of the frame in which the tree
+# is shown.
+
+TREEVIEW_WIDTH = 250
+
+# Use this tag to change the font size of Latex formulas included
+# as images in the HTML documentation. The default is 10. Note that
+# when you change the font size after a successful doxygen run you need
+# to manually remove any form_*.png images from the HTML output directory
+# to force them to be regenerated.
+
+FORMULA_FONTSIZE = 10
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box for the HTML output. The underlying search engine uses javascript
+# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) there is already a search function so this one should
+# typically be disabled. For large projects the javascript based search engine
+# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
+
+SEARCHENGINE = NO
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be implemented using a PHP enabled web server instead of at the web client using Javascript. Doxygen will generate the search PHP script and index
+# file to put on the web server. The advantage of the server based approach is that it scales better to large projects and allows full text search. The disadvances is that it is more difficult to setup
+# and does not have live searching capabilities.
+
+SERVER_BASED_SEARCH = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+# generate Latex output.
+
+GENERATE_LATEX = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked. If left blank `latex' will be used as the default command name.
+# Note that when enabling USE_PDFLATEX this option is only used for
+# generating bitmaps for formulas in the HTML output, but not in the
+# Makefile that is written to the output directory.
+
+LATEX_CMD_NAME = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+# generate index for LaTeX. If left blank `makeindex' will be used as the
+# default command name.
+
+MAKEINDEX_CMD_NAME = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+# LaTeX documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_LATEX = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used
+# by the printer. Possible values are: a4, a4wide, letter, legal and
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE = a4wide
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES =
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+# the generated latex document. The header should contain everything until
+# the first chapter. If it is left blank doxygen will generate a
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+# contain links (just like the HTML output) instead of page references
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS = YES
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+# plain latex in the generated Makefile. Set this option to YES to get a
+# higher quality PDF documentation.
+
+USE_PDFLATEX = YES
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+# command to the generated LaTeX files. This will instruct LaTeX to keep
+# running if errors occur, instead of asking the user for help.
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+# include the index chapters (such as File Index, Compound Index, etc.)
+# in the output.
+
+LATEX_HIDE_INDICES = NO
+
+# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER.
+
+LATEX_SOURCE_CODE = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+# The RTF output is optimized for Word 97 and may not look very pretty with
+# other RTF readers or editors.
+
+GENERATE_RTF = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+# RTF documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_RTF = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+# will contain hyperlink fields. The RTF file will
+# contain links (just like the HTML output) instead of page references.
+# This makes the output suitable for online browsing using WORD or other
+# programs which support those fields.
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's
+# config file, i.e. a series of assignments. You only have to provide
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE =
+
+# Set optional variables used in the generation of an rtf document.
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+# generate man pages
+
+GENERATE_MAN = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT = man
+
+# The MAN_EXTENSION tag determines the extension that is added to
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+# then it will generate one additional man file for each entity
+# documented in the real man page(s). These additional files
+# only source the real man page, but without them the man command
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will
+# generate an XML file that captures the structure of
+# the code including all documentation.
+
+GENERATE_XML = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_SCHEMA =
+
+# The XML_DTD tag can be used to specify an XML DTD,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_DTD =
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+# dump the program listings (including syntax highlighting
+# and cross-referencing information) to the XML output. Note that
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+# generate an AutoGen Definitions (see autogen.sf.net) file
+# that captures the structure of the code including all
+# documentation. Note that this feature is still experimental
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+# generate a Perl module file that captures the structure of
+# the code including all documentation. Note that this
+# feature is still experimental and incomplete at the
+# moment.
+
+GENERATE_PERLMOD = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+# nicely formatted so it can be parsed by a human reader.
+# This is useful
+# if you want to understand what is going on.
+# On the other hand, if this
+# tag is set to NO the size of the Perl module output will be much smaller
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY = YES
+
+# The names of the make variables in the generated doxyrules.make file
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+# This is useful so different doxyrules.make files included by the same
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+# evaluate all C-preprocessor directives found in the sources and include
+# files.
+
+ENABLE_PREPROCESSING = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+# names in the source code. If set to NO (the default) only conditional
+# compilation will be performed. Macro expansion can be done in a controlled
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION = NO
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+# then the macro expansion is limited to the macros specified with the
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF = NO
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+# in the INCLUDE_PATH (see below) will be search if a #include is found.
+
+SEARCH_INCLUDES = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by
+# the preprocessor.
+
+INCLUDE_PATH =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will
+# be used.
+
+INCLUDE_FILE_PATTERNS =
+
+# The PREDEFINED tag can be used to specify one or more macro names that
+# are defined before the preprocessor is started (similar to the -D option of
+# gcc). The argument of the tag is a list of macros of the form: name
+# or name=definition (no spaces). If the definition and the = are
+# omitted =1 is assumed. To prevent a macro definition from being
+# undefined via #undef or recursively expanded use the := operator
+# instead of the = operator.
+
+PREDEFINED =
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+# this tag can be used to specify a list of macro names that should be expanded.
+# The macro definition that is found in the sources will be used.
+# Use the PREDEFINED tag if you want to use a different macro definition.
+
+EXPAND_AS_DEFINED =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+# doxygen's preprocessor will remove all function-like macros that are alone
+# on a line, have an all uppercase name, and do not end with a semicolon. Such
+# function macros are typically used for boiler-plate code, and will confuse
+# the parser if not removed.
+
+SKIP_FUNCTION_MACROS = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles.
+# Optionally an initial location of the external documentation
+# can be added for each tagfile. The format of a tag file without
+# this location is as follows:
+#
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+#
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where "loc1" and "loc2" can be relative or absolute paths or
+# URLs. If a location is present for each tag, the installdox tool
+# does not have to be run to correct the links.
+# Note that each tag file must have a unique name
+# (where the name does NOT include the path)
+# If a tag file is not located in the directory in which doxygen
+# is run, you must also specify the path to the tagfile here.
+
+TAGFILES =
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE =
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+# in the class index. If set to NO only the inherited external classes
+# will be listed.
+
+ALLEXTERNALS = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will
+# be listed.
+
+EXTERNAL_GROUPS = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+# or super classes. Setting the tag to NO turns the diagrams off. Note that
+# this option is superseded by the HAVE_DOT option below. This is only a
+# fallback. It is recommended to install and use dot, since it yields more
+# powerful graphs.
+
+CLASS_DIAGRAMS = YES
+
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where
+# the mscgen tool resides. If left empty the tool is assumed to be found in the
+# default search path.
+
+MSCGEN_PATH =
+
+# If set to YES, the inheritance and collaboration graphs will hide
+# inheritance and usage relations if the target is undocumented
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz, a graph visualization
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT = NO
+
+# By default doxygen will write a font called FreeSans.ttf to the output
+# directory and reference it in all dot files that doxygen generates. This
+# font does not include all possible unicode characters however, so when you need
+# these (or just want a differently looking font) you can specify the font name
+# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
+# which can be done by putting it in a standard location or by setting the
+# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
+# containing the font.
+
+DOT_FONTNAME = FreeSans
+
+# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
+# The default size is 10pt.
+
+DOT_FONTSIZE = 10
+
+# By default doxygen will tell dot to use the output directory to look for the
+# FreeSans.ttf font (which doxygen will put there itself). If you specify a
+# different font using DOT_FONTNAME you can set the path where dot
+# can find it using this tag.
+
+DOT_FONTPATH =
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect inheritance relations. Setting this tag to YES will force the
+# the CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect implementation dependencies (inheritance, containment, and
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH = YES
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+
+UML_LOOK = NO
+
+# If set to YES, the inheritance and collaboration graphs will show the
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS = NO
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+# tags are set to YES then doxygen will generate a graph for each documented
+# file showing the direct and indirect include dependencies of the file with
+# other documented files.
+
+INCLUDE_GRAPH = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+# documented header file showing the documented files that directly or
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH = YES
+
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then
+# doxygen will generate a call dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable call graphs
+# for selected functions only using the \callgraph command.
+
+CALL_GRAPH = NO
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
+# doxygen will generate a caller dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable caller
+# graphs for selected functions only using the \callergraph command.
+
+CALLER_GRAPH = NO
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+# will graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY = YES
+
+# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
+# then doxygen will show the dependencies a directory has on other directories
+# in a graphical way. The dependency relations are determined by the #include
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. Possible values are png, jpg, or gif
+# If left blank png will be used.
+
+DOT_IMAGE_FORMAT = png
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH =
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the
+# \dotfile command).
+
+DOTFILE_DIRS =
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+# nodes that will be shown in the graph. If the number of nodes in a graph
+# becomes larger than this value, doxygen will truncate the graph, which is
+# visualized by representing a node as a red box. Note that doxygen if the
+# number of direct children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
+# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+
+DOT_GRAPH_MAX_NODES = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
+# graphs generated by dot. A depth value of 3 means that only nodes reachable
+# from the root by following a path via at most 3 edges will be shown. Nodes
+# that lay further from the root node will be omitted. Note that setting this
+# option to 1 or 2 may greatly reduce the computation time needed for large
+# code bases. Also note that the size of a graph can be further restricted by
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+
+MAX_DOT_GRAPH_DEPTH = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, because dot on Windows does not
+# seem to support this out of the box. Warning: Depending on the platform used,
+# enabling this option may lead to badly anti-aliased labels on the edges of
+# a graph (i.e. they become hard to read).
+
+DOT_TRANSPARENT = YES
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10)
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS = NO
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+# generate a legend page explaining the meaning of the various boxes and
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+# remove the intermediate dot files that are used to generate
+# the various graphs.
+
+DOT_CLEANUP = YES
%2$s
-- the %1$s staff'),
- $GLOBALS['sys_name'],
+ forge_get_config ('forge_name'),
util_make_url ('/account/change_email-complete.php?ch=_'.$confirm_hash));
- util_send_message($newemail,sprintf(_('%1$s Verification'), $GLOBALS['sys_name']),$message);
+ util_send_message($newemail,sprintf(_('%1$s Verification'), forge_get_config ('forge_name')),$message);
site_user_header(array('title'=>_('Email Change Confirmation')));
site_user_header(array('title'=>_('Successfully Changed Password')));
?>
- <?php printf(_('<h2>%1$s Password Change Confirmation</h2><p>Congratulations. You have changed your password.</p>'), $GLOBALS['sys_name']); ?>
+ <?php printf(_('<h2>%1$s Password Change Confirmation</h2><p>Congratulations. You have changed your password.</p>'), forge_get_config ('forge_name')); ?>
<p>
<?php printf(_('You should now <a href="%1$s">Return to User Prefs</a>.'),
require_once('../env.inc.php');
require_once $gfwww.'include/pre.php';
-site_user_header(array('title'=>sprintf(_('Welcome to %1$s'), $sys_name)));
+site_user_header(array('title'=>sprintf(_('Welcome to %1$s'), forge_get_config ('forge_name'))));
-printf(_('<p>You are now a registered user on %1$s, the online development environment for Open Source projects.</p><p>As a registered user, you can participate fully in the activities on the site. You may now post messages to the project message forums, post bugs for software in %1$s, sign on as a project developer, or even start your own project.</p><p>Enjoy the site, and please provide us with feedback on ways that we can improve %1$s.</p><p>--the %1$s staff.</p>'), $sys_name);
+printf(_('<p>You are now a registered user on %1$s, the online development environment for Open Source projects.</p><p>As a registered user, you can participate fully in the activities on the site. You may now post messages to the project message forums, post bugs for software in %1$s, sign on as a project developer, or even start your own project.</p><p>Enjoy the site, and please provide us with feedback on ways that we can improve %1$s.</p><p>--the %1$s staff.</p>'), forge_get_config ('forge_name'));
site_user_footer(array());
$login = getStringFromRequest('login');
$form_loginname = getStringFromRequest('form_loginname');
$form_pw = getStringFromRequest('form_pw');
+$feedback = getStringFromRequest('feedback');
//
// Validate return_to
$feedback = sprintf(_('<p>Your account is currently pending your email confirmation. Visiting the link sent to you in this email will activate your account. <p>If you need this email resent, please click below and a confirmation email will be sent to the email address you provided in registration. <p><a href="%1$s">[Resend Confirmation Email]</a> <br><hr> <p>'), util_make_url ("/account/pending-resend.php?form_user=".htmlspecialchars($form_loginname)));
} else {
if ($userstatus == "D") {
- $feedback .= '<br />'.sprintf(_('<p>Your %1$s account has been removed by %1$s staff. This may occur for two reasons, either 1) you requested that your account be removed; or 2) some action has been performed using your account which has been seen as objectionable (i.e. you have breached the terms of service for use of your account) and your account has been revoked for administrative reasons. Should you have questions or concerns regarding this matter, please log a <a href="%2$s">support request</a>.</p><p>Thank you, <br><br>%1$s Staff</p>'), $GLOBALS['sys_name'], util_make_url ("/support/?group_id=1"));
+ $feedback .= '<br />'.sprintf(_('<p>Your %1$s account has been removed by %1$s staff. This may occur for two reasons, either 1) you requested that your account be removed; or 2) some action has been performed using your account which has been seen as objectionable (i.e. you have breached the terms of service for use of your account) and your account has been revoked for administrative reasons. Should you have questions or concerns regarding this matter, please log a <a href="%2$s">support request</a>.</p><p>Thank you, <br><br>%1$s Staff</p>'), forge_get_config ('forge_name'), util_make_url ("/support/?group_id=1"));
}
}
html_feedback_top($feedback);
<p><a href="lostpw.php"><?php echo _('[Lost your password?]'); ?></a></p>
<?php
// hide "new account" item if restricted to admin
-if (!$sys_user_reg_restricted) {
+if (!forge_get_config ('user_registration_restricted')) {
echo '<p><a href="register.php">'._('[New Account]').'</a></p>';
}
?>
<%2$s>
-- the %1$s staff
-'), $GLOBALS['sys_name'], util_make_url ("/account/lostlogin.php?ch=_".$confirm_hash));
+'), forge_get_config ('forge_name'), util_make_url ("/account/lostlogin.php?ch=_".$confirm_hash));
- util_send_message($u->getEmail(),sprintf(_('%1$s Verification'), $GLOBALS['sys_name']),$message);
+ util_send_message($u->getEmail(),sprintf(_('%1$s Verification'), forge_get_config ('forge_name')),$message);
$HTML->header(array('title'=>"Lost Password Confirmation"));
require_once $gfcommon.'include/account.php';
require_once $gfcommon.'include/timezones.php';
-if ($sys_user_reg_restricted) {
+if (forge_get_config ('user_registration_restricted')) {
session_require(array('group'=>'1','admin_flags'=>'A'));
}
if ($register) {
echo $HTML->header(array('title'=>'Register Confirmation'));
- printf(_('<p>Congratulations. You have registered on %1$s. <p> You are now being sent a confirmation email to verify your email address. Visiting the link sent to you in this email will activate your account.'), $sys_name);
+ printf(_('<p>Congratulations. You have registered on %1$s. <p> You are now being sent a confirmation email to verify your email address. Visiting the link sent to you in this email will activate your account.'), forge_get_config ('forge_name'));
echo $HTML->footer(array());
exit;
} else {
if (isset($feedback)) {
- print "<p><span class=\"error\">$feedback";
+ print "<div class=\"error\">$feedback";
if (isset($register_error)) {
print " $register_error";
}
- print "</span>";
+ print "</div>";
}
if (!isset($timezone) || empty($timezone) || !preg_match('/^[-a-zA-Z0-9_\/\.+]+$/', $timezone)) {
$timezone = (isset($sys_default_timezone) ? $sys_default_timezone : 'GMT');
</p
><p>
<?php echo _('Title:'); ?><br />
-<input type="text" name="title" value="<?php echo htmlspecialchars(stripslashes($title)); ?>" size="10" />
+<input type="text" name="title" value="<?php echo htmlspecialchars($title); ?>" size="10" />
</p>
<p>
<?php echo _('First Name:'); echo utils_requiredField(); ?><br />
-<input size="30" type="text" name="firstname" value="<?php print(htmlspecialchars(stripslashes($firstname))); ?>" />
+<input size="30" type="text" name="firstname" value="<?php print(htmlspecialchars($firstname)); ?>" />
</p>
<p>
<?php echo _('Last Name:'); echo utils_requiredField(); ?><br />
-<input size="30" type="text" name="lastname" value="<?php print(htmlspecialchars(stripslashes($lastname))); ?>" />
+<input size="30" type="text" name="lastname" value="<?php print(htmlspecialchars($lastname)); ?>" />
</p>
<p>
<?php echo _('Language Choice:'); ?><br />
<?php echo html_get_ccode_popup('ccode', $ccode); ?>
</p>
<p>
-@<?php printf(_('Email Address:<span class="important">*</span><br /><em>This email address will be verified before account activation. You will receive a mail forward account at <loginname@%1$s> that will forward to this address.</em>'), $GLOBALS['sys_users_host']); ?>
-<br /><input size="30" type="text" name="email" value="<?php print(htmlspecialchars(stripslashes($email))); ?>" />
+@<?php
+ echo _('Email Address:') . utils_requiredField() . "<br />\n<em>";
+ printf(_('This email address will be verified before account activation. You will receive a mail forward account at <loginname@%1$s> that will forward to this address.'), $GLOBALS['sys_users_host']); ?></em>
+<br /><input size="30" type="text" name="email" value="<?php print(htmlspecialchars($email)); ?>" />
</p>
<p>
<?php
if ($sys_use_jabber) {
echo _('Jabber Address:').'<br />
<input size="30" type="text" name="jabber_address" value="'.
- htmlspecialchars(stripslashes($jabber_address)) .'" /><br />
+ htmlspecialchars($jabber_address) .'" /><br />
<input type="checkbox" name="jabber_only" value="1" />
'._('Send auto-generated notices only to my Jabber address').'.';
}
</p>
<p>
<?php echo _('Address:'); ?><br />
-<input type="text" name="address" value="<?php echo htmlspecialchars(stripslashes($address)); ?>" size="80" />
+<input type="text" name="address" value="<?php echo htmlspecialchars($address); ?>" size="80" />
</p>
<p>
<?php echo _('Address:'); ?><br />
-<input type="text" name="address2" value="<?php echo htmlspecialchars(stripslashes($address2)); ?>" size="80" />
+<input type="text" name="address2" value="<?php echo htmlspecialchars($address2); ?>" size="80" />
</p>
<p>
<?php echo _('Phone:'); ?><br />
-<input type="text" name="phone" value="<?php echo htmlspecialchars(stripslashes($phone)); ?>" size="20" />
+<input type="text" name="phone" value="<?php echo htmlspecialchars($phone); ?>" size="20" />
</p>
<p>
<?php echo _('FAX:'); ?><br />
-<input type="text" name="fax" value="<?php echo htmlspecialchars(stripslashes($fax)); ?>" size="20" />
+<input type="text" name="fax" value="<?php echo htmlspecialchars($fax); ?>" size="20" />
</p>
<p>
<input type="checkbox" name="mail_site" value="1" checked="checked" />
if ($all) {
- $what = sprintf(_('You have been unsubscribed from all %1$s mailings and notifications. In case you will want to re-activate your subscriptions in the future, login and visit your Account Maintenance page.'), $GLOBALS['sys_name']);
+ $what = sprintf(_('You have been unsubscribed from all %1$s mailings and notifications. In case you will want to re-activate your subscriptions in the future, login and visit your Account Maintenance page.'), forge_get_config ('forge_name'));
} else {
- $what = sprintf(_('You have been unsubscribed from %1$s site mailings. In case you will want to re-activate your subscriptions in the future, login and visit your Account Maintenance page.'), $GLOBALS['sys_name']);
+ $what = sprintf(_('You have been unsubscribed from %1$s site mailings. In case you will want to re-activate your subscriptions in the future, login and visit your Account Maintenance page.'), forge_get_config ('forge_name'));
}
?>
*/
function admin_table_delete($table, $unit, $primary_key, $id) {
if (db_query_params("DELETE FROM $table WHERE $primary_key=$1", array($id))) {
+ print('<p class="feedback">');
printf(_('%1$s successfully deleted.'), ucfirst(getUnitLabel($unit)));
+ print('</p>');
} else {
echo db_error();
}
$HTML->header(array('title'=>sprintf(_('Edit the %1$ss Table'), ucwords(getUnitLabel($unit)))));
-echo '<h3>'.sprintf(_('Edit the %1$ss Table'), ucwords(getUnitLabel($unit))).'</h3>
-<p>'.util_make_link ('/admin/',_('Site Admin Home')).'</p>
-<p> </p>';
+echo '<h1>'.sprintf(_('Edit the %1$ss Table'), ucwords(getUnitLabel($unit))).'</h1>
+<p>'.util_make_link ('/admin/',_('Site Admin Home')).'</p>';
// $table, $unit and $primary_key are variables passed from the parent scripts
$id = getStringFromRequest('id');
*/
function site_admin_header($params) {
- global $feedback,$HTML;
- if (!isset($feedback)) {
- $feedback = '';
- }
session_require(array('group'=>'1','admin_flags'=>'A'));
- $HTML->header($params);
- echo html_feedback_top($feedback);
+ site_header($params);
}
-function site_admin_footer($vals=0) {
- GLOBAL $HTML;
- $HTML->footer(array());
+function site_admin_footer($params) {
+ site_footer($params);
}
// Local Variables:
// Open readonly but tell you can't write
$handle = fopen($filepath,'r');
$has_write = false;
- $feedback .= sprintf(_("Could not open %s file for read/write. Check the permissions for apache."), $filepath).'<br />';
+ $feedback .= sprintf(_("Could not open %s file for read/write. Check the permissions for apache."), $filepath).'<br />';
}
if ($handle){
fclose($handle); // we had to open it in r+ because we need to check we'll be able to save it later
}
}
echo $HTML->listTableBottom();
- /*echo '<br><center>' . html_build_rich_textarea('filedata',30,150,$filedata,false) . '</center>';*/
+ /*echo '<br /><center>' . html_build_rich_textarea('filedata',30,150,$filedata,false) . '</center>';*/
echo '<br />';
if ($has_write) {
echo '<div align="center"><input type="submit" name="doedit" value="' . _('Save') .'"/></div>';
site_admin_header(array('title'=>_('Site admin')));
+echo '<h1>' . _('Site admin') . '</h1>';
+
$abc_array = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','0','1','2','3','4','5','6','7','8','9');
?>
-<p><strong><?php echo _('User Maintenance'); ?></strong></p>
+<h2><?php echo _('User Maintenance'); ?></h2>
<ul>
<li><?php
$res=db_query_params ('SELECT count(*) AS count FROM users WHERE status=$1',
?></a>
</li>
</ul>
-<p>
-<strong><?php echo _('Project Maintenance'); ?></strong>
-</p>
+<h2><?php echo _('Project Maintenance'); ?></h2>
<ul>
<li><?php
$res=db_query_params ('SELECT count(*) AS count FROM groups',
<li><a href="search.php?groupsearch=1&search=%&is_public=0"><?php echo _('Private Projects'); ?></a></li>
</ul>
-<p>
-<strong><?php echo _('News'); ?></strong>
-</p>
+<h2><?php echo _('News'); ?></h2>
<ul>
<li><?php echo util_make_link ('/news/admin/',_('Approve/Reject')); ?> <?php echo _('Front-page news'); ?></li>
</ul>
-<p>
-<strong><?php echo _('Stats'); ?></strong>
-</p>
+<h2><?php echo _('Stats'); ?></h2>
<ul>
<li><?php echo util_make_link ('/stats/',_('Site-Wide Stats')); ?></li>
</ul>
-<p>
-<strong><?php echo _('Trove Project Tree'); ?></strong>
-</p>
+<h2><?php echo _('Trove Project Tree'); ?></h2>
<ul>
<li><a href="trove/trove_cat_list.php"><?php echo _('Display Trove Map'); ?></a></li>
<li><a href="trove/trove_cat_add.php"><?php echo _('Add to the Trove Map'); ?></a></li>
</ul>
-<p><strong><?php echo _('Site Utilities'); ?></strong></p>
+<h2><?php echo _('Site Utilities'); ?></h2>
<ul>
- <li><a href="massmail.php"><?php printf(_('Mail Engine for %1$s Subscribers'), $GLOBALS['sys_name']); ?></a></li>
- <li><a href="unsubscribe.php"><?php echo $GLOBALS['sys_name']; ?> <?php echo _('Site Mailings Maintenance'); ?></a></li>
+ <li><a href="massmail.php"><?php printf(_('Mail Engine for %1$s Subscribers'), forge_get_config ('forge_name')); ?></a></li>
+ <li><a href="unsubscribe.php"><?php echo forge_get_config ('forge_name'); ?> <?php echo _('Site Mailings Maintenance'); ?></a></li>
<li><a href="edit_frs_filetype.php"><?php echo _('Add, Delete, or Edit File Types'); ?></a></li>
<li><a href="edit_frs_processor.php"><?php echo _('Add, Delete, or Edit Processors'); ?></a></li>
<li><a href="edit_theme.php"><?php echo _('Add, Delete, or Edit Themes'); ?></a></li>
);
}
- if (trim($mail_subject) == '['.$GLOBALS['sys_name'].']') {
+ if (trim($mail_subject) == '['.forge_get_config ('forge_name').']') {
form_release_key(getStringFromRequest('form_key'));
exit_error(
_('Missing parameter, You must give proper subject to the mailing')
print '
<h1>'
-.sprintf(_('Mail Engine for %1$s Subscribers'), $GLOBALS['sys_name']) .
+.sprintf(_('Mail Engine for %1$s Subscribers'), forge_get_config ('forge_name')) .
'</h1>
';
_('All Project Developers'),
_('All Project Admins'),
_('All Users'),
- $GLOBALS['sys_name']. _('Developers (test)')
+ forge_get_config ('forge_name'). _('Developers (test)')
),
'mail_type',false,false
)
<p>
<strong>' ._('Subject').':</strong>'.utils_requiredField().'
-<br /><input type="text" name="mail_subject" size="50" value="['.$GLOBALS['sys_name'].'] " /></p>
+<br /><input type="text" name="mail_subject" size="50" value="['.forge_get_config ('forge_name').'] " /></p>
<p><strong>'._('Text of Message'). ':</strong>'.utils_requiredField(). _('(will be appended with unsubscription information, if applicable)').'</p>
<pre><textarea name="mail_message" cols="70" rows="20">
}
}
-echo $feedback.'<br />';
+if ($feedback) echo '<div class="feedback">' . $feedback . '</div>';
echo _('Here you can activate / deactivate Site wide plugins which are in the plugins/ folder. Then, you should activate them also per project, per user or whatever the plugin specifically applies to.<br /><span class="important">Be careful because some groups/users can be using the plugin. Deactivating it will remove the plugin from all users/groups.<br />Be EXTRA careful running the SQL init script when a plugin has been deactivated prior use (and you want to re-activate) because some scripts have DROP TABLE statements</span><br /><br />');
$title_arr = array( _('Plugin Name'),
_('Status'),
site_admin_header(array('title'=>_('Site Admin: Trove - Add Node')));
?>
-<h3><?php echo _('Add New Trove Category'); ?></h3>
+<h1><?php echo _('Add New Trove Category'); ?></h1>
<form action="trove_cat_add.php" method="post">
-<input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>">
+<input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
<p><?php echo _('Parent Category'); ?>:<?php echo utils_requiredField(); ?>
<br /><select name="form_parent">
</select></p>
<p><?php echo _('New category short name (no spaces, unix-like)'); ?>:<?php echo utils_requiredField(); ?>
<br /><input type="text" name="form_shortname" /></p>
-<p><?php echo _('New category full name (VARCHAR 80)'); ?>:<?php echo utils_requiredField(); ?>
+<p><?php echo _('New category full name (Maximum length is 80 chars)'); ?>:<?php echo utils_requiredField(); ?>
<br /><input type="text" name="form_fullname" /></p>
-<p><?php echo _('New category description (VARCHAR 255)'); ?>:<?php echo utils_requiredField(); ?>
+<p><?php echo _('New category description (Maximum length is 255 chars)'); ?>:
<br /><input type="text" size="80" name="form_description" />
<br /><input type="submit" name="submit" value="<?php echo _('Add'); ?>" /></p>
</form>
site_admin_header(array('title'=>_('Site Admin: Trove - Edit Category')));
?>
-<h3><?php echo _('Edit Trove Category'); ?></h3>
+<h1><?php echo _('Edit Trove Category'); ?></h1>
<form action="trove_cat_edit.php" method="post">
<input type="hidden" name="form_trove_cat_id" value="<?php
print $GLOBALS['trove_cat_id']; ?>" /></p>
-<p><?php echo _('New category short name (no spaces, unix-like)'); ?>:
+<p><?php echo _('Category short name (no spaces, unix-like)'); ?>:
<br /><input type="text" name="form_shortname" value="<?php print $row_cat["shortname"]; ?>" /></p>
-<p><?php echo _('New category full name (VARCHAR 80)'); ?>:
+<p><?php echo _('Category full name (Maximum length is 80 chars)'); ?>:
<br /><input type="text" name="form_fullname" value="<?php print $row_cat["fullname"]; ?>" /></p>
-<p><?php echo _('New category description (VARCHAR 255)'); ?>:
+<p><?php echo _('Category description (Maximum length is 255 chars)'); ?>:
<br /><input type="text" name="form_description" size="80" value="<?php print $row_cat["description"]; ?>" /></p>
<br /><input type="submit" name="submit" value="<?php echo _('Update'); ?>" /><input type="submit" name="delete" value="<?php echo _('Delete'); ?>" />
?>
-<h3><?php echo _('Browse Trove Tree'); ?></h3>
+<h1><?php echo _('Browse Trove Tree'); ?></h1>
<?php
</h1>
<p>
-<?php printf(_('Use field below to find users which match given pattern with the %1$s username, real name, or email address (substring match is preformed, use \'%%\' in the middle of pattern to specify 0 or more arbitrary characters). Click on the username to unsubscribe user from site mailings (new form will appear).'), $GLOBALS['sys_name']); ?>
+<?php printf(_('Use field below to find users which match given pattern with the %1$s username, real name, or email address (substring match is preformed, use \'%%\' in the middle of pattern to specify 0 or more arbitrary characters). Click on the username to unsubscribe user from site mailings (new form will appear).'), forge_get_config ('forge_name')); ?>
</p>
<form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="post">
docman_header(_('Document Manager Administration'),_('Edit Groups'),'');
?>
- <p><strong><?php echo _('Edit a group') ?></strong></p>
+ <h1><?php echo _('Edit a group') ?></h1>
<form name="editgroup" action="index.php?editgroup=1&group_id=<?php echo $group_id; ?>" method="post">
<input type="hidden" name="doc_group" value="<?php echo $doc_group; ?>" />
<table>
docman_header(sprintf(_('Project %s'), $g->getPublicName()),_('Document Manager: Administration'),'admin');
?>
- <h3><?php echo _('Document Manager: Administration') ?></h3>
+ <h1><?php echo _('Document Manager: Administration') ?></h1>
<p>
<a href="index.php?group_id=<?php echo $group_id; ?>&admingroup=1"><?php echo _('Add/Edit/Delete Document Groups') ?></a>
</p>
$df->setLanguageID($language_id);
docman_header(_('Document Manager: Display Document'),_('Project: %1$s'));
+echo '<h1>'.sprintf(_('Documents for %1$s'), $g->getPublicName()) .'</h1>';
$d_arr =& $df->getDocuments();
if (!$d_arr || count($d_arr) <1){
}
if (!$d_arr || count($d_arr) < 1) {
- print "<strong>"._('This project has no visible documents')."</strong>";
+ print '<div class="warning_msg">'._('This project has no visible documents').'</div>';
} else {
doc_droplist_count($group_id, $language_id, $g);
} elseif (file_exists($fusionforge_basedir.'/config/local.inc.php')) {
$gfcgfile = $fusionforge_basedir.'/config/local.inc.php';
$gfconfig = $fusionforge_basedir.'/config/';
+} elseif (file_exists('/etc/gforge/local.inc.php')) {
+ $gfcgfile = '/etc/gforge/local.inc.php';
+ $gfconfig = '/etc/gforge/';
+} elseif (file_exists('/etc/gforge/local.inc')) {
+ $gfcgfile = '/etc/gforge/local.inc';
+ $gfconfig = '/etc/gforge/';
} else {
$gfcgfile = 'local.inc';
$gfconfig = '';
$HTML->header(array(title=>_('Exports Available')));
?>
-<p><?php echo $GLOBALS['sys_name']; ?> data is exported in a variety of standard formats. Many of
+<p><?php echo forge_get_config ('forge_name'); ?> data is exported in a variety of standard formats. Many of
the export URLs can also accept form/get data to customize the output. All
data generated by these pages is realtime.</p>
<h4>News Data</h4>
<ul>
-<li><a href="rss_sfnews.php"><?php echo $GLOBALS['sys_name']; ?> Front Page/Project News</a>
- <link href="rss_sfnews.php" title="<?php echo $GLOBALS['sys_name']; ?> Front Page/Project News, RSS 1.0" rel="alternate" type="application/rss+xml" />
+<li><a href="rss_sfnews.php"><?php echo forge_get_config ('forge_name'); ?> Front Page/Project News</a>
+ <link href="rss_sfnews.php" title="<?php echo forge_get_config ('forge_name'); ?> Front Page/Project News, RSS 1.0" rel="alternate" type="application/rss+xml" />
(<a href="http://web.resource.org/rss/1.0/spec">RSS 1.0</a>)</li>
-<li><a href="rss_sfnewreleases.php"><?php echo $GLOBALS['sys_name']; ?> New Releases</a>
- <link href="rss_sfnewreleases.php" title="<?php echo $GLOBALS['sys_name']; ?> New Releases, RSS 0.91" rel="alternate" type="application/rss+xml" />
+<li><a href="rss_sfnewreleases.php"><?php echo forge_get_config ('forge_name'); ?> New Releases</a>
+ <link href="rss_sfnewreleases.php" title="<?php echo forge_get_config ('forge_name'); ?> New Releases, RSS 0.91" rel="alternate" type="application/rss+xml" />
(<a href="http://my.netscape.com/publish/formats/rss-spec-0.91.html">RSS 0.91</a>,
<a href="http://my.netscape.com/publish/formats/rss-0.91.dtd"><rss-0.91.dtd></a>)</li>
</ul>
<ul>
-<li><a href="rss20_news.php"><?php print $GLOBALS['sys_name'] ?> Front Page News/Project News</a>
- <link href="rss20_news.php" title="<?php print $GLOBALS[sys_name] ?> Front Page News/Project News, RSS 2.0" rel="alternate" type="application/rss+xml" />
+<li><a href="rss20_news.php"><?php print forge_get_config ('forge_name') ?> Front Page News/Project News</a>
+ <link href="rss20_news.php" title="<?php print forge_get_config ('forge_name') ?> Front Page News/Project News, RSS 2.0" rel="alternate" type="application/rss+xml" />
(<a href="http://blogs.law.harvard.edu/tech/rss">RSS 2.0</a>)
-<li><a href="rss20_newreleases.php"><?php print $GLOBALS['sys_name'] ?> New Releases/New Project Releases</a>
- <link href="rss20_newreleases.php" title="<?php print $GLOBALS[sys_name] ?> New Releases/New Project Releases, RSS 2.0" rel="alternate" type="application/rss+xml" />
+<li><a href="rss20_newreleases.php"><?php print forge_get_config ('forge_name') ?> New Releases/New Project Releases</a>
+ <link href="rss20_newreleases.php" title="<?php print forge_get_config ('forge_name') ?> New Releases/New Project Releases, RSS 2.0" rel="alternate" type="application/rss+xml" />
(<a href="http://blogs.law.harvard.edu/tech/rss">RSS 2.0</a>)</li>
</ul>
<h4>Site Information</h4>
<ul>
-<li><a href="rss_sfprojects.php"><?php echo $GLOBALS['sys_name']; ?> Full Project Listing</a>
- <link href="rss_sfprojects.php" title="<?php echo $GLOBALS['sys_name']; ?> Full Project Listing, RSS 0.91" rel="alternate" type="application/rss+xml" />
+<li><a href="rss_sfprojects.php"><?php echo forge_get_config ('forge_name'); ?> Full Project Listing</a>
+ <link href="rss_sfprojects.php" title="<?php echo forge_get_config ('forge_name'); ?> Full Project Listing, RSS 0.91" rel="alternate" type="application/rss+xml" />
(<a href="http://my.netscape.com/publish/formats/rss-spec-0.91.html">RSS 0.91</a>,
<a href="http://my.netscape.com/publish/formats/rss-0.91.dtd"><rss-0.91.dtd></a>)</li>
-<li><a href="rss20_projects.php"><?php print $GLOBALS['sys_name'] ?> Full Project Listing</a>
- <link href="rss20_projects.php" title="<?php print $GLOBALS[sys_name] ?> Full Project Listing, RSS 2.0" rel="alternate" type="application/rss+xml" />
+<li><a href="rss20_projects.php"><?php print forge_get_config ('forge_name') ?> Full Project Listing</a>
+ <link href="rss20_projects.php" title="<?php print forge_get_config ('forge_name') ?> Full Project Listing, RSS 2.0" rel="alternate" type="application/rss+xml" />
(<a href="http://blogs.law.harvard.edu/tech/rss">RSS 2.0</a>)</li>
-<li><a href="trove_tree.php"><?php echo $GLOBALS['sys_name']; ?> Trove Categories Tree</a>
- <link href="trove_tree.php" title="<?php echo $GLOBALS['sys_name']; ?> Trove Categories Tree, XML" rel="alternate" type="application/x-trove+xml" />
+<li><a href="trove_tree.php"><?php echo forge_get_config ('forge_name'); ?> Trove Categories Tree</a>
+ <link href="trove_tree.php" title="<?php echo forge_get_config ('forge_name'); ?> Trove Categories Tree, XML" rel="alternate" type="application/x-trove+xml" />
(<a href="http://www.w3.org/XML">XML</a>,<a href="trove_tree_0.1.dtd"><trove_tree_0.1.dtd></a>)</li>
</ul>
<rss version="2.0">
';
print " <channel>\n";
- print " <title>".$GLOBALS['sys_name']." $title Activity</title>\n";
+ print " <title>".forge_get_config ('forge_name')." $title Activity</title>\n";
print " <link>$url/activity/$link</link>\n";
- print " <description>".$GLOBALS['sys_name']." Project Activity$description</description>\n";
+ print " <description>".forge_get_config ('forge_name')." Project Activity$description</description>\n";
print " <language>en-us</language>\n";
- print " <copyright>Copyright ".date("Y")." ".$GLOBALS['sys_name']."</copyright>\n";
+ print " <copyright>Copyright ".date("Y")." ".forge_get_config ('forge_name')."</copyright>\n";
print " <webMaster>$webmaster</webMaster>\n";
print " <lastBuildDate>".rss_date(time())."</lastBuildDate>\n";
print " <docs>http://blogs.law.harvard.edu/tech/rss</docs>\n";
- print " <generator>".$GLOBALS['sys_name']." RSS generator</generator>\n";
+ print " <generator>".forge_get_config ('forge_name')." RSS generator</generator>\n";
$res = db_query_params ('SELECT * FROM activity_vw WHERE activity_date BETWEEN $1 AND $2 AND group_id=$3 ORDER BY activity_date DESC',
array(time() - 30*86400,
// ## one time output
print " <channel>\n";
-print " <title>".$GLOBALS['sys_name']." Project$title Releases</title>\n";
+print " <title>".forge_get_config ('forge_name')." Project$title Releases</title>\n";
print " <link>http://".$GLOBALS['sys_default_domain']."$link</link>\n";
-print " <description>".$GLOBALS['sys_name']." Project Releases$description</description>\n";
+print " <description>".forge_get_config ('forge_name')." Project Releases$description</description>\n";
print " <language>en-us</language>\n";
-print " <copyright>Copyright ".date("Y")." ".$GLOBALS['sys_name']."</copyright>\n";
+print " <copyright>Copyright ".date("Y")." ".forge_get_config ('forge_name')."</copyright>\n";
print " <webMaster>$webmaster</webMaster>\n";
print " <lastBuildDate>".rss_date(time())."</lastBuildDate>\n";
print " <docs>http://blogs.law.harvard.edu/tech/rss</docs>\n";
$webmaster = $GLOBALS['sys_admin_email'];
}
-$rssTitle = $GLOBALS['sys_name']." Project$title News";
+$rssTitle = forge_get_config ('forge_name')." Project$title News";
$rssLink = "http://".$GLOBALS['sys_default_domain']."/news/$link";
// ## one time output
print " <channel>\n";
print " <title>".$rssTitle."</title>\n";
print " <link>".$rssLink."</link>\n";
-print " <description>".$GLOBALS['sys_name']." Project News$description</description>\n";
+print " <description>".forge_get_config ('forge_name')." Project News$description</description>\n";
print " <language>en-us</language>\n";
-print " <copyright>Copyright ".date("Y")." ".$GLOBALS['sys_name']."</copyright>\n";
+print " <copyright>Copyright ".date("Y")." ".forge_get_config ('forge_name')."</copyright>\n";
print " <webMaster>$webmaster</webMaster>\n";
print " <lastBuildDate>".rss_date(time())."</lastBuildDate>\n";
print " <docs>http://blogs.law.harvard.edu/tech/rss</docs>\n";
-print " <generator>".$GLOBALS['sys_name']." RSS generator</generator>\n";
+print " <generator>".forge_get_config ('forge_name')." RSS generator</generator>\n";
$res = db_query_params ('SELECT forum_id,summary,post_date,details,g.group_id,g.group_name,u.realname,u.user_name
FROM news_bytes, groups g,users u
//rss20_dump_project_result_set($res,$GLOBALS['sys_default_name'].' Full Project Listing');
// quick and dirty fix
-rss_dump_project_result_set($res,$GLOBALS['sys_name'].' Full Project Listing');
+rss_dump_project_result_set($res,forge_get_config ('forge_name').' Full Project Listing');
?>
</rss>
$name=$forge->software_name;
$date=rss_date(time());
$link="http://".$GLOBALS['sys_default_domain'].'/';
-$title=$GLOBALS['sys_name'].' - Software version';
+$title=forge_get_config ('forge_name').' - Software version';
header("Content-Type: text/xml; charset=utf-8");
print '<?xml version="1.0" encoding="UTF-8"?>';
printf(_('%1$s data is exported in RSS 2.0 format. Many of
the export URLs can also accept form/get data to customize the output. All
-data generated by these pages is realtime.'),$GLOBALS['sys_name']);
+data generated by these pages is realtime.'), forge_get_config ('forge_name'));
echo _('To get Project News or New Project Releases of a specific project use the Links below.');
$name.': ' . _('Activity'));
}
-
// RSS for project Releases
if ($project->usesFRS() && $GLOBALS['sys_use_frs']) {
$string_rss_20 .= get_rss_feed_20 ("rss20_newreleases.php?group_id=" . $group_id,
// ## one time output
print " <channel>\n";
-print " <copyright>Copyright ".date("Y")." ".$GLOBALS['sys_name']."</copyright>\n";
+print " <copyright>Copyright ".date("Y")." ".forge_get_config ('forge_name')."</copyright>\n";
print " <pubDate>".rss_date(time())."</pubDate>\n";
-print " <description>".$GLOBALS['sys_name']." New Releases</description>\n";
+print " <description>".forge_get_config ('forge_name')." New Releases</description>\n";
print " <link>http://".$GLOBALS['sys_default_domain']."</link>\n";
-print " <title>".$GLOBALS['sys_name']." New Releases</title>\n";
+print " <title>".forge_get_config ('forge_name')." New Releases</title>\n";
print " <webMaster>".$GLOBALS['sys_admin_email']."</webMaster>\n";
print " <language>en-us</language>\n";
// ## item outputs
print "\n <channel rdf:about=\"".util_make_url ('/export/rss_sfnews.php')."\">\n";
-print " <title>".$GLOBALS['sys_name']." Project News</title>\n";
+print " <title>".forge_get_config ('forge_name')." Project News</title>\n";
print " <link>".util_make_url ('/')."</link>\n";
-print " <description>".$GLOBALS['sys_name']." Project News Highlights</description>\n";
+print " <description>".forge_get_config ('forge_name')." Project News Highlights</description>\n";
// ## item outputs
print " <items>\n";
print " <rdf:Seq>\n";
array('A'),
$limit);
-rss_dump_project_result_set($res,$GLOBALS['sys_name'].' Full Project Listing');
+rss_dump_project_result_set($res,forge_get_config ('forge_name').' Full Project Listing');
?>
</rss>
if (!$desription) $desription=$title;
// one time output
print " <channel>\n";
- print " <copyright>Copyright ".date("Y")." ".$GLOBALS['sys_name']."</copyright>\n";
+ print " <copyright>Copyright ".date("Y")." ".fusionforge_get_config ('core', 'forge_name')."</copyright>\n";
print " <pubDate>".rss_date(time())."</pubDate>\n";
print " <description>$desription</description>\n";
print " <link>http://".$GLOBALS['sys_default_domain']."/</link>\n";
print '<?xml version="1.0" encoding="UTF-8"?>';
?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
-<ShortName><?php echo $GLOBALS['sys_name']; ?></ShortName>
+<ShortName><?php echo forge_get_config ('forge_name'); ?></ShortName>
<Description><?php echo _("Search in project"); ?></Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon"><?php echo "http://".$GLOBALS['sys_default_domain']."/images/opensearchdescription.png"; ?></Image>
}
}
</script>
- <p><form name="pending" action="pending.php" method="post">
+ <form name="pending" action="pending.php" method="post">
<input type="hidden" name="action" value="update_pending" />
<input type="hidden" name="form_key" value="' . form_generate_key() . '" />
<input type="hidden" name="group_id" value="' . getIntFromRequest("group_id") . '" />
//$moderated_forums["A"] = "All Forums for this group"; // to show all
echo html_build_select_box_from_assoc($moderated_forums,forum_id,$forum_id);
- echo ' <input name="Go" type="submit" value="Go"><p>';
+ echo ' <input name="Go" type="submit" value="Go" />';
$title = array();
$title[] = _('Forum Name');
echo "
<tr" . $HTML->boxGetAltRowStyle($i++). ">
<td>$onemsg[forum_name]</td>
- <td><a href=\"#\" OnClick=\"window.open('pendingmsgdetail.php?msg_id=$onemsg[msg_id]&forum_id=$onemsg[group_forum_id]&group_id=$group_id','PendingMessageDetail','width=800,height=600,status=no,resizable=yes');\">$onemsg[subject]</a></td>
+ <td><a href=\"#\" onclick=\"window.open('pendingmsgdetail.php?msg_id=$onemsg[msg_id]&forum_id=$onemsg[group_forum_id]&group_id=$group_id','PendingMessageDetail','width=800,height=600,status=no,resizable=yes');\">$onemsg[subject]</a></td>
<td><div align=\"right\">" . html_build_select_box_from_assoc($options,"doaction[]",1) . "</div></td>
</tr>";
}
echo $HTML->listTableBottom();
echo '
- <p>
- <input type="hidden" name="msgids" value="' . $ids . '">
- <div align="right"><input type="submit" onClick="return confirmDel();" name="update" value="' . _('Update') . '"></div>
+ <input type="hidden" name="msgids" value="' . $ids . '" />
+ <p align="right"><input type="submit" onclick="return confirmDel();" name="update" value="' . _('Update') . '" /></p>
</form>
';
}
//actually delete the message
$feedback .= $fa->ExecuteAction("delete");
forum_header(array('title'=>_('Delete a Message')));
- echo '<p>'.util_make_link ('/forum/forum.php?forum_id=' . $forum_id, _("Return to the forum")) ;
+ echo '<p>'.util_make_link ('/forum/forum.php?forum_id=' . $forum_id, _("Return to the forum")) . '</p>';
forum_footer(array());
} elseif (getStringFromRequest("cancel")) {
// the user cancelled the request, go back to forum
$offset = getIntFromRequest('offset');
$max_rows = getIntFromRequest('max_rows');
$set = getStringFromRequest('set');
+$feedback = htmlspecialchars(getStringFromRequest('feedback'));
if ($forum_id) {
$sanitizer = new TextSanitizer();
$body = $sanitizer->SanitizeHtml($body);
-
+
$attach = getUploadedFile("attachment1");
if ($attach['size']) {
$has_attach = true;
} else {
$has_attach = false;
}
-
+
if (!$fm->create($subject, $body, $thread_id, $is_followup_to,$has_attach) || $fm->isError()) {
form_release_key(getStringFromRequest("form_key"));
exit_error(_('Error'),_('Error creating ForumMessage: ').$fm->getErrorMessage());
echo db_error();
- $title_arr=array();
- $title_arr[]=_('Topic');
- $title_arr[]=_('Topic Starter');
- $title_arr[]=_('Replies');
- $title_arr[]=_('Last Post');
-
- $ret_val .= $GLOBALS['HTML']->listTableTop ($title_arr);
- $i=0;
- while (($row=db_fetch_array($result)) && ($i < $max_rows)) {
- $ret_val .= '
- <tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'><td><a href="'.util_make_url ('/forum/forum.php?thread_id='.
- $row['thread_id'].'&forum_id='.$forum_id.'&group_id='.$group_id).'">'.
- html_image('ic/cfolder15.png',"15","13",array("border"=>"0")) . ' ';
- /*
- See if this message is new or not
- If so, highlite it in bold
- */
- if ($f->getSavedDate() < $row['recent']) {
- $bold_begin='<strong>';
- $bold_end='</strong>';
- } else {
- $bold_begin='';
- $bold_end='';
+ if ($avail_rows > 0) {
+ $title_arr=array();
+ $title_arr[]=_('Topic');
+ $title_arr[]=_('Topic Starter');
+ $title_arr[]=_('Replies');
+ $title_arr[]=_('Last Post');
+
+ $ret_val .= $GLOBALS['HTML']->listTableTop ($title_arr);
+ $i=0;
+ while (($row=db_fetch_array($result)) && ($i < $max_rows)) {
+ $ret_val .= '
+ <tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'><td><a href="'.util_make_url ('/forum/forum.php?thread_id='.
+ $row['thread_id'].'&forum_id='.$forum_id.'&group_id='.$group_id).'">'.
+ html_image('ic/cfolder15.png',"15","13",array("border"=>"0")) . ' ';
+ /*
+ See if this message is new or not
+ If so, highlite it in bold
+ */
+ if ($f->getSavedDate() < $row['recent']) {
+ $bold_begin='<strong>';
+ $bold_end='</strong>';
+ } else {
+ $bold_begin='';
+ $bold_end='';
+ }
+ /*
+ show the subject and poster
+ */
+ $ret_val .= $bold_begin.$row['subject'] .$bold_end.'</a></td>'.
+ '<td><a href="/users/'.$row['user_name'].'/">'.$row['realname'].'</a></td>'.
+ '<td>'. $row['followups'] .'</td>'.
+ '<td>'.date(_('Y-m-d H:i'),$row['recent']).'</td></tr>';
+ $i++;
}
- /*
- show the subject and poster
- */
- $ret_val .= $bold_begin.$row['subject'] .$bold_end.'</a></td>'.
- '<td><a href="/users/'.$row['user_name'].'/">'.$row['realname'].'</a></td>'.
- '<td>'. $row['followups'] .'</td>'.
- '<td>'.date(_('Y-m-d H:i'),$row['recent']).'</td></tr>';
- $i++;
- }
- $ret_val .= $GLOBALS['HTML']->listTableBottom();
+ $ret_val .= $GLOBALS['HTML']->listTableBottom();
+ }
}
/*
echo '<table><tr><td valign="top">';
if (!$result || db_numrows($result) < 1) {
- echo '<h3>'._('Error - this news item was not found').'</h3>';
+ echo '<div class="error">'._('Error - this news item was not found').'</div>';
} else {
$user = user_get_object(db_result($result,0,'submitted_by'));
$group =& group_get_object($params['group']);
}
forum_header(array('title'=>sprintf(_('Forums for %1$s'), $g->getPublicName()) ));
+ echo '<h1>'.sprintf(_('Forums for %1$s'), $g->getPublicName()) .'</h1>';
if ($ff->isError() || count($farr) < 1) {
- echo '<h1>'.sprintf(_('No Forums Found For %1$s'), $g->getPublicName()) .'</h1>';
+ echo '<div class="warning_msg">'.sprintf(_('No Forums Found for %1$s'), $g->getPublicName()) .'</div>';
if($ff->isError()) {
echo $ff->getErrorMessage();
}
?>
+<h1><?php echo _('File Release Reporting') ?></h1>
+
<form action="<?php echo util_make_url('/frs/reporting/downloads.php') ?>" method="get">
<input type="hidden" name="group_id" value="<?php echo $group_id; ?>" />
<table><tr>
require_once('../env.inc.php');
require_once $gfwww.'include/pre.php';
-$HTML->header(array('title'=>sprintf(_('Welcome to %1$s'), $GLOBALS['sys_name'])));
+$HTML->header(array('title'=>sprintf(_('Welcome to %1$s'), forge_get_config ('forge_name'))));
print "<p>" ._('Page Information')."</p>";
/**
<?php
-/**
- * Base layout class.
- *
- * Extends the basic Error class to add HTML functions
- * for displaying all site dependent HTML, while allowing
- * extendibility/overriding by themes via the Theme class.
- *
- * Make sure browser.php is included _before_ you create an instance
- * of this object.
- *
- * Geoffrey Herteg, August 29, 2000
- *
- */
+ /**
+ * Base layout class.
+ *
+ * Extends the basic Error class to add HTML functions
+ * for displaying all site dependent HTML, while allowing
+ * extendibility/overriding by themes via the Theme class.
+ *
+ * Make sure browser.php is included _before_ you create an instance
+ * of this object.
+ *
+ * Geoffrey Herteg, August 29, 2000
+ *
+ */
require_once $gfcommon.'include/constants.php';
-require_once $gfwww.'search/include/SearchManager.class.php';
+require_once $gfcommon.'include/Navigation.class.php';
class Layout extends Error {
+ /**
+ * Which doctype to use. Can be configured in the
+ * constructor. If set to 'strict', headerHTMLDeclaration will
+ * create a doctype definition that uses the strict doctype,
+ * otherwise it will use the transitional doctype.
+ * @var string $doctype
+ */
+ var $doctype = 'transitional';
+
/**
- * The default main page content */
+ * Which cssfiles to use. Can be configured in the
+ * constructor.
+ *
+ * @var array $cssurls is a list of urls that should point to
+ * the used stylesheets.
+ */
+ var $cssurls;
+
+ /**
+ * The default main page content
+ * @var string $rootindex
+ */
var $rootindex = 'index_std.php';
+ /**
+ * The base directory of the theme in the servers file system
+ * @var string $themedir
+ */
+ var $themedir;
+
+ /**
+ * The base url of the theme
+ * @var string $themeurl
+ */
+ var $themeurl;
+
+ /**
+ * The base directory of the css files in the servers file system
+ * @var string $cssdir
+ */
+ var $cssdir;
+
+ /**
+ * The base url of the css files
+ * @var string $cssbaseurl
+ */
+ var $cssbaseurl;
+
+ /**
+ * The base directory of the image files in the servers file system
+ * @var string $imgdir
+ */
+ var $imgdir;
+
+ /**
+ * The base url of the image files
+ * @var string $imgbaseurl
+ */
+ var $imgbaseurl;
+
+ /**
+ * The base directory of the js files in the servers file system
+ * @var string $jsdir
+ */
+ var $jsdir;
+
+ /**
+ * The base url of the js files
+ * @var string $jsbaseurl
+ */
+ var $jsbaseurl;
+
/*
- * The root location of the theme
- * @var string $themeroot
- */
-
- var $themeroot;
+ * kept for backwards compatibility
+ */
/**
- * The root location for images
- *
- * @var string $imgroot
- */
+ * The base directory of the theme
+ * @var string $themeroot
+ * @todo: remove in 5.0
+ * @deprecated deprecated since 4.9
+ */
+ var $themeroot;
+ /**
+ * The base directory of the theme
+ * @var string $themeroot
+ * @todo: remove in 5.0
+ * @deprecated deprecated since 4.9
+ */
var $imgroot;
-
+
+ /**
+ * The navigation object that provides the basic links. Should
+ * not be modified.
+ */
+ var $navigation;
+
/**
* Layout() - Constructor
*/
function Layout() {
+ // parent constructor
+ $this->Error();
+
+ $this->navigation = new Navigation();
+
// determine rootindex
- if ( file_exists($GLOBALS['sys_custom_path'] . '/index_std.php') )
+ if ( file_exists($GLOBALS['sys_custom_path'] . '/index_std.php') ) {
$this->rootindex = $GLOBALS['sys_custom_path'] . '/index_std.php';
- else
+ } else {
$this->rootindex = $GLOBALS['gfwww'].'index_std.php';
+ }
- // determine themeroot
- $this->themeroot = $GLOBALS['sys_themeroot'].$GLOBALS['sys_theme'];
- /* if images directory exists in theme, then use it as imgroot */
- if (file_exists ($this->themeroot.'/images')){
- $this->imgroot = util_make_uri ('/themes/'.$GLOBALS['sys_theme'].'/images/');
+ // determine theme{dir,url}
+ $this->themedir = $GLOBALS['sys_themeroot'] . $GLOBALS['sys_theme'] . '/';
+ if (!file_exists ($this->themedir)) {
+ html_error_top(_("Can't find theme directory!"));
+ return;
}
-
- $this->Error();
+ $this->themeurl = util_make_url('themes/' . $GLOBALS['sys_theme'] . '/');
+
+ // determine {css,img,js}{url,dir}
+ if (file_exists ($this->themedir . 'css/')) {
+ $this->cssdir = $this->themedir . 'css/';
+ $this->cssbaseurl = $this->themeurl . 'css/';
+ } else {
+ $this->cssdir = $this->themedir;
+ $this->cssbaseurl = $this->themeurl;
+ }
+
+ if (file_exists ($this->themedir . 'images/')) {
+ $this->imgdir = $this->themedir . 'images/';
+ $this->imgbaseurl = $this->themeurl . 'images/';
+ } else {
+ $this->imgdir = $this->themedir;
+ $this->imgbaseurl = $this->themeurl;
+ }
+
+ if (file_exists ($this->themedir . 'js/')) {
+ $this->jsdir = $this->themedir . 'js/';
+ $this->jsbaseurl = $this->themeurl . 'js/';
+ } else {
+ $this->jsdir = $this->themedir;
+ $this->jsbaseurl = $this->themeurl;
+ }
+
+ // determine CSS stylesheets
+ $this->cssurls[] = util_make_url ('/themes/css/fusionforge.css');
+
+ /* check if a personalized css stylesheet exist, if yes include only
+ this stylesheet. New stylesheets should use the <themename>.css file.
+ */
+ $theme_cssfile = $GLOBALS['sys_theme'] . '.css';
+ if (file_exists($this->cssdir . $theme_cssfile)) {
+ $this->cssurls[] = $this->cssbaseurl . $theme_cssfile;
+ } else {
+ /* if this is not the case, then include the compatibility stylesheet
+ that contains all removed styles from the code and check if a
+ custom stylesheet exists.
+ Used for compatibility with existing stylesheets
+ */
+ $this->cssurls[] = util_make_url('/themes/css/gforge-compat.css');
+ if (file_exists($this->cssdir . 'theme.css')) {
+ $this->cssurls[] = $this->cssbaseurl . 'theme.css';
+ }
+ }
+
+ // for backward compatibility
+ $this->themeroot = $this->themedir;
+ $this->imgroot = $this->imgbaseurl;
}
- /**
- * headerLink() - common code for all themes
- *
+ /**
+ * header() - generates the complete header of page by calling
+ * headerStart() and bodyHeader().
*/
- function headerLink() {
- echo '<link rel="alternate" title="'.$GLOBALS['sys_name'].' - Project News Highlights RSS" href="'.util_make_url ('/export/rss_sfnews.php').'" type="application/rss+xml"/>';
- echo '<link rel="alternate" title="'.$GLOBALS['sys_name'].' - Project News Highlights RSS 2.0" href="'.util_make_url ('/export/rss20_news.php').'" type="application/rss+xml"/>';
- echo '<link rel="alternate" title="'.$GLOBALS['sys_name'].' - New Projects RSS" href="'.util_make_url ('/export/rss_sfprojects.php').'" type="application/rss+xml"/>';
- echo '<link rel="search" title="'.$GLOBALS['sys_name'].'" href="'.util_make_url ('/export/search_plugin.php').'" type="application/opensearchdescription+xml"/>';
+ function header($params) {
+ $this->headerStart($params); ?>
+ <body>
+ <?php
+ $this->bodyHeader($params);
}
+
/**
- * headerStart() - common code for all themes
+ * headerStart() - generates the header code for all themes up to the
+ * closing </head>.
+ * Override any of the methods headerHTMLDeclaration(), headerTitle(),
+ * headerFavIcon(), headerRSS(), headerSearch(), headerCSS(), or
+ * headerJS() to adapt your theme.
*
* @param array Header parameters array
*/
function headerStart($params) {
- if (!$params['title']) {
- $params['title'] = $GLOBALS['sys_name'];
- } else {
- $params['title'] = $GLOBALS['sys_name'] . ': ' . $params['title'];
- }
- print '<?xml version="1.0" encoding="utf-8"';
+ $this->headerHTMLDeclaration();
+ ?>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <?php
+ $this->headerTitle($params);
+ $this->headerFavIcon();
+ $this->headerRSS();
+ $this->headerSearch();
+ $this->headerCSS();
+ $this->headerJS();
?>
+ </head>
+ <?php
+ }
+
+ /**
+ * headerLink() - creates the link headers of the page (FavIcon, RSS and Search)
+ * @deprecated deprecated since 4.9, use the individual header-functions
+ * @todo remove in 5.0
+ */
+ function headerLink() {
+ $this->headerFavIcon();
+ $this->headerRSS();
+ $this->headerSearch();
+ }
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ /**
+ * headerHTMLDeclaration() - generates the HTML declaration, i.e. the
+ * XML declaration, the doctype definition, and the opening <html>.
+ *
+ */
+ function headerHTMLDeclaration() {
+ print '<?xml version="1.0" encoding="utf-8"?>';
+ if ($this->doctype=='strict') {
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
+ } else {
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
+ }
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'
+ . _('en') . '" lang="' . _('en') . '">';
+ }
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo _('en') ?>" lang="<?php echo _('en') ?>">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title><?php echo $params['title']; ?></title>
- <?php
- $this->headerLink();
-
- if (isset($GLOBALS['group_id'])) {
- $activity = '<link rel="alternate" title="' . $GLOBALS['sys_name'] . ' - New Activity RSS" href="'. util_make_url ('/export/rss20_activity.php?group_id='.$GLOBALS['group_id']).'" type="application/rss+xml"/>';
- echo $activity;
- }
+ /**
+ * headerTitle() - creates the <title> header
+ *
+ * @param array Header parameters array
+ */
+ function headerTitle($params) {
+ echo $this->navigation->getTitle($params);
+ }
+
+
+ /**
+ * headerFavIcon() - creates the favicon <link> headers
+ *
+ */
+ function headerFavIcon() {
+ echo $this->navigation->getFavIcon();
+ }
- $this->headerCSS();
+ /**
+ * headerRSS() - creates the RSS <link> headers
+ *
+ */
+ function headerRSS() {
+ echo $this->navigation->getRSS();
+ }
- echo '
- <script type="text/javascript" src="'. util_make_uri('/js/common.js') .'"></script>
- <script type="text/javascript">';
- plugin_hook ("javascript",false);
- echo '</script>';
+ /**
+ * headerSearch() - creates the search <link> header
+ *
+ */
+ function headerSearch() {
+ echo '<link rel="search" title="'
+ . forge_get_config ('forge_name').'" href="'
+ . util_make_url ('/export/search_plugin.php')
+ . '" type="application/opensearchdescription+xml"/>';
+ }
- echo "\n".'</head>'."\n";
- }
-
+ /**
+ * Create the CSS headers for all cssfiles in $cssfiles and
+ * calls the plugin cssfile hook.
+ */
function headerCSS() {
- /* check if a personalized css stylesheet exist, if yes include only
- this stylesheet
- new stylesheets should use the <themename>.css file
- */
- $theme_cssfile = $this->themeroot . '/css/'.$GLOBALS['sys_theme'].'.css';
- if (file_exists($theme_cssfile)){
- echo '
- <link rel="stylesheet" type="text/css" href="'.util_make_uri ('/themes/'.$GLOBALS['sys_theme'].'/css/'.$GLOBALS['sys_theme'].'.css').'"/>';
- } else {
- /* if this is not our case, then include the compatibility stylesheet
- that contains all removed styles from the code and check if a
- custom stylesheet exists.
- Used for compatibility with existing stylesheets
- */
- echo '
- <link rel="stylesheet" type="text/css" href="'.util_make_uri ('/themes/css/gforge-compat.css').'" />';
- $theme_cssfile = $this->themeroot . '/css/theme.css';
- if (file_exists($theme_cssfile)){
- echo '
- <link rel="stylesheet" type="text/css" href="'.util_make_uri ('/themes/'.$GLOBALS['sys_theme'].'/css/theme.css').'" />';
- }
+ // include the common css
+ foreach ($this->cssurls as $cssurl) {
+ echo '<link rel="stylesheet" type="text/css" href="' . $cssurl . '" />';
}
+
plugin_hook ('cssfile',$this);
}
- function header($params) {
- $this->headerStart($params); ?>
-<body>
- <?php
- $this->bodyHeader($params);
+ /**
+ * headerJS() - creates the JS headers and calls the plugin javascript hook
+ * @todo generalize this
+ */
+ function headerJS() {
+ echo '
+ <script type="text/javascript" src="'. util_make_uri('/js/common.js') .'"></script>
+ <script type="text/javascript">';
+ plugin_hook ("javascript",false);
+ echo '
+ </script>';
}
-
- function bodyHeader($params){
+
+ function bodyHeader($params){
?>
-<div class="header">
-<table border="0" width="100%" cellspacing="0" cellpadding="0" id="headertable">
-
- <tr>
- <td><a href="<?php echo util_make_url ('/'); ?>"><?php echo html_image('logo.png',198,52,array('border'=>'0')); ?></a></td>
- <td><?php echo $this->searchBox(); ?></td>
- <td align="right"><?php
- if (session_loggedin()) {
- $u =& user_get_object(user_getid());
- echo util_make_link ('/account/logout.php', sprintf("%s (%s)", _('Log Out'), $u->getRealName()),array('class'=>'lnkutility'));
- echo util_make_link ('/account/',_('My Account'),array('class'=>'lnkutility'));
- } else {
- echo util_make_link ('/account/login.php',_('Log In'),array('class'=>'lnkutility'));
- if (!$GLOBALS['sys_user_reg_restricted']) {
- echo util_make_link ('/account/register.php',_('New Account'),array('class'=>'lnkutility'));
- }
- }
+ <div class="header">
+ <table border="0" width="100%" cellspacing="0" cellpadding="0" id="headertable">
+ <tr>
+ <td><a href="<?php echo util_make_url ('/'); ?>"><?php echo html_image('logo.png',198,52,array('border'=>'0')); ?></a></td>
+ <td><?php $this->searchBox(); ?></td>
+ <td align="right"><?php
+ $items = $this->navigation->getUserLinks();
+ for ($j = 0; $j < count($items['titles']); $j++) {
+ echo util_make_link($items['urls'][$j], $items['titles'][$j], array('class'=>'lnkutility'), true);
+ }
- $params['template'] = ' {menu}';
- plugin_hook ('headermenu', $params);
+ $params['template'] = ' {menu}';
+ plugin_hook ('headermenu', $params);
- echo $this->quickNav();
+ $this->quickNav();
?></td>
- <td> </td>
- </tr>
+ <td> </td>
+ </tr>
-</table>
+ </table>
-<table border="0" width="100%" cellspacing="0" cellpadding="0">
+ <table border="0" width="100%" cellspacing="0" cellpadding="0">
- <tr>
- <td> </td>
- <td colspan="3">
+ <tr>
+ <td> </td>
+ <td colspan="3">
-<?php echo $this->outerTabs($params); ?>
+ <?php echo $this->outerTabs($params); ?>
- </td>
- <td> </td>
- </tr>
+ </td>
+ <td> </td>
+ </tr>
- <tr>
- <td align="left" class="toptab" width="9"><img src="<?php echo $this->imgroot; ?>tabs/topleft.png" height="9" width="9" alt="" /></td>
- <td class="toptab" width="30"><img src="<?php echo $this->imgroot; ?>clear.png" width="30" height="1" alt="" /></td>
- <td class="toptab"><img src="<?php echo $this->imgroot; ?>clear.png" width="1" height="1" alt="" /></td>
- <td class="toptab" width="30"><img src="<?php echo $this->imgroot; ?>clear.png" width="30" height="1" alt="" /></td>
- <td align="right" class="toptab" width="9"><img src="<?php echo $this->imgroot; ?>tabs/topright.png" height="9" width="9" alt="" /></td>
- </tr>
+ <tr>
+ <td align="left" class="toptab" width="9"><img src="<?php echo $this->imgbaseurl; ?>tabs/topleft.png" height="9" width="9" alt="" /></td>
+ <td class="toptab" width="30"><img src="<?php echo $this->imgbaseurl; ?>clear.png" width="30" height="1" alt="" /></td>
+ <td class="toptab"><img src="<?php echo $this->imgbaseurl; ?>clear.png" width="1" height="1" alt="" /></td>
+ <td class="toptab" width="30"><img src="<?php echo $this->imgbaseurl; ?>clear.png" width="30" height="1" alt="" /></td>
+ <td align="right" class="toptab" width="9"><img src="<?php echo $this->imgbaseurl; ?>tabs/topright.png" height="9" width="9" alt="" /></td>
+ </tr>
- <tr>
+ <tr>
- <!-- Outer body row -->
+ <!-- Outer body row -->
- <td class="toptab"><img src="<?php echo $this->imgroot; ?>clear.png" width="10" height="1" alt="" /></td>
- <td valign="top" width="99%" class="toptab" colspan="3">
+ <td class="toptab"><img src="<?php echo $this->imgbaseurl; ?>clear.png" width="10" height="1" alt="" /></td>
+ <td valign="top" width="99%" class="toptab" colspan="3">
- <!-- Inner Tabs / Shell -->
+ <!-- Inner Tabs / Shell -->
- <table border="0" width="100%" cellspacing="0" cellpadding="0">
-<?php
+ <table border="0" width="100%" cellspacing="0" cellpadding="0">
+ <?php
-if (isset($params['group']) && $params['group']) {
+ if (isset($params['group']) && $params['group']) {
- ?>
- <tr>
- <td> </td>
- <td>
- <?php
+ ?>
+ <tr>
+ <td> </td>
+ <td>
+ <?php
- echo $this->projectTabs($params['toptab'],$params['group']);
+ echo $this->projectTabs($params['toptab'],$params['group']);
- ?>
- </td>
- <td> </td>
- </tr>
- <?php
-}
-?>
- <tr>
- <td align="left" class="projecttab" width="9"><img src="<?php echo $this->imgroot; ?>tabs/topleft-inner.png" height="9" width="9" alt="" /></td>
- <td class="projecttab" ><img src="<?php echo $this->imgroot; ?>clear.png" width="1" height="1" alt="" /></td>
- <td align="right" class="projecttab" width="9"><img src="<?php echo $this->imgroot; ?>tabs/topright-inner.png" height="9" width="9" alt="" /></td>
- </tr>
+ ?>
+ </td>
+ <td> </td>
+ </tr>
+ <?php
+ }
+ ?>
+ <tr>
+ <td align="left" class="projecttab" width="9"><img src="<?php echo $this->imgbaseurl; ?>tabs/topleft-inner.png" height="9" width="9" alt="" /></td>
+ <td class="projecttab" ><img src="<?php echo $this->imgbaseurl; ?>clear.png" width="1" height="1" alt="" /></td>
+ <td align="right" class="projecttab" width="9"><img src="<?php echo $this->imgbaseurl; ?>tabs/topright-inner.png" height="9" width="9" alt="" /></td>
+ </tr>
- <tr>
- <td class="projecttab" ><img src="<?php echo $this->imgroot; ?>clear.png" width="10" height="1" alt="" /></td>
- <td valign="top" width="99%" class="projecttab">
+ <tr>
+ <td class="projecttab" ><img src="<?php echo $this->imgbaseurl; ?>clear.png" width="10" height="1" alt="" /></td>
+ <td valign="top" width="99%" class="projecttab">
- <?php
+ <?php
- }
+ }
function footer($params) {
- ?>
+ ?>
- <!-- end main body row -->
+ <!-- end main body row -->
- </td>
- <td width="10" class="footer3" ><img src="<?php echo $this->imgroot; ?>clear.png" width="2" height="1" alt="" /></td>
+ </td>
+ <td width="10" class="footer3" ><img src="<?php echo $this->imgbaseurl; ?>clear.png" width="2" height="1" alt="" /></td>
</tr>
<tr>
- <td align="left" class="footer1" width="9"><img src="<?php echo $this->imgroot; ?>tabs/bottomleft-inner.png" height="11" width="11" alt="" /></td>
- <td class="footer3"><img src="<?php echo $this->imgroot; ?>clear.png" width="1" height="1" alt="" /></td>
- <td align="right" class="footer1" width="9"><img src="<?php echo $this->imgroot; ?>tabs/bottomright-inner.png" height="11" width="11" alt="" /></td>
+ <td align="left" class="footer1" width="9"><img src="<?php echo $this->imgbaseurl; ?>tabs/bottomleft-inner.png" height="11" width="11" alt="" /></td>
+ <td class="footer3"><img src="<?php echo $this->imgbaseurl; ?>clear.png" width="1" height="1" alt="" /></td>
+ <td align="right" class="footer1" width="9"><img src="<?php echo $this->imgbaseurl; ?>tabs/bottomright-inner.png" height="11" width="11" alt="" /></td>
</tr>
</table>
- <!-- end inner body row -->
+ <!-- end inner body row -->
- </td>
- <td width="10" class="footer2"><img src="<?php echo $this->imgroot; ?>clear.png" width="2" height="1" alt="" /></td>
- </tr>
- <tr>
- <td align="left" class="footer2" width="9"><img src="<?php echo $this->imgroot; ?>tabs/bottomleft.png" height="9" width="9" alt="" /></td>
- <td class="footer2" colspan="3"><img src="<?php echo $this->imgroot; ?>clear.png" width="1" height="1" alt="" /></td>
- <td align="right" class="footer2" width="9"><img src="<?php echo $this->imgroot; ?>tabs/bottomright.png" height="9" width="9" alt="" /></td>
- </tr>
-</table>
-<?php
- $this->footerEnd($params);
+ </td>
+ <td width="10" class="footer2"><img src="<?php echo $this->imgbaseurl; ?>clear.png" width="2" height="1" alt="" /></td>
+ </tr>
+ <tr>
+ <td align="left" class="footer2" width="9"><img src="<?php echo $this->imgbaseurl; ?>tabs/bottomleft.png" height="9" width="9" alt="" /></td>
+ <td class="footer2" colspan="3"><img src="<?php echo $this->imgbaseurl; ?>clear.png" width="1" height="1" alt="" /></td>
+ <td align="right" class="footer2" width="9"><img src="<?php echo $this->imgbaseurl; ?>tabs/bottomright.png" height="9" width="9" alt="" /></td>
+ </tr>
+ </table>
+ <?php
+ $this->footerEnd($params);
}
function footerEnd($params) { ?>
-<!-- PLEASE LEAVE "Powered By FusionForge" on your site -->
-<div align="right">
-<a href="http://fusionforge.org/"><img src="<?php echo util_make_uri ('/images/pow-fusionforge.png'); ?>" alt="Powered By FusionForge" border="0" /></a>
-</div>
+ <!-- PLEASE LEAVE "Powered By FusionForge" on your site -->
+ <div align="right">
+ <?php echo $this->navigation->getPoweredBy(); ?>
+ </div>
-<?php
- global $sys_show_source;
- if ($sys_show_source) {
- echo util_make_link ('/source.php?file='.getStringFromServer('SCRIPT_NAME'),_('Show source'),array('class'=>'showsource'));
- }
-?>
+ <?php echo $this->navigation->getShowSource(); ?>
-</body>
-</div>
-</html>
-<?php
+ </body>
+ </div>
+ </html>
+ <?php
- }
+ }
function getRootIndex() {
return $this->rootindex;
return '
<!-- Box Top Start -->
- <table cellspacing="0" cellpadding="0" width="100%" border="0" style="background:url('.$this->imgroot.'vert-grad.png)">
+ <table cellspacing="0" cellpadding="0" width="100%" border="0" style="background:url('.$this->imgbaseurl.'vert-grad.png)">
<tr class="align-center">
- <td valign="top" align="right" width="10" style="background:url('.$this->imgroot.'box-topleft.png)"><img src="'.$this->imgroot.'clear.png" width="10" height="20" alt="" /></td>
- <td width="100%" style="background:url('.$this->imgroot.'box-grad.png)"><span class="titlebar">'.$title.'</span></td>
- <td valign="top" width="10" style="background:url('.$this->imgroot.'box-topright.png)"><img src="'.$this->imgroot.'clear.png" width="10" height="20" alt="" /></td>
+ <td valign="top" align="right" width="10" style="background:url('.$this->imgbaseurl.'box-topleft.png)"><img src="'.$this->imgbaseurl.'clear.png" width="10" height="20" alt="" /></td>
+ <td width="100%" style="background:url('.$this->imgbaseurl.'box-grad.png)"><span class="titlebar">'.$title.'</span></td>
+ <td valign="top" width="10" style="background:url('.$this->imgbaseurl.'box-topright.png)"><img src="'.$this->imgbaseurl.'clear.png" width="10" height="20" alt="" /></td>
</tr>
<tr>
<td colspan="3">
</td>
</tr>
<tr class="align-center">
- <td colspan="2" style="background:url('.$this->imgroot.'box-grad.png)"><span class="titlebar">'.$title.'</span></td>
+ <td colspan="2" style="background:url('.$this->imgbaseurl.'box-grad.png)"><span class="titlebar">'.$title.'</span></td>
</tr>
<tr align="left">
<td colspan="2">
$return = '
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr class="align-center">
- <!-- <td valign="top" align="right" width="10" style="background:url('.$this->imgroot.'box-grad.png)"><img src="'.$this->imgroot.'box-topleft.png" width="10" height="75" alt="" /></td> -->
- <td style="background:url('.$this->imgroot.'box-grad.png)">
+ <!-- <td valign="top" align="right" width="10" style="background:url('.$this->imgbaseurl.'box-grad.png)"><img src="'.$this->imgbaseurl.'box-topleft.png" width="10" height="75" alt="" /></td> -->
+ <td style="background:url('.$this->imgbaseurl.'box-grad.png)">
<table width="100%" border="0" cellspacing="1" cellpadding="2" >
<tr class="tableheading">';
$count=count($title_arr);
function listTableBottom() {
return '</table></td>
- <!-- <td valign="top" align="right" width="10" style="background:url('.$this->imgroot.'box-grad.png)"><img src="'.$this->imgroot.'box-topright.png" width="10" height="75" alt="" /></td> -->
+ <!-- <td valign="top" align="right" width="10" style="background:url('.$this->imgbaseurl.'box-grad.png)"><img src="'.$this->imgbaseurl.'box-topright.png" width="10" height="75" alt="" /></td> -->
</tr></table>';
}
function outerTabs($params) {
- global $sys_use_trove,$sys_use_snippet,$sys_use_people,$sys_use_project_tags, $sys_use_project_full_list;
+ $menu =& $this->navigation->getSiteMenu();
- $TABS_DIRS[]=util_make_url ('/');
- $TABS_DIRS[]=util_make_url ('/my/');
- if ($sys_use_trove || $sys_use_project_tags || $sys_use_project_full_list) {
- $TABS_DIRS[]=util_make_url ('/softwaremap/') ;
- }
- if ($sys_use_snippet) {
- $TABS_DIRS[]=util_make_url ('/snippet/') ;
- }
- if ($sys_use_people) {
- $TABS_DIRS[]=util_make_url ('/people/') ;
- }
- $TABS_TITLES[]=_('Home');
- $TABS_TITLES[]=_('My Page');
- if ($sys_use_trove || $sys_use_project_tags || $sys_use_project_full_list) {
- $TABS_TITLES[]=_('Projects');
- }
- if ($sys_use_snippet) {
- $TABS_TITLES[]=_('Code Snippets');
- }
- if ($sys_use_people) {
- $TABS_TITLES[]=_('Project Openings');
- }
-
- // outermenu hook
- $PLUGIN_TABS_DIRS = Array();
- $hookParams['DIRS'] = &$PLUGIN_TABS_DIRS;
- $hookParams['TITLES'] = &$TABS_TITLES;
- plugin_hook ("outermenu", $hookParams) ;
- $TABS_DIRS = array_merge($TABS_DIRS, $PLUGIN_TABS_DIRS);
-
- $user_is_super=false;
- if (session_loggedin()) {
- $projectmaster =& group_get_object(GROUP_IS_MASTER);
- $projectstats =& group_get_object(GROUP_IS_STATS);
- $permmaster =& $projectmaster->getPermission( session_get_user() );
- $permstats =& $projectstats->getPermission( session_get_user() );
-
- if ($permmaster->isAdmin()) {
- $user_is_super=true;
- $TABS_DIRS[]=util_make_url ('/admin/') ;
- $TABS_TITLES[]=_('Admin');
- }
- if ($permstats->isMember()) {
- $TABS_DIRS[]=util_make_url ('/reporting/') ;
- $TABS_TITLES[]=_('Reporting');
- }
- }
- if(isset($params['group']) && $params['group']) {
- // get group info using the common result set
- $project =& group_get_object($params['group']);
- if ($project && is_object($project)) {
- if ($project->isError()) {
-
- } elseif (!$project->isProject()) {
-
- } else {
- if (isset ($GLOBALS['sys_noforcetype']) && $GLOBALS['sys_noforcetype']) {
- $TABS_DIRS[]=util_make_url ('/project/?group_id') .$project->getId();
- } else {
- $TABS_DIRS[]=util_make_url ('/projects/') .$project->getUnixName().'/';
- }
- $TABS_TITLES[]=$project->getPublicName();
- $selected=count($TABS_DIRS)-1;
- }
- }
- } elseif (strstr(getStringFromServer('REQUEST_URI'),util_make_uri ('/my/') ) ||
- strstr(getStringFromServer('REQUEST_URI'),util_make_uri ('/account/') ) ||
- strstr(getStringFromServer('REQUEST_URI'),util_make_uri ('/register/') ) ||
- strstr(getStringFromServer('REQUEST_URI'),util_make_uri ('/themes/') ) ) {
- $selected=array_search(util_make_url ('/my/'), $TABS_DIRS);
- } elseif (strstr(getStringFromServer('REQUEST_URI'),util_make_uri ('softwaremap') )) {
- $selected=array_search(util_make_url ('/softwaremap/'), $TABS_DIRS);
- } elseif (strstr(getStringFromServer('REQUEST_URI'),util_make_uri ('/snippet/') )) {
- $selected=array_search(util_make_url ('/snippet/'), $TABS_DIRS);
- } elseif (strstr(getStringFromServer('REQUEST_URI'),util_make_uri ('/people/') )) {
- $selected=array_search(util_make_url ('/people/'), $TABS_DIRS);
- } elseif (strstr(getStringFromServer('REQUEST_URI'),util_make_uri ('/reporting/') )) {
- $selected=array_search(util_make_url ('/reporting/'),$TABS_DIRS);
- } elseif (strstr(getStringFromServer('REQUEST_URI'),util_make_uri ('/admin/') ) && $user_is_super) {
- $selected=array_search(util_make_url ('/admin/'),$TABS_DIRS);
- } elseif (count($PLUGIN_TABS_DIRS)>0) {
- foreach ($PLUGIN_TABS_DIRS as $PLUGIN_TABS_DIRS_VALUE) {
- if (strstr(getStringFromServer('REQUEST_URI'), parse_url ($PLUGIN_TABS_DIRS_VALUE, PHP_URL_PATH))) {
- $selected=array_search($PLUGIN_TABS_DIRS_VALUE, $TABS_DIRS);
- break;
- }
- }
- } else {
- $selected=0;
- }
- echo $this->tabGenerator($TABS_DIRS, $TABS_TITLES, false, $selected, '');
+ echo $this->tabGenerator($menu['urls'], $menu['titles'], false, $menu['selected'], '');
}
/**
- * quicknav() - Prints out the quicknav menu, contained
- * here in case we want to allow it to be
- * overridden.
- *
+ * Prints out the quicknav menu, contained here in case we
+ * want to allow it to be overridden.
*/
function quickNav() {
if (!session_loggedin()) {
- return '';
+ return;
} else {
// get all projects that the user belongs to
$res = db_query_params ('SELECT group_id FROM groups JOIN user_group USING (group_id) WHERE user_group.user_id=$1 AND groups.status=$2 ORDER BY group_name',
'A'));
echo db_error();
if (!$res || db_numrows($res) < 1) {
- return '';
+ return;
} else {
- $ret = '
+ echo '
<form id="quicknavform" name="quicknavform" action=""><div>
<select name="quicknav" id="quicknav" onChange="location.href=document.quicknavform.quicknav.value">
<option value="">'._('Quick Jump To...').'</option>';
for ($i = 0; $i < db_numrows($res); $i++) {
$group_id = db_result($res, $i, 'group_id');
- $project =& group_get_object($group_id);
- if (!$project || !is_object($project)) {
- return;
- }
- if ($project->isError()) {
- //wasn't found or some other problem
- return;
- }
- if (!$project->isProject()) {
- return;
- }
-
- $menu = $project->getMenu();
- $ret .= '
- <option value="' . $menu['start'] . '">'
- . $project->getPublicName() .'</option>';
-
- for ($j = 0; $j < count($menu['dirs']); $j++) {
- $ret .= '
- <option value="' . $menu['dirs'][$j] .'"> '
+ $menu =& $this->navigation->getProjectMenu($group_id);
+
+ echo '
+ <option value="' . $menu['starturl'] . '">'
+ . $menu['name'] .'</option>';
+
+ for ($j = 0; $j < count($menu['urls']); $j++) {
+ echo '
+ <option value="' . $menu['urls'][$j] .'"> '
. $menu['titles'][$j] . '</option>';
- if ($menu['admindirs'][$j]) {
- $ret .= '
- <option value="' . $menu['admindirs'][$j]
- . '"> '
- . _('Admin') . '</option>';
+ if ($menu['adminurls'][$j]) {
+ echo '
+ <option value="' . $menu['adminurls'][$j]
+ . '"> '
+ . _('Admin') . '</option>';
}
}
}
- $ret .= '
+ echo '
</select>
</div></form>';
}
}
- return $ret;
}
/**
* @param string Is the tab currently selected
* @param string Is the group we should look up get title info
*/
- function projectTabs($toptab, $group) {
+ function projectTabs($toptab, $group_id) {
// get group info using the common result set
- $project =& group_get_object($group);
- if (!$project || !is_object($project)) {
- return;
- }
- if ($project->isError()) {
- //wasn't found or some other problem
- return;
- }
- if (!$project->isProject()) {
- return;
- }
+ $menu =& $this->navigation->getProjectMenu($group_id, $toptab);
- $menu = $project->getMenu($toptab);
-
- echo $this->tabGenerator($menu['dirs'], $menu['titles'], true, $menu['selected'], 'white');
+ echo $this->tabGenerator($menu['urls'], $menu['titles'], true, $menu['selected'], 'white');
}
function tabGenerator($TABS_DIRS,$TABS_TITLES,$nested=false,$selected=false,$sel_tab_bgcolor='white',$total_width='100%') {
$wassel=false;
$issel=($selected==$i);
$bgimg=(($issel)?'theme-'.$inner.'-selected-bg.png':'theme-'.$inner.'-notselected-bg.png');
- // $rowspan=(($issel)?'rowspan="2" ' : '');
+ // $rowspan=(($issel)?'rowspan="2" ' : '');
$return .= '
- <td '.$rowspan.'valign="top" width="10" style="background:url('.$this->imgroot . 'theme-'.$inner.'-end-'.(($issel) ? '' : 'not').'selected.png)">'.
- '<img src="'.$this->imgroot . 'clear.png" height="25" width="10" alt="" /></td>'.
- '<td '.$rowspan.'style="background:url('.$this->imgroot . $bgimg.')" width="'.$width.'%" align="center">'.util_make_link ($TABS_DIRS[$i],$TABS_TITLES[$i],array('class'=>(($issel)?'tabsellink':'tablink')),true).'</td>';
+ <td '.$rowspan.'valign="top" width="10" style="background:url('.$this->imgbaseurl . 'theme-'.$inner.'-end-'.(($issel) ? '' : 'not').'selected.png)">'.
+ '<img src="'.$this->imgbaseurl . 'clear.png" height="25" width="10" alt="" /></td>'.
+ '<td '.$rowspan.'style="background:url('.$this->imgbaseurl . $bgimg.')" width="'.$width.'%" align="center">'.util_make_link ($TABS_DIRS[$i],$TABS_TITLES[$i],array('class'=>(($issel)?'tabsellink':'tablink')),true).'</td>';
} elseif ($i==$count-1) {
//
// this is the last tab, choose an image with name-end
$wassel=($selected==$i-1);
$issel=($selected==$i);
$bgimg=(($issel)?'theme-'.$inner.'-selected-bg.png':'theme-'.$inner.'-notselected-bg.png');
- // $rowspan=(($issel)?'rowspan="2" ' : '');
+ // $rowspan=(($issel)?'rowspan="2" ' : '');
//
// Build image between current and prior tab
//
$return .= '
- <td '.$rowspan.'colspan="2" valign="top" width="20" style="background:url('.$this->imgroot . 'theme-'.$inner.'-'.(($wassel) ? '' : 'not').'selected-'.(($issel) ? '' : 'not').'selected.png)">'.
- '<img src="'.$this->imgroot . 'clear.png" height="2" width="20" alt="" /></td>'.
- '<td '.$rowspan.'style="background:url('.$this->imgroot . $bgimg.')" width="'.$width.'%" align="center">'.util_make_link ($TABS_DIRS[$i],$TABS_TITLES[$i],array('class'=>(($issel)?'tabsellink':'tablink')),true).'</td>';
+ <td '.$rowspan.'colspan="2" valign="top" width="20" style="background:url('.$this->imgbaseurl . 'theme-'.$inner.'-'.(($wassel) ? '' : 'not').'selected-'.(($issel) ? '' : 'not').'selected.png)">'.
+ '<img src="'.$this->imgbaseurl . 'clear.png" height="2" width="20" alt="" /></td>'.
+ '<td '.$rowspan.'style="background:url('.$this->imgbaseurl . $bgimg.')" width="'.$width.'%" align="center">'.util_make_link ($TABS_DIRS[$i],$TABS_TITLES[$i],array('class'=>(($issel)?'tabsellink':'tablink')),true).'</td>';
//
// Last graphic on right-side
//
$return .= '
- <td '.$rowspan.'valign="top" width="10" style="background:url('.$this->imgroot . 'theme-'.$inner.'-'.(($issel) ? '' : 'not').'selected-end.png)">'.
- '<img src="'.$this->imgroot . 'clear.png" height="2" width="10" alt="" /></td>';
+ <td '.$rowspan.'valign="top" width="10" style="background:url('.$this->imgbaseurl . 'theme-'.$inner.'-'.(($issel) ? '' : 'not').'selected-end.png)">'.
+ '<img src="'.$this->imgbaseurl . 'clear.png" height="2" width="10" alt="" /></td>';
} else {
//
$wassel=($selected==$i-1);
$issel=($selected==$i);
$bgimg=(($issel)?'theme-'.$inner.'-selected-bg.png':'theme-'.$inner.'-notselected-bg.png');
- // $rowspan=(($issel)?'rowspan="2" ' : '');
+ // $rowspan=(($issel)?'rowspan="2" ' : '');
//
// Build image between current and prior tab
//
$return .= '
- <td '.$rowspan.'colspan="2" valign="top" width="20" style="background:url('.$this->imgroot . 'theme-'.$inner.'-'.(($wassel) ? '' : 'not').'selected-'.(($issel) ? '' : 'not').'selected.png)">'.
- '<img src="'.$this->imgroot . 'clear.png" height="2" width="20" alt="" /></td>'.
- '<td '.$rowspan.'style="background:url('.$this->imgroot . $bgimg.')" width="'.$width.'%" align="center">'.util_make_link ($TABS_DIRS[$i],$TABS_TITLES[$i],array('class'=>(($issel)?'tabsellink':'tablink')),true).'</td>';
+ <td '.$rowspan.'colspan="2" valign="top" width="20" style="background:url('.$this->imgbaseurl . 'theme-'.$inner.'-'.(($wassel) ? '' : 'not').'selected-'.(($issel) ? '' : 'not').'selected.png)">'.
+ '<img src="'.$this->imgbaseurl . 'clear.png" height="2" width="20" alt="" /></td>'.
+ '<td '.$rowspan.'style="background:url('.$this->imgbaseurl . $bgimg.')" width="'.$width.'%" align="center">'.util_make_link ($TABS_DIRS[$i],$TABS_TITLES[$i],array('class'=>(($issel)?'tabsellink':'tablink')),true).'</td>';
}
}
}
$return .= '<tr>';
if ($beg_cols > 0) {
- $return .= '<td colspan="'.$beg_cols.'" height="1" class="notSelTab"><img src="'.$this->imgroot.'clear.png" height="1" width="10" alt="" /></td>';
+ $return .= '<td colspan="'.$beg_cols.'" height="1" class="notSelTab"><img src="'.$this->imgbaseurl.'clear.png" height="1" width="10" alt="" /></td>';
}
- $return .= '<td colspan="3" height="1" class="selTab"><img src="'.$this->imgroot.'clear.png" height="1" width="10" alt="" /></td>';
+ $return .= '<td colspan="3" height="1" class="selTab"><img src="'.$this->imgbaseurl.'clear.png" height="1" width="10" alt="" /></td>';
if ($end_cols > 0) {
- $return .= '<td colspan="'.$end_cols.'" height="1" class="notSelTab"><img src="'.$this->imgroot.'clear.png" height="1" width="10" alt="" /></td>';
+ $return .= '<td colspan="'.$end_cols.'" height="1" class="notSelTab"><img src="'.$this->imgbaseurl.'clear.png" height="1" width="10" alt="" /></td>';
}
$return .= '</tr>';
}
function searchBox() {
- global $words,$forum_id,$group_id,$group_project_id,$atid,$exact,$type_of_search;
-
- if(get_magic_quotes_gpc()) {
- $defaultWords = stripslashes($words);
- } else {
- $defaultWords = $words;
- }
-
- //Fix CVE-2007-0176
- $defaultWords = htmlspecialchars($defaultWords);
-
- // if there is no search currently, set the default
- if ( ! isset($type_of_search) ) {
- $exact = 1;
- }
-
- print '<form action="/search/" method="get" id="search-box-form">';
- print '<div class="searchbox">';
- $parameters = array(
- SEARCH__PARAMETER_GROUP_ID => $group_id,
- SEARCH__PARAMETER_ARTIFACT_ID => $atid,
- SEARCH__PARAMETER_FORUM_ID => $forum_id,
- SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id
- );
-
- $searchManager =& getSearchManager();
- $searchManager->setParametersValues($parameters);
- $searchEngines =& $searchManager->getAvailableSearchEngines();
-
- echo '<select name="type_of_search">';
- for($i = 0, $max = count($searchEngines); $i < $max; $i++) {
- $searchEngine =& $searchEngines[$i];
- echo '<option value="'.$searchEngine->getType().'"'.( $type_of_search == $searchEngine->getType() ? ' selected="selected"' : '' ).'>'.$searchEngine->getLabel($parameters).'</option>'."\n";
- }
- echo '</select>';
-
- $parameters = $searchManager->getParameters();
- foreach($parameters AS $name => $value) {
- print '<input type="hidden" value="'.$value.'" name="'.$name.'" id="'.$name.'"/>';
- }
- print '<label for="search-words" class="skip">' . html_image('pixel-transparent.gif', 1, 1, array('alt' => "")) . '</label>';
- print '<input type="text" name="words" size="12" id="search-words" value="'.$defaultWords.'" />';
-
- print '<label for="search-submit" class="skip">' . html_image('pixel-transparent.gif', 1, 1, array('alt' => "")) . '</label>';
- print '<input type="image" name="Search" id="search-submit" src="' . util_make_url('/images/magnifier.png') . '" alt="'._('Search').'" title="'._('Search').'" />';
-
- if (isset($group_id) && $group_id) {
- $link_content = html_image('notes.png','21','21',array('alt'=>_('Advanced search'), 'title'=>_('Advanced search')));
- print ' '.util_make_link ('/search/advanced_search.php?group_id='.$group_id, $link_content, array('class'=>'lnkutility', 'id'=>'advanced-search'));
- }
- print '</div>';
- print '</form>';
- }
-
- function advancedSearchBox($sectionsArray, $group_id, $words, $isExact) {
- // display the searchmask
- print '
- <form name="advancedsearch" action="'.getStringFromServer('PHP_SELF').'" method="post">
- <input type="hidden" name="search" value="1"/>
- <input type="hidden" name="group_id" value="'.$group_id.'"/>
- <div class="align-center"><br />
- <table border="0">
- <tr>
- <td colspan ="2">
- <input type="text" size="60" name="words" value="'.stripslashes(htmlspecialchars($words)).'" />
- <input type="submit" name="submitbutton" value="'._('Search').'" />
- </td>
- </tr>
- <tr>
- <td valign="top">
- <input type="radio" name="mode" value="'.SEARCH__MODE_AND.'" '.($isExact ? 'checked="checked"' : '').' />'._('with all words').'
- </td>
- <td>
- <input type="radio" name="mode" value="'.SEARCH__MODE_OR.'" '.(!$isExact ? 'checked="checked"' : '').' />'._('with one word').'
- </td>
- </tr>
- </table><br /></div>'
- .$this->createUnderSections($sectionsArray).'
- </form>';
-
-
- //create javascript methods for select none/all
- print '
- <script type="text/javascript">
- <!-- method for disable/enable checkboxes
- function setCheckBoxes(parent, checked) {
-
-
- for (var i = 0; i < document.advancedsearch.elements.length; i++)
- if (document.advancedsearch.elements[i].type == "checkbox")
- if (document.advancedsearch.elements[i].name.substr(0, parent.length) == parent)
- document.advancedsearch.elements[i].checked = checked;
- }
- //-->
- </script>
- ';
-
- }
-
- function createUnderSections($sectionsArray) {
- global $group_subsection_names;
-
- $countLines = 0;
- foreach ($sectionsArray as $section) {
- if(is_array($section)) {
- $countLines += (3 + count ($section));
- } else {
- //2 lines one for section name and one for checkbox
- $countLines += 3;
- }
- }
-
- $maxCol = 3;
- $breakLimit = ceil($countLines/$maxCol);
- $break = $breakLimit;
- $countLines = 0;
- $countCol = 1;
-
- $return = '
- <table width="100%" border="0" cellspacing="0" cellpadding="1">
- <tr class="tableheader">
- <td>
- <table width="100%" cellspacing="0" border="0">
- <tr class="tablecontent">
- <!--<td colspan="2">'._('Search in').':</td-->
- <td align="right">'._('Select').' <a href="javascript:setCheckBoxes(\'\', true)">'._('all').'</a> / <a href="javascript:setCheckBoxes(\'\', false)">'._('none').'</a></td>
- </tr>
- <tr class="tablecontent">
- <td colspan="3"> </td>
- </tr>
- <tr valign="top" class="tablecontent align-center">
- <td>';
- foreach($sectionsArray as $key => $section) {
- $oldcountlines = $countLines;
- if (is_array($section)) {
- $countLines += (3 + count ($section));
- } else {
- $countLines += 3;
- }
-
- if ($countLines >= $break) {
- // if we are closer to the limit with this one included, then
- // it's better to include it.
- if (($countCol < $maxCol) && ($countLines - $break) >= ($break - $oldcountlines)) {
- $return .= '</td><td>';
- $countCol++;
- $break += $breakLimit;
- }
- }
-
- $return .= '<table width="90%" border="0" cellpadding="1" cellspacing="0">
- <tr><td><table width="100%" border="0" cellspacing="0" cellpadding="3">
- <tr>
- <td cellspacing="0">
- <a href="#'.$key.'">'.$group_subsection_names[$key].'</a>'
- .' </td>
- <td align="right">'
- ._('Select').' <a href="javascript:setCheckBoxes(\''.$key.'\', true)">'._('all').'</a> / <a href="javascript:setCheckBoxes(\''.$key.'\', false)">'._('none').'</a>
- </td>
- </tr>
- <tr class="tablecontent">
- <td colspan="2">';
-
- if (!is_array($section)) {
- $return .= ' <input type="checkbox" name="'.urlencode($key).'"';
- if (isset($GLOBALS[urlencode($key)]))
- $return .= ' checked="checked" ';
- $return .= ' /></input>'.$group_subsection_names[$key].'<br />';
- }
- else
- foreach($section as $underkey => $undersection) {
- $return .= ' <input type="checkbox" name="'.urlencode($key.$underkey).'"';
- if (isset($GLOBALS[urlencode($key.$underkey)]))
- $return .= ' checked="checked" ';
- $return .= ' />'.$undersection.'<br />';
-
- }
-
- $return .= ' </td>
- </tr>
- </table></td></tr></table><br />';
-
- if ($countLines >= $break) {
- if (($countLines - $break) < ($break - $countLines)) {
- $return .= '</td><td width="33%">';
- $break += $breakLimit;
- }
- }
- }
-
- return $return.' </td>
- </tr>
- </table></td></tr></table>';
+ echo $this->navigation->getSearchBox();
}
/**
* @param boolean is this row part of the title ?
*
*/
- function multiTableRow($row_attr, $cell_data, $istitle) {
+ function multiTableRow($row_attr, $cell_data, $istitle) {
$return= '
<tr '.$row_attr;
if ( $istitle ) {
}
}
$return .= '/>
- <input type="image" id="' . $id . '_submit" src="' . $this->imgroot . $img_src . '" alt="' . $img_alt . '" title="' . $img_title . '"';
+ <input type="image" id="' . $id . '_submit" src="' . $this->imgbaseurl . $img_src . '" alt="' . $img_alt . '" title="' . $img_title . '"';
if (is_array($img_extra_params)) {
foreach ($img_extra_params as $key => $img_extra_params_value) {
$return .= $key . '="' . $img_extra_params_value . '" ';
if ($sys_use_project_tags) {
$return .= $HTML->boxTop(_('Tag Cloud'), 'Tag_Cloud');
$return .= tag_cloud();
- $return .= $HTML->boxMiddle(sprintf(_('%1$s Statistics'), $GLOBALS['sys_name']), 'Forge_Statistics');
+ $return .= $HTML->boxMiddle(sprintf(_('%1$s Statistics'), forge_get_config ('forge_name')), 'Forge_Statistics');
} else {
- $return .= $HTML->boxTop(sprintf(_('%1$s Statistics'), $GLOBALS['sys_name']), 'Forge_Statistics');
+ $return .= $HTML->boxTop(sprintf(_('%1$s Statistics'), forge_get_config ('forge_name')), 'Forge_Statistics');
}
$return .= show_sitestats();
if ($sys_use_frs) {
<title><?php print $title; ?></title>
</head>
<body>
-<h4><?php echo $GLOBALS['sys_name']; ?> Site Help System:</h4>
+<h4><?php echo forge_get_config ('forge_name'); ?> Site Help System:</h4>
<h2><?php print $title; ?></h2>
<hr />
<?php
}
require $gfcgfile;
+require $gfcommon.'include/config.php';
+
+forge_define_config_item ('core', 'forge_name', $GLOBALS['sys_name']) ;
+forge_define_config_item ('core', 'user_registration_restricted', $GLOBALS['sys_user_reg_restricted']) ;
+/* Long-term:
+ require_once $gfcommon.'include/FusionForge.class.php';
+ $forge = new FusionForge() ;
+ forge_define_config_item ('core', 'forge_name', $forge->software_name) ;
+ forge_define_config_item ('core', 'user_registration_restricted', false) ;
+*/
+forge_read_config_file ($gfconfig.'/config.ini') ;
// get constants used for flags or status
require $gfcommon.'include/constants.php';
db_connect();
if (!$GLOBALS['gfconn']) {
- print "$sys_name Could Not Connect to Database: ".db_error();
+ print forge_get_config ('forge_name')." Could Not Connect to Database: ".db_error();
exit;
}
'A'));
if ($project->getStatus() == 'H') {
- print "<p>".sprintf(_('NOTE: This project entry is maintained by the %1$s staff. We are not the official site for this product. Additional copyright information may be found on this project\'s homepage.'), $GLOBALS['sys_name'])."</p>\n";
+ print "<p>".sprintf(_('NOTE: This project entry is maintained by the %1$s staff. We are not the official site for this product. Additional copyright information may be found on this project\'s homepage.'), forge_get_config ('forge_name'))."</p>\n";
}
$hook_params = array () ;
}
}
- // ##################### Task Manager
+ // ##################### Tasks
if ($project->usesPm()) {
$return .= '
$me = session_get_user();
if ($sys_use_ratings) {
if ($user->usesRatings() && (!$me || $me->usesRatings())) {
- echo '<p>If you are familiar with this user, please take a moment to rate him/her on the following criteria. Keep in mind, that your rating will be visible to the user and others.</p>';
- echo '<p>The '. $GLOBALS['sys_name'] .' Peer Rating system is based on concepts from <a href="http://www.advogato.com/">Advogato</a>. The system has been re-implemented and expanded in a few ways.</p>';
-
+ printf(_('<p>If you are familiar with this user, please take a moment to rate him/her on the following criteria. Keep in mind, that your rating will be visible to the user and others.</p><p>The %1$s Peer Rating system is based on concepts from <a href="http://www.advogato.com/">Advogato.</a> The system has been re-implemented and expanded in a few ways.</p>'), forge_get_config ('forge_name'));
?>
<div class="align-center">
</div>
<?php printf(_('<p>The Peer rating box shows all rating averages (and response levels) for each individual criteria. Due to the math and processing required to do otherwise, these numbers incoporate responses from both "trusted" and "non-trusted" users.</p><ul><li>The "Sitewide Rank" field shows the user\'s rank compared to all ranked %1$s users.</li><li>The "Aggregate Score" shows an average, weighted overall score, based on trusted-responses only.</li><li>The "Personal Importance" field shows the weight that users ratings of other developers will be given (between 1 and 1.5) -- higher rated user\'s responses are given more weight.</li></ul><p>If you would like to opt-out from peer rating system (this will affect your ability to both rate and be rated), refer to <a href="%2$s">your account maintenance page</a>. If you choose not to participate, your ratings of other users will be permanently deleted and the \'Peer Rating\' box will disappear from your user page.</p>'),
- $GLOBALS['sys_name'],
+ forge_get_config ('forge_name'),
util_make_url ("/account/"));
} else if ($me && !$me->usesRatings()) { ?>
mail_footer(array());
exit;
}
- echo '<p>'.sprintf(_('You can administrate lists from here. Please note that private lists can still be viewed by members of your project, but are not listed on %1$s.'), $GLOBALS['sys_name']).'</p>';
+ echo '<p>'.sprintf(_('You can administrate lists from here. Please note that private lists can still be viewed by members of your project, but are not listed on %1$s.'), forge_get_config ('forge_name')).'</p>';
echo '<ul>
<li>
<a href="'.getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&add_list=1">'._('Add Mailing List').'</a>
$to = ''; // send to noreply@
$subject = sprintf (_("[%s User Notes: %s] %s"),
- $GLOBALS['sys_name'],
+ forge_get_config ('forge_name'),
$u->getRealName(),
stripslashes($summary)) ;
$body = util_line_wrap(stripslashes($details)) ;
%s
",
- $GLOBALS['sys_name'],
+ forge_get_config ('forge_name'),
util_make_url ("/developer/monitor.php?diary_user=". user_getid())) ;
util_send_message($to, $subject, $body, $to, $tolist);
}
echo site_user_header(array('title'=>_('My Diary And Notes')));
+ echo '<h1>' . _('My Diary And Notes') . '</h1>';
echo '
- <p> </p>
- <h3>'. $info_str .'</h3>
- <p />
+ <h2>'. $info_str .'</h2>
+
<form action="'. getStringFromServer('PHP_SELF') .'" method="post">
<input type="hidden" name="form_key" value="'.form_generate_key().'"/>
<input type="hidden" name="'. $proc_str .'" value="1" />
$sanitizer = new TextSanitizer();
$details = $sanitizer->SanitizeHtml($details);
$result = db_query_params("UPDATE news_bytes SET is_approved=$1, summary=$2,
-details=$3 WHERE id=$4 AND group_id=$5", array($status, htmlspecialchars($summary), addslashes($details), $id, $group_id));
+details=$3 WHERE id=$4 AND group_id=$5", array($status, htmlspecialchars($summary), $details, $id, $group_id));
if (!$result || db_affected_rows($result) < 1) {
$feedback .= _('Error On Update:');
echo notepad_func();
echo '
- <h3>'.sprintf(_('Approve a NewsByte For Project: %1$s'), $group->getPublicName()).'</h3>
+ <h1>'.sprintf(_('Approve a NewsByte For Project: %1$s'), $group->getPublicName()).'</h1>
<p />
<form action="'.getStringFromServer('PHP_SELF').'" method="post">
<input type="hidden" name="group_id" value="'.db_result($result,0,'group_id').'" />
unset($GLOBALS['editor_was_set_up']);
echo '<p>
- <strong>'.sprintf(_('If this item is on the %1$s home page and you edit it, it will be removed from the home page.'), $GLOBALS['sys_name']).'</strong><br /></p>
+ <strong>'.sprintf(_('If this item is on the %1$s home page and you edit it, it will be removed from the home page.'), forge_get_config ('forge_name')).'</strong><br /></p>
<input type="submit" name="submit" value="'._('Submit').'" />
</form>';
$rows=db_numrows($result);
$group =& group_get_object($group_id);
+ echo '<h1>'._('List of News Submitted for Project').': '.$group->getPublicName().'</h1>';
if ($rows < 1) {
echo '
- <h4>'._('No Queued Items Found').': '.$group->getPublicName().'</h4>';
+ <div class="warning_msg">'._('No Queued Items Found').'</div>';
} else {
echo '
- <h4>'._('List of News Submitted for Project').': '.$group->getPublicName().'</h4>
<ul>';
for ($i=0; $i<$rows; $i++) {
echo '
$sanitizer = new TextSanitizer();
$details = $sanitizer->SanitizeHtml($details);
$result=db_query_params("UPDATE news_bytes SET is_approved='1', post_date=$1,
-summary=$2, details=$3 WHERE id=$4", array(time(), htmlspecialchars($summary), addslashes($details), $id));
+summary=$2, details=$3 WHERE id=$4", array(time(), htmlspecialchars($summary), $details, $id));
if (!$result || db_affected_rows($result) < 1) {
$feedback .= _('Error On Update:');
} else {
$user =& user_get_object(db_result($result,0,'submitted_by'));
echo '
- <h3>'.sprintf(_('Approve a NewsByte For Project: %1$s'), $group->getPublicName()).'</h3>
+ <h1>'.sprintf(_('Approve a NewsByte For Project: %1$s'), $group->getPublicName()).'</h1>
<p />
<form action="'.getStringFromServer('PHP_SELF').'" method="post">
<input type="hidden" name="for_group" value="'.db_result($result,0,'group_id').'" />
} else {
- exit_error(_('Permission denied.'),sprintf(_('You have to be an admin on the project you are editing or a member of the %s News team.'), $GLOBALS['sys_name']));
+ exit_error(_('Permission denied.'),sprintf(_('You have to be an admin on the project you are editing or a member of the %s News team.'), forge_get_config ('forge_name')));
}
exit_error('Error',$f->getErrorMessage());
}
$new_id=$f->getID();
-
$sql='INSERT INTO news_bytes (group_id,submitted_by,is_approved,post_date,forum_id,summary,details)
VALUES ($1, $2, $3, $4, $5, $6, $7)';
$result=db_query_params($sql,
/*
Show the submit form
*/
- news_header(array('title'=>_('News')));
+ news_header(array('title'=>_('Submit News')));
+ echo '<h1>' . _('Submit News') . '</h1>';
$jsfunc = notepad_func();
$group = group_get_object($group_id);
echo '
<p>
- '. sprintf(_('You can post news about your project if you are an admin on your project. You may also post "help wanted" notes if your project needs help.</p><p>All posts <b>for your project</b> will appear instantly on your project summary page. Posts that are of special interest to the community will have to be approved by a member of the %1$s news team before they will appear on the %1$s home page.</p><p>You may include URLs, but not HTML in your submissions.</p><p>URLs that start with http:// are made clickable.'), $GLOBALS['sys_name']) .'</p>' . $jsfunc .
+ '. sprintf(_('You can post news about your project if you are an admin on your project. You may also post "help wanted" notes if your project needs help.</p><p>All posts <b>for your project</b> will appear instantly on your project summary page. Posts that are of special interest to the community will have to be approved by a member of the %1$s news team before they will appear on the %1$s home page.</p><p>You may include URLs, but not HTML in your submissions.</p><p>URLs that start with http:// are made clickable.'), forge_get_config ('forge_name')) .'</p>' . $jsfunc .
'
<form action="'.getStringFromServer('PHP_SELF').'" method="post">
<input type="hidden" name="group_id" value="'.$group_id.'" />
<strong>'._('Subject').':</strong>'.utils_requiredField().'<br />
<input type="text" name="summary" value="" size="60" maxlength="60" /></p>
<p>
- <strong>'._('Details').':</strong>'.notepad_button('document.forms[1].details').utils_requiredField().'<br />';
+ <strong>'._('Details').':</strong>'.notepad_button('document.forms[1].details').utils_requiredField().'</p>';
$GLOBALS['editor_was_set_up']=false;
$params = array() ;
people_header(array('title'=>_('Help Wanted System')));
- printf(_('<p>The %1$s Project Help Wanted board is for non-commercial, project volunteer openings. Commercial use is prohibited.</p><p>Project listings remain live for two weeks, or until closed by the poster, whichever comes first. (Project administrators may always re-post expired openings.)</p><p>Browse through the category menu to find projects looking for your help.</p><p>If you\'re a project admin, log in and submit help wanted requests through your project administration page.</p><p>To suggest new job categories, submit a request via the support manager.</p>'), $GLOBALS['sys_name']);
+ printf(_('<p>The %1$s Project Help Wanted board is for non-commercial, project volunteer openings. Commercial use is prohibited.</p><p>Project listings remain live for two weeks, or until closed by the poster, whichever comes first. (Project administrators may always re-post expired openings.)</p><p>Browse through the category menu to find projects looking for your help.</p><p>If you\'re a project admin, log in and submit help wanted requests through your project administration page.</p><p>To suggest new job categories, submit a request via the support manager.</p>'), forge_get_config ('forge_name'));
echo people_show_category_table();
$title_arr[]=_('Title');
$title_arr[]=_('Category');
$title_arr[]=_('Date Opened');
- $title_arr[]= sprintf(_('%1$s project'), $GLOBALS['sys_name']);
+ $title_arr[]= sprintf(_('%1$s project'), forge_get_config ('forge_name'));
$return = $GLOBALS['HTML']->listTableTop ($title_arr);
--- /dev/null
+../../plugins/mediawiki/www
\ No newline at end of file
*/
/*
- Project/Task Manager
+ Tasks
By Tim Perdue, Sourceforge, 11/99
Heavy rewrite by Tim Perdue April 2000
*/
/*
- Project/Task Manager
+ Tasks
By Tim Perdue, Sourceforge, 11/99
Heavy rewrite by Tim Perdue April 2000
<p> </p>
-<?php printf(_('<strong><span style="text-decoration:underline">Add New Virtual Host</span></strong><p>To add a new virtual host - simply point a <strong>CNAME</strong> for <em>yourhost.org</em> at <strong>%1$s.%2$s</strong>. %3$s does not currently host mail (i.e. cannot be an MX) or DNS</strong>. <p>Clicking on "create" will schedule the creation of the Virtual Host. This will be synced to the project webservers - such that <em>yourhost.org</em> will display the material at <em>%4$s.%5$s</em>.'), $group->getUnixName(), $GLOBALS['sys_default_domain'], $GLOBALS['sys_name'], $group->getUnixName(), $GLOBALS['sys_default_domain']) ?>
+<?php printf(_('<strong><span style="text-decoration:underline">Add New Virtual Host</span></strong><p>To add a new virtual host - simply point a <strong>CNAME</strong> for <em>yourhost.org</em> at <strong>%1$s.%2$s</strong>. %3$s does not currently host mail (i.e. cannot be an MX) or DNS</strong>. <p>Clicking on "create" will schedule the creation of the Virtual Host. This will be synced to the project webservers - such that <em>yourhost.org</em> will display the material at <em>%4$s.%5$s</em>.'), $group->getUnixName(), $GLOBALS['sys_default_domain'], forge_get_config ('forge_name'), $group->getUnixName(), $GLOBALS['sys_default_domain']) ?>
<p>
<form name="new_vhost" action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group->getID().'&createvhost=1'; ?>" method="post">
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
require_once('../env.inc.php');
require_once $gfwww.'include/pre.php';
site_project_header(array('title'=>_('Project Member List'),'group'=>$group_id,'toptab'=>'memberlist'));
-echo _('<p>If you would like to contribute to this project by becoming a developer, contact one of the project admins, designated in bold text below.</p>');
+echo '<h1>' . _('Project Member List') . '</h1>';
+
+echo '<p>' . _('If you would like to contribute to this project by becoming a developer, contact one of the project admins, designated in bold text below.') . '</p>';
$title_arr=array();
$title_arr[]=_('Member');
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
require_once('../env.inc.php');
require_once $gfwww.'include/pre.php';
require_once $gfcommon.'include/GroupJoinRequest.class.php';
site_project_header(array('title'=>_('Request to join project'),'group'=>$group_id,'toptab'=>'summary'));
+echo '<h1>' . _('Request to join project') . '</h1>';
+
?>
<p><?php
$nbadmins = count($group->getAdmins());
$start = $z[count($z)-1];
}
+// Find a default SPAN value depending on the number of days.
+$delta=($end - $start)/24/60/60;
+if (!$SPAN) {
+ $SPAN = 1;
+ if ($delta > 60) $SPAN=2;
+ if ($delta > 365) $SPAN=3;
+}
+
site_project_header(array('title'=>_('Project Activity').' '.$group->getPublicName(),'group'=>$group_id,'toptab'=>'home'));
$area = util_ensure_value_in_set ($area, array ('tracker','forum','docman','taskman','downloads')) ;
if ($sys_project_reg_restricted) {
session_require(array('group'=>'1','admin_flags'=>'A'),
sprintf (_('Project registration is restricted on %s, and only administrators can create new projects.'),
- $sys_name));
+ forge_get_config ('forge_name')));
} elseif (!session_loggedin()) {
exit_not_logged_in();
}
?>
- <p><?php printf(_('Your project has been submitted to the %1$s administrators. Within 72 hours, you will receive notification of their decision and further instructions.<p/>Thank you for choosing %1$s'), $GLOBALS['sys_name'])?>
+ <p><?php printf(_('Your project has been submitted to the %1$s administrators. Within 72 hours, you will receive notification of their decision and further instructions.<p/>Thank you for choosing %1$s'), forge_get_config ('forge_name'))?>
</p>
<?php
<input size="40" maxlength="40" type="text" name="full_name" value="<?php echo htmlspecialchars(stripslashes($full_name)); ?>"/>
-<?php printf(_('<h3>2. Project Purpose And Summarization</h3><strong> Please provide detailed, accurate description of your project and what %1$s resources and in which way you plan to use. This description will be the basis for the approval or rejection of your project\'s hosting on %1$s, and later, to ensure that you are using the services in the intended way. This description will not be used as a public description of your project. It must be written in English.</strong>'), $GLOBALS['sys_name'])?>
+<?php printf(_('<h3>2. Project Purpose And Summarization</h3><strong> Please provide detailed, accurate description of your project and what %1$s resources and in which way you plan to use. This description will be the basis for the approval or rejection of your project\'s hosting on %1$s, and later, to ensure that you are using the services in the intended way. This description will not be used as a public description of your project. It must be written in English.</strong>'), forge_get_config ('forge_name'))?>
<p/>
<textarea name="purpose" cols="70" rows="10">
<?php echo htmlspecialchars(stripslashes($purpose)); ?>
//$graph->SetMargin(10,10,25,10);
$graph->title->Set("Projects Added ".$report->getSpanName()
." (".date('m/d/Y',$report->getStartDate()) ."-". date('m/d/Y',$report->getEndDate()) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
//$graph->xaxis-> title->Set("Date" );
//$graph->yaxis-> title->Set("Number" );
//$graph->SetMargin(10,10,25,10);
$graph->title->Set("Cumulative Projects ".$report->getSpanName()
." (".date('m/d/Y',$report->getStartDate()) ."-". date('m/d/Y',$report->getEndDate()) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
//$graph->xaxis-> title->Set("Date" );
//$graph->yaxis-> title->Set("Number" );
session_require( array('group'=>$sys_stats_group) );
+$feedback = htmlspecialchars(getStringFromRequest('feedback'));
+
echo report_header('Main Page');
?>
$graph->Add( $lineplot4 );
// Legends
- $lineplot4 ->SetLegend("Docs");
+ $lineplot4 ->SetLegend(convert_unicode(_('Docs')));
} elseif ($area=='downloads') {
$graph->Add( $lineplot4 );
// Legends
- $lineplot4 ->SetLegend("Downloads");
+ $lineplot4 ->SetLegend(convert_unicode(_('Downloads')));
} elseif ($area=='taskman') {
$graph->Add( $lineplot6 );
// Legends
- $lineplot5 ->SetLegend("Task Open");
- $lineplot6 ->SetLegend("Task Close");
+ $lineplot5 ->SetLegend(convert_unicode(_('Task Open')));
+ $lineplot6 ->SetLegend(convert_unicode(_('Task Close')));
+
+} elseif ($area=='pageviews') {
+
+ // Create the PageViews plot
+ $ydata4 =& $report->getPageViews();
+ $lineplot4 =new LinePlot($ydata4);
+ $lineplot4 ->SetColor("blue");
+ $graph->Add( $lineplot4 );
+
+ // Legends
+ $lineplot4 ->SetLegend(convert_unicode(_('Page Views')));
+
+} else {
+ /*
+ * The goal of this code is to get values from the activity hook to compute stats without the
+ * need of another specific hook or another dedicated tables.
+ *
+ * So, values are requested to the hook and stored in $results array.
+ * After, the sum is made according to the chosen interval
+ * And then, the sum is stored in the ydata array.
+ */
+
+ $results = array();
+ $ids = array();
+ $texts = array();
+
+ $hookParams['group'] = $g_id ;
+ $hookParams['results'] = &$results;
+ $hookParams['show'] = array();
+ $hookParams['begin'] = $start;
+ $hookParams['end'] = $end;
+ $hookParams['ids'] = &$ids;
+ $hookParams['texts'] = &$texts;
+ plugin_hook ("activity", $hookParams) ;
+
+ if ($SPAN == REPORT_TYPE_DAILY) {
+ $interval = REPORT_DAY_SPAN;
+ } elseif ($SPAN == REPORT_TYPE_WEEKLY) {
+ $interval = REPORT_WEEK_SPAN;
+ } elseif ($SPAN == REPORT_TYPE_MONTHLY) {
+ $interval = REPORT_MONTH_SPAN;
+ }
+
+ print "start: $start ".date('r',$start)."<br>";
+ print " end: $end ".date('r', $end)."<br>";
+
+ $sum = array();
+ $starting_date = $start;
+ foreach ($results as $arr) {
+ $d = $arr['activity_date'];
+ $col = intval(($d - $starting_date)/$interval);
+ $col_date = $starting_date+$col*$interval;
+ $sum[$col_date]++;
+ }
+
+ // Now, stores the values in the ydata array for the graph.
+ $ydata = array();
+ $i = 0;
+ foreach ($report->getDates() as $d) {
+ $ydata[$i++] = isset($sum[strtotime($d)]) ? $sum[strtotime($d)] : 0;
+ }
+
+ $lineplot =new LinePlot($ydata);
+ $lineplot->SetColor("violet");
+ $graph->Add( $lineplot );
+
+ // Legends
+ $lineplot->SetLegend($area);
+
+// var_dump($report->getDates());
+// var_dump($ydata);
+// exit;
}
//
$graph->title->Set("Project Activity For: ".util_unconvert_htmlspecialchars($g->getPublicName()).
" (".date('Y-m-d',$report->getStartDate()) ." to ". date('Y-m-d',$report->getEndDate()) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
//$graph->xaxis-> title->Set("Date" );
//$graph->yaxis-> title->Set("Number" );
$arr['user']='By User';
$graph->title->Set("Time Report ".$arr[$type]." (".date('m/d/Y',$start) ."-". date('m/d/Y',$end) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
report_pie_arr($report->labels,$report->getData());
}
}
-
+
echo '<h2>';
echo _('Reporting System Initialization');
echo '</h2>';
$graph->Add( $lineplot2 );
// Legends
- $lineplot->SetLegend (convert_unicode(_('Tracker Items Opened')));
- $lineplot2 ->SetLegend(convert_unicode(_('Tracker Items Closed')));
+ $lineplot->SetLegend (convert_unicode(_('Tracker Items Opened')));
+ $lineplot2 ->SetLegend(convert_unicode(_('Tracker Items Closed')));
} elseif ($area=='forum') {
// Titles
//
$graph->title->Set("Site-Wide Activity (".date('m/d/Y',$report->getStartDate()) ."-". date('m/d/Y',$report->getEndDate()) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
//$graph->xaxis-> title->Set("Date" );
//$graph->yaxis-> title->Set("Number" );
$arr['user']='By User';
$graph->title->Set("Time Report ".$arr[$type]." (".date('m/d/Y',$start) ."-". date('m/d/Y',$end) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
report_pie_arr($report->labels,$report->getData());
// Setup the titles
$graph->title->Set("Hours Recorded (".date('m/d/Y',$start) ."-". date('m/d/Y',$end) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
$graph->xaxis->title->Set("Date");
$graph->yaxis->title->Set("Hours");
session_require( array('group'=>$sys_stats_group,'A') );
-$time_code = getStringFromRequest('time_code');
-$category_name = getStringFromRequest('category_name');
+$time_code = getIntFromRequest('time_code');
+$category_name = trim(getStringFromRequest('category_name'));
if (getStringFromRequest('submit')) {
if (getStringFromRequest('add')) {
$arr[6]='Tasks';
$arr[7]='Downloads';
$graph->title->Set($arr[$datatype]." By Project (".date('m/d/Y',$start) ."-". date('m/d/Y',$end) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
// Create the tracker open plot
report_pie_arr(util_result_column_to_array($res,0), util_result_column_to_array($res,1));
$arr['resolution']='By Resolution';
$arr['assignee']='By Assignee';
$graph->title->Set($arr[$area]." (".date('m/d/Y',$start) ."-". date('m/d/Y',$end) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
// Create the tracker open plot
report_pie_arr(util_result_column_to_array($res,0), util_result_column_to_array($res,1));
echo report_header(_('User Activity'));
$abc_array = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
-echo _('Choose the <strong>First Letter</strong> of the name of the person you wish to report on.<p>');
+echo '<p>';
+echo _('Choose the <strong>First Letter</strong> of the name of the person you wish to report on.');
+echo '</p>';
for ($i=0; $i<count($abc_array); $i++) {
if ($sw == $abc_array[$i]) {
echo '<strong>'.$abc_array[$i].'</strong> ';
</tr></table>
</form>
<?php if ($dev_id) { ?>
- <img src="useract_graph.php?<?php echo "SPAN=$SPAN&start=$start&end=$end&dev_id=$dev_id&area=$area"; ?>" width="640" height="480">
<p>
+ <img src="useract_graph.php?<?php echo "SPAN=$SPAN&start=$start&end=$end&dev_id=$dev_id&area=$area"; ?>" width="640" height="480">
+ </p>
<?php
}
//
$graph->title->Set("User Activity For: ".$u->getRealName()
." (".date('m/d/Y',$report->getStartDate()) ."-". date('m/d/Y',$report->getEndDate()) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
//$graph->xaxis-> title->Set("Date" );
//$graph->yaxis-> title->Set("Number" );
//$graph->SetMargin(10,10,25,10);
$graph->title->Set("Users Added ".$report->getSpanName()
." (".date('m/d/Y',$report->getStartDate()) ."-". date('m/d/Y',$report->getEndDate()) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
//$graph->xaxis-> title->Set("Date" );
//$graph->yaxis-> title->Set("Number" );
//$graph->SetMargin(10,10,25,10);
$graph->title->Set("Cumulative Users ".$report->getSpanName()
." (".date('m/d/Y',$report->getStartDate()) ."-". date('m/d/Y',$report->getEndDate()) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
//$graph->xaxis-> title->Set("Date" );
//$graph->yaxis-> title->Set("Number" );
$n[]=_('Any');
$n[]=_('Open');
-$n[]=_('closed');
+$n[]=_('Closed');
$l[]='1,2';
$l[]='1';
$end,
db_int_array_to_any_clause ($tstat)));
if (!$res || db_numrows($res) < 1) {
- echo _('No matches found').db_error();
+ echo '<div class="feedback">' . _('No matches found').db_error() . '</div>';
} else {
$tableHeaders = array(
_('Name'),
}
echo '
</td>
- <td colspan="2">'.util_make_link ('/tracker/?func=detail&atid='.db_result($res2,$j,'group_artifact_id'). '&group_id='.db_result($res2,$j,'group_id'). '&aid='.db_result($res2,$j,'artifact_id'), db_result($res2,$j,'summary')).'
+ <td colspan="2">'.util_make_link ('/tracker/?func=detail&atid='.db_result($res2,$j,'group_artifact_id'). '&group_id='.db_result($res2,$j,'group_id'). '&aid='.db_result($res2,$j,'artifact_id'), db_result($res2,$j,'summary')).'
</td>
</tr>';
}
echo $HTML->listTableBottom ();
} elseif ($dev_id) { ?>
- <img src="usertime_graph.php?<?php echo "start=$start&end=$end&dev_id=$dev_id&type=$type"; ?>" width="640" height="480">
<p>
+ <img src="usertime_graph.php?<?php echo "start=$start&end=$end&dev_id=$dev_id&type=$type"; ?>" width="640" height="480" alt="" />
+ </p>
<?php
}
$arr['subproject']='By Subproject';
$graph->title->Set("Time Report ".$arr[$type]." (".date('m/d/Y',$start) ."-". date('m/d/Y',$end) .")");
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
// Create the tracker open plot
//$data =& $report->getData();
//$graph->title->Set("Commits By User (".date('m/d/Y',$start) ."-". date('m/d/Y',$end) .")");
$graph->title->Set(utf8_decode(_("Commits By User")." (".strftime('%x',$start) ." - ". strftime('%x',$end) .")"));
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
// Create the tracker open plot
report_pie_arr(util_result_column_to_array($res,0), util_result_column_to_array($res,1), 0);
//$graph->SetMargin(10,10,25,10);
$graph->title->Set($g->getPublicName()." Commits Over Time: ".$report->start_date." - ".$report->end_date);
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
//$graph->xaxis-> title->Set("Date" );
//$graph->yaxis-> title->Set("Number" );
$sectionarray = $this->getSectionArray();
$this->handleTransferInformation($sectionarray);
- $GLOBALS['HTML']->advancedSearchBox($sectionarray, $this->groupId, $this->words, $this->isExact);
+ echo $this->getAdvancedSearchBox($sectionarray, $this->groupId, $this->words, $this->isExact);
}
/**
}
return $sections;
}
+
+ function getAdvancedSearchBox($sectionsArray, $group_id, $words, $isExact) {
+ $res = '';
+ // display the searchmask
+ $res .= '
+ <form class="ff" name="advancedsearch" action="'.getStringFromServer('PHP_SELF').'" method="post">
+ <input class="ff" type="hidden" name="search" value="1"/>
+ <input class="ff" type="hidden" name="group_id" value="'.$group_id.'"/>
+ <div align="center"><br />
+ <table border="0">
+ <tr class="ff">
+ <td class="ff" colspan ="2">
+ <input class="ff" type="text" size="60" name="words" value="'.stripslashes(htmlspecialchars($words)).'" />
+ <input class="ff" type="submit" name="submitbutton" value="'._('Search').'" />
+ </td>
+ </tr>
+ <tr class="ff">
+ <td class="ff" valign="top">
+ <input class="ff" type="radio" name="mode" value="'.SEARCH__MODE_AND.'" '.($isExact ? 'checked="checked"' : '').' />'._('with all words').'
+ </td>
+ <td class="ff">
+ <input class="ff" type="radio" name="mode" value="'.SEARCH__MODE_OR.'" '.(!$isExact ? 'checked="checked"' : '').' />'._('with one word').'
+ </td>
+ </tr>
+ </table><br /></div>'
+ . $this->createSubSections($sectionsArray) .'
+ </form>';
+
+
+ //create javascript methods for select none/all
+ $res .= '
+ <script type="text/javascript">
+ <!-- method for disable/enable checkboxes
+ function setCheckBoxes(parent, checked) {
+
+
+ for (var i = 0; i < document.advancedsearch.elements.length; i++)
+ if (document.advancedsearch.elements[i].type == "checkbox")
+ if (document.advancedsearch.elements[i].name.substr(0, parent.length) == parent)
+ document.advancedsearch.elements[i].checked = checked;
+ }
+ //-->
+ </script>
+ ';
+ return $res;
+ }
+
+ function createSubSections($sectionsArray) {
+ global $group_subsection_names;
+
+ $countLines = 0;
+ foreach ($sectionsArray as $section) {
+ if(is_array($section)) {
+ $countLines += (3 + count ($section));
+ } else {
+ //2 lines one for section name and one for checkbox
+ $countLines += 3;
+ }
+ }
+
+ $maxCol = 3;
+ $breakLimit = ceil($countLines/$maxCol);
+ $break = $breakLimit;
+ $countLines = 0;
+ $countCol = 1;
+
+ $return = '
+ <table width="100%" border="0" cellspacing="0" cellpadding="1">
+ <tr class="tableheader">
+ <td>
+ <table width="100%" cellspacing="0" border="0">
+ <tr class="tablecontent">
+ <!--<td colspan="2">'._('Search in').':</td-->
+ <td align="right">'._('Select').' <a href="javascript:setCheckBoxes(\'\', true)">'._('all').'</a> / <a href="javascript:setCheckBoxes(\'\', false)">'._('none').'</a></td>
+ </tr>
+ <tr class="tablecontent">
+ <td colspan="3"> </td>
+ </tr>
+ <tr valign="top" class="tablecontent align-center">
+ <td>';
+ foreach($sectionsArray as $key => $section) {
+ $oldcountlines = $countLines;
+ if (is_array($section)) {
+ $countLines += (3 + count ($section));
+ } else {
+ $countLines += 3;
+ }
+
+ if ($countLines >= $break) {
+ // if we are closer to the limit with this one included, then
+ // it's better to include it.
+ if (($countCol < $maxCol) && ($countLines - $break) >= ($break - $oldcountlines)) {
+ $return .= '</td><td>';
+ $countCol++;
+ $break += $breakLimit;
+ }
+ }
+
+ $return .= '<table width="90%" border="0" cellpadding="1" cellspacing="0">
+ <tr><td><table width="100%" border="0" cellspacing="0" cellpadding="3">
+ <tr>
+ <td cellspacing="0">
+ <a href="#'.$key.'">'.$group_subsection_names[$key].'</a>'
+ .' </td>
+ <td align="right">'
+ ._('Select').' <a href="javascript:setCheckBoxes(\''.$key.'\', true)">'._('all').'</a> / <a href="javascript:setCheckBoxes(\''.$key.'\', false)">'._('none').'</a>
+ </td>
+ </tr>
+ <tr class="tablecontent">
+ <td colspan="2">';
+
+ if (!is_array($section)) {
+ $return .= ' <input type="checkbox" name="'.urlencode($key).'"';
+ if (isset($GLOBALS[urlencode($key)]))
+ $return .= ' checked="checked" ';
+ $return .= ' /></input>'.$group_subsection_names[$key].'<br />';
+ }
+ else
+ foreach($section as $underkey => $undersection) {
+ $return .= ' <input type="checkbox" name="'.urlencode($key.$underkey).'"';
+ if (isset($GLOBALS[urlencode($key.$underkey)]))
+ $return .= ' checked="checked" ';
+ $return .= ' />'.$undersection.'<br />';
+
+ }
+
+ $return .= ' </td>
+ </tr>
+ </table></td></tr></table><br />';
+
+ if ($countLines >= $break) {
+ if (($countLines - $break) < ($break - $countLines)) {
+ $return .= '</td><td width="33%">';
+ $break += $breakLimit;
+ }
+ }
+ }
+
+ return $return.' </td>
+ </tr>
+ </table></td></tr></table>';
+
+ }
+
}
// Local Variables:
$to=eregi_replace('_maillink_','@',$toaddress);
$to = util_remove_CRLF($to);
util_send_message($to,stripslashes($subject),stripslashes($body),$email,'',$name);
- $HTML->header(array('title'=>$GLOBALS['sys_name'].' ' ._('Contact') ));
+ $HTML->header(array('title'=>forge_get_config ('forge_name').' ' ._('Contact') ));
echo '<p>'._('Message has been sent').'.</p>';
$HTML->footer(array());
exit;
$to=db_result($result,0,'email');
$to = util_remove_CRLF($to);
util_send_message($to,stripslashes($subject),stripslashes($body),$email,'',$name);
- $HTML->header(array('title'=>$GLOBALS['sys_name'].' '._('Contact')));
+ $HTML->header(array('title'=>forge_get_config ('forge_name').' '._('Contact')));
echo '<p>'._('Message has been sent').'</p>';
$HTML->footer(array());
exit;
}
$subject = getStringFromRequest('subject');
-$HTML->header(array('title'=>$GLOBALS['sys_name'].' Staff'));
+$HTML->header(array('title'=>forge_get_config ('forge_name').' Staff'));
?>
// require you to be a member of the sfstats group (group_id = 11084)
session_require( array('group'=>$sys_stats_group) );
-$HTML->header(array('title'=>sprintf(_('%1$s Site Statistics'), $GLOBALS['sys_name'])));
+$HTML->header(array('title'=>sprintf(_('%1$s Site Statistics'), forge_get_config ('forge_name'))));
echo "\n\n";
+print '<h1>'._('Sitewide Statistics Graphs').'</h1>' . "\n";
print '<div align="center">' . "\n";
-print '<h3>'._('Sitewide Statistics Graphs').'</h3><br />' . "\n";
?>
<hr />
// require you to be a member of the sfstats group
session_require( array('group'=>$sys_stats_group) );
-$HTML->header(array('title' => sprintf(_('%1$s I18n Statistics'), $GLOBALS['sys_name'])));
-echo "<h1>".sprintf(_('Languages Distributions'), $GLOBALS['sys_name'])." </h1>";
+$HTML->header(array('title' => sprintf(_('%1$s I18n Statistics'), forge_get_config ('forge_name'))));
+echo "<h1>".sprintf(_('Languages Distributions'), forge_get_config ('forge_name'))." </h1>";
echo $GLOBALS['HTML']->listTableTop(array(_('Language')."",_('Users')."","%"));
$total=db_result(db_query_params('SELECT count(user_name) AS total FROM users', array()),0,'total');
// require you to be a member of the sfstats group
session_require( array('group'=>$sys_stats_group) );
-$HTML->header(array('title'=>sprintf(_('%1$s Site Statistics'), $GLOBALS['sys_name'])));
+$HTML->header(array('title'=>sprintf(_('%1$s Site Statistics'), forge_get_config ('forge_name'))));
//
// BEGIN PAGE CONTENT CODE
<?php
stats_site_aggregate();
-print '<br /><br />';
+
stats_site_projects_daily( 7 );
-print '<br /><br />';
+
stats_site_projects_monthly( );
-print '<br /><br />' . "\n";
-echo '<p/>'._('Other statistics:<ul><li><a href="i18n.php">I18n Statistics</a></li></ul>');
+
+echo '<h2>'._('Other statistics').'</h2>';
+echo '<ul><li><a href="i18n.php">'.("I18n Statistics").'</a></li></ul>';
//
// END PAGE CONTENT CODE
// require you to be a member of the sfstats group (group_id = 11084)
session_require( array('group'=>$sys_stats_group) );
-$HTML->header(array('title'=>sprintf(_('%1$s Site Statistics'), $GLOBALS['sys_name'])));
+$HTML->header(array('title'=>sprintf(_('%1$s Site Statistics'), forge_get_config ('forge_name'))));
?>
-<div align="center">
-<h3><?php echo _('Project Statistical Comparisons'); ?></h3><br />
-</div>
+<h1><?php echo _('Project Statistical Comparisons'); ?></h1>
<hr />
if ( db_numrows( $res ) > 1 ) {
?>
- <table width="100%" cellpadding="0" cellspacing="0" border="1">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top" align="right" class="tableheading">
<td><strong><?php echo _('Group Name'); ?></strong></td>
if ( ($valid_days = db_numrows( $res )) > 1 ) {
?>
- <p><strong><?php printf(_('Statistics for the past %1$s days'), $valid_days); ?></strong></p>
+ <h2><?php printf(_('Statistics for the past %1$s days'), $valid_days); ?></h2>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top" align="right">
<td><strong><?php echo _('Day'); ?></strong></td>
echo db_error();
- // if there are any weeks, we have valid data.
+ // if there are any weeks, we have valid data.
if ( ($valid_months = db_numrows( $res )) > 1 ) {
?>
- <p><strong><?php printf(_('Statistics for the past %1$s months'), $valid_months); ?></strong></p>
+ <h2><?php printf(_('Statistics for the past %1$s months'), $valid_months); ?></h2>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top" align="right">
<td><strong><?php echo _('Month'); ?>Month</strong></td>
?>
- <p><strong><?php echo _('Current Aggregate Statistics for All Time'); ?></strong></p>
+ <h2><?php echo _('Current Aggregate Statistics for All Time'); ?></h2>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
$sh = new SurveyHtml();
$sh->header(array('title'=>_('Survey Administration')));
+echo '<h1>'._('Survey Administration').'</h1>';
+
if (!session_loggedin() || !user_ismember($group_id,'A')) {
- echo '<h1>'._('Permission denied').'</h1>';
+ echo '<div class="error">'._('Permission denied').'</div>';
$sh->footer(array());
exit;
}
/* Create a Survey Question for general purpose */
$sq = new SurveyQuestion($g, $question_id);
if (!$sq || !is_object($sq)) {
- echo "<h3>"._('Error'). ' Can not get Survey Question' ."</h3>";
+ echo '<div class="error">'._('Error'). ' ' . _('Cannot get Survey Question') ."</div>";
} else if ( $sq->isError()) {
- echo "<h3>"._('Error'). $sq->getErrorMessage() ."</h3>";
+ echo '<div class="error">'._('Error'). $sq->getErrorMessage() ."</div>";
}
/* Delete a question */
/* Error */
if ( $sq->isError()) {
$msg = _('Delete failed').' '.$sq->getErrorMessage();
+ echo '<div class="error">' .$msg ."</div>";
} else {
$msg = _('Delete successful');
+ echo '<div class="feedback">' .$msg ."</div>";
}
- echo "<h3>".$msg ."</h3>";
} else if (getStringFromRequest('post')=="Y") {
/* Modification */
if ($question_id) {
$sq->update($question, $question_type);
- $msg = _('UPDATE SUCCESSFUL');
+ $msg = _('Update Successful');
} else { /* adding new question */
$question = getStringFromRequest('question');
if (!form_key_is_valid(getStringFromRequest('form_key'))) {
if ( $sq->isError()) {
$msg = $sq->getErrorMessage();
form_release_key(getStringFromRequest("form_key"));
+ echo '<div class="error">' .$msg ."</div>";
+ } else {
+ echo '<div class="feedback">' .$msg ."</div>";
}
-
- echo "<h3>".$msg ."</h3>";
/* Add now Question */
$sq = false;
*/
echo($sh->showAddQuestionForm($sq));
-/* Show existing questions
+/* Show existing questions (if any)
*/
$sqf = new SurveyQuestionFactory($g);
$sqs = & $sqf->getSurveyQuestions();
$user_id = user_getid();
/* Show header */
-$sh = new SurveyHtml();
+$sh = new SurveyHtml();
$sh->header(array('title'=>_('Survey')));
+echo '<h1>'.sprintf(_('Surveys for %1$s'), $g->getPublicName()) .'</h1>';
/* Show list of Servey */
$sf = new SurveyFactory($g);
$ss = & $sf->getSurveys();
if (!$ss) {
- echo '<h2>' . (_('No Survey is found')) . '</h2>';
+ echo '<div class="warning_msg">' . (_('No Survey is found')) . '</div>';
} else {
echo($sh->showSurveys($ss, 0, 0, 1, 1, 1, 0));
}
require_once $gfwww.'include/vote_function.php';
require_once $gfwww.'survey/survey_utils.php';
-echo $HTML->header(array('title'=>_('Survey')));
+echo $HTML->header(array('title'=>_('Survey Privacy')));
?>
<?php echo _('<p>The information collected in these surveys will never be sold to third parties or used to solicit you to purchase any goods or services.</p><p>This information is being gathered to build a profile of the projects and developers being surveyed. That profile will help visitors to the site understand the quality of a given project.</p><p>The ID\'s of those who answer surveys are suppressed and not viewable by project administrators or the public or third parties.</p><p>The information gathered is used only in aggregate form, not to single out specific users or developers.</p><p>If any changes are made to this policy, it will affect only future data that is collected and the user will of course have the ability to \'opt-out\'.'); ?>
</p>
-<p><strong><?php printf(_('The %1$s Team'), $GLOBALS['sys_name']); ?></strong></p>
+<p><strong><?php printf(_('The %1$s Team'), forge_get_config ('forge_name')); ?></strong></p>
<?php echo $HTML->footer(array()); ?>
<p> </p>
<?php echo _('Regards'); ?>,
<p> </p>
-<strong><?php printf(_('The %1$s Crew'), $GLOBALS['sys_name']); ?></strong>
+<strong><?php printf(_('The %1$s Crew'), forge_get_config ('forge_name')); ?></strong>
<p> </p>
<?php
/*
<table width="100%" cellpadding="5" cellspacing="0" border="0">
<tr><td width="65%" valign="top">
- <h3><?php printf (_('%1$s Terms of Use'), $GLOBALS['sys_name']); ?></h3>
+ <h3><?php printf (_('%1$s Terms of Use'), forge_get_config ('forge_name')); ?></h3>
<p>
<?php printf (_('These are the terms and conditions under which you are allowed to use the %1$s service. They are empty by default, but the administrator(s) of the service can use this page to publish their local requirements if needed.'),
- $GLOBALS['sys_name']) ;
+ forge_get_config ('forge_name')) ;
; ?>
</p>
*/
function headerStart($params) {
if (!$params['title']) {
- $params['title'] = $GLOBALS['sys_name'];
+ $params['title'] = forge_get_config ('forge_name');
} else {
- $params['title'] = $GLOBALS['sys_name'] . ': ' . $params['title'];
+ $params['title'] = forge_get_config ('forge_name') . ': ' . $params['title'];
}
print '<?xml version="1.0" encoding="utf-8"';
?>
<title><?php echo $params['title']; ?></title>
<?php $this->headerLink(); ?>
<?php if (isset($GLOBALS['group_id'])) {
- $activity = '<link rel="alternate" title="'.$GLOBALS['sys_name'].' - New Activity RSS" href="'.
+ $activity = '<link rel="alternate" title="'.forge_get_config ('forge_name').' - New Activity RSS" href="'.
util_make_url ('/export/rss20_activity.php?group_id='.$GLOBALS['group_id']).
'" type="application/rss+xml"/>';
echo $activity;
} else {
echo util_make_link ('/account/login.php',_('Log In'));
echo '<br />';
- if (!$GLOBALS['sys_user_reg_restricted']) {
+ if (!forge_get_config ('user_registration_restricted')) {
echo util_make_link ('/account/register.php',_('New Account'));
echo '<br />';
}
require_once $gfwww.'include/Layout.class.php';
-define('THEME_DIR', util_make_uri ('/themes/gforge'));
-
define('TOP_TAB_HEIGHT', 30);
define('BOTTOM_TAB_HEIGHT', 22);
class Theme extends Layout {
- function Theme() {
- // Parent constructor
- $this->Layout();
-
- $this->imgroot = THEME_DIR.'/images/';
- $this->jsroot = THEME_DIR.'/js/';
- }
-
- /**
- * Layout() - Constructor
- */
- function Layout() {
- // Constructor for parent class...
- if ( file_exists($GLOBALS['sys_custom_path'] . '/index_std.php') ) {
- $this->rootindex = $GLOBALS['sys_custom_path'] . '/index_std.php';
- } else {
- $this->rootindex = $GLOBALS['gfwww'].'index_std.php';
- }
- $this->Error();
- }
-
- /**
- * header() - "steel theme" top of page
- *
- * @param array Header parameters array
- */
- function header($params) {
- if (!isset($params['title'])) {
- $params['title'] = $GLOBALS['sys_name'];
- } else {
- $params['title'] = $GLOBALS['sys_name'] . ': ' . $params['title'];
+ function Theme() {
+ // Parent constructor
+ $this->Layout();
+ $this->doctype = 'strict';
+ $this->cssurls = array(
+ 'http://yui.yahooapis.com/2.6.0/build/reset-fonts-grids/reset-fonts-grids.css',
+ 'http://yui.yahooapis.com/2.6.0/build/base/base-min.css',
+ util_make_url ('/themes/css/fusionforge.css'),
+ $this->cssbaseurl .'theme.css',
+ $this->cssbaseurl .'theme-pages.css',
+ );
}
- print '<?xml version="1.0" encoding="utf-8"?>';
- echo '
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . _('en') . '" lang="' . _('en') . '">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>'. $params['title'] . '</title>
- <link rel="icon" type="image/png" href="'. util_make_uri('/images/icon.png') .'" />
- <link rel="shortcut icon" type="image/png" href="'. util_make_uri('/images/icon.png') .'" />';
-
- echo $this->headerLink();
-
- echo '
- <script type="text/javascript" src="'. util_make_uri('/js/common.js') .'"></script>
- <script type="text/javascript">';
- plugin_hook ("javascript",false);
- echo '</script>';
-
- $this->headerCSS();
-
- echo '
- </head>
- <body id="mydoc">
- ';
-
- $this->bodyHeader($params);
- }
-
- function bodyHeader($params) {
- global $user_guide;
+ function bodyHeader($params) {
+ global $user_guide;
- echo '
+ echo '
<table id="header" class="width-100p100">
<tr>
<td id="header-col1">
<h1>'. util_make_link ('/', html_image('header/top-logo.png',192,54,array('alt'=>'FusionForge Home'))) .'</h1>
</td>
<td id="header-col2">';
- echo $this->searchBox();
- echo '
+ $this->searchBox();
+ echo '
</td>
<td id="header-col3">
';
- if (session_loggedin()) {
- $u =& user_get_object(user_getid());
- echo util_make_link ('/account/logout.php', sprintf("%s (%s)", _('Log Out'), $u->getRealName()), array('class'=>'userlink'));
- echo ' ';
- echo util_make_link ('/account/', _('My Account'), array('class'=>'userlink'));
- } else {
- $url = '/account/login.php';
- if(getStringFromServer('REQUEST_METHOD') != 'POST') {
- $url .= '?return_to=';
- $url .= urlencode(getStringFromServer('REQUEST_URI'));
- }
-
- echo util_make_link ($url, _('Log In'),array('class'=>'userlink'));
- echo ' ';
- if (!$GLOBALS['sys_user_reg_restricted']) {
- echo util_make_link ('/account/register.php', _('New Account'),array('class'=>'userlink'));
- }
- }
-
- plugin_hook ('headermenu', $params);
+ $items = $this->navigation->getUserLinks();
+ for ($j = 0; $j < count($items['titles']); $j++) {
+ $links[] = util_make_link($items['urls'][$j], $items['titles'][$j],
+ array('class'=>'userlink'), true);
+ }
+ echo implode(' | ', $links);
+
+ plugin_hook ('headermenu', $params);
- echo $this->quickNav();
- echo '
+ $this->quickNav();
+ echo '
</td>
</tr>
</table>
<!-- outer tabs -->
';
- echo $this->outerTabs($params);
- echo '<!-- inner tabs -->';
- if (isset($params['group']) && $params['group']) {
- echo $this->projectTabs($params['toptab'],$params['group']);
- }
- echo '<div id="maindiv">
+ echo $this->outerTabs($params);
+ echo '<!-- inner tabs -->';
+ if (isset($params['group']) && $params['group']) {
+ echo $this->projectTabs($params['toptab'],$params['group']);
+ }
+ echo '<div id="maindiv">
';
- }
+ }
- function bodyFooter($params) {
- echo '</div>
+ function bodyFooter($params) {
+ echo '</div>
';
- }
+ }
- function footer($params) {
- echo '
+ function footer($params) {
+ echo '
<!-- PLEASE LEAVE "Powered By FusionForge" on your site -->
<div class="align-right">
- <a href="http://fusionforge.org/">
- <img src="'. util_make_uri ('/images/pow-fusionforge.png') .'" alt="Powered By FusionForge" />
- </a></div>
+ ' . $this->navigation->getPoweredBy() . '
+ </div>
+ ' . $this->navigation->getShowSource() . '
';
- global $sys_show_source;
- if ($sys_show_source) {
- global $SCRIPT_NAME;
- print util_make_link ('/source.php?file=' . $SCRIPT_NAME, _('Show source'), array ("class" => "showsource"));
- }
-
- echo '
+ echo '
</body>
</html>
';
- }
-
- function headerCSS() {
- echo '
- <link href="http://yui.yahooapis.com/2.6.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css" rel="stylesheet" />
- <link href="http://yui.yahooapis.com/2.6.0/build/base/base-min.css" type="text/css" rel="stylesheet" />
- <link rel="stylesheet" type="text/css" href="'. util_make_uri ('/themes/css/fusionforge.css') .'" />
- <link rel="stylesheet" type="text/css" href="'. THEME_DIR .'/css/theme.css" />
- <link rel="stylesheet" type="text/css" href="'. THEME_DIR .'/css/theme-pages.css" />
- ';
+ }
- plugin_hook ('cssfile',$this);
- }
-
- function getRootIndex() {
- return $this->rootindex;
- }
-
- /**
- * boxTop() - Top HTML box
- *
- * @param string Box title
- * @param bool Whether to echo or return the results
- * @param string The box background color
- */
- function boxTop($title, $id = '') {
- $t_result = '
+ /**
+ * boxTop() - Top HTML box
+ *
+ * @param string Box title
+ * @param bool Whether to echo or return the results
+ * @param string The box background color
+ */
+ function boxTop($title, $id = '') {
+ $t_result = '
<div id="' . $this->toSlug($id) . '" class="box-surround">
<div id="'. $this->toSlug($id) . '-title" class="box-title">
<div class="box-title-left">
</div>
<div id="'. $this->toSlug($id) .'-content" class="box-content">
';
- return $t_result;
- }
-
- /**
- * boxMiddle() - Middle HTML box
- *
- * @param string Box title
- * @param string The box background color
- */
- function boxMiddle($title, $id = '') {
- $t_result ='
+ return $t_result;
+ }
+
+ /**
+ * boxMiddle() - Middle HTML box
+ *
+ * @param string Box title
+ * @param string The box background color
+ */
+ function boxMiddle($title, $id = '') {
+ $t_result ='
</div> <!-- class="box-content" -->
<h3 id="title-'. $this->toSlug($id).'" class="box-middle">'.$title.'</h3>
<div class="box-content">
';
- return $t_result;
- }
-
- /**
- * boxBottom() - Bottom HTML box
- *
- */
- function boxBottom() {
- $t_result='
+ return $t_result;
+ }
+
+ /**
+ * boxBottom() - Bottom HTML box
+ *
+ */
+ function boxBottom() {
+ $t_result='
</div>
</div> <!-- class="box-surround" -->
';
- return $t_result;
- }
-
- /**
- * boxGetAltRowStyle() - Get an alternating row style for tables
- *
- * @param int Row number
- */
- function boxGetAltRowStyle($i) {
- if ($i % 2 == 0) {
- return 'class="bgcolor-white"';
- } else {
- return 'class="bgcolor-grey"';
- }
- }
-
- /**
- * listTableTop() - Takes an array of titles and builds the first row of a new table.
- *
- * @param array The array of titles
- * @param array The array of title links
- * @param boolean Whether to highlight or not the entry
- */
- function listTableTop ($title_arr,$links_arr=false,$selected=false) {
- $return = '<table class="width-100p100 listTable';
- if ($selected == true) {
- $return .= ' selected';
- }
- $return .= '">
+ return $t_result;
+ }
+
+ /**
+ * boxGetAltRowStyle() - Get an alternating row style for tables
+ *
+ * @param int Row number
+ */
+ function boxGetAltRowStyle($i) {
+ if ($i % 2 == 0) {
+ return 'class="bgcolor-white"';
+ } else {
+ return 'class="bgcolor-grey"';
+ }
+ }
+
+ /**
+ * listTableTop() - Takes an array of titles and builds the first row of a new table.
+ *
+ * @param array The array of titles
+ * @param array The array of title links
+ * @param boolean Whether to highlight or not the entry
+ */
+ function listTableTop ($title_arr,$links_arr=false,$selected=false) {
+ $return = '<table class="width-100p100 listTable';
+ if ($selected == true) {
+ $return .= ' selected';
+ }
+ $return .= '">
<tr>';
- $count=count($title_arr);
- if ($links_arr) {
- for ($i=0; $i<$count; $i++) {
- $return .= '
+ $count=count($title_arr);
+ if ($links_arr) {
+ for ($i=0; $i<$count; $i++) {
+ $return .= '
<th scope="col"><a class="sortbutton" href="'.util_make_url ($links_arr[$i]).'"><strong>'.$title_arr[$i].'</strong></a></th>';
- }
- } else {
- for ($i=0; $i<$count; $i++) {
- $return .= '
+ }
+ } else {
+ for ($i=0; $i<$count; $i++) {
+ $return .= '
<th scope="col"><strong>'.$title_arr[$i].'</strong></th>';
- }
- }
- return $return.'</tr>';
- }
+ }
+ }
+ return $return.'</tr>';
+ }
- function listTableBottom() {
- return '
+ function listTableBottom() {
+ return '
</table>';
- }
+ }
- function tabGenerator($TABS_DIRS, $TABS_TITLES, $nested=false, $selected=false, $sel_tab_bgcolor='WHITE', $total_width='100%') {
+ function tabGenerator($TABS_DIRS, $TABS_TITLES, $nested=false,
+ $selected=false, $sel_tab_bgcolor='WHITE',
+ $total_width='100%') {
$count=count($TABS_DIRS);
if ($count < 1) {
return;
}
- $return = '
+ $return = '
<!-- start tabs -->
<table class="tabGenerator width-100p100" summary="" ';
- if ($total_width != '100%') {
- $return .= 'style="width:' . $total_width . ';"';
- }
- $return .= ">\n";
- $return .= '<tr>';
+ if ($total_width != '100%') {
+ $return .= 'style="width:' . $total_width . ';"';
+ }
+ $return .= ">\n";
+ $return .= '<tr>';
- $folder = $this->imgroot.($nested ? 'bottomtab-new/' : 'toptab-new/');
-
- $accumulated_width = 0;
- for ($i=0; $i<$count; $i++) {
- $tabwidth = intval(ceil(($i+1)*100/$count)) - $accumulated_width ;
- $accumulated_width += $tabwidth ;
-
- if ($selected == $i) {
- $left_img = $folder.'selected-left.gif';
- $middle_img = $folder.'selected-middle.gif';
- $right_img = $folder.'selected-right.gif';
- $separ_img = $folder.'selected-separator.gif';
- $css_class = $nested ? 'bottomTabSelected' : 'topTabSelected';
- } else {
- $left_img = $folder.'left.gif';
- $middle_img = $folder.'middle.gif';
- $right_img = $folder.'right.gif';
- $separ_img = $folder.'separator.gif';
- $css_class = $nested ? 'bottomTab' : 'topTab';
- }
+ $folder = $this->imgurl.($nested ? 'bottomtab-new/' : 'toptab-new/');
+
+ $accumulated_width = 0;
+ for ($i=0; $i<$count; $i++) {
+ $tabwidth = intval(ceil(($i+1)*100/$count)) - $accumulated_width ;
+ $accumulated_width += $tabwidth ;
+
+ if ($selected == $i) {
+ $left_img = $folder.'selected-left.gif';
+ $middle_img = $folder.'selected-middle.gif';
+ $right_img = $folder.'selected-right.gif';
+ $separ_img = $folder.'selected-separator.gif';
+ $css_class = $nested ? 'bottomTabSelected' : 'topTabSelected';
+ } else {
+ $left_img = $folder.'left.gif';
+ $middle_img = $folder.'middle.gif';
+ $right_img = $folder.'right.gif';
+ $separ_img = $folder.'separator.gif';
+ $css_class = $nested ? 'bottomTab' : 'topTab';
+ }
- $clear_img = $this->imgroot.'clear.png';
-
- $return .= "\n";
-
- // left part
- $return .= '<td class="tg-left">' . "\n";
- $return .= '<div';
- if ($selected == $i) {
- $return .= ' class="selected"';
- }
- $return .= '>';
- $return .= '<div';
+ $clear_img = $this->imgurl.'clear.png';
+
+ $return .= "\n";
+
+ // left part
+ $return .= '<td class="tg-left">' . "\n";
+ $return .= '<div';
+ if ($selected == $i) {
+ $return .= ' class="selected"';
+ }
+ $return .= '>';
+ $return .= '<div';
- if ($nested) {
- $return .= ' class="nested"';
- }
- $return .= '>' . "\n";
- $return .= '</div>';
- $return .= '</div>' . "\n";
- $return .= '</td>' . "\n";
-
- // middle part
- $return .= '<td class="tg-middle" style="width:'.$tabwidth.'%;">' . "\n";
- $return .= '<div';
- if ($selected == $i) {
- $return .= ' class="selected"';
- }
- $return .= '>';
- $return .= '<div';
- if ($nested) {
- $return .= ' class="nested"';
- }
- $return .= '>' . "\n";
- $return .= '<a href="'.$TABS_DIRS[$i].'">'.$TABS_TITLES[$i].'</a>' . "\n";
- $return .= '</div>';
- $return .= '</div>' . "\n";
- $return .= '</td>' . "\n";
-
- // right part
- // if the next tab is not selected, close this tab
- if ($selected != $i+1) {
- $return .= '<td class="tg-right">' . "\n";
- $return .= '<div';
- if ($selected == $i) {
- $return .= ' class="selected"';
- }
- $return .= '>';
- $return .= '<div';
- if ($nested) {
- $return .= ' class="nested"';
- }
- $return .= '>' . "\n";
- $return .= '</div>';
- $return .= '</div>' . "\n";
- $return .= '</td>' . "\n";
- }
- }
+ if ($nested) {
+ $return .= ' class="nested"';
+ }
+ $return .= '>' . "\n";
+ $return .= '</div>';
+ $return .= '</div>' . "\n";
+ $return .= '</td>' . "\n";
+
+ // middle part
+ $return .= '<td class="tg-middle" style="width:'.$tabwidth.'%;">' . "\n";
+ $return .= '<div';
+ if ($selected == $i) {
+ $return .= ' class="selected"';
+ }
+ $return .= '>';
+ $return .= '<div';
+ if ($nested) {
+ $return .= ' class="nested"';
+ }
+ $return .= '>' . "\n";
+ $return .= '<a href="'.$TABS_DIRS[$i].'">'.$TABS_TITLES[$i].'</a>' . "\n";
+ $return .= '</div>';
+ $return .= '</div>' . "\n";
+ $return .= '</td>' . "\n";
+
+ // right part
+ // if the next tab is not selected, close this tab
+ if ($selected != $i+1) {
+ $return .= '<td class="tg-right">' . "\n";
+ $return .= '<div';
+ if ($selected == $i) {
+ $return .= ' class="selected"';
+ }
+ $return .= '>';
+ $return .= '<div';
+ if ($nested) {
+ $return .= ' class="nested"';
+ }
+ $return .= '>' . "\n";
+ $return .= '</div>';
+ $return .= '</div>' . "\n";
+ $return .= '</td>' . "\n";
+ }
+ }
- $return .= '</tr>
+ $return .= '</tr>
</table>
<!-- end tabs -->';
- return $return;
- }
-
- function searchBox() {
- global $words,$forum_id,$group_id,$group_project_id,$atid,$exact,$type_of_search;
+ return $return;
+ }
- if(get_magic_quotes_gpc()) {
- $defaultWords = stripslashes($words);
- } else {
- $defaultWords = $words;
- }
-
- // if there is no search currently, set the default
- if ( ! isset($type_of_search) ) {
- $exact = 1;
- }
- print '
- <form id="searchBox" action="'.util_make_url ('/search/').'" method="get">
- <div>';
- $parameters = array(
- SEARCH__PARAMETER_GROUP_ID => $group_id,
- SEARCH__PARAMETER_ARTIFACT_ID => $atid,
- SEARCH__PARAMETER_FORUM_ID => $forum_id,
- SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id
- );
-
- $searchManager =& getSearchManager();
- $searchManager->setParametersValues($parameters);
- $searchEngines =& $searchManager->getAvailableSearchEngines();
-
- echo '
- <label for="searchBox-words">
- <select name="type_of_search">';
- for($i = 0, $max = count($searchEngines); $i < $max; $i++) {
- $searchEngine =& $searchEngines[$i];
- echo '<option class="ff" value="'.$searchEngine->getType().'"'.( $type_of_search == $searchEngine->getType() ? ' selected="selected"' : '' ).'>'.$searchEngine->getLabel($parameters).'</option>'."\n";
- }
- echo '</select></label>';
+ /**
+ * beginSubMenu() - Opening a submenu.
+ *
+ * @return string Html to start a submenu.
+ */
+ function beginSubMenu () {
+ $return = '
+ <p><strong>';
+ return $return;
+ }
- $parameters = $searchManager->getParameters();
- foreach($parameters AS $name => $value) {
- print '<input class="ff" type="hidden" value="'.$value.'" name="'.$name.'" />';
- }
- print '<input type="text" size="12" id="searchBox-words" name="words" value="'.$defaultWords.'" />';
- print '<input type="submit" name="Search" value="'._('Search').'" />';
+ /**
+ * endSubMenu() - Closing a submenu.
+ *
+ * @return string Html to end a submenu.
+ */
+ function endSubMenu () {
+ $return = '</strong></p>';
+ return $return;
+ }
- if (isset($group_id) && $group_id) {
- print util_make_link ('/search/advanced_search.php?group_id='.$group_id, _('Advanced search'), array('class'=>'userlink'));
- }
- print '</div>';
- print '</form>';
-
- }
-
- function advancedSearchBox($sectionsArray, $group_id, $words, $isExact) {
- // display the searchmask
- print '
- <form class="ff" name="advancedsearch" action="'.getStringFromServer('PHP_SELF').'" method="post">
- <input class="ff" type="hidden" name="search" value="1"/>
- <input class="ff" type="hidden" name="group_id" value="'.$group_id.'"/>
- <div align="center"><br />
- <table border="0">
- <tr class="ff">
- <td class="ff" colspan ="2">
- <input class="ff" type="text" size="60" name="words" value="'.stripslashes(htmlspecialchars($words)).'" />
- <input class="ff" type="submit" name="submitbutton" value="'._('Search').'" />
- </td>
- </tr>
- <tr class="ff">
- <td class="ff" valign="top">
- <input class="ff" type="radio" name="mode" value="'.SEARCH__MODE_AND.'" '.($isExact ? 'checked="checked"' : '').' />'._('with all words').'
- </td>
- <td class="ff">
- <input class="ff" type="radio" name="mode" value="'.SEARCH__MODE_OR.'" '.(!$isExact ? 'checked="checked"' : '').' />'._('with one word').'
- </td>
- </tr>
- </table><br /></div>'
- .$this->createUnderSections($sectionsArray).'
- </form>';
-
-
- //create javascript methods for select none/all
- print '
- <script type="text/javascript">
- <!-- method for disable/enable checkboxes
- function setCheckBoxes(parent, checked) {
-
-
- for (var i = 0; i < document.advancedsearch.elements.length; i++)
- if (document.advancedsearch.elements[i].type == "checkbox")
- if (document.advancedsearch.elements[i].name.substr(0, parent.length) == parent)
- document.advancedsearch.elements[i].checked = checked;
- }
- //-->
- </script>
- ';
+ /**
+ * printSubMenu() - Takes two array of titles and links and builds the contents of a menu.
+ *
+ * @param array The array of titles.
+ * @param array The array of title links.
+ * @return string Html to build a submenu.
+ */
+ function printSubMenu ($title_arr,$links_arr) {
+ $count=count($title_arr);
+ $count--;
+
+ $return = '';
+
+ for ($i=0; $i<$count; $i++) {
+ $return .= util_make_link ($links_arr[$i], $title_arr[$i]) . ' | ';
+ }
+ $return .= util_make_link ($links_arr[$i], $title_arr[$i]);
+ return $return;
+ }
- }
-
- function createUnderSections($sectionsArray) {
- global $group_subsection_names;
- $countLines = 0;
- foreach ($sectionsArray as $section) {
- if(is_array($section)) {
- $countLines += (3 + count ($section));
- } else {
- //2 lines one for section name and one for checkbox
- $countLines += 3;
- }
- }
- $breakLimit = round($countLines/3);
- $break = $breakLimit;
- $countLines = 0;
- $return = '
- <table width="99%" border="0" cellspacing="0" cellpadding="1" style="background-color:'. $this->COLOR_LTBACK2.'">
- <tr class="ff">
- <td class="ff">
- <table width="100%" cellspacing="0" border="0" style="background-color:'. $this->COLOR_LTBACK1.'">
- <tr class="ff" style="font-weight: bold;background-color:'. $this->COLOR_LTBACK2 .'">
- <td class="ff" colspan="2">'._('Search in').'</td>
- <td class="ff" style="text-align:right">'._('Select').' <a href="javascript:setCheckBoxes(\'\', true)">'._('all').'</a> / <a href="javascript:setCheckBoxes(\'\', false)">'._('none').'</a></td>
- </tr>
- <tr class="ff" height="20">
- <td class="ff" colspan="3"> </td>
- </tr>
- <tr class="ff" align="center" valign="top">
- <td class="ff">';
- foreach($sectionsArray as $key => $section) {
- $oldcountlines = $countLines;
- if (is_array($section)) {
- $countLines += (3 + count ($section));
- } else {
- $countLines += 3;
- }
-
- if ($countLines >= $break) {
- //if the next block is so large that shifting it to the next column hits the breakpoint better
- //the second part of statement (behind &&) proofs, that no 4th column is added
- if ((($countLines - $break) >= ($break - $countLines)) && ((($break + $breakLimit)/$breakLimit) <= 3)) {
- $return .= '</td><td class="ff">';
- $break += $breakLimit;
- }
- }
-
- $return .= '<table style="width:90%; background-color:'. $this->COLOR_LTBACK2.'">
- <tr class="ff">
- <td class="ff">
- <table style="width:100%;">
- <tr class="ff" style="background-color:'. $this->COLOR_LTBACK2 .'; font-weight: bold">
- <td class="ff">
- <a href="#'.$key.'">'.$group_subsection_names[$key].'</a>'
- .' </td>
- <td class="ff" style="text-align:right">'
- ._('Select').' <a href="javascript:setCheckBoxes(\''.$key.'\', true)">'._('all').'</a> / <a href="javascript:setCheckBoxes(\''.$key.'\', false)">'._('none').'</a>
- </td>
- </tr>
- <tr class="ff" style="background-color:'. $this->COLOR_LTBACK1.'">
- <td class="ff" colspan="2">';
-
- if (!is_array($section)) {
- $return .= ' <input class="ff" type="checkbox" name="'.urlencode($key).'"';
- if (isset($GLOBALS[urlencode($key)]))
- $return .= ' checked="checked" ';
- $return .= ' /></input>'.$group_subsection_names[$key].'<br />';
- }
- else
- foreach($section as $underkey => $undersection) {
- $return .= ' <input class="ff" type="checkbox" name="'.urlencode($key.$underkey).'"';
- if (isset($GLOBALS[urlencode($key.$underkey)]))
- $return .= ' checked ';
- $return .= '></input>'.$undersection.'<br />';
-
- }
-
- $return .= ' </td>
- </tr>
- </table></td></tr></table><br />';
-
- if ($countLines >= $break) {
- if (($countLines - $break) < ($break - $countLines)) {
- $return .= '</td><td class="ff" width="33%">';
- $break += $breakLimit;
- }
- }
- }
+ /**
+ * subMenu() - Takes two array of titles and links and build a menu.
+ *
+ * @param array The array of titles.
+ * @param array The array of title links.
+ * @return string Html to build a submenu.
+ */
+ function subMenu ($title_arr,$links_arr) {
+ $return = $this->beginSubMenu () ;
+ $return .= $this->printSubMenu ($title_arr,$links_arr) ;
+ $return .= $this->endSubMenu () ;
+ return $return;
+ }
- return $return.' </td>
- </tr>
- </table></td></tr></table>';
- }
-
- /**
- * beginSubMenu() - Opening a submenu.
- *
- * @return string Html to start a submenu.
- */
- function beginSubMenu () {
- $return = '
- <p><strong>';
- return $return;
- }
-
- /**
- * endSubMenu() - Closing a submenu.
- *
- * @return string Html to end a submenu.
- */
- function endSubMenu () {
- $return = '</strong></p>';
- return $return;
- }
-
- /**
- * printSubMenu() - Takes two array of titles and links and builds the contents of a menu.
- *
- * @param array The array of titles.
- * @param array The array of title links.
- * @return string Html to build a submenu.
- */
- function printSubMenu ($title_arr,$links_arr) {
- $count=count($title_arr);
- $count--;
-
- $return = '';
-
- for ($i=0; $i<$count; $i++) {
- $return .= util_make_link ($links_arr[$i], $title_arr[$i]) . ' | ';
- }
- $return .= util_make_link ($links_arr[$i], $title_arr[$i]);
- return $return;
- }
-
- /**
- * subMenu() - Takes two array of titles and links and build a menu.
- *
- * @param array The array of titles.
- * @param array The array of title links.
- * @return string Html to build a submenu.
- */
- function subMenu ($title_arr,$links_arr) {
- $return = $this->beginSubMenu () ;
- $return .= $this->printSubMenu ($title_arr,$links_arr) ;
- $return .= $this->endSubMenu () ;
- return $return;
- }
-
- /**
- * multiTableRow() - create a mutlilevel row in a table
- *
- * @param string the row attributes
- * @param array the array of cell data, each element is an array,
- * the first item being the text,
- * the subsequent items are attributes (dont include
- * the bgcolor for the title here, that will be
- * handled by $istitle
- * @param boolean is this row part of the title ?
- *
- */
- function multiTableRow($row_attr, $cell_data, $istitle) {
- $return= '
+ /**
+ * multiTableRow() - create a mutlilevel row in a table
+ *
+ * @param string the row attributes
+ * @param array the array of cell data, each element is an array,
+ * the first item being the text,
+ * the subsequent items are attributes (dont include
+ * the bgcolor for the title here, that will be
+ * handled by $istitle
+ * @param boolean is this row part of the title ?
+ *
+ */
+ function multiTableRow($row_attr, $cell_data, $istitle) {
+ $return= '
<tr class="ff" '.$row_attr;
- if ( $istitle ) {
- $return .=' align="center" bgcolor="'. $this->COLOR_HTMLBOX_TITLE .'"';
- }
- $return .= '>';
- for ( $c = 0; $c < count($cell_data); $c++ ) {
- $return .='<td class="ff" ';
- for ( $a=1; $a < count($cell_data[$c]); $a++) {
- $return .= $cell_data[$c][$a].' ';
- }
- $return .= '>';
- if ( $istitle ) {
- $return .='<font color="'.$this->FONTCOLOR_HTMLBOX_TITLE.'"><strong>';
- }
- $return .= $cell_data[$c][0];
- if ( $istitle ) {
- $return .='</strong></font>';
- }
- $return .= '</td>';
+ if ( $istitle ) {
+ $return .=' align="center" bgcolor="'. $this->COLOR_HTMLBOX_TITLE .'"';
+ }
+ $return .= '>';
+ for ( $c = 0; $c < count($cell_data); $c++ ) {
+ $return .='<td class="ff" ';
+ for ( $a=1; $a < count($cell_data[$c]); $a++) {
+ $return .= $cell_data[$c][$a].' ';
+ }
+ $return .= '>';
+ if ( $istitle ) {
+ $return .='<font color="'.$this->FONTCOLOR_HTMLBOX_TITLE.'"><strong>';
+ }
+ $return .= $cell_data[$c][0];
+ if ( $istitle ) {
+ $return .='</strong></font>';
+ }
+ $return .= '</td>';
- }
- $return .= '</tr>
+ }
+ $return .= '</tr>
';
- return $return;
- }
-
- /**
- * feedback() - returns the htmlized feedback string when an action is performed.
- *
- * @param string feedback string
- * @return string htmlized feedback
- */
- function feedback($feedback) {
- if (!$feedback) {
- return '';
- } else {
- return '
+ return $return;
+ }
+
+ /**
+ * feedback() - returns the htmlized feedback string when an action is performed.
+ *
+ * @param string feedback string
+ * @return string htmlized feedback
+ */
+ function feedback($feedback) {
+ if (!$feedback) {
+ return '';
+ } else {
+ return '
<h3 style="color:red">'.strip_tags($feedback, '<br>').'</h3>';
- }
- }
-
- /**
- * getThemeIdFromName()
- *
- * @param string the dirname of the theme
- * @return integer the theme id
- */
- function getThemeIdFromName($dirname) {
- $res=db_query_params ('SELECT theme_id FROM themes WHERE dirname=$1',
- array($dirname));
- return db_result($res,0,'theme_id');
- }
+ }
+ }
+
+ /**
+ * getThemeIdFromName()
+ *
+ * @param string the dirname of the theme
+ * @return integer the theme id
+ */
+ function getThemeIdFromName($dirname) {
+ $res=db_query_params ('SELECT theme_id FROM themes WHERE dirname=$1',
+ array($dirname));
+ return db_result($res,0,'theme_id');
+ }
}
// Local Variables:
*/
/* HTML elements */
-body {color: rgb(68, 68, 68); background-color: rgb(247, 247, 247); }
+body {color: rgb(68, 68, 68); background-color: rgb(247, 247, 247); text-align: left; }
form {margin:0; }
img {border:0; }
h1 {margin:0; }
a {text-decoration:none; color:rgb(1, 73, 144); }
a:hover {text-decoration: underline; color: rgb(247, 0, 0); }
-a.userlink {color: white; }
-a.userlink:hover {text-decoration: underline; color: white;}
-a.userlink:visited {text-decoration: none; color: white; }
+a.userlink, #searchBox a {color: white; }
+a.userlink:hover, #searchBox a:hover {text-decoration: underline; color: white;}
+a.userlink:visited, #searchBox a:visited {text-decoration: none; color: white; }
th, td {text-align:left; border:none; }
-#mydoc {text-align: left;}
input[type="text"], input[type="password"], textarea {
width: auto;
}
* @param array Header parameters array
*/
function header($params) {
- global $sys_name;
-
$this->headerStart($params); ?>
<link rel="stylesheet" type="text/css" href="<?php echo util_make_uri ('/themes/osx/css/theme.css'); ?>" />
{
header("Location:".$_POST['menuList']);
}
- global $sys_name;
if (!$params['title']) {
- $params['title'] = "$sys_name";
+ $params['title'] = forge_get_config ('forge_name');
} else {
- $params['title'] = "$sys_name: " . $params['title'];
+ $params['title'] = forge_get_config ('forge_name').": " . $params['title'];
}
print '<?xml version="1.0" encoding="utf-8"?>';
?>
$HTML->header(array('title'=>_('Top Projects')));
?>
-<p><strong><?php printf(_('Top %1$s project'), $GLOBALS['sys_name']); ?></strong></p>
+<h1><?php printf(_('Top %1$s Projects'), forge_get_config ('forge_name')); ?></h1>
-<p><?php printf(_('We track many project usage statistics on %1$s, and display here the top ranked projects in several categories.'), $GLOBALS['sys_name']); ?>
+<p><?php printf(_('We track many project usage statistics on %1$s, and display here the top ranked projects in several categories.'), forge_get_config ('forge_name')); ?></p>
<ul>
<li><a href="mostactive.php?type=week"><?php echo _('Most Active This Week'); ?></a></li>
<li><a href="mostactive.php"><?php echo _('Most Active All Time'); ?></a></li>
$HTML->header(array('title'=>$title));
-print '<h3>'.$title.'</h3>
-<br /><em>('._('Updated Daily').')</em>
+print '<h1>'.$title.'</h1>
+
+<p><em>('._('Updated Daily').')</em></p>
<p>'.util_make_link ('/top/','['._('View Other Top Categories').']').'</p>';
}
else if ($type == 'pageviews_proj') {
$res_top = $stats->getTopPageViews();
- $title = sprintf(_('Top Weekly Project Pageviews at *.%1$s (from impressions of %2$s logo)'), $GLOBALS['sys_default_domain'], $GLOBALS['sys_name']);
+ $title = sprintf(_('Top Weekly Project Pageviews at *.%1$s (from impressions of %2$s logo)'), $GLOBALS['sys_default_domain'], forge_get_config ('forge_name'));
$column1 = _('Pageviews');
}
else if ($type == 'forumposts_week') {
$column1 = _('Downloads');
}
$HTML->header(array('title'=>$title));
-print '<p>'.util_make_link ('/top/','['._('View Other Top Categories').']');
+print '<h1>'.$title.'</h1>';
+print '<p>'.util_make_link ('/top/','['._('View Other Top Categories').']').'</p>';
$arr=array(_('Rank'),_('Project name'),"$column1");
echo $HTML->listTableTop($arr);
*
*/
-echo $ath->header(array ('title'=>_('Detail').': '.$ah->getID(). ' '.util_unconvert_htmlspecialchars($ah->getSummary()),'atid'=>$ath->getID()));
+$ath->header(array
+ ('title' => _('Detail').': [#'.$ah->getID(). '] '
+ . util_unconvert_htmlspecialchars($ah->getSummary()),
+ 'atid'=>$ath->getID()));
echo notepad_func();
?>
- <h3>[#<?php echo $ah->getID(); ?>] <?php echo util_unconvert_htmlspecialchars($ah->getSummary()); ?></h3>
+ <h1>[#<?php echo $ah->getID(); ?>] <?php echo util_unconvert_htmlspecialchars($ah->getSummary()); ?></h1>
<form action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" method="post" enctype="multipart/form-data">
<?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)</td>
</tr>
- <?php
- $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any','',false,'DISPLAY');
- ?>
+ <?php
+ $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any','',false,'DISPLAY');
+ $ath->renderRelatedTasks($group, $ah);
+ $ath->renderFiles($group_id, $ah);
+ ?>
<tr><td colspan="2"><strong><?php echo _('Summary') ?>:</strong><br /><?php echo $ah->getSummary(); ?></td></tr>
<?php } ?>
</td></tr>
<tr><td colspan="2">
- <h3><?php echo _('Followup') ?></h3>
+ <h2><?php echo _('Followup') ?></h2>
<?php
echo $ah->showMessages();
?>
</td></tr>
</table>
</div>
-<?php
-if ($group->usesPM()) {
-?>
-<div class="tabbertab" title="<?php echo _('Related Tasks'); ?>">
-<table border="0" width="80%">
- <tr><td colspan="2">
- <h3><?php echo _('Related Tasks'); ?>:</h3>
- <?php
- $result = $ah->getRelatedTasks();
- $taskcount = db_numrows($ah->relatedtasks);
- if ($taskcount > 0) {
- $titles[] = _('Task Id');
- $titles[] = _('Task Summary');
- $titles[] = _('Start Date');
- $titles[] = _('End Date');
- echo $GLOBALS['HTML']->listTableTop($titles);
- for ($i = 0; $i < $taskcount; $i++) {
- $taskinfo = db_fetch_array($ah->relatedtasks, $i);
- $taskid = $taskinfo['project_task_id'];
- $projectid = $taskinfo['group_project_id'];
- $groupid = $taskinfo['group_id'];
- $summary = util_unconvert_htmlspecialchars($taskinfo['summary']);
- $startdate = date(_('Y-m-d H:i'), $taskinfo['start_date']);
- $enddate = date(_('Y-m-d H:i'), $taskinfo['end_date']);
- echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
- <td>'.$taskid.'</td>
- <td>'.util_make_link ('/pm/task.php?func=detailtask&project_task_id='.$taskid.'&group_id='.$groupid.'&group_project_id='.$projectid,$summary).'</td>
- <td>'.$startdate.'</td>
- <td>'.$enddate.'</td>
- </tr>';
- }
- echo $GLOBALS['HTML']->listTableBottom();
- } else {
- echo _('No Related Tasks');
- }
- ?>
- </td></tr>
-</table>
-</div>
-<?php } ?>
<div class="tabbertab" title="<?php echo _('Attachments'); ?>">
<table border="0" width="80%">
<tr><td colspan="2">
<input type="file" name="input_file[]" size="30" /><br />
<input type="file" name="input_file[]" size="30" /><br />
<input type="file" name="input_file[]" size="30" /><br />
- <p>
+ <p />
<?php } ?>
- <h3><?php echo _('Attached Files') ?>:</h3>
+ <h2><?php echo _('Attached Files') ?>:</h2>
<?php
//
// print a list of files attached to this Artifact
<table border="0" width="80%">
<tr>
<td colspan="2">
- <h3><?php echo _('Changes') ?>:</h3>
+ <h2><?php echo _('Changes') ?>:</h2>
<?php
echo $ah->showHistory();
} else {
echo '
- <h3>'._('No Followups Have Been Posted').'</h3>';
+ <p>'._('No Followups Have Been Posted').'</p>';
}
}
} else {
echo '
- <h3>'._('No Changes Have Been Made to This Item').'</h3>';
+ <p>'._('No Changes Have Been Made to This Item').'</p>';
}
}
<table border="0" width="80%">
<tr>
<td colspan="2">
- <h3><?php echo _('Changes') ?>:</h3>
+ <h2><?php echo _('Changes') ?>:</h2>
<?php
$current = '';
$end = '';
}
}
+ function renderRelatedTasks($group, $ah) {
+
+ if (!$group->usesPM()) {
+ return '';
+ }
+
+ $result = $ah->getRelatedTasks();
+ $taskcount = db_numrows($ah->relatedtasks);
+
+ if ($taskcount > 0) {
+ echo '<tr><td colspan="2">';
+ echo '<b>'._("Related Tasks").':</b>'.'<br/>';
+ echo '<table cellspacing="0">';
+ for ($i = 0; $i < $taskcount; $i++) {
+ $taskinfo = db_fetch_array($ah->relatedtasks, $i);
+ $taskid = $taskinfo['project_task_id'];
+ $projectid = $taskinfo['group_project_id'];
+ $groupid = $taskinfo['group_id'];
+ $summary = util_unconvert_htmlspecialchars($taskinfo['summary']);
+ $startdate = date(_('Y-m-d H:i'), $taskinfo['start_date']);
+ $enddate = date(_('Y-m-d H:i'), $taskinfo['end_date']);
+ echo '<tr>
+ <td><a href="/pm/task.php?func=detailtask&project_task_id='.$taskid.
+ '&group_id='.$groupid.'&group_project_id='.$projectid.'">[T'.$taskid.'] '.$summary.'</a></td>
+ <td>'.$startdate.'</td>
+ <td>'.$enddate.'</td>
+ </tr>';
+ }
+ echo '</table>';
+ echo '</td></tr>';
+ }
+ }
+
+ function renderFiles($group_id, $ah) {
+
+ $file_list =& $ah->getFiles();
+ $count=count($file_list);
+
+ if ($count > 0) {
+ echo '<tr><td colspan="2">';
+ echo '<b>'._("Attachments").':</b>'.'<br/>';
+ echo '<table cellspacing="0">';
+ for ($i=0; $i<$count; $i++) {
+ echo '<tr>
+ <td><a href="/tracker/download.php/'.$group_id.'/'. $this->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName() .'">'. htmlspecialchars($file_list[$i]->getName()) .'</a></td>';
+// <td><input type="checkbox" name="delete_file[]" value="'. $file_list[$i]->getID() .'">'._("Delete").' </td>
+ echo '</tr>';
+ }
+ echo '</table>';
+ echo '</td></tr>';
+ }
+ }
+
/**
* getRenderHTML
*
} else {
echo '
<tr '. $HTML->boxGetAltRowStyle($j) . '>
- <td><a href="'.util_make_url ('/tracker/?atid='.$at_arr[$j]->getID().'&group_id='.$group_id.'&func=browse').'">'.
+ <td><a href="'.util_make_url ('/tracker/?atid='.$at_arr[$j]->getID().'&group_id='.$group_id.'&func=browse').'">'.
html_image("ic/tracker20w.png","20","20",array("border"=>"0", "align"=>"middle")).' '.
$at_arr[$j]->getName() .'</a>
</td>
*/
-$ath->header(array ('title'=>_('Modify').': '.$ah->getID(). ' - ' . $ah->getSummary(),'atid'=>$ath->getID()));
+$ath->header(array
+ ('title' => _('Modify').' [#'.$ah->getID(). '] '
+ . util_unconvert_htmlspecialchars($ah->getSummary()),
+ 'atid'=>$ath->getID()));
+
+echo notepad_func();
?>
- <h3>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h3>
+ <h1>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h1>
<form action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" enctype="multipart/form-data" method="post">
<input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
<td>
</td>
</tr>
-
+ <?php
+ $ath->renderRelatedTasks($group, $ah);
+ $ath->renderFiles($group_id, $ah);
+ ?>
<tr>
<td colspan="2"><strong><?php echo _('Summary')?><?php echo utils_requiredField(); ?>: <a href="javascript:help_window('/help/tracker.php?helpname=summary')"><strong>(?)</strong></a></strong><br />
<?php echo $ah->getSummary(); ?>
<br /><strong><?php echo _('OR Attach A Comment') ?>: <?php echo notepad_button('document.forms[1].details') ?> <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=comment'); ?>')"><strong>(?)</strong></a></strong><br />
<textarea name="details" rows="7" cols="60"></textarea>
<p>
- <h3><?php echo _('Followup') ?>:</h3>
+ <h2><?php echo _('Followup') ?>:</h2>
<?php
echo $ah->showMessages();
?>
<input type="file" name="input_file3" size="30" /><br />
<input type="file" name="input_file4" size="30" /><br />
<p>
- <h3><?php echo _('Attached Files') ?>:</h3>
+ <h2><?php echo _('Attached Files') ?>:</h2>
<?php
//
// print a list of files attached to this Artifact
for ($i=0; $i<$count; $i++) {
echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
- <td><input type="checkbox" name="delete_file[]" value="'. $file_list[$i]->getID() .'">'._('Delete').' </td>
+ <td><input type="checkbox" name="delete_file[]" value="'. $file_list[$i]->getID() .'" />'._('Delete').' </td>
<td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
<td>'. htmlspecialchars($file_list[$i]->getDescription()) .'</td>
<td>'.util_make_link ('/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName(),_('Download')).'</td>
<div class="tabbertab" title="<?php echo _('Changes'); ?>">
<table border="0" width="80%">
<tr><td colspan="2">
- <h3><?php echo _('Change Log') ?>:</h3>
+ <h2><?php echo _('Change Log') ?>:</h2>
<?php
echo $ah->showHistory();
?>
*
*/
-$ath->header(array ('title'=>'[#'. $ah->getID(). '] ' . $ah->getSummary(), 'atid'=>$ath->getID()));
+$ath->header(array
+ ('title' => _('Modify').' [#'.$ah->getID(). '] '
+ . util_unconvert_htmlspecialchars($ah->getSummary()),
+ 'atid'=>$ath->getID()));
echo notepad_func();
<td>
</td>
</tr>
-
+ <?php
+ $ath->renderRelatedTasks($group, $ah);
+ $ath->renderFiles($group_id, $ah);
+ ?>
<tr>
<td><strong><?php echo _('Summary')?><?php echo utils_requiredField(); ?>: <a href="javascript:help_window('/help/tracker.php?helpname=summary')"><strong>(?)</strong></a></strong><br />
<input type="text" name="summary" size="70" value="<?php
<p>
<strong><?php echo _('OR Attach A Comment') ?>:<?php echo notepad_button('document.forms[1].details') ?><a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=comment'); ?>')"><strong>(?)</strong></a></strong><br />
<textarea name="details" rows="7" cols="60"></textarea></p>
- <h3><?php echo _('Followup') ?>:</h3>
+ <h2><?php echo _('Followup') ?>:</h2>
<?php
echo $ah->showMessages();
?>
</div>
<?php } ?>
<div class="tabbertab" title="<?php echo _('Attachments'); ?>">
- <h3><?php echo _('Existing Files') ?>:</h3>
+ <h2><?php echo _('Existing Files') ?>:</h2>
<table border="0" width="80%">
<tr><td colspan="2">
<strong><?php echo _('Attach Files') ?>:</strong><br />
<div class="tabbertab" title="<?php echo _('Changes'); ?>">
<table border="0" width="80%">
<tr><td colspan="2">
- <h3><?php echo _('Change Log') ?>:</h3>
+ <h2><?php echo _('Change Log') ?>:</h2>
<?php
echo $ah->showHistory();
?>
$ah=new ArtifactHtml($ath,$artifact_id);
if (!$ah || !is_object($ah)) {
- exit_error('ERROR','Artifact Could Not Be Created');
+ exit_error('ERROR', _('Artifact Could Not Be Created'));
} else if ($ah->isError()) {
exit_error('ERROR',$ah->getErrorMessage());
} else if (!$ath->allowsAnon() && !session_loggedin()) {
$n = $i+1;
if ($error === 1 || $error === 2) {
// UPLOAD_ERR_INI_SIZE or UPLOAD_ERR_FORM_SIZE
- $ext_feedback .= "<br />ERROR: Skipping attachement $n: file is too large.";
+ $ext_feedback .= "<br />" .
+ sprintf(_("ERROR: Skipping attachment %d: file is too large."), $n);
} elseif ($error === 3) {
// UPLOAD_ERR_PARTIAL
- $ext_feedback .= "<br />ERROR: Skipping attachement $n: transfert interrupted.";
+ $ext_feedback .= "<br />" .
+ sprintf(_("ERROR: Skipping attachment %d: transfer interrupted."), $n);
}
continue;
}
#! /bin/sh
+DISTUBUBRC=jaunty,karmic,lucid
+DISTUBUTRK=jaunty,karmic,lucid
-debmirror /var/lib/gforge/chroot/home/groups/fusionforge/htdocs/debian --method=http --host=debian.fusionforge.org -r debian -d lenny,squeeze,sid -a i386,amd64 -s main -v --progress
-debmirror /var/lib/gforge/chroot/home/groups/fusionforge/htdocs/ubuntu --method=http --host=debian.fusionforge.org -r ubuntu -d hardy,intrepid,jaunty -a i386,amd64 -s main -v --progress
+DISTDEBBRC=lenny,squeeze,sid
+DISTDEBTRK=lenny,squeeze,sid
-debmirror /var/lib/gforge/chroot/home/groups/fusionforge/htdocs/debian-trk --method=http --host=debian.fusionforge.org -r debian-trk -d lenny,squeeze,sid -a i386,amd64 -s main -v --progress
-debmirror /var/lib/gforge/chroot/home/groups/fusionforge/htdocs/ubuntu-trk --method=http --host=debian.fusionforge.org -r ubuntu-trk -d hardy,intrepid,jaunty,karmic -a i386,amd64 -s main -v --progress
+MIRBASE=/var/lib/gforge/chroot/home/groups/fusionforge/htdocs
-debmirror /var/lib/gforge/chroot/home/groups/fusionforge/htdocs/debian-brc --method=http --host=debian.fusionforge.org -r debian-brc -d lenny,squeeze,sid -a i386,amd64 -s main -v --progress
-debmirror /var/lib/gforge/chroot/home/groups/fusionforge/htdocs/ubuntu-brc --method=http --host=debian.fusionforge.org -r ubuntu-brc -d hardy,intrepid,jaunty,karmic -a i386,amd64 -s main -v --progress
+debmirror $MIRBASE/debian --method=http --host=debian.fusionforge.org -r debian -d $DISTDEBTRK -a i386,amd64 -s main -v --progress
+debmirror $MIRBASE/ubuntu --method=http --host=debian.fusionforge.org -r ubuntu -d $DISTUBUTRK -a i386,amd64 -s main -v --progress
+
+debmirror $MIRBASE/debian-trk --method=http --host=debian.fusionforge.org -r debian-trk -d $DISTDEBTRK -a i386,amd64 -s main -v --progress
+debmirror $MIRBASE/ubuntu-trk --method=http --host=debian.fusionforge.org -r ubuntu-trk -d $DISTUBUTRK -a i386,amd64 -s main -v --progress
+
+debmirror $MIRBASE/debian-brc --method=http --host=debian.fusionforge.org -r debian-brc -d $DISTDEBBRC -a i386,amd64 -s main -v --progress
+debmirror $MIRBASE/ubuntu-brc --method=http --host=debian.fusionforge.org -r ubuntu-brc -d $DISTUBUBRC -a i386,amd64 -s main -v --progress
--- /dev/null
+fusionforge-plugin-helloworld for Debian
+---------------------
+
+See README.Debian in fusionforge-common package
+
+ -- Christian Bayle <bayle@debian.org> Mon, 08 Mar 2010 16:37:51 +0100
--- /dev/null
+helloworld for Debian
+---------------------
+
+<this file describes information about the source package, see Debian policy
+manual section 4.14. You WILL either need to modify or delete this file>
+
+
+
+
--- /dev/null
+fusionforge-plugin-helloworld (1.0-1) unstable; urgency=low
+
+ * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
+
+ -- Christian Bayle <bayle@debian.org> Mon, 08 Mar 2010 16:37:51 +0100
--- /dev/null
+Source: fusionforge-plugin-helloworld
+Section: devel
+Priority: optional
+Maintainer: Christian Bayle <bayle@debian.org>
+Uploaders: Roland Mas <lolando@debian.org>
+Build-Depends-Indep: devscripts
+Build-Depends: debhelper (>= 7), perl, gettext
+Standards-Version: 3.8.4
+Homepage: http://fusionforge.org/
+Vcs-Bzr: http://scm.fusionforge.org/bzr/fusionforge/svn-trunk-ro/
+
+Package: fusionforge-plugin-helloworld
+Architecture: all
+Depends: gforge-common, gforge-db-postgresql | gforge-db, gforge-web-apache2 | gforge-web, gforge-shell-postgresql | gforge-shell, php5-cli, ${misc:Depends}
+Description: collaborative development tool - Helloworld plugin
+ .
+ This plugin contains the Helloworld subsystem of FusionForge. It allows each
+ FusionForge project to have its own Helloworld, and gives some
+ control over it to the project's administrator.
+
--- /dev/null
+The "sourceforge" package was first debianised on Wed, 22 Nov 2000
+22:06:35 +0100 by Roland Mas <lolando@debian.org>. Work has been
+constant since then, and the package evolved a great deal. It began
+to work, for a start, and then it evolved into GForge, what with the
+more recent versions of the Sourceforge software having been made
+proprietary. And then in early 2009 it evolved into FusionForge, what
+with the more recent versions of GForge having been rewritten as
+proprietary software without a name change.
+
+FusionForge is Copyright © 2009-2010 by several people, including:
+Alain Peyrat <aljeux@free.fr>
+Alexandre Neymann <alexandre.neymann@dgfip.finances.gouv.fr>
+Christian Bayle <bayle@debian.org>
+Roland Mas <lolando@debian.org>
+Gonéri Le Bouder <goneri.lebouder@atosorigin.com>
+Julien Heyman <julien.heyman@atosorigin.com>
+Olivier Meunier <olivier.meunier@centraliens.net>
+
+GForge itself is Copyright © 2000-2008 by a fair number of people,
+including:
+Tim Perdue <tim@gforge.org>
+Roland Mas <99.roland.mas@aist.enst.fr>
+Christian Bayle <gforge@free.fr>
+Tom Copeland <tom@infoether.com>
+Guillaume Smet <guillaume-gforge@smet.org>
+Francisco Gimeno <kikov@kikov.org>
+Sung Kim <hunkims@gmail.com>
+Alain Peyrat <aljeux@free.fr>
+
+Past Members of the development team include:
+Reinhard Spisser
+Ryan T. Sammartino
+Edward Ritter
+Michael Jennings
+
+Since FusionForge, and GForge before it, was initially a fork of
+Sourceforge, here's the copyright info for the Sourceforge software:
+,----
+| The original sources were downloaded from http://www.sourceforge.net/
+|
+| Authors: The Sourceforge crew at VA Linux. They are many, they
+| change as time goes by, and they are listed on the Sourceforge
+| website. Let them be thanked for their work.
+|
+| Copyright:
+|
+| This software is Copyright © 1999-2000 by VA Linux.
+|
+| You are free to distribute this software under the terms of the GNU
+| General Public License.
+`----
+
+The packaging and installing scripts (in the debian/ and deb-specific/
+directories amongst others) are Copyright © 2000-2010 by Christian
+Bayle <bayle@aist.enst.fr> and Roland Mas <lolando@debian.org>. You
+are free to use and redistribute them under the terms of the GNU
+General Public License, version 2 or (at your option) any later
+version published by the Free Software Foundation.
+
+See Also Copyright file in fusionforge package
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in the /usr/share/common-licenses directory.
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+SRCPACKAGE=$(shell head -1 $(CURDIR)/debian/changelog | sed 's/\(.[^ ]*\) .*/\1/')
+MAJOR=$(shell head -1 $(CURDIR)/debian/changelog | sed 's/.*(\(.*\)-[^-]*).*/\1/')
+ORIGFILE=$(SRCPACKAGE)_$(MAJOR).orig.tar.gz
+OLDPACKAGE=gforge
+PACKAGE=fusionforge
+FORGENAME=FusionForge
+
+SED_REPLACE=sed -e 's/@PACKAGE@/$(PACKAGE)/g' -e 's/@SRCPACKAGE@/$(SRCPACKAGE)/g' -e 's/@FORGENAME@/$(FORGENAME)/g' -e 's/@OLDPACKAGE@/$(OLDPACKAGE)/g'
+
+CRONDFILES=$(patsubst packaging/cron.d/%,debian/$(PACKAGE)-%.cron.d,$(wildcard packaging/cron.d/[a-z]*))
+DIRSFILES=$(patsubst packaging/dirs/%,debian/$(PACKAGE)-%.dirs,$(wildcard packaging/dirs/[a-z]*))
+LINKSFILES=$(patsubst packaging/links/%,debian/$(PACKAGE)-%.links,$(wildcard packaging/links/[a-z]*))
+INSTALLFILES=$(patsubst packaging/install/%,debian/$(PACKAGE)-%.install,$(wildcard packaging/install/[a-z]*))
+DOCSFILES=$(patsubst packaging/docs/%,debian/$(PACKAGE)-%.docs,$(wildcard packaging/docs/[a-z]*))
+POFILES=$(patsubst debian/dsf-po/%,debian/po/%,$(wildcard debian/dsf-po/*) debian/po/POTFILES.in)
+
+.PHONY: conffiles
+conffiles: $(CRONDFILES) $(DIRSFILES) $(LINKSFILES) $(INSTALLFILES) $(DOCSFILES) debian/control
+
+debian/$(PACKAGE)-%.cron.d:
+ (cat $(CURDIR)/packaging/cron.d/00phpcron ; sed -e 's/\$$FFUSER/$(PACKAGE)/g' $(CURDIR)/packaging/cron.d/$*) > $@
+
+debian/$(PACKAGE)-%.dirs:
+ cp $(CURDIR)/packaging/dirs/$* $@
+
+debian/$(PACKAGE)-%.links:
+ cp $(CURDIR)/packaging/links/$* $@
+
+debian/$(PACKAGE)-%.install:
+ cp $(CURDIR)/packaging/install/$* $@
+
+debian/$(PACKAGE)-%.docs:
+ cp $(CURDIR)/packaging/docs/$* $@
+
+debian/control: $(wildcard packaging/control/*)
+ ls $(CURDIR)/packaging/control/[0-9][0-9][0-9]* | grep -v shortdesc | grep -v scmcpold | while read file ; do cat $${file}; if [ -f $${file}.shortdesc ] ; then cat $(CURDIR)/packaging/control/AAAdesc; echo ' .'; cat $${file}.shortdesc; fi; echo ''; done | $(SED_REPLACE) > $@
+
+debian/po/templates.pot: $(wildcard debian/dsf-in/*.templates.dsfh-in) $(wildcard debian/dsf-helper/*.templates)
+ @debconf-updatepo --podir=debian/dsf-po
+
+debian/po/%:
+ cat $(patsubst debian/po/%,debian/dsf-po/%,$@) | $(SED_REPLACE) > $@
+
+build: debian/po/templates.pot conffiles
+ dh $@
+ # Build gettext *.mo files
+ utils/manage-translations.sh build
+
+clean:
+ dh $@
+ rm -f $(CURDIR)/debian/*.cron.d
+ rm -f $(CURDIR)/debian/*.dirs
+ rm -f $(CURDIR)/debian/*.links
+ rm -f $(CURDIR)/debian/*.install
+ rm -f $(CURDIR)/debian/*.docs
+ rm -rf locales
+ rm -f $(POFILES)
+
+makeorig:
+ find $(PKGDIR) -type f -or -type l | grep -v '/CVS/' | \
+ grep -v '/.svn/' | grep -v '/.testbox/' | \
+ grep -v rpm-specific | grep -v docs/phpdoc/docs | \
+ grep -v ^./debian/ | grep -v \\.jar$$ | \
+ grep -v \\.pdf$$ | grep -v plugins/fckeditor/www/_samples | \
+ cpio -o -H ustar | gzip > ../$(ORIGFILE)
+
+%:
+ dh $@
--- /dev/null
+Source: @SRCPACKAGE@
+Section: devel
+Priority: optional
+Maintainer: Christian Bayle <bayle@debian.org>
+Uploaders: Roland Mas <lolando@debian.org>
+Build-Depends-Indep: devscripts
+Build-Depends: debhelper (>= 7), perl, gettext
+Standards-Version: 3.8.4
+Homepage: http://fusionforge.org/
+Vcs-Bzr: http://scm.fusionforge.org/bzr/fusionforge/svn-trunk-ro/
--- /dev/null
+Package: @SRCPACKAGE@
+Architecture: all
+Depends: @OLDPACKAGE@-common, @OLDPACKAGE@-db-postgresql | @OLDPACKAGE@-db, @OLDPACKAGE@-web-apache2 | @OLDPACKAGE@-web, @OLDPACKAGE@-shell-postgresql | @OLDPACKAGE@-shell, php5-cli, ${misc:Depends}
+Description: collaborative development tool - Helloworld plugin
--- /dev/null
+ This plugin contains the Helloworld subsystem of FusionForge. It allows each
+ FusionForge project to have its own Helloworld, and gives some
+ control over it to the project's administrator.
--- /dev/null
+etc/gforge/httpd.d
+etc/gforge/plugins/helloworld
+usr/share/gforge/plugins/helloworld/cgi-bin
+usr/share/gforge/plugins/helloworld/common
+usr/share/gforge/plugins/helloworld/www
--- /dev/null
+debian/README.Debian
--- /dev/null
+common/* /usr/share/gforge/plugins/helloworld/common/
+www/* /usr/share/gforge/plugins/helloworld/www/
+etc/plugins/helloworld/* /etc/gforge/plugins/helloworld/
--- /dev/null
+/usr/share/gforge/plugins/helloworld/www /usr/share/gforge/www/plugins/helloworld
--- /dev/null
+#! /bin/sh -e
+
+if [ -e gforge/translations/gforge.pot ] ; then # We're in the parent dir
+ cd gforge
+elif [ -e translations/gforge.pot ] ; then # probably in gforge/ (or a renamed gforge/)
+ cd . # do nothing, but shell syntax requires an instruction in a then-block
+elif [ -e ../gforge/translations/gforge.pot ] ; then # in tools/ or tests/ or something
+ cd ../gforge
+elif [ -e ../translations/gforge.pot ] ; then # In a subdir of gforge/
+ cd ..
+else
+ echo "Couldn't find translations directory..."
+ exit 1
+fi
+
+locales=$(ls translations/*.po \
+ | xargs -n1 -iFILE basename FILE .po \
+ | egrep '^[a-z][a-z](_[A-Z][A-Z]$)?' \
+ | sort)
+
+print_stats () {
+ for l in $(echo $locales | xargs -n 1 | sort) ; do
+ printf "* %5s: " $l
+ msgfmt --statistics -o /dev/null translations/$l.po
+ done
+}
+
+case $1 in
+ stats)
+ print_stats
+ ;;
+ refresh)
+ rm translations/gforge.pot
+
+ find -type f -\( -name \*.php -or -name users -or -name projects -\) \
+ | grep -v -e {arch} -e svn-base \
+ | grep -v ^./plugins/wiki \
+ | LANG=C sort \
+ | xargs xgettext -d gforge -o translations/gforge.pot -L PHP --from-code=iso-8859-1
+
+ for l in $locales ; do
+ echo "Processing $l..."
+ msgmerge -U translations/$l.po translations/gforge.pot
+ done
+ ;;
+ build)
+ for l in $locales ; do
+ mkdir -p locales/$l/LC_MESSAGES
+ msgfmt -o locales/$l/LC_MESSAGES/gforge.mo translations/$l.po
+ done
+ ;;
+ *)
+ echo "Unknown operation"
+ exit 1
+ ;;
+esac
// Unit tests
require_once 'unit/utils/AllTests.php';
+require_once 'unit/config/AllTests.php';
//require_once 'ACL/AllTests.php';
+
// Code tests
require_once 'code/syntax/AllTests.php';
require_once 'code/deprecations/AllTests.php';
// Unit tests
$suite->addTest(Utils_AllTests::suite());
+ $suite->addTest(Config_AllTests::suite());
// $suite->addTest(ACL_AllTests::suite());
// Code tests
// Unit tests
require_once 'unit/utils/AllTests.php';
+require_once 'unit/config/AllTests.php';
//require_once 'ACL/AllTests.php';
// Code tests
// Unit tests
$suite->addTest(Utils_AllTests::suite());
+ $suite->addTest(Config_AllTests::suite());
// $suite->addTest(ACL_AllTests::suite());
// Code tests
{
$tests = dirname( dirname( dirname( dirname (__FILE__))));
$base = dirname( $tests );
- system("cd ..; make -f Makefile.debian BUILDRESULT=$base/build/packages all", $retval);
+ system("cd ..; make -f Makefile.debian BUILDRESULT=$base/build/packages clean all", $retval);
$this->assertEquals(0, $retval);
}
$this->assertEquals('', $output);
}
+ /**
+ * Check that no code uses configuration items from global variables
+ */
+ public function testconfig_vars()
+ {
+ $vars = array ('sys_name',
+ 'sys_user_reg_restricted') ;
+
+ $pattern = implode ('|', $vars) ;
+
+ $output = `cd .. ; find gforge tests -name '*.php' -type f | xargs pcregrep -n '\\$($pattern)\b' \
+ | grep -v ^gforge/www/include/pre.php`;
+ $this->assertEquals('', $output, "Found deprecated \$var for var in ($pattern):");
+
+ $output = `cd .. ; find gforge tests -name '*.php' -type f | xargs pcregrep -n '\\\$GLOBALS\\[.?($pattern).?\\]' \
+ | grep -v ^gforge/www/include/pre.php`;
+ $this->assertEquals('', $output, "Found deprecated \$GLOBALS['\$var'] for var in ($pattern):");
+
+ }
+
// Local Variables:
// mode: php
// c-file-style: "bsd"
system("cd scripts; ./start_vm.sh centos52.local");
system("scp ../../build/packages/fusionforge-*allinone.tar.bz2 root@centos52:");
system("ssh root@centos52 'tar jxf fusionforge-*allinone.tar.bz2'");
- system("ssh root@centos52 'cd fusionforge-*; FFORGE_RPM_REPO=http://buildbot.fusionforge.org/job/fusionforge-Branch_5_0-full/ws/build/packages/ FFORGE_DB=fforge FFORGE_USER=gforge FFORGE_ADMIN_USER=ffadmin FFORGE_ADMIN_PASSWORD=ffadmin ./install.sh centos52.local'");
+ system("ssh root@centos52 'cd fusionforge-*; FFORGE_RPM_REPO=http://buildbot.fusionforge.org/job/fusionforge-trunk-build-rpm/ws/build/packages/ FFORGE_DB=fforge FFORGE_USER=gforge FFORGE_ADMIN_USER=ffadmin FFORGE_ADMIN_PASSWORD=ffadmin ./install.sh centos52.local'");
system("scp -r ../tests root@centos52:/opt");
sudo /root/start_vz.sh centos-5-i386-default-5.2-20081107 "$1"
-ssh -o 'StrictHostKeyChecking=no' root@centos52 uname -a
+ssh -o 'StrictHostKeyChecking=no' "root@$1" uname -a
ret=$?
if [ $ret -ne 0 ];then
sleep 10;
- ssh -o 'StrictHostKeyChecking=no' root@centos52 uname -a
+ ssh -o 'StrictHostKeyChecking=no' "root@$1" uname -a
fi
sleep 1
// Unit tests
require_once 'utils/AllTests.php';
+require_once 'config/AllTests.php';
class AllTests
{
// Unit tests
$suite->addTest(Utils_AllTests::suite());
+ $suite->addTest(Config_AllTests::suite());
return $suite;
}
--- /dev/null
+<?php
+
+require_once 'PHPUnit/Framework.php';
+require_once dirname(__FILE__).'/ConfigTests.php';
+
+class Config_AllTests
+{
+ public static function suite()
+ {
+ $suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
+
+ $suite->addTestSuite('Config_Tests');
+
+ return $suite;
+ }
+}
+?>
--- /dev/null
+<?php
+
+require_once 'PHPUnit/Framework/TestCase.php';
+require_once dirname(__FILE__) . '/../../../gforge/common/include/config.php';
+
+/**
+ * Simple tests for the config library.
+ *
+ * @package Tests
+ * @author Roland Mas <lolando@debian.org>
+ * @copyright 2009 Roland Mas
+ * @license GPL License
+ */
+class Config_Tests extends PHPUnit_Framework_TestCase
+{
+ /**
+ * test basic config getting
+ */
+ public function testBasicConfig()
+ {
+ forge_define_config_item ('forge_name', 'core', 'default') ;
+ forge_define_config_item ('user_registration_restricted', 'core', true) ;
+
+ $this->assertEquals('default', forge_get_config ('forge_name'));
+ $this->assertEquals('default', forge_get_config ('forge_name', 'core'));
+ $this->assertTrue(forge_get_config ('user_registration_restricted'));
+
+ forge_read_config_file (dirname(__FILE__) . '/../../../gforge/etc/config.ini') ;
+
+ $this->assertEquals('FusionForge', forge_get_config ('forge_name'));
+ $this->assertEquals('FusionForge', forge_get_config ('forge_name', 'core'));
+ $this->assertEquals('', forge_get_config ('user_registration_restricted'));
+
+ $arr = forge_get_config_array ('forge_name', array ('user_registration_restricted', 'core')) ;
+ $this->assertEquals('FusionForge', $arr[0]);
+ $this->assertFalse(!!$arr[1]);
+
+ forge_set_vars_from_config ('forge_name', array ('user_registration_restricted', 'core')) ;
+ global $forge_name, $core__user_registration_restricted ;
+ $this->assertEquals('FusionForge', $forge_name);
+ $this->assertFalse(!!$core__user_registration_restricted);
+
+ }
+
+ /**
+ * test mock config system
+ */
+ public function testMockConfig()
+ {
+ MockConfig::insinuate () ;
+ forge_define_config_item ('forge_name', 'core', 'default') ;
+
+ $this->assertEquals('core/forge_name', forge_get_config ('forge_name'));
+ $this->assertEquals('core/forge_name', forge_get_config ('forge_name', 'core'));
+
+ MockConfig::cleanup () ;
+ forge_define_config_item ('forge_name', 'core', 'default') ;
+
+ $this->assertEquals('default', forge_get_config ('forge_name'));
+ }
+
+}
+
+class MockConfig extends FusionForgeConfig {
+ public function insinuate () {
+ parent::$instance = NULL ;
+ self::get_instance () ;
+ }
+
+ public function cleanup () {
+ parent::$instance = NULL ;
+ }
+
+ public function get_instance () {
+ if (parent::$instance == NULL) {
+ parent::$instance = new MockConfig () ;
+ }
+ return parent::$instance ;
+ }
+
+ public function get_value ($section, $var) {
+ return "$section/$var" ;
+ }
+}
\ No newline at end of file
//$graph->title->Set(_("Commits By User")." (".date('m/d/Y',$start) ."-". date('m/d/Y',$end) .")");
$graph->title->Set(utf8_decode(_("Commits By User")." (".strftime('%x',$start) ." - ". strftime('%x',$end) .")"));
-$graph->subtitle->Set($sys_name);
+$graph->subtitle->Set(forge_get_config ('forge_name'));
// Create the tracker open plot
////report_pie_arr(util_result_column_to_array($res,0), util_result_column_to_array($res,1));
# Define the CD label
export DISKINFO="Simple-cdd Installer: Debian GNU/Linux $DEBVERSION $CODENAME $(date --utc +%Y%m%d)"
-debian_mirror_extra="http://debian.fusionforge.org/debian-brc"
+debian_mirror_extra="http://debian.fusionforge.org/debian-trk"
mirror_components_extra="main"