--- mahara-1.0.3.orig/REPO_HAS_MOVED +++ mahara-1.0.3/REPO_HAS_MOVED @@ -0,0 +1,27 @@ +Oh hai. Just so you know, the git repository for Mahara is now at +git.mahara.org. You can do one of two things to update to using the new +repository: + +1. edit the file .git/config. It will have a block something like (not + necessarily exactly like) this: + + [remote "origin"] + url = http://git.catalyst.net.nz/mahara.git + fetch = +refs/heads/*:refs/remotes/origin/* + + Change the url line to read: + + url = http://git.mahara.org/git/mahara.git + +Then run 'git fetch origin' or 'git pull' as you'd normally do and see if you +get new stuff. + +(ps: I don't know what will happen if you change the protocol from http to git, +but it's probably better if you can use the git protocol, it's smarter and will +result in you downloading less stuff) + +2. Remove this repository and clone afresh: + + git clone git://git.mahara.org/mahara.git + +kthxbye --- mahara-1.0.3.orig/debian/mahara.dirs +++ mahara-1.0.3/debian/mahara.dirs @@ -0,0 +1,5 @@ +etc/mahara +usr/share/mahara +var/lib/mahara +var/lib/mahara/smarty/cache +var/lib/mahara/smarty/compile --- mahara-1.0.3.orig/debian/mahara.templates +++ mahara-1.0.3/debian/mahara.templates @@ -0,0 +1,48 @@ +Template: mahara/db_type +Type: select +Default: postgres8 +Choices: postgres8, mysql5 +_Description: Database type: + What type of database should be used for the Mahara site + +Template: mahara/db_host +Type: string +Default: +_Description: Database host: + Which database host should be used for the Mahara site + You can leave this blank to connect via UNIX sockets + +Template: mahara/db_port +Type: string +Default: +_Description: Database port: + Which database port should be used for the Mahara site + You can leave this blank for the default + +Template: mahara/db_name +Type: string +Default: mahara +_Description: Database name (not username): + Which database should be used for the Mahara site + +Template: mahara/db_user +Type: string +Default: mahara +_Description: Database username: + Which username should be used to connect to the Mahara database + +Template: mahara/db_pass +Type: string +Default: +_Description: Database password: + Which password is associated with the given username + You can leave this blank if you are not using password authentication. + +Template: mahara/smtphosts +Type: string +Default: +_Description: SMTP Hosts: + Comma separated list of SMTP servers to use to send mail + . + If you leave this blank, the system mailer will be used. Generally, this will + work fine --- mahara-1.0.3.orig/debian/mahara-apache2.dirs +++ mahara-1.0.3/debian/mahara-apache2.dirs @@ -0,0 +1,2 @@ +etc/mahara +usr/share/mahara --- mahara-1.0.3.orig/debian/mahara.logrotate +++ mahara-1.0.3/debian/mahara.logrotate @@ -0,0 +1,7 @@ +/var/log/mahara/cron.log { + create 644 www-data www-data + rotate 12 + weekly + compress + missingok +} --- mahara-1.0.3.orig/debian/rules +++ mahara-1.0.3/debian/rules @@ -0,0 +1,95 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: configure-stamp + +install: configure-stamp + dh_testdir + dh_testroot + dh_installdirs + + # Main Mahara files + cp -r $(CURDIR)/htdocs/* $(CURDIR)/debian/mahara/usr/share/mahara + + # Exclude common files + find $(CURDIR)/debian/mahara/usr/share/mahara/ -name "readme.txt" -exec rm {} \; + find $(CURDIR)/debian/mahara/usr/share/mahara/ -name "license.txt" -exec rm {} \; + find $(CURDIR)/debian/mahara/usr/share/mahara/ -name "COPYING*" -exec rm {} \; + find $(CURDIR)/debian/mahara/usr/share/mahara/ -name "README" -exec rm {} \; + find $(CURDIR)/debian/mahara/usr/share/mahara/ -name "LICENSE*" -exec rm {} \; + + # Exclude specific files/directories + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/theme/default/static/captcha.ttf + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/theme/schoolmyportfolio/static/captcha.ttf + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/robots.txt + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/phpmailer/ChangeLog.txt + rm -rf $(CURDIR)/debian/mahara/usr/share/mahara/lib/adodb/docs/ + rm -rf $(CURDIR)/debian/mahara/usr/share/mahara/lib/adodb/tests/ + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/adodb/pear/readme.Auth.txt + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/snoopy/configure.in + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/snoopy/INSTALL + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/snoopy/ChangeLog + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/snoopy/FAQ + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/snoopy/AUTHORS + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/snoopy/Makefile.am + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/snoopy/autogen.sh + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/snoopy/TODO + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/snoopy/NEWS + rm -rf $(CURDIR)/debian/mahara/usr/share/mahara/lib/pear/File + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/pear/File.php + rm -rf $(CURDIR)/debian/mahara/usr/share/mahara/lib/pear/PEAR + rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/pear/PEAR.php + rm -rf $(CURDIR)/debian/mahara/usr/share/mahara/lib/smarty/libs/ + + # Config files (common package) + cp $(CURDIR)/debian/config.php $(CURDIR)/debian/mahara/etc/mahara/ + cp $(CURDIR)/htdocs/robots.txt $(CURDIR)/debian/mahara/etc/mahara/ + + # Config file (-apache2) + cp $(CURDIR)/htdocs/.htaccess $(CURDIR)/debian/mahara-apache2/usr/share/mahara + cp $(CURDIR)/debian/apache.conf $(CURDIR)/debian/mahara-apache2/etc/mahara/apache.conf + +clean: + dh_testdir + dh_testroot + rm -f configure-stamp + dh_clean + debconf-updatepo + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installdebconf + dh_installcron + dh_installlogrotate + dh_compress + dh_fixperms + + dh_installdeb + + dh_link + + dh_gencontrol + dh_md5sums + + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch install configure --- mahara-1.0.3.orig/debian/mahara.preinst +++ mahara-1.0.3/debian/mahara.preinst @@ -0,0 +1,35 @@ +#! /bin/sh +# preinst script for mahara +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + upgrade) + rm -rf /var/lib/mahara/smarty/compile/* + ;; + install|abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- mahara-1.0.3.orig/debian/mahara.docs +++ mahara-1.0.3/debian/mahara.docs @@ -0,0 +1 @@ +README --- mahara-1.0.3.orig/debian/NEWS +++ mahara-1.0.3/debian/NEWS @@ -0,0 +1,8 @@ +mahara (0.9.0~dev) unstable; urgency=low + + * The new networking support in Mahara requires the curl, openssl and xmlrpc + libs. If they are not installed, you will see environment level errors on each + screen of your Mahara installation. You can solve this by disabling logging of + environment level errors in config.php, or installing php5-{curl,openssl,xmlrpc} + + -- Nigel McNie Thu, 9 Aug 2007 17:10:06 +1200 --- mahara-1.0.3.orig/debian/mahara.links +++ mahara-1.0.3/debian/mahara.links @@ -0,0 +1,4 @@ +usr/share/mahara/js/MochiKit/Packed.js usr/share/mahara/js/MochiKit/setup.js +etc/mahara/config.debconf.php usr/share/mahara/config.debconf.php +etc/mahara/config.php usr/share/mahara/config.php +etc/mahara/robots.txt usr/share/mahara/robots.txt --- mahara-1.0.3.orig/debian/mahara.postinst +++ mahara-1.0.3/debian/mahara.postinst @@ -0,0 +1,85 @@ +#!/bin/sh +# postinst script for mahara-apache +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +#DEBHELPER# + +. /usr/share/debconf/confmodule + +CONFIG_DEBCONF_PHP=/etc/mahara/config.debconf.php + +case "$1" in + configure) + # Configure Mahara + echo " $CONFIG_DEBCONF_PHP + echo "// WARNING: DO NOT EDIT THIS FILE!" >> $CONFIG_DEBCONF_PHP + echo "//" >> $CONFIG_DEBCONF_PHP + echo "// It is automatically generated by debconf and will be overwritten" >> $CONFIG_DEBCONF_PHP + echo "// everytime the mahara Debian package is upgraded." >> $CONFIG_DEBCONF_PHP + echo "// Use 'dpkg-reconfigure mahara' instead." >> $CONFIG_DEBCONF_PHP + echo "//" >> $CONFIG_DEBCONF_PHP + echo "// Your local customizations should go into /etc/mahara/config.php" >> $CONFIG_DEBCONF_PHP + echo "if (!defined('CRON')) {" >> $CONFIG_DEBCONF_PHP + echo " \$cfg->wwwroot = (isset(\$_SERVER['HTTPS']) ? 'https://' : 'http://') . \$_SERVER['SERVER_NAME'] . '/mahara/';" >> $CONFIG_DEBCONF_PHP + echo "}" >> $CONFIG_DEBCONF_PHP + db_get mahara/db_type + echo "\$cfg->dbtype = '${RET}';" >> $CONFIG_DEBCONF_PHP + db_get mahara/db_host + echo "\$cfg->dbhost = '${RET}';" >> $CONFIG_DEBCONF_PHP + db_get mahara/db_port + echo "\$cfg->dbport = '${RET}';" >> $CONFIG_DEBCONF_PHP + db_get mahara/db_name + echo "\$cfg->dbname = '${RET}';" >> $CONFIG_DEBCONF_PHP + db_get mahara/db_user + echo "\$cfg->dbuser = '${RET}';" >> $CONFIG_DEBCONF_PHP + db_get mahara/db_pass + echo "\$cfg->dbpass = '${RET}';" >> $CONFIG_DEBCONF_PHP + db_reset mahara/db_pass + db_get mahara/smtphosts + if [ -n "${RET}" ]; then + echo "\$cfg->smtphosts = '${RET}';" >> $CONFIG_DEBCONF_PHP + fi + + # Set Dataroot + chown www-data:www-data /var/lib/mahara + chown www-data:www-data /var/lib/mahara/smarty + chown www-data:www-data /var/lib/mahara/smarty/cache + chown www-data:www-data /var/lib/mahara/smarty/compile + echo "\$cfg->dataroot = '/var/lib/mahara';" >> $CONFIG_DEBCONF_PHP + echo "?>" >> $CONFIG_DEBCONF_PHP + + # Touch cron log + mkdir -p /var/log/mahara + touch /var/log/mahara/cron.log + chown www-data:www-data /var/log/mahara/cron.log + + # Link to captcha font + [ ! -h /usr/share/mahara/theme/default/static/captcha.ttf ] && ln -s /usr/share/fonts/truetype/freefont/FreeMono.ttf /usr/share/mahara/theme/default/static/captcha.ttf + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +db_stop +exit 0 --- mahara-1.0.3.orig/debian/apache.conf +++ mahara-1.0.3/debian/apache.conf @@ -0,0 +1,42 @@ +# Read README.Debian for instructions on setting up the apache config + +# Uncomment this to add an alias. +#Alias /mahara /usr/share/mahara + +# Uncomment this if you want to use a vhost. Remember to set $cfg->wwwroot in +# /etc/mahara/config.php! +# +# ServerName your-server-name-here +# DocumentRoot /usr/share/mahara +# + +# There should be little need for you to touch the directives below this line + + + Order allow,deny + Deny from all + + + + Order deny,allow + Allow from all + + + + Options -Indexes + AllowOverride all + + + + + ExpiresActive On + ExpiresDefault "access plus 1 hour" + + + + + + ExpiresActive On + ExpiresDefault "access plus 1 hour" + + --- mahara-1.0.3.orig/debian/mahara-apache2.links +++ mahara-1.0.3/debian/mahara-apache2.links @@ -0,0 +1 @@ +etc/mahara/apache.conf etc/apache2/conf.d/mahara --- mahara-1.0.3.orig/debian/mahara.cron.d +++ mahara-1.0.3/debian/mahara.cron.d @@ -0,0 +1,5 @@ +# +# Mahara implements its own cron to cater for people who need to run it in +# situations where normal unixy cron isn't available. +# +* * * * * www-data if [ -r /usr/share/mahara/lib/cron.php ] ; then /usr/bin/php5 /usr/share/mahara/lib/cron.php >>/var/log/mahara/cron.log 2>&1 ; fi --- mahara-1.0.3.orig/debian/README.Debian +++ mahara-1.0.3/debian/README.Debian @@ -0,0 +1,57 @@ +Setting up Mahara +----------------- + +There are two steps involved in setting up Mahara: + +1. Create the database, and grant a user access to it +2. Set up the apache configuration + +Setting up the database for Mahara +----------------------------------- + +Mahara assumes that you have properly created the database and the user account +before you connect to the site for the first time. + +Here's how to create a 'maharauser' account on Postgres: + + $ sudo -u postgres createuser -SRDP maharauser + Enter password for new role: ******** + Enter it again: ******** + CREATE ROLE + +and how to create a new 'maharadb' database: + + $ sudo -u postgres createdb -O maharauser -E utf8 maharadb + CREATE DATABASE + +Here's how to create a 'maharauser' account on MySQL: + + $ mysql -u root -p + Enter password: + > CREATE DATABASE mahara; + Query OK, 1 row affected (0.00 sec) + > GRANT ALL ON mahara.* to maharax IDENTIFIED BY 'password'; + Query OK, 0 rows affected (0.00 sec) + > FLUSH PRIVILEGES; + Query OK, 0 rows affected (0.00 sec) + > exit + Bye + +Set up the apache configuration +------------------------------- + +You have two options. One is to use an alias, the other is to use a virtual +host. + +By default, Mahara is set up to be run at http://localhost/mahara/. In order to +enable this: + +1. Edit /etc/mahara/apache.conf and uncomment the 'Alias' line +2. Reload apache with /etc/init.d/apache2 reload + +If you want to run Mahara as a virtualhost: + +1. Uncomment the virtualhost block in /etc/mahara/apache.conf +2. Edit /etc/mahara/config.php and set the wwwroot to what you set the + ServerName to in the virtualhost conf +3. Reload apache with /etc/init.d/apache2 reload --- mahara-1.0.3.orig/debian/mahara-apache2.postrm +++ mahara-1.0.3/debian/mahara-apache2.postrm @@ -0,0 +1,42 @@ +#!/bin/sh +# postrm script for mahara +# +# see: dh_installdeb(1) + +set -e + +#DEBHELPER# + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + purge) + ;; + upgrade|remove) + # These scripts were installed by previous versions of packaging + rm -f /etc/mahara/servername.conf + rm -f /etc/mahara/serverredirects.conf + ;; + failed-upgrade|abort-install|abort-upgrade|disappear|upgrade) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +exit 0 + + + --- mahara-1.0.3.orig/debian/changelog +++ mahara-1.0.3/debian/changelog @@ -0,0 +1,91 @@ +mahara (1.0.3-1) unstable; urgency=low + + [ Nigel McNie ] + * New Upstream Version + * Tweak apache rules to give access to some required files (closes: #479858) + + [ Francois Marier ] + * Bump Standards-Version up to 3.8.0 + * Bump the Postgres version number to 8.3 to match the latest version in sid + + -- Francois Marier Fri, 13 Jun 2008 14:18:13 +1200 + +mahara (1.0.2-1) unstable; urgency=low + + * New Upstream Version + + -- Nigel McNie Tue, 29 Apr 2008 11:15:39 +1200 + +mahara (1.0.1-1) unstable; urgency=low + + [ Francois Marier ] + * debian/copyright: Bump the copyright year for Mahara and remove the + reference to Smarty since we are no longer shipping it. + * Revised French translation thanks to Christian Perrier (closes: #472770) + * Updated Portugese translation thanks to Américo Monteiro (closes: #471952) + + [ Nigel McNie ] + * Don't chmod -R the dataroot directory in the postinst. It takes ages and + is completely unnecessary. + * Update the Vcs- control fields to point at the new location for the debian + packaging + * Removed a whole bunch of configuration questions from the mahara-apache2 + package that are now unnecessary + * Support running the site under an apache alias; by default when installed + the package won't clobber other sites (closes: #464726) + * Set Mahara Debian Packaging Team as maintainer, set myself, Penny and + Francois as uploaders. + * Add MySQL howto instructions to README.Debian (closes: #475278) + + -- Francois Marier Fri, 11 Apr 2008 16:40:01 +1200 + +mahara (0.9.2-2) unstable; urgency=low + + [ Nigel McNie ] + * Removed recommends on php5-openssl and postgresql-8.1 + * Changed default server name to mahara; moved asking about the servername + to mahara-apache2 so running `dpkg-reconfigure -plow mahara-apache2' + changes it (Closes: #464726) + * Removed the restart_apache helper function + * Re-ran debconf-updatepo + * Depend on the smarty debian package rather than bundling our own, + cherry-picked 21b81a5c4c4bfd0408410fdfdd6a8f0217e8f9ff from 0.9_STABLE to + assist with this (Closes: #471201) + + [ Francois Marier ] + * Bump debhelper compatibility to 6 + + -- Nigel McNie Tue, 18 Mar 2008 12:26:31 +1300 + +mahara (0.9.2-1) unstable; urgency=low + + * New upstream release + * Removed copyright notices for KSES and validateurlsyntax.php, both of + which are no longer included in Mahara. + * Reset the database password field after using it to write out the config + file. This allows people to reconfigure the package to remove the + password, at the expense of having to type in the password every time they + reconfigure. + + -- Nigel McNie Wed, 30 Jan 2008 15:52:43 +1300 + +mahara (0.9.1-1) unstable; urgency=low + + [ Francois Marier ] + * Add Portugese debconf translation (closes: #457978). Thanks to Traduz! + * Add Spanish debconf translation (closes: #460236). Thanks Germana! + + [ Nigel McNie ] + * New upstream release + * Set myself as maintainer + * Backported patch 8ffa8b55da108d0ab79d2200a14b152b7d37b0fe, which makes + Mahara respect the system include path. This allows Mahara to use the + system PEAR libraries instead of crashing when it can't find them. + + -- Nigel McNie Wed, 16 Jan 2008 15:28:33 +1300 + +mahara (0.9.0-1) unstable; urgency=low + + * Initial upload to unstable (closes: #447203) + + -- Francois Marier Mon, 17 Dec 2007 09:36:53 +1300 --- mahara-1.0.3.orig/debian/watch +++ mahara-1.0.3/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/~.*// \ + http://eduforge.org/frs/?group_id=176 /frs/download.php/\d+/mahara-([\d.]+).tar.bz2 --- mahara-1.0.3.orig/debian/mahara.postrm +++ mahara-1.0.3/debian/mahara.postrm @@ -0,0 +1,44 @@ +#!/bin/sh +# postrm script for mahara +# +# see: dh_installdeb(1) + +set -e + +#DEBHELPER# + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + purge) + rm -rf /var/log/mahara/ + [ -d /var/lib/mahara ] && echo "NOTE: purge does _not_ remove /var/lib/mahara, you must do this yourself if you really want to!" + rm -f /etc/mahara/config.debconf.php + ;; + remove) + rm -f /usr/share/mahara/theme/default/static/captcha.ttf + rm -rf /var/lib/mahara/smarty/compile/* + ;; + failed-upgrade|abort-install|abort-upgrade|disappear|upgrade) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +exit 0 + + + --- mahara-1.0.3.orig/debian/config.php +++ mahara-1.0.3/debian/config.php @@ -0,0 +1,127 @@ +. + * + * @package mahara + * @subpackage core + * @author Penny Leach + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL + * @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz + * + */ + +$cfg = new StdClass; + +require('config.debconf.php'); + +// database connection details +//$cfg->dbtype = 'postgres8'; +//$cfg->dbhost = 'localhost'; +//$cfg->dbport = ''; +//$cfg->dbname = 'mahara'; +//$cfg->dbuser = 'mahara'; +//$cfg->dbpass = ''; +//$cfg->dbprefix = ''; + +// wwwroot - the web-visible path to your Mahara installation +// Normally, this is automatically detected - if it doesn't work for you +// then try specifying it here +//$cfg->wwwroot = 'http://myhost.com/mahara/'; + +// dataroot - uploaded files are stored here +// must be writable by the webserver and outside document root. +// Mahara will NOT RUN if this is inside your document root, because +// this is a big security hole. +//$cfg->dataroot = '/path/to/uploaddir'; + +// system mail address. emails out come from this address. +// if not specified, will default to noreply@ automatically detected host. +// if that doesn't work or you want something else, then specify it here. +// $cfg->noreplyaddress = 'noreply@myhost.com' + +// Logging configuration +// For each log level, you can specify where the messages are displayed. +// LOG_TARGET_SCREEN makes the error messages go to the screen - useful +// when debugging but not on a live site! +// LOG_TARGET_ERRORLOG makes the error messages go to the log as specified +// by the apache ErrorLog directive. It's probably useful to have this on +// for all log levels. +// You can combine them with bitwise operations, +// e.g. LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG +// +// This configuration is suitable for people running Mahara for the first +// time. You will immediately see environment errors, and so can correct +// them. You will be able to see other debugging information in your error +// logs. Once your site is up and running you might want to remove the +// environment level logging completely, and just log everything else to +// the error log. +$cfg->log_dbg_targets = LOG_TARGET_ERRORLOG; +$cfg->log_info_targets = LOG_TARGET_ERRORLOG; +$cfg->log_warn_targets = LOG_TARGET_ERRORLOG; +$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG; +// This configuration is suitable for developers. You will see all errors +// and they will also be in the logs. +//$cfg->log_dbg_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG; +//$cfg->log_info_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG; +//$cfg->log_warn_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG; +//$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG; + +// The log levels that will generate backtraces. Useful for development, +// but probably only warnings are useful on a live site. +//$cfg->log_backtrace_levels = LOG_LEVEL_WARN | LOG_LEVEL_ENVIRON; +$cfg->log_backtrace_levels = LOG_LEVEL_WARN; + +// Developer mode +// When set, the following things (among others) will happen: +// +// * 'debug.js' will be included on each page. You can edit this file to add +// debugging javascript at your discretion +// * 'debug.css' will be included on each page. You can edit this file to add +// debugging CSS at your discretion +// * firebuglite will be included, if you are not using Firefox +// * the unpacked version of MochiKit will be used +// +// These options are a performance hit otherwise, enable when you are +// developing for Mahara +$cfg->developermode = false; + +// capture performance information and print it +// $cfg->perftofoot = true; // needs a call to mahara_performance_info (smarty callback) - see default theme's footer.tpl +// $cfg->perftolog = true; +// if neither are set, performance info wont be captured. + +// mail handling +// if you want mahara to use smtp servers to send mail, enter one or more here +// blank means mahara will use the default PHP method. +// $cfg->smtphosts = 'mail.a.com;mail.b.com'; +// If you have specified an smtp server above, and the server requires authentication, +// enter them here +// $cfg->smtpuser = ''; +// $cfg->smtppass = ''; + +// xmlrpc +// if you're running in a configuration where the host contacting you will be +// using an IP address that is not the same as the IP address that is registered +// for its host name, then you should change the value below to 'true'. +$cfg->xmlrpc_allow_masquerading = false; + +// maximum allowed size of uploaded images +// NOTE: the scalable resize might result in images with one dimesion larger than one of these sizes, but not both +$cfg->imagemaxwidth = 1024; +$cfg->imagemaxheight = 1024; + +?> --- mahara-1.0.3.orig/debian/mahara.config +++ mahara-1.0.3/debian/mahara.config @@ -0,0 +1,22 @@ +#!/bin/sh -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +# Decide how important it is for the user to see this message +PRIORITY=high + +db_input $PRIORITY mahara/db_type || true +db_go +db_input $PRIORITY mahara/db_host || true +db_go +db_input medium mahara/db_port || true +db_go +db_input $PRIORITY mahara/db_name || true +db_go +db_input $PRIORITY mahara/db_user || true +db_go +db_input $PRIORITY mahara/db_pass|| true +db_go +db_input medium mahara/smtphosts || true +db_go --- mahara-1.0.3.orig/debian/compat +++ mahara-1.0.3/debian/compat @@ -0,0 +1 @@ +6 --- mahara-1.0.3.orig/debian/copyright +++ mahara-1.0.3/debian/copyright @@ -0,0 +1,153 @@ +This package was debianized by Martyn Smith on +Tue, 9 Jan 2007 10:47:50 +1300. + +It was downloaded from http://mahara.eduforge.org + +Upstream Authors: + Martyn Smith + Penny Leach + Nigel McNie + Richard Mansfield + Alastair Pharo + Francois Marier + Clare Lenihan + +Copyright: (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +You are free to distribute this software under the terms of the GNU General +Public License. On Debian systems, the complete text of the GNU General +Public License can be found in /usr/share/common-licenses/GPL-3 file. + +The Debian packaging is (C) 2007-2008, Catalyst IT and is +licensed under the GPL, see `/usr/share/common-licenses/GPL'. + +This package also includes the following code: + + htdocs/js/tinymce/: + Copyright (C) 2004-2007 Moxiecode Systems AB + Released under the GNU Lesser General Public License 2.1+ + + htdocs/js/tinymce/plugins/devkit/jscripts/diff.js: + Copyright (C) 2006 Neil Fraser + Released under the GNU General Public License + + htdocs/lib/adodb/: + Copyright (c) 2000-2004 John Lim + Released under both the GNU Lesser General Public License 2.1+ + and a Modified BSD license + + htdocs/lib/phpmailer/: + Copyright (C) 2001-2005 Brent R. Matzelle + Released under the GNU Lesser General Public License 2.1+ + + htdocs/lib/pear/XML/: + Copyright (C) 2005 James Stewart + Released under the GNU Lesser General Public License 2.1+ + + htdocs/lib/snoopy/: + Copyright (C) 1999-2000 ispi + Released under the GNU Lesser General Public License 2.1+ + + htdocs/lib/pieforms/static/jscalendar/: + Copyright (C) 2002-2005 Mihai Bazon + Released under the GNU Lesser General Public License 2.1+ + + htdocs/js/MochiKit/Style.js: + Copyright (c) 2006 Yahoo! Inc. + Released under the Modified BSD license + + htdocs/lib/constants.php, searchlib.php, dml.php, ddl.php, + uploadmanager.php, mahara.php, web.php, file.php, xmldb/: + Copyright (C) 2006-2007 Catalyst IT Ltd + Copyright (C) 1999-2007 Martin Dougiamas + Released under the GNU General Public License 2+ + + htdocs/lib/xmldb/: + Copyright (C) 2006-2007 Catalyst IT Ltd + Copyright (C) 2001-2007 Martin Dougiamas + Copyright (C) 2001-2007 Eloy Lafuente + Released under the GNU General Public License 3+ + + htdocs/lib/pieforms/static/core/pieforms.js: + Copyright (C) 2006 Nigel McNie + Copyright (C) 2006 Drupal + Released under the GNU General Public License 2+ + + htdocs/search/internal/lib.php: + Copyright (C) 2006-2007 Catalyst IT + Copyright (C) 2007 Drupal + Released under the GNU General Public License + + htdocs/lib/htmlpurifier/: + Copyright (C) 2006-2008 Edward Z. Yang + Released under the GNU General Public License 2.1+ + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. +The complete text of the Modified BSD license can be found in +`/usr/share/common-licenses/BSD'. + + htdocs/lib/pieforms/static/core/MochiKit/ and + htdocs/js/MochiKit/: + Copyright (C) 2005-2006 Bob Ippolito + Released under the MIT License: + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + htdocs/js/MochiKit/Controls.js, DragAndDrop.js, Sortable.js: + Copyright (C) 2005 Thomas Fuchs + Released under the MIT License (see above) + + htdocs/lib/pieforms/JSON/: + Copyright (C) 2005 Michal Migurski + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN + NO EVENT SHALL CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- mahara-1.0.3.orig/debian/control +++ mahara-1.0.3/debian/control @@ -0,0 +1,37 @@ +Source: mahara +Section: web +Priority: optional +Maintainer: Mahara Debian Packaging Team +Uploaders: Nigel McNie , Penny Leach , Francois Marier +Build-Depends: debhelper (>= 6), po-debconf +Standards-Version: 3.8.0 +Homepage: http://www.mahara.org +Vcs-Git: git://git.debian.org/git/collab-maint/mahara.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/mahara.git;a=summary + +Package: mahara +Architecture: all +Depends: ${misc:Depends}, php5-pgsql | php5-mysql, php5-cli, php5-gd, file, cron, perl, ttf-freefont, php-file, php-pear, smarty +Recommends: mahara-apache2, postgresql | postgresql-8.3 | mysql-server | mysql-server-5.0, clamav, clamav-daemon, php5-curl, php5-xmlrpc, php5-imagick, libfile-slurp-perl, libtext-diff-perl +Description: Electronic portfolio, weblog, and resume builder + Mahara is a fully featured electronic portfolio, weblog, resume builder and + social networking system, connecting users and creating online communities. + . + Mahara is designed to provide users with the tools to create a personal and + professional learning and development environment. + . + This is the core Mahara package, it does not include any of the web server + configuration. + +Package: mahara-apache2 +Architecture: all +Depends: ${misc:Depends}, mahara (>= 1.0.1-1), apache2, libapache2-mod-php5 +Conflicts: mahara-apache +Description: Electronic portfolio, weblog, and resume builder - apache2 configuration + Mahara is a fully featured electronic portfolio, weblog, resume builder and + social networking system, connecting users and creating online communities. + . + Mahara is designed to provide users with the tools to create a personal and + professional learning and development environment. + . + This package configures Mahara for the Apache 2.x web server. --- mahara-1.0.3.orig/debian/po/es.po +++ mahara-1.0.3/debian/po/es.po @@ -0,0 +1,171 @@ +# Mahara translation to Spanish +# Copyright (C) 2007 +# This file is distributed under the same license as the mahara package. +# Changes: +# - Initial translation +# Maria Germana Oliveira , 2007. +# +# Traductores, si no conoce el formato PO, merece la pena leer la +# documentación de gettext, especialmente las secciones dedicadas a este +# formato, por ejemplo ejecutando: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Equipo de traducción al español, por favor lean antes de traducir +# los siguientes documentos: +# +# - El proyecto de traducción de Debian al español +# http://www.debian.org/intl/spanish/coordinacion +# especialmente las notas de traducción en +# http://www.debian.org/intl/spanish/notas +# +# - La guía de traducción de po's de debconf: +# /usr/share/doc/po-debconf/README-trans +# o http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# +msgid "" +msgstr "" +"Project-Id-Version: mahara 0.9.0-1\n" +"Report-Msgid-Bugs-To: mahara@packages.debian.org\n" +"POT-Creation-Date: 2008-03-28 14:33+1300\n" +"PO-Revision-Date: 2008-01-09 14:27-0430\n" +"Last-Translator: Maria Germana Oliveira Blazetic \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Description +#: ../mahara.templates:1001 +msgid "Database type:" +msgstr "Tipo de base de datos:" + +#. Type: select +#. Description +#: ../mahara.templates:1001 +msgid "What type of database should be used for the Mahara site" +msgstr "¿Qué tipo de base de datos debería usarse para el sitio de Mahara?" + +#. Type: string +#. Description +#: ../mahara.templates:2001 +msgid "Database host:" +msgstr "Servidor de base de datos:" + +#. Type: string +#. Description +#: ../mahara.templates:2001 +msgid "" +"Which database host should be used for the Mahara site You can leave this " +"blank to connect via UNIX sockets" +msgstr "" +"¿Qué servidor de base de datos debería usarse para el sitio de Mahara? Puede " +"dejar esto en blanco para conectarse a través de puertos de UNIX" + +#. Type: string +#. Description +#: ../mahara.templates:3001 +msgid "Database port:" +msgstr "Puerto de conexión de la base de datos:" + +#. Type: string +#. Description +#: ../mahara.templates:3001 +msgid "" +"Which database port should be used for the Mahara site You can leave this " +"blank for the default" +msgstr "" +"¿Qué puerto de base de datos debería usarse para el sitio de Mahara? Puede " +"dejar esto en blanco para usar el predeterminado" + +#. Type: string +#. Description +#: ../mahara.templates:4001 +msgid "Database name (not username):" +msgstr "Nombre de la base de datos (no el nombre de usuario):" + +#. Type: string +#. Description +#: ../mahara.templates:4001 +msgid "Which database should be used for the Mahara site" +msgstr "¿Qué base de datos debería usarse para el sitio de Mahara?" + +#. Type: string +#. Description +#: ../mahara.templates:5001 +msgid "Database username:" +msgstr "Nombre de usuario de la base de datos:" + +#. Type: string +#. Description +#: ../mahara.templates:5001 +msgid "Which username should be used to connect to the Mahara database" +msgstr "" +"¿Qué nombre de usuario debería usarse para conectarse a la base de datos del " +"sitio de Mahara?" + +#. Type: string +#. Description +#: ../mahara.templates:6001 +msgid "Database password:" +msgstr "Contraseña de la base de datos:" + +#. Type: string +#. Description +#: ../mahara.templates:6001 +msgid "" +"Which password is associated with the given username You can leave this " +"blank if you are not using password authentication." +msgstr "" +"¿Qué contraseña estará asociada con el nombre de usuario dado anteriormente? " +"Puede dejar esto en blanco si no está usando la autenticación por contraseña." + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "SMTP Hosts:" +msgstr "Servidores SMTP:" + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "Comma separated list of SMTP servers to use to send mail" +msgstr "" +"Lista de servidores SMTP, separada por comas, usados para enviar correo " +"electrónico" + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "" +"If you leave this blank, the system mailer will be used. Generally, this " +"will work fine" +msgstr "" +"Si deja esto en blanco, se usará el servidor de correo del sistema. " +"Generalmente esto debería funcionar bien" + +#~ msgid "Server name:" +#~ msgstr "Nombre del Servidor:" + +#~ msgid "This is the servername of the Mahara site." +#~ msgstr "Este será el nombre de servidor del sitio de Mahara." + +#~ msgid "" +#~ "Note that this is just the domain name, so for \"http://my.site.com\" you " +#~ "only need to enter \"my.site.com\"" +#~ msgstr "" +#~ "Note, que esto es solo el nombre de dominio, por lo tanto para «http://mi." +#~ "sitio.com» solo necesita introducir «mi.sitio.com»" + +#~ msgid "Server redirects:" +#~ msgstr "Redireccionamientos del servidor:" + +#~ msgid "" +#~ "Comma separated list of domain names that the server should permanently " +#~ "redirect to the server name." +#~ msgstr "" +#~ "Lista de nombres de dominio, separada por comas, que el servidor deberá " +#~ "redirigir permanentemente al nombre de servidor." --- mahara-1.0.3.orig/debian/po/POTFILES.in +++ mahara-1.0.3/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] mahara.templates --- mahara-1.0.3.orig/debian/po/pt.po +++ mahara-1.0.3/debian/po/pt.po @@ -0,0 +1,157 @@ +# translation of mahara debconf to Portuguese +# Mahara debconf questions +# Copyright (C) 2007 Américo Monteiro +# This file is distributed under the same license as the mahara package. +# +# Américo Monteiro , 2007, 2008. +msgid "" +msgstr "" +"Project-Id-Version: mahara 0.9.2-2\n" +"Report-Msgid-Bugs-To: mahara@packages.debian.org\n" +"POT-Creation-Date: 2008-03-28 14:33+1300\n" +"PO-Revision-Date: 2008-03-19 23:08+0000\n" +"Last-Translator: Américo Monteiro \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: select +#. Description +#: ../mahara.templates:1001 +msgid "Database type:" +msgstr "Tipo de base de dados:" + +#. Type: select +#. Description +#: ../mahara.templates:1001 +msgid "What type of database should be used for the Mahara site" +msgstr "Que tipo de base de dados deverá ser usada para o site Mahara?" + +#. Type: string +#. Description +#: ../mahara.templates:2001 +msgid "Database host:" +msgstr "Máquina da base de dados:" + +#. Type: string +#. Description +#: ../mahara.templates:2001 +msgid "" +"Which database host should be used for the Mahara site You can leave this " +"blank to connect via UNIX sockets" +msgstr "" +"Qual a máquina, com a base de dados, que deverá ser usada para o site " +"Mahara? Você pode deixar este campo vazio para ligação via sockets UNIX." + +#. Type: string +#. Description +#: ../mahara.templates:3001 +msgid "Database port:" +msgstr "Porto da base de dados:" + +#. Type: string +#. Description +#: ../mahara.templates:3001 +msgid "" +"Which database port should be used for the Mahara site You can leave this " +"blank for the default" +msgstr "" +"Qual o porto da base de dados que deverá ser usado para o site Mahara? Você " +"pode deixar este campo vazio para usar a pré-definição." + +#. Type: string +#. Description +#: ../mahara.templates:4001 +msgid "Database name (not username):" +msgstr "Nome da base de dados (não é o nome de utilizador):" + +#. Type: string +#. Description +#: ../mahara.templates:4001 +msgid "Which database should be used for the Mahara site" +msgstr "Qual base de dados deverá ser usada para o site Mahara?" + +#. Type: string +#. Description +#: ../mahara.templates:5001 +msgid "Database username:" +msgstr "Nome de utilizador da base de dados:" + +#. Type: string +#. Description +#: ../mahara.templates:5001 +msgid "Which username should be used to connect to the Mahara database" +msgstr "" +"Qual nome de utilizador deve ser usado para ligar à base de dados Mahara?" + +#. Type: string +#. Description +#: ../mahara.templates:6001 +msgid "Database password:" +msgstr "Palavra-chave da base de dados:" + +#. Type: string +#. Description +#: ../mahara.templates:6001 +msgid "" +"Which password is associated with the given username You can leave this " +"blank if you are not using password authentication." +msgstr "" +"Que palavra-chave está associada com o nome de utilizador dado? Você pode " +"deixar este campo vazio se você não está a usar autenticação por password." + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "SMTP Hosts:" +msgstr "Máquinas SMTP:" + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "Comma separated list of SMTP servers to use to send mail" +msgstr "" +"Lista de servidores SMTP, separados por vírgulas, a usar para enviar mail." + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "" +"If you leave this blank, the system mailer will be used. Generally, this " +"will work fine" +msgstr "" +"Se você deixar este campo vazio, o 'mailer' do sistema irá ser usado. De " +"modo geral, isto irá funcionar bem." + +#~ msgid "Server name:" +#~ msgstr "Nome do servidor:" + +#~ msgid "This is the servername of the Mahara site." +#~ msgstr "Isto é o nome de servidor do site Mahara." + +#~ msgid "" +#~ "It is up to you to ensure your chosen hostname resolves to this machine. " +#~ "See /usr/share/doc/mahara/README.Debian for more information." +#~ msgstr "" +#~ "Cabe-lhe a si assegurar-se que o nome de máquina escolhido endereça a " +#~ "esta máquina. Veja /usr/share/doc/mahara/README.Debian para mais " +#~ "informação." + +#~ msgid "" +#~ "Note that this is just the domain name, so for \"http://my.site.com\" you " +#~ "only need to enter \"my.site.com\"" +#~ msgstr "" +#~ "Note que isto é apenas o nome de domínio, então para \"http://meu.site." +#~ "com\" você apenas precisa de indicar \"meu.site.com\"." + +#~ msgid "Server redirects:" +#~ msgstr "Redireccionamentos do servidor:" + +#~ msgid "" +#~ "Comma separated list of domain names that the server should permanently " +#~ "redirect to the server name." +#~ msgstr "" +#~ "Lista de nomes de domínio, separada por vírgulas, que o servidor deverá " +#~ "permanentemente redireccionar para o nome de servidor." --- mahara-1.0.3.orig/debian/po/templates.pot +++ mahara-1.0.3/debian/po/templates.pot @@ -0,0 +1,115 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: mahara@packages.debian.org\n" +"POT-Creation-Date: 2008-03-28 14:33+1300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Description +#: ../mahara.templates:1001 +msgid "Database type:" +msgstr "" + +#. Type: select +#. Description +#: ../mahara.templates:1001 +msgid "What type of database should be used for the Mahara site" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:2001 +msgid "Database host:" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:2001 +msgid "" +"Which database host should be used for the Mahara site You can leave this " +"blank to connect via UNIX sockets" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:3001 +msgid "Database port:" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:3001 +msgid "" +"Which database port should be used for the Mahara site You can leave this " +"blank for the default" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:4001 +msgid "Database name (not username):" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:4001 +msgid "Which database should be used for the Mahara site" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:5001 +msgid "Database username:" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:5001 +msgid "Which username should be used to connect to the Mahara database" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:6001 +msgid "Database password:" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:6001 +msgid "" +"Which password is associated with the given username You can leave this " +"blank if you are not using password authentication." +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "SMTP Hosts:" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "Comma separated list of SMTP servers to use to send mail" +msgstr "" + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "" +"If you leave this blank, the system mailer will be used. Generally, this " +"will work fine" +msgstr "" --- mahara-1.0.3.orig/debian/po/de.po +++ mahara-1.0.3/debian/po/de.po @@ -0,0 +1,149 @@ +# Mahara debconf questions +# Copyright (C) 2007 +# This file is distributed under the same license as the mahara package. +# Heinz Krettek +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: mahara@packages.debian.org\n" +"POT-Creation-Date: 2008-03-28 14:33+1300\n" +"PO-Revision-Date: 2007-12-03 16:53+0100\n" +"Last-Translator: Heinz Krettek \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Description +#: ../mahara.templates:1001 +msgid "Database type:" +msgstr "Datenbanktyp:" + +#. Type: select +#. Description +#: ../mahara.templates:1001 +msgid "What type of database should be used for the Mahara site" +msgstr "Welche Datenbank soll für die Mahara Site benutzt werden" + +#. Type: string +#. Description +#: ../mahara.templates:2001 +msgid "Database host:" +msgstr "Datenbank Host:" + +#. Type: string +#. Description +#: ../mahara.templates:2001 +msgid "" +"Which database host should be used for the Mahara site You can leave this " +"blank to connect via UNIX sockets" +msgstr "" +"Welcher Datenbank Host soll für die Mahara Site benutzt werden Wenn Sie das " +"Feld leer lassen, wird die Verbindung über UNIX Sockets hergestellt" + +#. Type: string +#. Description +#: ../mahara.templates:3001 +msgid "Database port:" +msgstr "Datenbank Port:" + +#. Type: string +#. Description +#: ../mahara.templates:3001 +msgid "" +"Which database port should be used for the Mahara site You can leave this " +"blank for the default" +msgstr "" +"Welcher Datenbank Port soll für die Mahara Site benutzt werden Wenn Sie das " +"Feld leer lassen, wird die Standardeinstellung benutzt" + +#. Type: string +#. Description +#: ../mahara.templates:4001 +msgid "Database name (not username):" +msgstr "Datenbank Name (das ist nicht der Benutzername):" + +#. Type: string +#. Description +#: ../mahara.templates:4001 +msgid "Which database should be used for the Mahara site" +msgstr "Welche Datenbank soll für die Mahara Site benutzt werden" + +#. Type: string +#. Description +#: ../mahara.templates:5001 +msgid "Database username:" +msgstr "Datenbank Benutzername:" + +#. Type: string +#. Description +#: ../mahara.templates:5001 +msgid "Which username should be used to connect to the Mahara database" +msgstr "" +"Welcher Benutzername soll für die Verbindung zur Mahara Datenbank benutzt " +"werden" + +#. Type: string +#. Description +#: ../mahara.templates:6001 +msgid "Database password:" +msgstr "Datenbank Passwort:" + +#. Type: string +#. Description +#: ../mahara.templates:6001 +msgid "" +"Which password is associated with the given username You can leave this " +"blank if you are not using password authentication." +msgstr "" +"Das Passwort für den gewählten Benutzernamen. Wenn keine Passwort-" +"Authentifizierung benutzt wird, können Sie das Feld leer lassen" + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "SMTP Hosts:" +msgstr "SMTP Server:" + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "Comma separated list of SMTP servers to use to send mail" +msgstr "" +"Geben Sie hier den vollen Namen von einem oder mehreren lokalen SMTP-Servern " +"(getrennt durch Kommata) an, die Mahara für den E-Mail-Versand benutzen soll" + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "" +"If you leave this blank, the system mailer will be used. Generally, this " +"will work fine" +msgstr "" +"Wenn Sie dieses Feld frei lassen, wird Mahara die Standard-Methode von PHP " +"zum Senden von E-Mails verwenden" + +#~ msgid "Server name:" +#~ msgstr "Servername:" + +#~ msgid "This is the servername of the Mahara site." +#~ msgstr "Der Servername der Mahara Site." + +#~ msgid "" +#~ "Note that this is just the domain name, so for \"http://my.site.com\" you " +#~ "only need to enter \"my.site.com\"" +#~ msgstr "" +#~ "Beachten Sie, dass dies der Domainname ist, Sie müssen deshalb für " +#~ "\"http://meine.seite.com\" nur \"meine.seite.com\" eingeben" + +#~ msgid "Server redirects:" +#~ msgstr "Server Weiterleitungen:" + +#~ msgid "" +#~ "Comma separated list of domain names that the server should permanently " +#~ "redirect to the server name." +#~ msgstr "" +#~ "Geben Sie hier eine Liste (getrennt durch Kommata) der Domainnamen ein, " +#~ "die der Server permanent weiterleiten soll." --- mahara-1.0.3.orig/debian/po/fr.po +++ mahara-1.0.3/debian/po/fr.po @@ -0,0 +1,168 @@ +# Translation of mahara debconf templates to French +# Copyright (C) 2008 Christian Perrier +# This file is distributed under the same license as the mahara package. +# +# Christian Perrier , 2008. +# Francois Marier , 2007. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: mahara@packages.debian.org\n" +"POT-Creation-Date: 2008-03-28 14:33+1300\n" +"PO-Revision-Date: 2008-03-20 09:12+0100\n" +"Last-Translator: Christian Perrier \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: select +#. Description +#: ../mahara.templates:1001 +msgid "Database type:" +msgstr "Type de serveur de bases de données :" + +#. Type: select +#. Description +#: ../mahara.templates:1001 +msgid "What type of database should be used for the Mahara site" +msgstr "" +"Veuillez indiquer le type de serveur de bases de données à utiliser pour ce " +"site Mahara." + +#. Type: string +#. Description +#: ../mahara.templates:2001 +msgid "Database host:" +msgstr "Nom d'hôte du serveur de bases de données :" + +#. Type: string +#. Description +#: ../mahara.templates:2001 +msgid "" +"Which database host should be used for the Mahara site You can leave this " +"blank to connect via UNIX sockets" +msgstr "" +"Veuillez indiquer le nom d'hôte du serveur de bases de données à utiliser " +"pour ce site Mahara. Ce champ peut être laissé vide pour utiliser les " +"« sockets » UNIX." + +#. Type: string +#. Description +#: ../mahara.templates:3001 +msgid "Database port:" +msgstr "Port d'écoute du serveur de bases de données :" + +#. Type: string +#. Description +#: ../mahara.templates:3001 +msgid "" +"Which database port should be used for the Mahara site You can leave this " +"blank for the default" +msgstr "" +"Veuillez indiquer le port d'écoute du serveur de bases de données à utiliser " +"pour ce site Mahara. Ce champ peut être laissé vide pour utiliser le port " +"par défaut." + +#. Type: string +#. Description +#: ../mahara.templates:4001 +msgid "Database name (not username):" +msgstr "Nom de la base de données :" + +#. Type: string +#. Description +#: ../mahara.templates:4001 +msgid "Which database should be used for the Mahara site" +msgstr "" +"Veuillez indiquer le nom de la base de données à utiliser pour ce site " +"Mahara. Ce nom n'est pas l'identifiant de connexion." + +#. Type: string +#. Description +#: ../mahara.templates:5001 +msgid "Database username:" +msgstr "Identifiant de connexion à la base de données :" + +#. Type: string +#. Description +#: ../mahara.templates:5001 +msgid "Which username should be used to connect to the Mahara database" +msgstr "" +"Veuillez indiquer l'identifiant à utiliser pour les connexions à la base de " +"données de ce site Mahara." + +#. Type: string +#. Description +#: ../mahara.templates:6001 +msgid "Database password:" +msgstr "Mot de passe de connexion à la base de données :" + +#. Type: string +#. Description +#: ../mahara.templates:6001 +msgid "" +"Which password is associated with the given username You can leave this " +"blank if you are not using password authentication." +msgstr "" +"Veuillez indiquer le mot de passe de l'identifiant de connexion à la base de " +"données. Ce champ peut être laissé vide si vous n'utilisez pas " +"l'authentification par mot de passe." + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "SMTP Hosts:" +msgstr "Hôtes SMTP :" + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "Comma separated list of SMTP servers to use to send mail" +msgstr "" +"Veuillez indiquer la liste des serveurs SMTP à utiliser pour envoyer des " +"courriels. Les entrées multiples doivent être séparées par des virgules." + +#. Type: string +#. Description +#: ../mahara.templates:7001 +msgid "" +"If you leave this blank, the system mailer will be used. Generally, this " +"will work fine" +msgstr "Si ce champ est vide, le serveur de messagerie local sera utilisé. " + +#~ msgid "Server name:" +#~ msgstr "Nom du serveur :" + +#~ msgid "This is the servername of the Mahara site." +#~ msgstr "" +#~ "Veuillez indiquer le nom qui sera utilisé par ce site Mahara (directive " +#~ "« ServerName » d'Apache)." + +#~ msgid "" +#~ "It is up to you to ensure your chosen hostname resolves to this machine. " +#~ "See /usr/share/doc/mahara/README.Debian for more information." +#~ msgstr "" +#~ "Il est indispensable que ce nom puisse être résolut sur le réseau. " +#~ "Veuillez lire le fichier /usr/share/doc/mahara/README.Debian pour plus " +#~ "d'informations." + +#~ msgid "" +#~ "Note that this is just the domain name, so for \"http://my.site.com\" you " +#~ "only need to enter \"my.site.com\"" +#~ msgstr "" +#~ "Veuillez noter que ce champ ne doit contenir que le nom de domaine, par " +#~ "exemple « mon.site.com » pour un serveur qui sera joignable à l'adresse " +#~ "« http://mon.site.com »." + +#~ msgid "Server redirects:" +#~ msgstr "Redirection du serveur :" + +#~ msgid "" +#~ "Comma separated list of domain names that the server should permanently " +#~ "redirect to the server name." +#~ msgstr "" +#~ "Veuillez indiquer une liste des noms de domaine que le serveur doit " +#~ "rediriger de façon permanente vers le nom de serveur indiqué. Les entrées " +#~ "multiples doivent être séparées par des virgules." --- mahara-1.0.3.orig/htdocs/.htaccess +++ mahara-1.0.3/htdocs/.htaccess @@ -16,3 +16,15 @@ Order deny,allow deny from all + +# HTTP performance. This stuff tested in apache2 only. +# Enable mod_expires, mod_headers and mod_deflate! + + + AddOutputFilterByType DEFLATE text/html text/css application/x-javascript + + + + Header unset ETag + +FileETag None --- mahara-1.0.3.orig/htdocs/register.php +++ mahara-1.0.3/htdocs/register.php @@ -299,7 +299,7 @@ $form->set_error('username', get_string('usernameinvalidform', 'auth.internal')); } - if (!$form->get_error('username') && record_exists('usr', 'username', $values['username'])) { + if (!$form->get_error('username') && record_exists_select('usr', 'LOWER(username) = ?', strtolower($values['username']))) { $form->set_error('username', get_string('usernamealreadytaken', 'auth.internal')); } --- mahara-1.0.3.orig/htdocs/thumb.php +++ mahara-1.0.3/htdocs/thumb.php @@ -44,9 +44,24 @@ if ($id) { if ($path = get_dataroot_image_path('artefact/internal/profileicons', $id, $size)) { - $type = get_mime_type($path); - if ($type) { - header('Content-type: ' . $type); + $mimetype = get_mime_type($path); + if ($mimetype) { + header('Content-type: ' . $mimetype); + + // We can't cache 'profileicon' for as long, because the + // user can change it at any time. But we can cache + // 'profileiconbyid' for quite a while, because it will + // never change + if ($type == 'profileiconbyid') { + $maxage = 604800; // 1 week + } + else { + $maxage = 600; // 10 minutes + } + header('Expires: '. gmdate('D, d M Y H:i:s', time() + $maxage) .' GMT'); + header('Cache-Control: max-age=' . $maxage); + header('Pragma: public'); + readfile($path); exit; } @@ -55,7 +70,13 @@ // We couldn't find an image for this user. Attempt to use the 'no user // photo' image for the current theme - // + + // We can cache such images + $maxage = 604800; + header('Expires: '. gmdate('D, d M Y H:i:s', time() + $maxage) .' GMT'); + header('Cache-Control: max-age=' . $maxage); + header('Pragma: public'); + // NOTE: the institutional admin branch allows the theme to be locked // down. This means that $USER->get('theme') should be used here // instead, when that branch is merged. And don't forget to change it @@ -98,6 +119,10 @@ $basepath = 'artefact/' . $ap . '/' . $basepath; } header('Content-type: image/png'); + $maxage = 604800; + header('Expires: '. gmdate('D, d M Y H:i:s', time() + $maxage) .' GMT'); + header('Cache-Control: max-age=' . $maxage); + header('Pragma: public'); $path = get_config('docroot') . $basepath . '/thumb.png'; if (is_readable($path)) { readfile($path); --- mahara-1.0.3.orig/htdocs/init.php +++ mahara-1.0.3/htdocs/init.php @@ -38,6 +38,11 @@ } set_include_path($CFG->libroot . PATH_SEPARATOR . $CFG->libroot . 'pear/' . PATH_SEPARATOR . get_include_path()); +// Ensure that, by default, the response is not cached +header('Cache-Control: private, must-revalidate, pre-check=0, post-check=0, max-age=0'); +header('Expires: '. gmdate('D, d M Y H:i:s', 507686400) .' GMT'); +header('Pragma: no-cache'); + // Set up error handling require('errors.php'); --- mahara-1.0.3.orig/htdocs/theme/.htaccess +++ mahara-1.0.3/htdocs/theme/.htaccess @@ -0,0 +1,4 @@ + + ExpiresActive On + ExpiresDefault "access plus 3 days" + --- mahara-1.0.3.orig/htdocs/theme/default/templates/header.tpl +++ mahara-1.0.3/htdocs/theme/default/templates/header.tpl @@ -31,6 +31,7 @@ +{if $USERMASQUERADING}
{$masqueradedetails} {$becomeyouagain}
{/if}
--- mahara-1.0.3.orig/htdocs/theme/default/templates/change_password.tpl +++ mahara-1.0.3/htdocs/theme/default/templates/change_password.tpl @@ -5,7 +5,9 @@

{str tag="changepassword"}

{str tag="changepasswordinfo"}

- + +
{$loginasoverridepasswordchange}
+ {$change_password_form}
--- mahara-1.0.3.orig/htdocs/theme/default/templates/sideblocks/profile.tpl +++ mahara-1.0.3/htdocs/theme/default/templates/sideblocks/profile.tpl @@ -1,5 +1,5 @@

{$data.id|display_name|escape}

-
+