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

Date Directory [filter] File(s) [view] Author [filter]
11 Aug 2002 12:00:52postnuke_official/html/modules/members_listindex.php,1.49.2.7,1.49.2.8 Version.php,1.3.2.1,1.3.2.2Hinrich Donner
 patch #593381 - hope it works now

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

Modified Files:
      Tag: PostNuke_71
	index.php Version.php 
Log Message:
patch #593381 - hope it works now


Index: index.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/members_list/Attic/index.php,v
retrieving revision 1.49.2.7
retrieving revision 1.49.2.8
diff -C2 -d -r1.49.2.7 -r1.49.2.8
*** index.php	12 Jun 2002 00:04:35 -0000	1.49.2.7
--- index.php	11 Aug 2002 12:00:49 -0000	1.49.2.8
***************
*** 1,3 ****
! <?php // $Id$ $Name$
  // ----------------------------------------------------------------------
  // POST-NUKE Content Management System
--- 1,3 ----
! <?php // $Id$
  // ----------------------------------------------------------------------
  // POST-NUKE Content Management System
***************
*** 35,41 ****
  
  /**
!  * Credits to Edgar Miller -- http://www.bosna.de/ from his post on PHP-Nuke 
   * (http://phpnuke.org/article.php?sid=2010&mode=nested&order=0&thold=0)
!  * Further Credits go to Djordjevic Nebojsa (nesh) for the fix for the fix 
   */
  
--- 35,41 ----
  
  /**
!  * Credits to Edgar Miller -- http://www.bosna.de/ from his post on PHP-Nuke
   * (http://phpnuke.org/article.php?sid=2010&mode=nested&order=0&thold=0)
!  * Further Credits go to Djordjevic Nebojsa (nesh) for the fix for the fix
   */
  
***************
*** 71,75 ****
  
      if ($letter == "front") {
! 	$letter = _ALL;
      }
          echo "\n<center>\n";
--- 71,75 ----
  
      if ($letter == "front") {
!     $letter = _ALL;
      }
          echo "\n<center>\n";
***************
*** 99,103 ****
  
  include 'header.php';
