Replaced the ajax paging in stock movements with the old file.
[fa-stable.git] / admin / create_coy.php
index dc420a16a3d5eaee2ad3e2bd5778f802818e9c26..9811d9946b02f9bd6ab4d3a1ea1eefc50bf4aefe 100644 (file)
@@ -146,19 +146,10 @@ function handle_submit()
        {
                return false;
        }
-       $index = "<?php\nheader(\"Location: ../../index.php\");\n?>";
 
        if ($new)
        {
-           $cdir = $comp_path.'/'.$id;
-           @mkdir($cdir);
-           save_to_file($cdir.'/'.'index.php', 0, $index);
-
-           foreach($comp_subdirs as $dir)
-           {
-                       @mkdir($cdir.'/'.$dir);
-                       save_to_file($cdir.'/'.$dir.'/'.'index.php', 0, $index);
-           }
+               create_comp_dirs("$comp_path/$id", $comp_subdirs);
        }
        return true;
 }