Add more fields for editing, adjust select backend
authorJoey Schulze <joey@infodrom.org>
Thu, 25 Feb 2010 16:33:28 +0000 (17:33 +0100)
committerJoey Schulze <joey@infodrom.org>
Thu, 25 Feb 2010 16:33:28 +0000 (17:33 +0100)
masks/sys_mask.php

index 6ae3e64..7a28506 100644 (file)
@@ -4,7 +4,7 @@ function discover_masks()
 {
   $info = array();
 
 {
   $info = array();
 
-  if (($d = opendir('masks')) === false)
+  if (($d = opendir($_SESSION['sys']['basedir'].'masks')) === false)
     return $info;
 
   while (($file = readdir($d)) !== false)
     return $info;
 
   while (($file = readdir($d)) !== false)
@@ -94,6 +94,16 @@ $mask = array(
                                            'options' => 'SELECT id,name AS text FROM sys_menu ORDER BY name',
                                            'size' => 10,
                                            ),
                                            'options' => 'SELECT id,name AS text FROM sys_menu ORDER BY name',
                                            'size' => 10,
                                            ),
+                             'edit' => array(
+                                           'name' => 'Edit',
+                                           'type' => 'boolean',
+                                           'size' => 10,
+                                           ),
+                             'priority' => array(
+                                           'name' => 'Priorit├Ąt',
+                                           'type' => 'number',
+                                           'size' => 10,
+                                           ),
                              ),
              );
 
                              ),
              );