function process() { $next_step = false; $totalSites = Site::getTotalSites(); if ($totalSites > 0) { Request::redirectToModule('install_display_javascript_code'); } $form = new FormSiteGeneral($this->tpl, null, Request::getCurrentUrl() . "&action=add"); $done = $form->process(); if ($done) { $this->tpl->assign("img_phpmv", getCountImgHtml($form->getSubmitValue('form_url'), $form->getSubmitValue('form_name'))); $next_step = true; } $this->tpl->assign("show_next_step", $next_step); }