From 3ec8e1d73d94dd0006cd47feedf50f227591f648 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 3 Dec 2010 10:43:26 +0000 Subject: [PATCH] --- inc/prepend.php | 4 +++- inc/ws/Controlleur/class.ws.url.php | 22 +++++++++++++++++----- inc/ws/Metier/class.ws.book.parametres.php | 7 ++++--- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/inc/prepend.php b/inc/prepend.php index 54d0f7a40..006e28b2b 100644 --- a/inc/prepend.php +++ b/inc/prepend.php @@ -19,8 +19,10 @@ $core = new extranetCore(); $core->url->registerDefault(array('extranetUrl', 'home')); $core->url->register('ajax', 'ajax', '^ajax(.*)$', array('cubeAjax', 'ajax')); $core->url->register('cleanDownload', 'cleanDownload', '^cleanDownload$', array('extranetUrl', 'cleanDownload')); +// Fluidbook Workshop $core->url->register('flash', 'flash', '^flash(.*)$', array('wsFlash', 'in')); -$core->url->register('editbook', 'editbook', '^editbook/(.*)$', array('wsUrl', 'editbook')); +$core->url->register('editor', 'editor', '^editor/(.*)$', array('wsUrl', 'editor')); +$core->url->register('viewer', 'viewer', '^viewer/(.*)$', array('wsUrl', 'viewer')); if (isset($_POST['q'])) { $_SESSION['q'] = $_POST['q']?$_POST['q']:null; diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 974a7d692..a49da9bd2 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -65,8 +65,8 @@ class wsUrl { // $f = $book->facturable; $res .= '' ./* $f .*/ ''; $res .= '' . $core->books_status[$book->status] . ''; - $res .= '' . $btVoir . ''; - $res .= '' . $btEdit . ''; + $res .= '' . $btVoir . ''; + $res .= '' . $btEdit . ''; $res .= '' . $btStats . ''; $res .= '' . $btDownload . ''; $res .= '' . $btDel . ''; @@ -84,7 +84,7 @@ class wsUrl { return $res; } - public static function editbook($args) + public static function editor($args) { global $core; @@ -94,7 +94,7 @@ class wsUrl { if ($book_id == 'new') { $dao = new wsDAOBook($core->con); $book = $dao->creeEmpty($core->user->utilisateur_id, $core->user->lang); - http::redirect(SITE_PATH . 'editbook/' . $book->book_id); + http::redirect(SITE_PATH . 'editor/' . $book->book_id); } $res = '