Optional additional security roles inscludable from modules/extensions.
[fa-stable.git] / admin / forms_setup.php
index a15cfe4a72171390e88a2b1b78e9adb0215ff40e..9a6be87a3e81e90a0aa4cf0b455abac015a5790d 100644 (file)
@@ -9,8 +9,8 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$page_security =10;
-$path_to_root="..";
+$page_security = 'SA_FORMSETUP';
+$path_to_root = "..";
 include($path_to_root . "/includes/session.inc");
 
 page(_("Forms Setup"));
@@ -48,12 +48,12 @@ table_header($th);
 $i = 0;
 while ($type = db_fetch($systypes)) 
 {
-       if ($i++ == 11)
+       if ($i++ == ST_CUSTCREDIT)
        {
                table_section(2);
                table_header($th);
        }       
-       ref_row(systypes::name($type["type_id"]), 'id' . $type["type_id"], '', $type["next_reference"]);
+       ref_row($systypes_array[$type["type_id"]], 'id' . $type["type_id"], '', $type["next_reference"]);
 }
 
 end_outer_table(1);