2006 => 2007 Happy New Year\!
[platal.git] / bin / cron / clean.php
index 04b9694..9219a6f 100755 (executable)
@@ -1,7 +1,7 @@
-#!/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   *
@@ -23,8 +23,7 @@
 require('./connect.db.inc.php');
 
 function query ($sql) {
-    global $globals;
-    $globals->xdb->execute($sql);
+    XDB::execute($sql);
     if (mysql_errno() != 0) {
        echo "error in \"$sql\" :\n", mysql_error(),"\n";
     }