add_lang('mods/instadisc'); // Set up the page $this->tpl_name = 'acp_instadisc'; $this->page_title = 'ACP_INSTADISC'; $submit = isset($_POST['submit']) ? true : false; if ($submit) { // Add config to the database set_config('id_subscription_title', $_POST['subscription_title']); set_config('id_encryption_key', $_POST['encryption_key']); trigger_error($user->lang['ID_CHANGES_SAVED'] . adm_back_link($this->u_action), E_USER_NOTICE); } else { $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename']; $idsf = generate_board_url() . '/instadisc.php'; $idec = isset($config['id_encryption_key']) ? $config['id_encryption_key'] : ''; $template->assign_vars(array( 'S_SUBSCRIPTION_TITLE' => $idst, 'S_SUBSCRIPTION_FILE' => $idsf, 'S_ENCRYPTION_KEY' => $idec, 'S_SUBMIT' => $this->u_action )); } } }