********************************************************************************/
require_once 'connect.db.inc.php';
-require_once dirname(__FILE__).'/../include/banana/forum.inc.php';
+require_once dirname(__FILE__) . '/../include/banana/forum.inc.php';
ini_set('memory_limit', '128M');
Banana::$mbox_helper = $globals->banana->mbox_helper;
********************************************************************************/
require_once 'connect.db.inc.php';
-require_once dirname(__FILE__).'/../include/banana/forum.inc.php';
+require_once dirname(__FILE__) . '/../include/banana/forum.inc.php';
ini_set('memory_limit', '128M');
Banana::$mbox_helper = $globals->banana->mbox_helper;
Important notice: do not execute this script directly from an automatic checkout
of plat/al. It would be extremely unwise to execute it with root privileges from
-a place where everybody can change it !
+a place where everybody can change it!
Usage (-w updates the local .htaccess to disable guilty working copies):
- check_security_fixes.py [-w] -b REFERENCE_PLATAL PLATAL_TO_CHECK ...
+ check_security_fixes.py [-w] -b REFERENCE_PLATAL PLATAL_TO_CHECK...
"""
import optparse
most deployment will want to execute this script with root privileges,
which implies that this script is deployed in a safe directory, and not
just executed from an automatically updated checkout of plat/al (how
- unsafe would that be ...)."""
+ unsafe would that be...)."""
base_script = os.path.join(base_path, 'bin/check_security_fixes.py')
local_script = os.path.abspath(sys.argv[0])
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once(dirname(__FILE__) . '/../core/classes/csvimporter.php');
+require_once dirname(__FILE__) . '/../core/classes/csvimporter.php';
// {{{ function showHelp()
$keys = 'id';
processArgs();
-require_once(dirname(__FILE__) . '/../core/classes/xdb.php');
+require_once dirname(__FILE__) . '/../core/classes/xdb.php';
$source = file_get_contents($sourceName);
$insert_relation = null;
$update_relation = null;
if (isset($includedFile)) {
- require_once($includedFile);
+ require_once $includedFile;
}
$translater = new CSVImporter($table, $keys, !$debug);
+++ /dev/null
-#!/bin/sh
-
-field=$1
-nom=$2
-promo=$3
-
-query="SELECT $field FROM auth_user_md5 AS u "
-where=""
-pos=0
-for i in $nom ; do
- query="$query INNER JOIN search_name AS sn${pos} ON (u.user_id = sn${pos}.uid) "
- [ "$where" != "" ] && where="$where AND"
- where="${where} sn${pos}.token LIKE \"${i}%\""
- pos=$((pos + 1))
-done
-if [ "${promo}" != "" ] ; then
- [ "$where" != "" ] && where="$where AND "
- where="${where} u.promo = $promo"
-fi
-query="${query} WHERE ${where} GROUP BY u.user_id"
-
-echo $query | mysql --default-character-set=utf8 -N x4dat
#!/usr/bin/php5 -q
<?php
-require_once(dirname(__FILE__) . '/connect.db.inc.php');
-require_once('validations.inc.php');
+require_once dirname(__FILE__) . '/connect.db.inc.php';
+require_once 'validations.inc.php';
global $globals;
-#! /bin/ash
+#!/bin/sh
TEMPLATES='/etc/mailman/xorg'
URL='http://listes.polytechnique.org'
-#! /bin/sh
+#!/bin/sh
SPOOL=/var/spool/platal/archives/
OUTDIR="${SPOOL}/$1/`date +'%Y/%m/'`"
if ( fqdn == PLATAL_DOMAIN ) or ( fqdn == PLATAL_DOMAIN2 ):
res = mysql_fetchone("""SELECT CONCAT(f.alias, '@%s'), a.full_name
FROM accounts AS a
- INNER JOIN aliases AS f ON (f.uid = a.uid AND f.type = 'a_vie')
+ INNER JOIN aliases AS f ON (f.uid = a.uid AND f.type = 'a_vie')
INNER JOIN aliases AS aa ON (aa.uid = a.uid AND aa.alias = '%s'
AND a.type != 'homonyme')
WHERE a.state = 'active'
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once('connect.db.inc.php');
-require_once('plmailer.php');
-require_once('newsletter.inc.php');
+require_once 'connect.db.inc.php';
+require_once 'plmailer.php';
+require_once 'newsletter.inc.php';
$opt = getopt('i:h');
-if(empty($opt['i']) || isset($opt['h'])) {
+if (empty($opt['i']) || isset($opt['h'])) {
echo <<<EOF
usage: send_nl.php -i nl_id
sends the NewsLetter of id "id"