Removes a useless inclusion of applis.func.inc.php in profil.func.inc.php
authorGuillaume Bandet <guillaume.bandet@polytechnique.org>
Fri, 11 Jul 2008 10:26:47 +0000 (12:26 +0200)
committerGuillaume Bandet <guillaume.bandet@polytechnique.org>
Tue, 12 Aug 2008 16:57:40 +0000 (18:57 +0200)
External scripts no longer need to create a XorgPage to include profil.func.inc.php

bin/cron/phones.check.php
include/profil.func.inc.php
upgrade/fusionax-0.0.1/phones.php

index 6f8e14d..077e2fe 100755 (executable)
@@ -2,11 +2,6 @@
 <?php
 
 require('./connect.db.inc.php');
-
-//next two are required to include 'profil.func.inc.php'
-require_once('xorg.inc.php');
-$page = new XorgPage(null);
-
 require_once('profil.func.inc.php');
 
 $globals->debug = 0; //do not store backtraces
index 24d5b7e..0bd75d0 100644 (file)
@@ -20,7 +20,6 @@
  ***************************************************************************/
 
 
-require_once('applis.func.inc.php');
 
 function replace_ifset(&$var,$req) {
     if (Env::has($req)){
index 6eea87c..63018a0 100755 (executable)
@@ -1,16 +1,10 @@
 #!/usr/bin/php5
 <?php
 require_once 'connect.db.inc.php';
-
-//next two are required to include 'profil.func.inc.php'
-require_once 'xorg.inc.php';
-$page = new XorgPage(null);
-
 require_once 'profil.func.inc.php';
 
 $globals->debug = 0; //do not store backtraces
 
-
 // Convert phone prefixes from varchar to int
 $prefixes = XDB::iterRow("SELECT a2, phoneprf FROM geoloc_pays WHERE phoneprf IS NOT NULL");
 while (list($id, $pref) = $prefixes->next()) {