diff --git a/doc/install/Makefile b/doc/install/Makefile index c8ba5e3214b..89033209a90 100644 --- a/doc/install/Makefile +++ b/doc/install/Makefile @@ -33,7 +33,7 @@ all: $(DOC).pdf $(DOC).html $(DOC).txt linuxdoc --language=french --backend=latex -o pdf -c latin dolibarr-install.sgml %.html: %.sgml - linuxdoc --language=french --backend=html -c latin dolibarr-install.sgml + cd ../../htdocs/install/doc/ ; linuxdoc --language=french --backend=html -c latin ../../../doc/install/dolibarr-install.sgml put: $(RSYNC) $(ROPT) $(RSSH) *pdf *html www.dolibarr.com:/home/www/www.dolibarr.com/htdocs/documentation diff --git a/doc/install/dolibarr-install.pdf b/doc/install/dolibarr-install.pdf index 65988d57781..f64db2ba328 100644 Binary files a/doc/install/dolibarr-install.pdf and b/doc/install/dolibarr-install.pdf differ diff --git a/doc/install/dolibarr-install.txt b/doc/install/dolibarr-install.txt index e529e046006..f9f54f650f5 100644 --- a/doc/install/dolibarr-install.txt +++ b/doc/install/dolibarr-install.txt @@ -1,6 +1,6 @@ Dolibarr Installation Rodolphe Quiédeville - $Id: dolibarr-install.sgml,v 1.8 2003/10/24 10:59:15 + $Id: dolibarr-install.sgml,v 1.10 2003/10/28 12:45:55 rodolphe Exp $ Installation et mise à jour de Dolibarr diff --git a/htdocs/admin/update/pre.inc.php b/htdocs/admin/update/pre.inc.php index 73458271e05..44037748a41 100644 --- a/htdocs/admin/update/pre.inc.php +++ b/htdocs/admin/update/pre.inc.php @@ -18,7 +18,7 @@ * $Id$ * $Source$ */ -require("../main.inc.php"); +require("../../main.inc.php"); function llxHeader($head = "", $urlp = "") { global $user, $conf; diff --git a/htdocs/contact/perso.php b/htdocs/contact/perso.php index a35bb5a2f9a..2de111704f0 100644 --- a/htdocs/contact/perso.php +++ b/htdocs/contact/perso.php @@ -23,60 +23,10 @@ require("./pre.inc.php"); require("../contact.class.php"); require (DOL_DOCUMENT_ROOT."/lib/vcard/vcard.class.php"); -if ($HTTP_POST_VARS["action"] == 'add') -{ - $contact = new Contact($db); - - $contact->socid = $HTTP_POST_VARS["socid"]; - - $contact->name = $HTTP_POST_VARS["name"]; - $contact->firstname = $HTTP_POST_VARS["firstname"]; - - $contact->poste = $HTTP_POST_VARS["poste"]; - - $contact->fax = $HTTP_POST_VARS["fax"]; - $contact->note = $HTTP_POST_VARS["note"]; - $contact->email = $HTTP_POST_VARS["email"]; - $contact->phone_pro = $HTTP_POST_VARS["phone_pro"]; - $contact->phone_perso = $HTTP_POST_VARS["phone_perso"]; - $contact->phone_mobile = $HTTP_POST_VARS["phone_mobile"]; - $contact->jabberid = $HTTP_POST_VARS["jabberid"]; - - $_GET["id"] = $contact->create($user); -} - -if ($_GET["action"] == 'delete') -{ - $contact = new Contact($db); - - $contact->old_name = $HTTP_POST_VARS["old_name"]; - $contact->old_firstname = $HTTP_POST_VARS["old_firstname"]; - - $result = $contact->delete($_GET["id"]); - - Header("Location: index.php"); -} - - if ($action == 'update') { $contact = new Contact($db); - $contact->old_name = $HTTP_POST_VARS["old_name"]; - $contact->old_firstname = $HTTP_POST_VARS["old_firstname"]; - - $contact->name = $HTTP_POST_VARS["name"]; - $contact->firstname = $HTTP_POST_VARS["firstname"]; - $contact->poste = $HTTP_POST_VARS["poste"]; - - $contact->phone_pro = $HTTP_POST_VARS["phone_pro"]; - $contact->phone_perso = $HTTP_POST_VARS["phone_perso"]; - $contact->phone_mobile = $HTTP_POST_VARS["phone_mobile"]; - $contact->fax = $HTTP_POST_VARS["fax"]; - $contact->note = $HTTP_POST_VARS["note"]; - $contact->email = $HTTP_POST_VARS["email"]; - $contact->jabberid = $HTTP_POST_VARS["jabberid"]; - $contact->birthday = mktime(12, 1 , 1, $HTTP_POST_VARS["remonth"], $HTTP_POST_VARS["reday"], @@ -84,20 +34,10 @@ if ($action == 'update') $contact->birthday_alert = $HTTP_POST_VARS["birthday_alert"]; - $result = $contact->update($HTTP_POST_VARS["contactid"], $user); + $result = $contact->update_perso($HTTP_POST_VARS["contactid"], $user); } -if ($action == 'create_user') -{ - $nuser = new User($db); - $contact = new Contact($db); - $nuser->nom = $contact->nom; - $nuser->prenom = $contact->prenom; - $result = $contact->fetch($contactid); - $nuser->create_from_contact($contact); -} - /* * * @@ -137,7 +77,7 @@ if ($_GET["action"] == 'edit') print '