-#!/usr/bin/php4 -q
+#!/usr/bin/php5 -q
<?php
/***************************************************************************
- * Copyright (C) 2003-2006 Polytechnique.org *
+ * Copyright (C) 2003-2007 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
require('user.func.inc.php');
ini_set('memory_limit', "16M");
-XDB::execute('DELETE FROM search_name');
+$globals->debug = 0; // Do not store backtraces
-$res = XDB::iterRow('SELECT auth_user_md5.user_id, nom, prenom, nom_usage, profile_nick FROM auth_user_md5 LEFT JOIN auth_user_quick USING(user_id)');
+XDB::execute('DELETE FROM search_name');
+$res = XDB::iterRow('SELECT auth_user_md5.user_id, nom, prenom, nom_usage, profile_nick
+ FROM auth_user_md5
+ LEFT JOIN auth_user_quick USING(user_id)');
$i = 0;
$muls = array(1, 1, 1, 0.2);
+$pub = array(true, true, true, false);
while ($tmp = $res->next()) {
$uid = array_shift($tmp);
- _user_reindex($uid, $tmp, $muls);
+ _user_reindex($uid, $tmp, $muls, $pub);
printf("\r%u / %u", ++$i, $res->total());
}
print "done\n";
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>