Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_modules / htmlpages [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
24 Jul 2002 20:44:11postnuke_modules/htmlpagespnadmin.php,1.3,1.4Andrea M.
 better menu

Update of /home/cvsroot/postnuke_modules/htmlpages
In directory ns7.hostnuke.net:/tmp/cvs-serv11783

Modified Files:
	pnadmin.php 
Log Message:
better menu


Index: pnadmin.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/htmlpages/pnadmin.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pnadmin.php	23 Jul 2002 18:30:56 -0000	1.3
--- pnadmin.php	24 Jul 2002 20:44:09 -0000	1.4
***************
*** 657,661 ****
      // Start options menu
      $output->TableStart(_HTMLPAGES);
!     $output->SetOutputMode(_PNH_RETURNOUTPUT);
  
      // Menu options.  These options are all added in a single row, to add
--- 657,661 ----
      // Start options menu
      $output->TableStart(_HTMLPAGES);
!     
  
      // Menu options.  These options are all added in a single row, to add
***************
*** 663,678 ****
      $columns = array();
      if (pnSecAuthAction(0, 'htmlpages::', '::', ACCESS_ADD)) {
          $columns[] = $output->URL(pnModURL('htmlpages',
                                          'admin',
                                          'new'),
                                _NEWHTMLPAGES); 
      }
      if (pnSecAuthAction(0, 'htmlpages::', '::', ACCESS_OVERVIEW)) {
!     $columns[] = $output->URL(pnModURL('htmlpages',
                                          'admin',
                                          'view'),
                                _VIEWHTMLPAGES);     
          $output->SetOutputMode(_PNH_KEEPOUTPUT);
      }
      $output->SetInputMode(_PNH_VERBATIMINPUT);
      $output->TableAddRow($columns);
--- 663,700 ----
      $columns = array();
      if (pnSecAuthAction(0, 'htmlpages::', '::', ACCESS_ADD)) {
+         $output->SetOutputMode(_PNH_RETURNOUTPUT);
          $columns[] = $output->URL(pnModURL('htmlpages',
                                          'admin',
                                          'new'),
                                _NEWHTMLPAGES); 
+ 
      }
      if (pnSecAuthAction(0, 'htmlpages::', '::', ACCESS_OVERVIEW)) {
!         $output->SetOutputMode(_PNH_RETURNOUTPUT);
!         $columns[] = $output->URL(pnModURL('htmlpages',
                                          'admin',
                                          'view'),
                                _VIEWHTMLPAGES);     
          $output->SetOutputMode(_PNH_KEEPOUTPUT);
+         
+     }
+     if (pnSecAuthAction(0, 'Settings::', '::', ACCESS_ADMIN)
+         || pnSecAuthAction(0, 'settings::', '::', ACCESS_ADMIN)) // should reverto to lowerc.
+         {
+         $output->SetOutputMode(_PNH_RETURNOUTPUT);
+         $columns[] = $output->URL("admin.php?module=ns-settings&op=main",
+                                   _ADMINSETT);     
+         $output->SetOutputMode(_PNH_KEEPOUTPUT);
      }
+     if (pnSecAuthAction(0, 'Permissions::', '::', ACCESS_ADMIN) ||
+         pnSecAuthAction(0, 'permissions::', '::', ACCESS_ADMIN)) {
+             $output->SetOutputMode(_PNH_RETURNOUTPUT);
+             $columns[] = $output->URL(pnModURL('permissions',
+                                         'admin',
+                                         'view'),
+                                       _ADMINPERM);     
+             $output->SetOutputMode(_PNH_KEEPOUTPUT);
+     }
+   
      $output->SetInputMode(_PNH_VERBATIMINPUT);
      $output->TableAddRow($columns);


Directory filter : [ all ] / postnuke_modules / htmlpages [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3