pending commit, finished during MQ/S download ...
[platal.git] / include / profil / update_emploi.inc.php
index d5827b9..806f384 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  Copyright (C) 2003-2006 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -21,7 +21,7 @@
 
 for($i = 0; $i < 2; $i++){
 
-    $globals->xdb->execute("REPLACE INTO entreprises(uid,entrid,entreprise,secteur,ss_secteur,poste,fonction,adr1,adr2,adr3,postcode,city,country,region,tel,fax,mobile,pub, adr_pub, tel_pub, email, email_pub, web) ".
+    XDB::execute("REPLACE INTO entreprises(uid,entrid,entreprise,secteur,ss_secteur,poste,fonction,adr1,adr2,adr3,postcode,city,country,region,tel,fax,mobile,pub, adr_pub, tel_pub, email, email_pub, web) ".
               "VALUES ({?}, {?}, {?}, ".
              "{?},".
              "{?}".
@@ -31,7 +31,7 @@ for($i = 0; $i < 2; $i++){
              "{?}, {?}, {?}, {?}, ".
              "{?}, {?}, {?}, ".
              "{?}, {?}, {?})",
-             Session::getInt('uid', -1) , $i , $entreprise[$i] ,
+             S::v('uid', -1) , $i , $entreprise[$i] ,
              ( ($secteur[$i] == "") ? null : $secteur[$i]), //sinon un faux 0 est rentre dans la base
              ( ($ss_secteur[$i] == "") ? null : $ss_secteur[$i]),
              $poste[$i], $fonction[$i],
@@ -41,5 +41,5 @@ for($i = 0; $i < 2; $i++){
              $pubpro[$i], $adr_pubpro[$i], $tel_pubpro[$i],
              $emailpro[$i], $email_pubpro[$i], $webpro[$i]);
 }
-$globals->xdb->execute("UPDATE auth_user_md5 set cv= {?} WHERE user_id = {?}", $cv, Session::getInt('uid', -1));
+XDB::execute("UPDATE auth_user_md5 set cv= {?} WHERE user_id = {?}", $cv, S::v('uid', -1));
 ?>