diff options
author | mistic100 <mistic@strangeplanet.fr> | 2015-07-26 19:19:19 +0200 |
---|---|---|
committer | mistic100 <mistic@strangeplanet.fr> | 2015-07-26 19:19:19 +0200 |
commit | f79d74338e91b008b1f500f0a943c41ec32ec848 (patch) | |
tree | 750320d7de8beaf9bd3f21933e71e4fee857c6da /plugins/TakeATour/tours/2_7_0/config.inc.php | |
parent | cc27a535724e0602b73aae0d5ece6b60fb9554dc (diff) | |
parent | 22381e829e0ce2a4a4cbb1420f5ecc2c43be9292 (diff) |
Merge branch 'feature/hello-github' into develop
Diffstat (limited to 'plugins/TakeATour/tours/2_7_0/config.inc.php')
-rw-r--r-- | plugins/TakeATour/tours/2_7_0/config.inc.php | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/plugins/TakeATour/tours/2_7_0/config.inc.php b/plugins/TakeATour/tours/2_7_0/config.inc.php deleted file mode 100644 index 76b671632..000000000 --- a/plugins/TakeATour/tours/2_7_0/config.inc.php +++ /dev/null @@ -1,42 +0,0 @@ -<?php
-/**********************************
- * REQUIRED PATH TO THE TPL FILE */
-
-$TOUR_PATH = PHPWG_PLUGINS_PATH.'TakeATour/tours/2_7_0/tour.tpl';
-
-/*********************************/
-
-
-/**********************
- * Preparse part *
- **********************/
- $template->assign('TAT_index', make_index_url(array('section' => 'categories')));
- $template->assign('TAT_search', get_root_url().'search.php');
-
- //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']);
- }
-?>
\ No newline at end of file |