} //~~~~~~~~~~~~~~~ SETTINGS TAB ~~~~~~~~~~~~~~~~ $tplvars['tabstart_settings'] = $this->StartTab('settings'); $tplvars['formstart_settings'] = $this->CreateFormStart($id, 'defaultadmin'); //URL for running action.webhook, with dummy returnid $url = $this->CreateLink('_', 'webhook', 1, '', array(), '', TRUE); //strip the fake returnid, so that the default will be used $sep = strpos($url, '&'); $newurl = substr($url, 0, $sep); $tplvars = $tplvars + array('title_hook' => $this->Lang('reports_url'), 'info_hook' => $this->Lang('help_reports_url'), 'url_hook' => $newurl); $tplvars['title_updir'] = $this->Lang('title_updir'); $tplvars['input_updir'] = $this->CreateInputText($id, 'uploads_dir', $this->GetPreference('uploads_dir'), 30, 60) . '<br />' . $this->Lang('help_updir'); $tplvars['title_password'] = $this->Lang('title_password'); $pw = $this->GetPreference('masterpass'); if ($pw) { $pw = StripeGate\Utils::unfusc($pw); } $tplvars['input_password'] = $this->CreateTextArea(false, $id, $pw, 'masterpass', 'cloaked', $id . 'passwd', '', '', 40, 2); $jsincs[] = '<script type="text/javascript" src="' . $baseurl . '/include/jquery-inputCloak.min.js"></script>'; $jsloads[] = <<<EOS \$('#{$id}passwd').inputCloak({ type:'see4', symbol:'\\u25CF' }); EOS; if ($padm) { $tplvars['submit'] = $this->CreateInputSubmit($id, 'submit', $this->Lang('submit')); $tplvars['cancel'] = $this->CreateInputSubmit($id, 'cancel', $this->Lang('cancel')); } if ($jsloads) {