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


Deprecated: Function gmstrftime() is deprecated in /home/mikespub/www/list.php on line 509
Date Directory [filter] File(s) [view] Author [filter]
02 Oct 2002 20:01:49postnuke_modules/postcalendarfunctions.php,1.1,1.2 pninit.php,1.34,1.35Roger Raymond
 date fixes for anonymous users, more cleanup

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

Modified Files:
	functions.php pninit.php 
Log Message:
date fixes for anonymous users, more cleanup


Index: functions.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/functions.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** functions.php	1 Oct 2002 23:15:45 -0000	1.1
--- functions.php	2 Oct 2002 20:01:47 -0000	1.2
***************
*** 33,43 ****
      $date = pnVarCleanFromInput('Date');
      if(!isset($date)) {
!         $time = time();
!         $time += (pnUserGetVar('timezone_offset') - pnConfigGetVar('timezone_offset')) * 3600;
!         $date = ml_ftime('%m/%d/%Y',$time);
      }
      return $date;
  }
- 
- 
  ?>
--- 33,50 ----
      $date = pnVarCleanFromInput('Date');
      if(!isset($date)) {
!         //$Date = date('m/d/Y');
!         // My new code follows because pnUserGetVar only works when logged in!
!         if (pnUserLoggedIn()) {
!                 $time = time();
!                 $time += (pnUserGetVar('timezone_offset') - pnConfigGetVar('timezone_offset')) * 3600;
!         } else {
!                 $time = time();
!                 $time += pnConfigGetVar('timezone_offset') * 3600;
!         }
!         // and now set the date according to the time retrieved
!         //$date = ml_ftime('%m/%d/%Y',$time);
!         $date = ml_ftime('%Y%m%d',$time);
      }
      return $date;
  }
  ?>

Index: pninit.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/pninit.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** pninit.php	4 Jul 2002 13:05:59 -0000	1.34
--- pninit.php	2 Oct 2002 20:01:47 -0000	1.35
***************
*** 161,175 ****
      pnModSetVar('postcalendar', 'firstdayofweek',           '0');
      pnModSetVar('postcalendar', 'dayhighlightcolor',        '#FF0000');
-     pnModSetVar('postcalendar', 'monthtableborder',         '0');
-     pnModSetVar('postcalendar', 'monthtablecellspacing',    '1');
-     pnModSetVar('postcalendar', 'monthtablecellpadding',    '1');
-     pnModSetVar('postcalendar', 'yeartableborder',          '0');
-     pnModSetVar('postcalendar', 'yeartablecellspacing',     '1');
-     pnModSetVar('postcalendar', 'yeartablecellpadding',     '1');
-     pnModSetVar('postcalendar', 'displayballs',             '1');
      pnModSetVar('postcalendar', 'showtimeonevents',         '1');
      pnModSetVar('postcalendar', 'usepopups',                '1');
      pnModSetVar('postcalendar', 'showeventsinyear',         '0');
-     pnModSetVar('postcalendar', 'numcolsinyearview',        '4');
      pnModSetVar('postcalendar', 'allowdirectsubmit',        '0');
      pnModSetVar('postcalendar', 'listhowmanyevents',        '15');
--- 161,167 ----
***************
*** 194,198 ****
  {
      // we need the Date_Calc class
!     $pcModInfo = pnModGetInfo(pnModGetIDFromName('postcalendar'));
      require_once('modules/'.pnVarPrepForOS($pcModInfo['directory']).'/pnincludes/Date/Calc.php');
      
--- 186,190 ----
  {
      // we need the Date_Calc class
!     $pcModInfo = pnModGetInfo(pnModGetIDFromName('PostCalendar'));
      require_once('modules/'.pnVarPrepForOS($pcModInfo['directory']).'/pnincludes/Date/Calc.php');
      
***************
*** 209,216 ****
      switch($oldversion) {
          
-         // there's a bug in the Modules module - grrrr
          case '3.0' :
!         case '3.1' :
!             
              // Set the new Admin Options default values
              pnModSetVar('postcalendar', 'pcDayViewStartHour',   '08');    
--- 201,206 ----
      switch($oldversion) {
          
          case '3.0' :
!                  
              // Set the new Admin Options default values
              pnModSetVar('postcalendar', 'pcDayViewStartHour',   '08');    
***************
*** 618,627 ****
              
              // all done, proceed with next upgrade step if available/necessary
!             //return postcalendar_upgrade('3.1');
              break;
                     
!         //case '3.1' :
              // pass through
!             //break;
      }
      // all done - just one more check to be sure
--- 608,617 ----
              
              // all done, proceed with next upgrade step if available/necessary
!             return postcalendar_upgrade('3.1');
              break;
                     
!         case '3.1' :
              // pass through
!             break;
      }
      // all done - just one more check to be sure


Directory filter : [ all ] / postnuke_modules / postcalendar [ 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