From 4e71ba9d3ea40cd2d817965e5eed4a2fe1b876b3 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Fri, 24 Jul 2015 22:44:39 +0200 Subject: Remove core plugins from core repository --- .../TakeATour/tours/first_contact/config.inc.php | 175 --------------------- 1 file changed, 175 deletions(-) delete mode 100644 plugins/TakeATour/tours/first_contact/config.inc.php (limited to 'plugins/TakeATour/tours/first_contact/config.inc.php') diff --git a/plugins/TakeATour/tours/first_contact/config.inc.php b/plugins/TakeATour/tours/first_contact/config.inc.php deleted file mode 100644 index dc1dfe2db..000000000 --- a/plugins/TakeATour/tours/first_contact/config.inc.php +++ /dev/null @@ -1,175 +0,0 @@ -set_prefilter('photos_add', 'TAT_FC_7_prefilter'); -} -function TAT_FC_7_prefilter ($content, &$smarty) -{ - $search = 'UploadComplete: function(up, files) {'; - $replacement = 'UploadComplete: function(up, files) { - if (tour.getCurrentStep()==5) - { - tour.goTo(6); - } -'; - return str_replace($search, $replacement, $content); -} -function TAT_FC_6() -{ - global $template; - $template->set_prefilter('photos_add', 'TAT_FC_6_prefilter'); -} -function TAT_FC_6_prefilter ($content, &$smarty) -{ - $search = 'BeforeUpload:'; - $replacement = 'FilesAdded: function() { - if (tour.getCurrentStep()==4) - { - tour.goTo(5); - } - - }, - BeforeUpload:'; - return str_replace($search, $replacement, $content); -} -function TAT_FC_14() -{ - global $template; - $template->set_prefilter('batch_manager_global', 'TAT_FC_14_prefilter'); -} -function TAT_FC_14_prefilter ($content, &$smarty) -{ - $search = '{\'Edit\''; - $replacement = '>{\'Edit\''; - return str_replace($search, $replacement, $content); -} -function TAT_FC_16() -{ - global $template; - $template->set_prefilter('picture_modify', 'TAT_FC_16_prefilter'); -} -function TAT_FC_16_prefilter ($content, &$smarty) -{ - $search = '{\'Linked albums\'|@translate}'; - $replacement = '{\'Linked albums\'|@translate}'; - return str_replace($search, $replacement, $content); -} -function TAT_FC_17() -{ - global $template; - $template->set_prefilter('picture_modify', 'TAT_FC_17_prefilter'); -} -function TAT_FC_17_prefilter ($content, &$smarty) -{ - $search = '{\'Representation of albums\'|@translate}'; - $replacement = '{\'Representation of albums\'|@translate}'; - return str_replace($search, $replacement, $content); -} -function TAT_FC_23() -{ - global $template; - $template->set_prefilter('album_properties', 'TAT_FC_23_prefilter'); -} -function TAT_FC_23_prefilter ($content, &$smarty) -{ - $search = '{\'Lock\'|@translate}'; - $replacement = '{\'Lock\'|@translate}'; - return str_replace($search, $replacement, $content); -} -function TAT_FC_35() -{ - global $template; - $template->set_prefilter('themes', 'TAT_FC_35_prefilter'); -} -function TAT_FC_35_prefilter ($content, &$smarty) -{ - $search = '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