/** * Show the captcha image * Refreshes the captcha image. * * @access public * @return void */ public function refreshImage() { /* INIT */ $captcha_unique_id = trim($this->request['captcha_unique_id']); /* Throw away */ $blah = $this->class_captcha->getTemplate(); require_once IPS_KERNEL_PATH . 'classAjax.php'; $ajax = new classAjax(); /* Show Image... */ $ajax->returnString($this->class_captcha->captchaKey); exit; }
/** * Reorder fields * * @access private * @return void [Outputs to screen] */ private function reorder() { //----------------------------------------- // INIT //----------------------------------------- require_once IPS_KERNEL_PATH . 'classAjax.php'; $ajax = new classAjax(); //----------------------------------------- // Checks... //----------------------------------------- if ($this->registry->adminFunctions->checkSecurityKey($this->request['md5check'], true) === false) { $ajax->returnString($this->lang->words['postform_badmd5']); exit; } //----------------------------------------- // Save new position //----------------------------------------- $position = 1; if (is_array($this->request['fields']) and count($this->request['fields'])) { foreach ($this->request['fields'] as $this_id) { $this->DB->update('pfields_data', array('pf_position' => $position), 'pf_id=' . $this_id); $position++; } } $this->rebuildCache(); $ajax->returnString('OK'); exit; }
/** * Reorders help files * * @access public * @return void */ public function helpFilesReorder() { //----------------------------------------- // INIT //----------------------------------------- require_once IPS_KERNEL_PATH . 'classAjax.php'; $ajax = new classAjax(); //----------------------------------------- // Checks... //----------------------------------------- if ($this->registry->adminFunctions->checkSecurityKey($this->request['md5check'], true) === false) { $ajax->returnString($this->lang->words['postform_badmd5']); exit; } //----------------------------------------- // Save new position //----------------------------------------- $position = 1; if (is_array($this->request['faq']) and count($this->request['faq'])) { foreach ($this->request['faq'] as $this_id) { $this->DB->update('faq', array('position' => $position), 'id=' . $this_id); $position++; } } //$this->registry->output->silentRedirect( $this->settings['base_url'] . $this->form_code ); $ajax->returnString('OK'); exit; }
/** * Move an application up/down * * @access private * @return void [Outputs to screen] */ private function applicationManagePosition() { //----------------------------------------- // INIT //----------------------------------------- require_once IPS_KERNEL_PATH . 'classAjax.php'; $ajax = new classAjax(); //----------------------------------------- // Checks... //----------------------------------------- if ($this->registry->adminFunctions->checkSecurityKey($this->request['md5check'], true) === false) { $ajax->returnString($this->lang->words['postform_badmd5']); exit; } //----------------------------------------- // Save new position //----------------------------------------- $position = 1; if (is_array($this->request['apps']) and count($this->request['apps'])) { foreach ($this->request['apps'] as $this_id) { $this->DB->update('core_applications', array('app_position' => $position), 'app_id=' . $this_id); $position++; } } $this->applicationsRecache(); $this->applicationsMenuDataRecache(); $ajax->returnString('OK'); exit; }