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