projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hiding voided transactions.
[fa-stable.git]
/
admin
/
create_coy.php
diff --git
a/admin/create_coy.php
b/admin/create_coy.php
index dc420a16a3d5eaee2ad3e2bd5778f802818e9c26..a16ea1f9f553959064084f7d4237757fe8189421 100644
(file)
--- a/
admin/create_coy.php
+++ b/
admin/create_coy.php
@@
-20,7
+20,7
@@
include_once($path_to_root . "/includes/ui.inc");
page(_("Create/Update Company"));
page(_("Create/Update Company"));
-$comp_subdirs = array('images', 'pdf_files', 'backup','js_cache', 'reporting');
+$comp_subdirs = array('images', 'pdf_files', 'backup','js_cache', 'reporting'
, 'attachments'
);
//---------------------------------------------------------------------------------------------
if (isset($_GET['selected_id']))
//---------------------------------------------------------------------------------------------
if (isset($_GET['selected_id']))
@@
-146,19
+146,10
@@
function handle_submit()
{
return false;
}
{
return false;
}
- $index = "<?php\nheader(\"Location: ../../index.php\");\n?>";
if ($new)
{
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;
}
}
return true;
}