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 / ratings [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
10 Aug 2002 11:35:50postnuke_official/html/modules/ratingspninit.php,1.8,1.9 pnuser.php,1.15,1.16 pnversion.php,1.6,1.7Mike
 set user = 0, delete ratingslog and remove user_main

Update of /home/cvsroot/postnuke_official/html/modules/ratings
In directory ns7.hostnuke.net:/tmp/cvs-serv31235

Modified Files:
	pninit.php pnuser.php pnversion.php 
Log Message:
set user = 0, delete ratingslog and remove user_main


Index: pninit.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/ratings/pninit.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** pninit.php	2 Jul 2002 15:49:00 -0000	1.8
--- pninit.php	10 Aug 2002 11:35:48 -0000	1.9
***************
*** 155,158 ****
--- 155,168 ----
      }
  
+     // Delete tables
+     $sql = "DROP TABLE $pntable[ratingslog]";
+     $dbconn->Execute($sql);
+ 
+     // Check database result
+     if ($dbconn->ErrorNo() != 0) {
+         // Report failed deletion attempt
+         return false;
+     }
+ 
      // Deletion successful
      return true;

Index: pnuser.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/ratings/pnuser.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** pnuser.php	2 Jul 2002 15:49:00 -0000	1.15
--- pnuser.php	10 Aug 2002 11:35:48 -0000	1.16
***************
*** 28,47 ****
  function ratings_user_main()
  {
-     // Create output object
-     $output = new pnHTML();
- 
-     // Add menu to output
-     $output->SetInputMode(_PNH_VERBATIMINPUT);
-     $output->Text(ratings_usermenu());
-     $output->SetInputMode(_PNH_PARSEINPUT);
- 
-     // Security check
-     if (!pnSecAuthAction(0, 'Ratings::', '::', ACCESS_READ)) {
-         $output->Text(_RATINGSNOAUTH);
-         return $output->GetOutput();
-     }
- 
      // Return output
!     return $output->GetOutput();
  }
  
--- 28,33 ----
  function ratings_user_main()
  {
      // Return output
!     return pnML('This module has no user interface *except* via display hooks');
  }
  

Index: pnversion.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/ratings/pnversion.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** pnversion.php	26 Apr 2002 23:42:19 -0000	1.6
--- pnversion.php	10 Aug 2002 11:35:48 -0000	1.7
***************
*** 14,19 ****
  $modversion['contact'] = 'http://www.mcdee.net/';
  $modversion['admin'] = 1;
  $modversion['securityschema'] = array('Ratings::' => 'Module name:Rating type:Item ID');
  $modversion['class'] = 'Core Utility';
  $modversion['category'] = 'Content';
! ?>
\ No newline at end of file
--- 14,20 ----
  $modversion['contact'] = 'http://www.mcdee.net/';
  $modversion['admin'] = 1;
+ $modversion['user'] = 0;
  $modversion['securityschema'] = array('Ratings::' => 'Module name:Rating type:Item ID');
  $modversion['class'] = 'Core Utility';
  $modversion['category'] = 'Content';
! ?>


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