Last change
on this file since 17286 was
16071,
checked in by mistic100, 12 years ago
|
code cleanup, don't ask username anymore (prohibit importing photos from another account)
|
File size:
690 bytes
|
Rev | Line | |
---|
[16063] | 1 | <?php |
---|
| 2 | if (!defined('FLICKR_PATH')) die('Hacking attempt!'); |
---|
| 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']); |
---|
| 11 | conf_update_param('flickr2piwigo', serialize($conf['flickr2piwigo'])); |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | $template->assign(array( |
---|
[16071] | 16 | 'flickr2piwigo' => $conf['flickr2piwigo'], |
---|
[16063] | 17 | 'FLICKR_HELP_CONTENT' => load_language('help_api_key.html', FLICKR_PATH, array('return'=>true)), |
---|
[16071] | 18 | 'FLICKR_CALLBACK' => get_absolute_root_url() . FLICKR_ADMIN . '-import', |
---|
[16063] | 19 | )); |
---|
| 20 | |
---|
| 21 | |
---|
[16071] | 22 | $template->set_filename('flickr2piwigo', dirname(__FILE__) . '/template/config.tpl'); |
---|
[16063] | 23 | |
---|
| 24 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.