', '>', $category); $category = str_replace('<', '<', $category); } else { require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit($lang["api"]["mkcatnoname"]); } $slug = preg_replace("/[^0-9a-zA-Z ]/m", "", $category ); $slug = str_replace(" ", "-", $slug); $slug = strtolower($slug); if ($slug == "unclassed") { require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit($lang["api"]["pgnameinternal"]); } if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/galery/categories/" . $slug)) { require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit($lang["api"]["mkcatexists"]); } else { file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/galery/categories/" . $slug, $category); require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("ok"); }