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_official / html / modules / users / pnblocks [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
07 Aug 2002 04:00:29postnuke_official/html/modules/users/pnblockslogin.php,1.6,1.7Paul Rosania
 using templating for login block - this may become automatic in the future but allows templating to work for testing

Update of /home/cvsroot/postnuke_official/html/modules/users/pnblocks
In directory ns7.hostnuke.net:/tmp/cvs-serv24769/pnblocks

Modified Files:
	login.php 
Log Message:
using templating for login block - this may become automatic in the future but allows templating to work for testing


Index: login.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/users/pnblocks/login.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** login.php	13 Jun 2002 15:45:23 -0000	1.6
--- login.php	7 Aug 2002 04:00:26 -0000	1.7
***************
*** 58,69 ****
      $vars = unserialize($blockinfo['content']);
  
-     // Defaults
-     if (empty($vars['showmessage'])) {
-         $vars['showmessage'] = 1;
-     }
-     if (empty($vars['showcreate'])) {
-         $vars['showcreate'] = 1;
-     }
- 
      // Don't display if user is already logged in
      if (pnUserLoggedIn()) {
--- 58,61 ----
***************
*** 71,130 ****
      }
  
-     // Username and password
-     $output = new pnHTML();
-     $output->FormStart(pnModURL('users',
-                                 'user',
-                                 'login'));
- 
-     $output->TableStart();
-     $output->SetInputMode(_PNH_VERBATIMINPUT);
-     $output->SetOutputMode(_PNH_RETURNOUTPUT);
-     $row[] = $output->Text('Username');
-     $row[] = $output->FormText('uname', '', 12, 64);
-     $output->SetOutputMode(_PNH_KEEPOUTPUT);
-     $output->TableAddRow($row);
-     $row = array();
-     $output->SetOutputMode(_PNH_RETURNOUTPUT);
-     $row[] = $output->Text('Password');
-     $row[] = $output->FormText('pass', '', 12, 64, true);
-     $output->SetOutputMode(_PNH_KEEPOUTPUT);
-     $output->TableAddRow($row);
-     $output->TableEnd();
- 
      // URL of this page
      // TODO - make this generic so that it works with all
      //        webservers - pnGetThisURL?
!     $output->FormHidden('returnurl', pnServerGetVar('REQUEST_URI'));
! 
!     // Remember me
!     if (pnConfigGetVar('seclevel') != 'High') {
!         $output->TableStart();
!         $row = array();
!         $output->SetOutputMode(_PNH_RETURNOUTPUT);
!         $row[] = $output->Text(' ' . _USERSREMEMBERME);
!         $row[] = $output-> FormCheckBox('rememberme');
!         $output->SetOutputMode(_PNH_KEEPOUTPUT);
!         $output->TableAddRow($row);
!         $output->TableEnd();
!     }
!     $output->SetInputMode(_PNH_PARSEINPUT);
! 
!     // Login button
!     $output->FormSubmit(_USERSLOGIN);
!     $output->FormEnd();
! 
!     // Registration message
!     if (!empty($vars['showmessage'])) {
!         $output->Text(_USERSASREGISTERED);
!     }
! 
! 
!     // Block formatting
!     if (empty($blockinfo['title'])) {
!         $blockinfo['title'] = _USERSLOGIN;
!     }
! 
!     $blockinfo['content'] = $output->GetOutput();
  
      return $blockinfo;
  }
--- 63,73 ----
      }
  
      // URL of this page
      // TODO - make this generic so that it works with all
      //        webservers - pnGetThisURL?
!     $args['return_url'] = pnServerGetVar('REQUEST_URI');
  
+     $blockinfo['content'] = pnBlockTemplate('users', 'login', $args);
+     
      return $blockinfo;
  }


Directory filter : [ all ] / postnuke_official / html / modules / users / pnblocks [ 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