$msg] ); } /** * Checks if target method is available to be called using AJAX. * * @param string $method Target method. * * @return boolean True allowed, false not. */ public function ajaxMethod($method) { global $config; // Check access. check_login(); return in_array($method, $this->AJAXMethods); } /** * Constructor. * * @param boolean $must_run Must run or not. * @param string $ajax_controller Controller. * * @return object * @throws Exception On error. */ public function __construct( bool $must_run=false, $ajax_controller='include/ajax/welcome_window' ) { $this->ajaxController = $ajax_controller; if ($this->initialize($must_run) !== true) { throw new Exception('Must not be shown'); } return $this; } /** * Main method. * * @return void */ public function run() { ui_require_css_file('new_installation_welcome_window'); echo '