source: extensions/flickr2piwigo/admin/config.php @ 16063

Last change on this file since 16063 was 16063, checked in by mistic100, 12 years ago

initial version

File size: 745 bytes
Line 
1<?php
2if (!defined('FLICKR_PATH')) die('Hacking attempt!');
3
4if (isset($_POST['save_config']))
5{
6  $conf['flickr2piwigo'] = array(
7    'api_key' => trim($_POST['api_key']),
8    'secret_key' => trim($_POST['secret_key']),
9    'username' => trim($_POST['username']),
10    );
11  unset($_SESSION['phpFlickr_auth_token']);
12  conf_update_param('flickr2piwigo', serialize($conf['flickr2piwigo']));
13}
14
15
16$template->assign('flickr2piwigo', $conf['flickr2piwigo']);
17
18$template->assign(array(
19  'FLICKR_HELP_CONTENT' => load_language('help_api_key.html', FLICKR_PATH, array('return'=>true)),
20  'FLICKR_CALLBACK' => get_absolute_root_url().FLICKR_ADMIN.'-import',
21  ));
22
23
24$template->set_filename('flickr2piwigo', dirname(__FILE__).'/template/config.tpl');
25
26
27?>
Note: See TracBrowser for help on using the repository browser.