From a3085c67809c15b65827b3093654992f3416a05a Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 18 Jan 2013 13:13:32 +0000 Subject: [PATCH] --- inc/commons/class.common.core.php | 4 ++-- inc/ws/Controlleur/class.ws.ajax.php | 13 ++++++++++++- inc/ws/Controlleur/class.ws.maintenance.php | 10 ---------- inc/ws/Controlleur/class.ws.url.php | 6 ++++-- inc/ws/Util/html5/class.ws.html5.compiler.php | 3 ++- 5 files changed, 20 insertions(+), 16 deletions(-) diff --git a/inc/commons/class.common.core.php b/inc/commons/class.common.core.php index 2be291831..9e66d5408 100644 --- a/inc/commons/class.common.core.php +++ b/inc/commons/class.common.core.php @@ -35,7 +35,7 @@ class commonCore extends cubeCore { 5 => __('Newsletter'), 6 => __('Développement PHP'), 7 => __('Développement Flash'), 8 => __('Fluidbook'), 9 => __('Formation'), 10 => __('Administratif'), 11 => __('Divers'), 12 => __('Intégration HTML'), 13 => __('Motion design'), 14 => __('Design graphique'), - 15 => __('Bandeaux de pub'), 16 => __('Applications mobiles'), 17 => __('Prise de vue photo/vidéo')); + 15 => __('Bandeaux de pub'), 16 => __('Applications mobiles'), 17 => __('Prise de vue photo/vidéo'), 18 => __('Hébergement')); $this->projets_status = array(0 => __('En cours'), 1 => __('Terminé')); $this->devis_status = array(0 => __('Brouillon'), 1 => __('Envoyé'), 2 => __('Validé'), 3 => __('Refusé')); @@ -83,7 +83,7 @@ class commonCore extends cubeCore { $this->user = null; return; } - + // Les variables sont présentes on vérifie la validité des informations // Dans la base de données // Utilisateur connecté à l'interface diff --git a/inc/ws/Controlleur/class.ws.ajax.php b/inc/ws/Controlleur/class.ws.ajax.php index 5ef01b2fe..d480fc9e8 100644 --- a/inc/ws/Controlleur/class.ws.ajax.php +++ b/inc/ws/Controlleur/class.ws.ajax.php @@ -811,6 +811,17 @@ class wsAjax extends cubeAjax { $time = $args[2]; $dao = new wsDAODocument($core->con); + + if ($time == 'pdf') { + if ($book_id < 10000) { + $dao->setLinksFromOldFluidbook($book_id); + } else { + $dao->setFluidbookLinksFromCSV($book_id); + } + return; + } + + $dao->getLinksAndRulers($book_id, $links, $rulers, $time); $xls = $dao->getLinksAsExcel($links, $rulers); @@ -914,7 +925,7 @@ class wsAjax extends cubeAjax { $ph = array_search($link['to'], $numerotation) + 1; if ($ph >= $from) { $ph+=$offset; - $vi = $numerotation[($ph-1)]; + $vi = $numerotation[($ph - 1)]; $link['to'] = $vi; } } diff --git a/inc/ws/Controlleur/class.ws.maintenance.php b/inc/ws/Controlleur/class.ws.maintenance.php index 820c89a50..42baf708b 100644 --- a/inc/ws/Controlleur/class.ws.maintenance.php +++ b/inc/ws/Controlleur/class.ws.maintenance.php @@ -21,16 +21,6 @@ class wsMaintenance { } } - public static function resetLinks($args) { - global $core; - $book_id = $args[0]; - $dao = new wsDAODocument($core->con); - if ($book_id < 10000) { - $dao->setLinksFromOldFluidbook($book_id); - } else { - $dao->setFluidbookLinksFromCSV($book_id); - } - } public static function compactLinks() { global $core; diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 26792cefd..fea93b896 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -550,6 +550,10 @@ html{height:100%}' . "\n"; $res.=''; $res.='
'; + $res.='

' . __('Réimporter les liens du fichier PDF') . '

'; + $res.='Restaurer'; + $res.='
'; + $res.='

' . __('Historique') . '

'; $res .= ''; $res .= ''; @@ -801,8 +805,6 @@ html{height:100%}' . "\n"; if ($hash != 'bcf26f9cf4a795ec00b9a44f42750d58' && $book->hash != $hash) { commonDroits::error(); } - - echo file_get_contents(WS_BOOKS . '/html5' . $dir . '/' . $book_id . '/index' . $version . '.html'); exit; } diff --git a/inc/ws/Util/html5/class.ws.html5.compiler.php b/inc/ws/Util/html5/class.ws.html5.compiler.php index 91a848ae2..23fd70259 100644 --- a/inc/ws/Util/html5/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/class.ws.html5.compiler.php @@ -23,7 +23,8 @@ class wsHTML5Compiler { 'js/libs/fix/ios-orientation.js', 'js/libs/fix/detect-zoom.js', 'js/libs/cube/fb.js', - 'js/libs/modernizr.js', + 'js/libs/modernizr/modernizr.js', + 'js/libs/modernizr/tests.js', 'js/libs/json2.js', 'js/libs/flashdetect.js', 'js/libs/jquery/jquery.js', -- 2.39.5