/[cvs]/nfo/php/libs/org.netfrag.app/WebExplorer/utils.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.app/WebExplorer/utils.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by jonen, Tue Aug 31 14:22:03 2004 UTC revision 1.10 by jonen, Thu Aug 11 14:12:24 2005 UTC
# Line 4  Line 4 
4   * $Id$   * $Id$
5   *   *
6   * $Log$   * $Log$
7     * Revision 1.10  2005/08/11 14:12:24  jonen
8     * + bugfix
9     * + added function to get allowed writeable entries for a TerminalOwner
10     *
11   * Revision 1.9  2004/08/31 14:22:03  jonen   * Revision 1.9  2004/08/31 14:22:03  jonen
12   * added removing of 'template' hash-value, needed to recognize empty hash-refs   *  added removing of 'template' hash-value, needed to recognize empty hash-refs
13   *   *
14   * Revision 1.8  2003/12/14 01:52:26  jonen   * Revision 1.8  2003/12/14 01:52:26  jonen
15   * implemented 'SELECT' mode for selecting existing object-refereneces as child-nodes   * implemented 'SELECT' mode for selecting existing object-refereneces as child-nodes
# Line 114  Line 118 
118                  $container->add(_HTML_SPACE, html_a( $url_short, $key . " add new"), html_br());                                $container->add(_HTML_SPACE, html_a( $url_short, $key . " add new"), html_br());              
119                        
120            if($item[tmp]) { unset($item[tmp]); }            if($item[tmp]) { unset($item[tmp]); }
121              if($item[0] == "_REF") { unset($item[0]); }
122                        
123            if(count($item) != 0) {            if(count($item) != 0) {
124              foreach($item as $key => $value) {              foreach($item as $key => $value) {
# Line 231  Line 236 
236      }      }
237    
238    
239        function getWriteableEntries($userclass) {
240          if($userclass == 'TerminalOwner') {
241            $we = array(
242                  'password',
243                  'question',
244                  'answer',
245                  'phone',
246                  'mobile',
247                  'address1',
248                  'address2',
249                  'state',
250                  'city',
251                  'zip',
252                  'fax',
253                  );
254          }
255          return $we;
256        }
257        
258    }    }
259    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed