Rev | Line | |
---|
[16063] | 1 | <?php |
---|
[26180] | 2 | defined('FLICKR_PATH') or die('Hacking attempt!'); |
---|
[16063] | 3 | |
---|
| 4 | if (isset($_POST['save_config'])) |
---|
| 5 | { |
---|
| 6 | $conf['flickr2piwigo'] = array( |
---|
| 7 | 'api_key' => trim($_POST['api_key']), |
---|
| 8 | 'secret_key' => trim($_POST['secret_key']), |
---|
| 9 | ); |
---|
| 10 | unset($_SESSION['phpFlickr_auth_token']); |
---|
[28833] | 11 | |
---|
| 12 | conf_update_param('flickr2piwigo', $conf['flickr2piwigo']); |
---|
[24815] | 13 | $page['infos'][] = l10n('Information data registered in database'); |
---|
[16063] | 14 | } |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | $template->assign(array( |
---|
[16071] | 18 | 'flickr2piwigo' => $conf['flickr2piwigo'], |
---|
[16063] | 19 | 'FLICKR_HELP_CONTENT' => load_language('help_api_key.html', FLICKR_PATH, array('return'=>true)), |
---|
[16071] | 20 | 'FLICKR_CALLBACK' => get_absolute_root_url() . FLICKR_ADMIN . '-import', |
---|
[16063] | 21 | )); |
---|
| 22 | |
---|
| 23 | |
---|
[26180] | 24 | $template->set_filename('flickr2piwigo', realpath(FLICKR_PATH . 'admin/template/config.tpl')); |
---|
Note: See
TracBrowser
for help on using the repository browser.