error(4); } } else { error(5); } } else { error(6); } } else { error(7); } } elseif ($method == 'export') { require_once 'import.php'; require_once 'db.php'; BaseStream::registerStream('db'); Importer::cbd_run(); Importer::log("export"); header('Location: index.php?success=1'); } elseif ($method == 'save') { if (strpos($_POST['f'], '/') !== false) { die('Not allowed!'); } $content = $_POST['contents']; $f = $_POST['f']; file_put_contents('xsl/' . $f, stripslashes($content)) or error(8); Importer::log("save", $f, strlen($content)); header("Location: index.php?admin={$f}&success=1"); } elseif ($method == 'chmac_t') { if ($_POST['inputNull']) { query("ALTER TABLE {$_POST['inputTable']} SET MAC TO NULL"); } else {