src/utils/ldap/sql2ldif.pl svneol=native#text/x-perl
src/utils/ldap/sql2ldifadd.pl -text svneol=unset#text/x-perl
src/utils/ldap/sql2ldifmod.pl -text svneol=unset#text/x-perl
+src/utils/list-admins.php -text
src/utils/list-enabled-plugins.sh -text
src/utils/manage-apache-config.sh -text svneol=unset#text/x-sh
src/utils/manage-translations.sh -text svneol=unset#text/x-sh
}
}
- // Disabled to keep user choice from registration page.
-// $this->setUseSCM ($template->usesSCM()) ;
+ if (0) {
+ /* use SCM plugin from template group */
+ $this->setUseSCM($template->usesSCM());
- foreach ($template->getPlugins() as $plugin_id => $plugin_name) {
- if (preg_match('/^scm/', $plugin_name) && ($plugin_name != 'scmhook')) {
+ foreach ($template->getPlugins() as
+ $plugin_id => $plugin_name) {
+ $this->setPluginUse($plugin_name);
+ }
+ } else {
+ /* use SCM choice from registration page */
+
+ foreach ($template->getPlugins() as
+ $plugin_id => $plugin_name) {
+ if (substr($plugin_name, 3) == 'scm' &&
+ $plugin_name != 'scmhook') {
+ /* skip copying scm plugins */
+ continue;
+ }
+ /* enable other plugins though */
$this->setPluginUse($plugin_name);
}
}
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+if (!getenv('SERVER_SOFTWARE')) {
+ /* when running outside of the Web */
+
+ /* enable maximum error reporting */
+ error_reporting(-1);
+ /* disable output buffering */
+ $no_gz_buffer = true;
+ /* allow it to eat all memory */
+ ini_set("memory_limit", -1);
+}
+
// Attempt to set up the include path, to fix problems with relative includes
$fusionforge_basedir = dirname(dirname(dirname( __FILE__ )));
}
}
- $html_hdr .= '['.count($surveys).($count_new ? ", <b>".sprintf(_('%s new'), array($count_new))."</b>]" : ']').'</td></tr>';
+ $html_hdr .= '['.count($surveys).($count_new ? ", <b>".sprintf(_('%d new'), $count_new)."</b>]" : ']').'</td></tr>';
$html_my_surveys .= $html_hdr.$html;
}
$html_my_surveys .= '</table>';
fi
# Create the appropriate database
- tmp1=$(mktemp /tmp/$pattern)
- tmp2=$(mktemp /tmp/$pattern)
if ! exist_db $db_name ; then
+ tmp1=$(mktemp /tmp/$pattern)
+ tmp2=$(mktemp /tmp/$pattern)
if su -s /bin/sh postgres -c "/usr/bin/psql template1" 1> $tmp1 2> $tmp2 <<EOF \
&& [ "$(tail -n +2 $tmp1 | head -1)" = 'CREATE DATABASE' ] ;
SET LC_MESSAGES = 'C' ;
plugins/authbuiltin/common usr/share/@OLDPACKAGE@/plugins/authbuiltin/
plugins/authbuiltin/www usr/share/@OLDPACKAGE@/plugins/authbuiltin/
plugins/authbuiltin/etc/*.ini etc/@PACKAGE@/config.ini.d/
+#
+utils/list-admins.php usr/share/@OLDPACKAGE@/bin/
--- /dev/null
+#!/usr/bin/php -f
+<?php
+require "/usr/share/gforge/common/include/env.inc.php";
+require_once $gfcommon."include/pre.php";
+$admins = RBACEngine::getInstance()->getUsersByAllowedAction("forge_admin", -1);
+$anames = array_map(create_function("\$x", "return \$x->getUnixName();"), $admins);
+sort($anames); echo join(" ", $anames) . "\n";
lastsection=''
tmp=$(mktemp)
cat > $tmp <<EOF
-# This is a generated file with values migrated from your previous configuration
-# You may want to move the values in here to the main configuration files
+; This is a generated file with values migrated from your previous configuration
+; You may want to move the values in here to the main configuration files
EOF
add_config core account_manager_type >> $tmp
lastsection=''
tmp=$(mktemp)
cat > $tmp <<EOF
-# This is a generated file with values migrated from your previous configuration
-# You may want to move the values in here to the main configuration files
+; This is a generated file with values migrated from your previous configuration
+; You may want to move the values in here to the main configuration files
EOF
add_config core database_host >> $tmp