MultiCabinet is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Foobar. If not, see <http://www.gnu.org/licenses/>. **/ $step = isset($_REQUEST['step']) ? $_REQUEST['step'] : ''; $do = isset($_REQUEST['do']) ? $_REQUEST['do'] : ''; require_once 'tinycore.php'; Page::init(); $config = new Config("../config.php"); if ($step == '' && $do == '') { Page::Checks(); } elseif ($step != '') { switch ($step) { case 2: Page::Paths(); break; case 3: $error = 0; //$ini = ini_manager::getInstance(); if (!preg_match('/^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\\-]*[A-Za-z0-9])$/', $_POST['domain'])) { $error++; Page::message('attention', 'Domain name in wrong format'); } if (!preg_match('/(^(\\/{1}[^\\/]+)+$)|(^[A-Za-z]:{1}(\\\\{1}[^\\\\]+)+$)/', $_POST['wwwpath'])) { $error++; Page::message('attention', 'Path to WWW directory in wrong format');