do not forget to commit your final work in order to not have a broken version in the repository

This commit is contained in:
Rémi 2006-05-01 08:16:12 +00:00
parent b814ec769f
commit b249ce75f9
1 changed files with 1 additions and 3 deletions

View File

@ -5,8 +5,6 @@ require_once("/var/alternc/bureau/class/config_nochk.php");
// On déverrouile le bureau AlternC :) // On déverrouile le bureau AlternC :)
alternc_shutdown(); alternc_shutdown();
echo "<pre>";
echo "---------------------------\n Generating size-cache for mail accounts\n\n"; echo "---------------------------\n Generating size-cache for mail accounts\n\n";
$r=mysql_query("SELECT * FROM mail_users WHERE alias NOT LIKE '%@%' AND alias LIKE '%\_%';"); $r=mysql_query("SELECT * FROM mail_users WHERE alias NOT LIKE '%@%' AND alias LIKE '%\_%';");
while ($c=mysql_fetch_array($r)) { while ($c=mysql_fetch_array($r)) {
@ -20,7 +18,7 @@ echo "---------------------------\n Generating size-cache for db accounts\n\n";
$r=mysql_query("SELECT db FROM db;"); $r=mysql_query("SELECT db FROM db;");
while ($c=mysql_fetch_array($r)) { while ($c=mysql_fetch_array($r)) {
echo $c["db"]; flush(); echo $c["db"]; flush();
$size=$mysql->get_db_size($c["db"]) { $size=$mysql->get_db_size($c["db"]);
mysql_query("REPLACE INTO size_db SET db='".addslashes($c["db"])."',size='$size';"); mysql_query("REPLACE INTO size_db SET db='".addslashes($c["db"])."',size='$size';");
echo " done ($size KB) \n"; flush(); echo " done ($size KB) \n"; flush();
} }