source: extensions/instagram2piwigo/admin/config.php @ 19561

Last change on this file since 19561 was 19561, checked in by mistic100, 11 years ago

first commit

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