aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/TakeATour/tours/privacy/config.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@strangeplanet.fr>2015-07-26 19:13:28 +0200
committermistic100 <mistic@strangeplanet.fr>2015-07-26 19:13:28 +0200
commit5e76fb4ce6d61cabfd120e77096e2e57c357cb8b (patch)
treef513abb20dd85459d843edc7ca1d90816d886735 /plugins/TakeATour/tours/privacy/config.inc.php
parent32138f1fbd7637dffaaad0c8ca677e43a0d13831 (diff)
parent22381e829e0ce2a4a4cbb1420f5ecc2c43be9292 (diff)
Merge branch 'feature/hello-github' into 2.7
Diffstat (limited to 'plugins/TakeATour/tours/privacy/config.inc.php')
-rw-r--r--plugins/TakeATour/tours/privacy/config.inc.php71
1 files changed, 0 insertions, 71 deletions
diff --git a/plugins/TakeATour/tours/privacy/config.inc.php b/plugins/TakeATour/tours/privacy/config.inc.php
deleted file mode 100644
index 446e94f3f..000000000
--- a/plugins/TakeATour/tours/privacy/config.inc.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**********************************
- * REQUIRED PATH TO THE TPL FILE */
-
-$TOUR_PATH = PHPWG_PLUGINS_PATH.'TakeATour/tours/privacy/tour.tpl';
-
-/*********************************/
-
-
-
-/**********************
- * Preparse part *
- **********************/
- //picture id
- if (isset($_GET['page']) and preg_match('/^photo-(\d+)(?:-(.*))?$/', $_GET['page'], $matches))
- {
- $_GET['image_id'] = $matches[1];
- }
- check_input_parameter('image_id', $_GET, false, PATTERN_ID);
- if (isset($_GET['image_id']) and pwg_get_session_var('TAT_image_id')==null)
- {
- $template->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