From: vincent@cubedesigners.com Date: Mon, 16 Nov 2009 10:47:08 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ad753de960bdc6d018786699cd0fe748c4c1cd7c;p=cubeextranet.git --- diff --git a/inc/extranet/Controlleur/class.extranet.url.php b/inc/extranet/Controlleur/class.extranet.url.php index c86ffc5f5..e474e0dec 100644 --- a/inc/extranet/Controlleur/class.extranet.url.php +++ b/inc/extranet/Controlleur/class.extranet.url.php @@ -39,8 +39,8 @@ class extranetUrl { global $core; $tentative = isset($_SESSION['errorLogin']) && $_SESSION['errorLogin']; - if($tentative){ - $_SESSION['errorLogin']=false; + if ($tentative) { + $_SESSION['errorLogin'] = false; } $message = $tentative?'


' . __('Identifiants incorrects') . '

':''; @@ -1989,8 +1989,8 @@ class extranetUrl { } else { $res .= ''; } - $res .= '' . $core->typo->Telecharger('Télécharger') . ''; - $res .= '' . cubeMedia::image(IMG . '/delete.png') . ''; + $res .= '' . $core->typo->Telecharger('Télécharger') . ''; + $res .= '' . cubeMedia::image(IMG . '/delete.png') . ''; $res .= ''; $i++; } @@ -2014,7 +2014,7 @@ class extranetUrl { $dir = md5($path . (rand(1, 235548684) * 50.5)); $nom = array_pop($args); @mkdir(ROOT . '/cache/download/' . $dir, 0755, true); - copy('/usb/ftpextranet/' . $path, ROOT . '/cache/download/' . $dir . '/' . $nom); + copy(FTPROOT . $path, ROOT . '/cache/download/' . $dir . '/' . $nom); http::redirect(WEBROOT . '/cache/download/' . $dir . '/' . $nom); } @@ -2059,6 +2059,7 @@ class extranetUrl { if (isset($_POST['last']) && $_POST['last'] == '1') { $mail = new cubeMail(); + $mail->charset = 'UTF-8'; $mail->from = 'Extranet Cubedesigners'; if (!$for) { $mail->to = 'team@cubedesigners.com'; @@ -2087,6 +2088,7 @@ class extranetUrl { } $mail->body = $body; $ok = $mail->send(); + $_SESSION['files_uploaded'] = array(); } } diff --git a/inc/extranet/Metier/class.extranet.facture.php b/inc/extranet/Metier/class.extranet.facture.php index bc3236134..7d7be2719 100644 --- a/inc/extranet/Metier/class.extranet.facture.php +++ b/inc/extranet/Metier/class.extranet.facture.php @@ -27,7 +27,7 @@ class extranetFacture extends extranetDocument { protected function documentTitre() { $lang = $this->client->lang; - if ($this->status == 4) { + if ($this->status == 4 || $this->total_ht<0) { $titre = __('AVOIR'); } else { $titre = __('FACTURE');