diff --git a/html/admin/htaccess.cfg b/html/admin/htaccess.cfg
new file mode 100755
index 000000000..93f64799e
--- /dev/null
+++ b/html/admin/htaccess.cfg
@@ -0,0 +1,9 @@
+php_value include_path .;..\..\include;..\include;addon
+php_flag magic_quotes_gpc off
+php_flag session.auto_start on
+php_value session.save_path c:\temp
+php_value max_execution_time 240
+php_value memory_limit 12M
+# for php 5 php_value upload_tmp_dir /tmp
+AddDefaultCharset latin1
+
diff --git a/html/admin/sql/account_repository/schema.sql b/html/admin/sql/account_repository/schema.sql
index 14f309fa3..1fe96f50c 100644
--- a/html/admin/sql/account_repository/schema.sql
+++ b/html/admin/sql/account_repository/schema.sql
@@ -81,7 +81,3 @@ CREATE TABLE version (
);
CREATE INDEX fk_jnt_dos_id ON jnt_use_dos USING btree (dos_id);
CREATE INDEX fk_jnt_use_dos ON jnt_use_dos USING btree (use_id);
-REVOKE ALL ON SCHEMA public FROM PUBLIC;
-REVOKE ALL ON SCHEMA public FROM postgres;
-GRANT ALL ON SCHEMA public TO postgres;
-GRANT ALL ON SCHEMA public TO PUBLIC;
diff --git a/html/htaccess.cfg b/html/htaccess.cfg
new file mode 100755
index 000000000..93f64799e
--- /dev/null
+++ b/html/htaccess.cfg
@@ -0,0 +1,9 @@
+php_value include_path .;..\..\include;..\include;addon
+php_flag magic_quotes_gpc off
+php_flag session.auto_start on
+php_value session.save_path c:\temp
+php_value max_execution_time 240
+php_value memory_limit 12M
+# for php 5 php_value upload_tmp_dir /tmp
+AddDefaultCharset latin1
+
diff --git a/include/htaccess.cfg b/include/htaccess.cfg
new file mode 100644
index 000000000..ff2beb844
--- /dev/null
+++ b/include/htaccess.cfg
@@ -0,0 +1,2 @@
+order deny,allow
+deny from all