From 69c4a00dae2048dc685c6b1328f1a9e24335ce1f Mon Sep 17 00:00:00 2001 From: flop25 Date: Tue, 15 Jul 2014 18:03:00 +0000 Subject: Take A Tour: -only 2 files per tour.tpl -allow external tours -absolute url when ending the tour -better code, commented wiki updated (2.7 technical changes) git-svn-id: http://piwigo.org/svn/trunk@29046 68402e56-0260-453c-a942-63ccdbb3a9ee --- .../tours/privacy/config_preparse.inc.php | 59 ---------------------- 1 file changed, 59 deletions(-) delete mode 100644 plugins/TakeATour/tours/privacy/config_preparse.inc.php (limited to 'plugins/TakeATour/tours/privacy/config_preparse.inc.php') diff --git a/plugins/TakeATour/tours/privacy/config_preparse.inc.php b/plugins/TakeATour/tours/privacy/config_preparse.inc.php deleted file mode 100644 index 711dfe349..000000000 --- a/plugins/TakeATour/tours/privacy/config_preparse.inc.php +++ /dev/null @@ -1,59 +0,0 @@ -assign('TAT_image_id', $_GET['image_id']); - pwg_set_session_var('TAT_image_id', $_GET['image_id']); - } - elseif (is_numeric(pwg_get_session_var('TAT_image_id'))) - { - $template->assign('TAT_image_id', pwg_get_session_var('TAT_image_id')); - } - else - { - $query = ' - SELECT id - FROM '.IMAGES_TABLE.' - ORDER BY RAND() - LIMIT 1 - ;'; - $row = pwg_db_fetch_assoc(pwg_query($query)); - $template->assign('TAT_image_id', $row['id']); - } - //album id - if (isset($_GET['page']) and preg_match('/^album-(\d+)(?:-(.*))?$/', $_GET['page'], $matches)) - { - $_GET['cat_id'] = $matches[1]; - } - check_input_parameter('cat_id', $_GET, false, PATTERN_ID); - if (isset($_GET['cat_id']) and pwg_get_session_var('TAT_cat_id')==null) - { - $template->assign('TAT_cat_id', $_GET['cat_id']); - pwg_set_session_var('TAT_cat_id', $_GET['cat_id']); - } - elseif (is_numeric(pwg_get_session_var('TAT_cat_id'))) - { - $template->assign('TAT_cat_id', pwg_get_session_var('TAT_cat_id')); - } - else - { - $query = ' - SELECT id - FROM '.CATEGORIES_TABLE.' - ORDER BY RAND() - LIMIT 1 - ;'; - $row = pwg_db_fetch_assoc(pwg_query($query)); - $template->assign('TAT_cat_id', $row['id']); - } - global $conf; - if ( isset($conf['enable_synchronization']) ) - { - $template->assign('TAT_FTP', $conf['enable_synchronization']); - } -?> \ No newline at end of file -- cgit v1.2.3