!     if (!pnSecAuthAction(0, 'Users::', '::', ACCESS_READ)) {
          echo _MODIFYUSERSNOAUTH;
          include 'footer.php';
--- 99,105 ----
  
  include 'header.php';
!     if (!pnSecAuthAction(0, 'Members_List::', '::', ACCESS_READ)
!         || !pnSecAuthAction(0, 'Users::', '::', ACCESS_READ) ) {
! 
          echo _MODIFYUSERSNOAUTH;
          include 'footer.php';
***************
*** 187,197 ****
          $column = &$pntable['users_column'];
          $count = "SELECT COUNT($column[uid]) FROM $pntable[users] ";
! 	// Count all the users in the db..
          if (($letter != _OTHER) AND ($letter != _ALL)) {
! 	    // are we listing all or "other" ?
              $where = "UPPER($column[uname]) LIKE UPPER('".$letter."%') ";
! 	    // I guess we are not..
          } else if (($letter == _OTHER) AND ($letter != _ALL)) {
! 	    // But other is numbers ?
              $where = "($column[uname] LIKE '0%'
                            OR $column[uname] LIKE '1%'
--- 189,199 ----
          $column = &$pntable['users_column'];
          $count = "SELECT COUNT($column[uid]) FROM $pntable[users] ";
!     // Count all the users in the db..
          if (($letter != _OTHER) AND ($letter != _ALL)) {
!         // are we listing all or "other" ?
              $where = "UPPER($column[uname]) LIKE UPPER('".$letter."%') ";
!         // I guess we are not..
          } else if (($letter == _OTHER) AND ($letter != _ALL)) {
!         // But other is numbers ?
              $where = "($column[uname] LIKE '0%'
                            OR $column[uname] LIKE '1%'
***************
*** 226,230 ****
          $sort = "$sortby ASC"; //sorty by .....
  
! 	// This is where we get our limit'd result set.
          $myquery = buildSimpleQuery('users', array('uid', 'name', 'uname', 'femail', 'url'), $where, $sort, $max, $min); //select our data
  
--- 228,232 ----
          $sort = "$sortby ASC"; //sorty by .....
  
!     // This is where we get our limit'd result set.
          $myquery = buildSimpleQuery('users', array('uid', 'name', 'uname', 'femail', 'url'), $where, $sort, $max, $min); //select our data
  
***************
*** 259,293 ****
                      $result->MoveNext();
                      $dcolor = ($a == 0 ? $dcolor_A : $dcolor_B);
!                     echo "<tr><td bgcolor=\"$dcolor\"><a class=\"pn-normal\" href=\"user.php?op=userinfo&amp;uname=$user[uname]\">".pnVarPrepHTMLDisplay($user['uname'])."</a>&nbsp;</td>\n";
!                     echo "<td bgcolor=\"$dcolor\"><font class=\"pn-normal\">".pnVarPrepHTMLDisplay($user['name'])."</font></td>\n";
!                     echo "<td bgcolor=\"$dcolor\"><font class=\"pn-normal\">";
! 					if ($user['femail']) {
! 						echo "<a class=\"pn-normal\" href=\"mailto:".$user['femail']."\" target=new>".$user['femail']."</a>"; 
! 					}
! 				    echo "</font></td>\n";
!                     echo "<td bgcolor=\"$dcolor\">";
! 
! 				if(("http://" == $user['url']) || (!eregi("http://", $user['url'])) || (empty($user['url']))) {
! 			$user['url'] = '';
! 	    	    }
! 	    if (!empty($user['url'])) {
!             echo "<a class=\"pn-normal\" href=\"".$user['url']."\" target=new>".pnVarPrepHTMLDisplay($user['url'])."</a></td>"; 
!         }
!         else if (empty($user['url'])) {
! 			echo "</td>";
! 		}
! 		if (pnSecAuthAction(0, 'Users::', '::', ACCESS_EDIT)){
! 			$authid = pnSecGenAuthKey();
!                         echo "\n<td bgcolor=$dcolor align=center><font class=\"pn-normal\">[ <a class=\"pn-normal\" href=\"admin.php?module=ns-user&amp;op=modifyUser&amp;chng_uid=$user[uid]&amp;authid=$authid\"><font class=\"pn-normal\">"._EDIT."</font></a><font class=\"pn-sub\"> | </font>\n";
!                         echo "<a class=\"pn-normal\" href=\"admin.php?module=ns-user&amp;op=delUser&amp;chng_uid=$user[uid]&amp;authid=$authid\"><font class=\"pn-normal\">"._DELETE."</font></a> ]</font></td>\n";
!                     }
!                     echo "</tr>";
!                     $a = ($dcolor == $dcolor_A ? 1 : 0);
!                 }
! 		// start of next/prev/row links.
                  echo "\n<tr><td colspan='$cols' align='right'>\n";
  
          OpenTable();
!                 echo "\t<table width='100%' cellspacing='0' cellpadding='0' border=0><tr>";
                  if (!empty($where)) {
                      $where = " WHERE $where";
--- 261,286 ----
                      $result->MoveNext();
                      $dcolor = ($a == 0 ? $dcolor_A : $dcolor_B);
!                       echo "\n<tr>\n<td bgcolor=\"$dcolor\"><a class=\"pn-normal\" href=\"user.php?op=userinfo&amp;uname=$user[uname]\">".pnVarPrepHTMLDisplay($user['uname'])."</a>&nbsp;</td>\n";
!                       echo "<td bgcolor=\"$dcolor\"><span class=\"pn-normal\">".pnVarPrepHTMLDisplay($user['name'])."&nbsp;</span></td>\n";
!                       echo "<td bgcolor=\"$dcolor\"><span class=\"pn-normal\">".$user['femail']."&nbsp;</span></td>\n";
!                       if ( eregi( "http://$", $user['url'] ) || ( empty( $user['url']) ) ) {
!                           echo "<td bgcolor=\"$dcolor\"></td>\n";
!                       }
!             else {
!                 echo "<td bgcolor=\"$dcolor\"><a class=\"pn-normal\" href=\"".$user['url']."\" target=\"_new\">".pnVarPrepHTMLDisplay($user['url'])."</a></td>\n";
!                       }
!                       if (pnSecAuthAction(0, 'Users::', '::', ACCESS_EDIT)){
!             $authid = pnSecGenAuthKey();
!                           echo "<td bgcolor=\"$dcolor\" align=\"center\"><span class=\"pn-normal\">[ <a href=\"admin.php?module=ns-user&amp;op=modifyUser&amp;chng_uid=$user[uid]&amp;authid=$authid\">"._EDIT."</a><span class=\"pn-sub\"> | </span>\n";
!                           echo "<a href=\"admin.php?module=NS-User&amp;op=delUser&amp;chng_uid=$user[uid]&amp;authid=$authid\">"._DELETE."</a> ]</span></td>\n";
!                       }
!                       echo "</tr>\n";
!                       $a = ($dcolor == $dcolor_A ? 1 : 0);
!                   }
!         // start of next/prev/row links.
                  echo "\n<tr><td colspan='$cols' align='right'>\n";
  
          OpenTable();
!                 echo "\n\t<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n<tr>\n";
                  if (!empty($where)) {
                      $where = " WHERE $where";
***************
*** 308,312 ****
                          echo "<img src=\"modules/$ModName/images/left.gif\" border=\"0\" Alt=\""._PREVIOUS." (".pnVarPrepHTMLDisplay($prev_page).")\"></a></td>";
                      } else {
!                         echo "<td width='15%'>&nbsp;</td>\n";
                      }
  
--- 301,305 ----
                          echo "<img src=\"modules/$ModName/images/left.gif\" border=\"0\" Alt=\""._PREVIOUS." (".pnVarPrepHTMLDisplay($prev_page).")\"></a></td>";
                      } else {
!                         echo "<td width=\"15%\">&nbsp;</td>\n";
                      }
  
***************
*** 322,326 ****
                          echo "<td width='15%'>&nbsp;</td></tr>\n";
                      }
! 			// Added a numbered page list, only shows up to 50 pages.
                          echo "<tr><td colspan=\"3\" align=\"center\">";
                          echo " <font class=\"pn-sub\">[ </font>";
--- 315,319 ----
                          echo "<td width='15%'>&nbsp;</td></tr>\n";
                      }
