$body = 'Tous les fichiers de ' . $client->prenom . ' ' . $client->nom . ' : https://' . $_SERVER['HTTP_HOST'] . '/fichiers/' . $client->utilisateur_id . "\n\n";\r
$body .= 'Fichiers chargés : ' . "\n";\r
foreach ($_SESSION['files_uploaded'] as $f) {\r
- $body .= ' - httpx://' . $_SERVER['HTTP_HOST'] . '/telecharger/' . commonUrl::hashFile($f) . '/' . $f . "\n";\r
+ $body .= ' - https://' . $_SERVER['HTTP_HOST'] . '/telecharger/' . commonUrl::hashFile($f) . '/' . $f . "\n";\r
}\r
$body .= "\n" . RAPPEL . " : \n";\r
$body .= ' - Adresse : https://' . $_SERVER['HTTP_HOST'] . '/' . "\n";\r
public function setLinksFromOldFluidbook($book_id) {
$daoBook = new wsDAOBook($this->con);
$pages = $daoBook->getPagesOfBook($book_id);
- fb($pages);
+
$book = $daoBook->selectById($book_id);
$width = $book->parametres->width;
public static function getDir($id) {
- if(!is_array(self::$_docsDir)){
- self::$_docsDir=array();
+ if (!is_array(self::$_docsDir)) {
+ self::$_docsDir = array();
}
- if(isset(self::$_docsDir[$id])){
+ if (isset(self::$_docsDir[$id])) {
return self::$_docsDir[$id];
}
$new = WS_DOCS . '/' . $id . '/';
$old = '/mnt/sshfs/batman/home/extranet/www/fluidbook/docs/' . $id . '/';
- if (file_exists($new . '/p1.swf')) {
- self::$_docsDir[$id]=$new;
+ if (file_exists($new . 'p1.swf')) {
+ self::$_docsDir[$id] = $new;
return $new;
} elseif (file_exists($old . 'p1.swf')) {
- self::$_docsDir[$id]=$old;
+ self::$_docsDir[$id] = $old;
return $old;
}
if (!file_exists($new)) {
mkdir($new, 0777, true);
- self::$_docsDir[$id]=$new;
- return $new;
}
+ self::$_docsDir[$id] = $new;
+ return $new;
}
-
-
-}
-
-?>
\ No newline at end of file
+}
\ No newline at end of file