<?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 *
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 ({?}, {?}, {?}, ".
"{?},".
"{?}".
"{?}, {?}, {?}, {?}, ".
"{?}, {?}, {?}, ".
"{?}, {?}, {?})",
- 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],
$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));
?>