From 97bd9842f44bb25832f5dd8288372f2199cf3b7b Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Wed, 30 Oct 2013 00:51:01 +0100 Subject: Correction de bugs, amélioration titres admin, traductions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/admin/render.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'code/admin/render.php') diff --git a/code/admin/render.php b/code/admin/render.php index 9d4175e..2d49f01 100644 --- a/code/admin/render.php +++ b/code/admin/render.php @@ -1,14 +1,23 @@ 'publish', + 'page' => $argv[1] + ); + } else { + // In web mode, take from args from GET request + $params=&$_GET; + } + // params clean-up + $action=sanitize($params, 'action', '/[^a-z_]+/', 'preview'); /* Could be : preview, edit, publish */ + $page=sanitize($params, 'page', '/[^a-z0-9\/]+/', $site_conf['site_default_page']); // Never put \. in this regex // Template vars init ($page, $page_path, $page_props, $page_tpl_url) $page_path = "content/$page"; -- cgit v1.2.3