!             // Added a numbered page list, only shows up to 50 pages.
                          echo "<tr><td colspan=\"3\" align=\"center\">";
                          echo " <font class=\"pn-sub\">[ </font>";
***************
*** 328,332 ****
                          for($n=1; $n < $total_pages; $n++) {
                              if ($n == $page) {
!                 		echo "<font class=\"pn-sub\">$n</font></a>";
                          } else {
                  echo "<a class=\"pn-normal\" href='modules.php?op=modload&amp;name=$ModName&amp;file=index&amp;letter=$letter&amp;sortby=$sortby&amp;page=$n'>";
--- 321,325 ----
                          for($n=1; $n < $total_pages; $n++) {
                              if ($n == $page) {
!                         echo "<font class=\"pn-sub\">$n</font></a>";
                          } else {
                  echo "<a class=\"pn-normal\" href='modules.php?op=modload&amp;name=$ModName&amp;file=index&amp;letter=$letter&amp;sortby=$sortby&amp;page=$n'>";

Index: Version.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/members_list/Attic/Version.php,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C2 -d -r1.3.2.1 -r1.3.2.2
*** Version.php	23 Mar 2002 11:21:21 -0000	1.3.2.1
--- Version.php	11 Aug 2002 12:00:49 -0000	1.3.2.2
***************
*** 1,3 ****
! <?php //$Id$ $Name$
  
  $modversion['name'] = 'Members_List';
--- 1,3 ----
! <?php //$Id$
  
  $modversion['name'] = 'Members_List';
***************
*** 12,15 ****
  $modversion['contact'] = 'http://www.phpnuke.org';
  $modversion['admin'] = 0;
  
! ?>
\ No newline at end of file
--- 12,16 ----
  $modversion['contact'] = 'http://www.phpnuke.org';
  $modversion['admin'] = 0;
+ $modversion['securityschema'] = array('Members_List::' => '::');
  
! ?>


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