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 NoticeDirectory filter : [ all ] / postnuke_modules / postcalendar [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 10 Sep 2002 15:16:26 | postnuke_modules/postcalendar | pnuser.php,1.54,1.55 pnuserapi.php,1.103,1.104 smarty_plugins.php,1.1,1.2 | Roger Raymond |
| date format changes | |||
Update of /home/cvsroot/postnuke_modules/postcalendar
In directory ns7.hostnuke.net:/tmp/cvs-serv31641
Modified Files:
pnuser.php pnuserapi.php smarty_plugins.php
Log Message:
date format changes
Index: pnuser.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnuser.php,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** pnuser.php 7 Sep 2002 15:39:38 -0000 1.54
--- pnuser.php 10 Sep 2002 15:16:24 -0000 1.55
***************
*** 94,98 ****
if(!isset($Date) || empty($Date)) {
! $Date = $jumpmonth.'/'.$jumpday.'/'.$jumpyear;
}
--- 94,99 ----
if(!isset($Date) || empty($Date)) {
! //$Date = $jumpmonth.'/'.$jumpday.'/'.$jumpyear;
! $Date = "$jumpyear$jumpmonth$jumpday";
}
***************
*** 181,185 ****
$Date = ml_ftime('%m/%d/%Y',$time);
}
! list($month,$day,$year) = explode('/',$Date);
// lets get the module's information
--- 182,189 ----
$Date = ml_ftime('%m/%d/%Y',$time);
}
! //list($month,$day,$year) = explode('/',$Date);
! $year = substr($Date,0,4);
! $month = substr($Date,4,2);
! $day = substr($Date,6,2);
// lets get the module's information
Index: pnuserapi.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnuserapi.php,v
retrieving revision 1.103
retrieving revision 1.104
diff -C2 -d -r1.103 -r1.104
*** pnuserapi.php 7 Sep 2002 15:39:38 -0000 1.103
--- pnuserapi.php 10 Sep 2002 15:16:24 -0000 1.104
***************
*** 320,329 ****
$time = time();
$time += (pnUserGetVar('timezone_offset') - pnConfigGetVar('timezone_offset')) * 3600;
! $Date = ml_ftime('%m/%d/%Y',$time);
}
if(!isset($viewtype)) {
$viewtype = 'month';
}
! list($the_month,$the_day,$the_year) = explode('/',$Date);
$last_day = Date_Calc::daysInMonth($the_month,$the_year);
--- 320,334 ----
$time = time();
$time += (pnUserGetVar('timezone_offset') - pnConfigGetVar('timezone_offset')) * 3600;
! //$Date = ml_ftime('%m/%d/%Y',$time);
! $Date = ml_ftime('%Y%m%d',$time);
}
if(!isset($viewtype)) {
$viewtype = 'month';
}
! //list($the_month,$the_day,$the_year) = explode('/',$Date);
! $the_year = substr($Date,0,4);
! $the_month = substr($Date,4,2);
! $the_day = substr($Date,6,2);
!
$last_day = Date_Calc::daysInMonth($the_month,$the_year);
***************
*** 524,542 ****
}
! $prev_month = Date_Calc::beginOfPrevMonth(1,$the_month,$the_year,'%m/%d/%Y');
! $next_month = Date_Calc::beginOfNextMonth(1,$the_month,$the_year,'%m/%d/%Y');
$pc_prev = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'month','Date'=>$prev_month));
$pc_next = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'month','Date'=>$next_month));
$pc_month_name = pnModAPIFunc('postcalendar', 'user', 'getmonthname', array('Date'=>mktime(0,0,0,$the_month,$the_day,$the_year)));
$month_link_url = pnModURL('postcalendar', 'user', 'view', array('tplview'=>$template_view,'viewtype'=>'month',
! 'Date'=>Date_Calc::dateFormat($the_day,$the_month,$the_year,'%m/%d/%Y')));
$month_link_text = $pc_month_name.' '.$the_year;
! $prev_day = Date_Calc::prevDay($the_day,$the_month,$the_year,'%m/%d/%Y');
! $next_day = Date_Calc::nextDay($the_day,$the_month,$the_year,'%m/%d/%Y');
$pc_prev_day = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'day','Date'=>$prev_day));
$pc_next_day = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'day','Date'=>$next_day));
$day_link_url = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'day',
! 'Date'=>Date_Calc::dateFormat($the_day,$the_month,$the_year,'%m/%d/%Y')));;
if($useinternationaldates) {
$day_link_text = $the_day.' '.$pc_month_name.' '.$the_year;
--- 529,549 ----
}
! //$prev_month = Date_Calc::beginOfPrevMonth(1,$the_month,$the_year,'%m/%d/%Y');
! //$next_month = Date_Calc::beginOfNextMonth(1,$the_month,$the_year,'%m/%d/%Y');
! $prev_month = Date_Calc::beginOfPrevMonth(1,$the_month,$the_year,'%Y%m%d');
! $next_month = Date_Calc::beginOfNextMonth(1,$the_month,$the_year,'%Y%m%d');
$pc_prev = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'month','Date'=>$prev_month));
$pc_next = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'month','Date'=>$next_month));
$pc_month_name = pnModAPIFunc('postcalendar', 'user', 'getmonthname', array('Date'=>mktime(0,0,0,$the_month,$the_day,$the_year)));
$month_link_url = pnModURL('postcalendar', 'user', 'view', array('tplview'=>$template_view,'viewtype'=>'month',
! 'Date'=>Date_Calc::dateFormat($the_day,$the_month,$the_year,'%Y%m%d')));
$month_link_text = $pc_month_name.' '.$the_year;
! $prev_day = Date_Calc::prevDay($the_day,$the_month,$the_year,'%Y%m%d');
! $next_day = Date_Calc::nextDay($the_day,$the_month,$the_year,'%Y%m%d');
$pc_prev_day = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'day','Date'=>$prev_day));
$pc_next_day = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'day','Date'=>$next_day));
$day_link_url = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'day',
! 'Date'=>Date_Calc::dateFormat($the_day,$the_month,$the_year,'%Y%m%d')));;
if($useinternationaldates) {
$day_link_text = $the_day.' '.$pc_month_name.' '.$the_year;
***************
*** 545,554 ****
}
! $prev_week = date('m/d/Y',mktime(0,0,0,$week_first_day_month,$week_first_day_date-7,$week_first_day_year));
! $next_week = date('m/d/Y',mktime(0,0,0,$week_last_day_month,$week_last_day_date+1,$week_last_day_year));
$pc_prev_week = pnModURL('postcalendar','user','view',array('viewtype'=>'week','Date'=>$prev_week));
$pc_next_week = pnModURL('postcalendar','user','view',array('viewtype'=>'week','Date'=>$next_week));
$week_link_url = pnModURL('postcalendar', 'user', 'view',
! array('tplview'=>$template_view,'viewtype'=>'week','Date'=>Date_Calc::dateFormat($week_first_day_date,$the_month,$the_year,'%m/%d/%Y')));;
if($useinternationaldates) {
$week_link_text = $week_first_day_date.' '.$week_first_day_month_name.' '.$week_first_day_year.' - '
--- 552,561 ----
}
! $prev_week = date('Ymd',mktime(0,0,0,$week_first_day_month,$week_first_day_date-7,$week_first_day_year));
! $next_week = date('Ymd',mktime(0,0,0,$week_last_day_month,$week_last_day_date+1,$week_last_day_year));
$pc_prev_week = pnModURL('postcalendar','user','view',array('viewtype'=>'week','Date'=>$prev_week));
$pc_next_week = pnModURL('postcalendar','user','view',array('viewtype'=>'week','Date'=>$next_week));
$week_link_url = pnModURL('postcalendar', 'user', 'view',
! array('tplview'=>$template_view,'viewtype'=>'week','Date'=>Date_Calc::dateFormat($week_first_day_date,$the_month,$the_year,'%Y%m%d')));;
if($useinternationaldates) {
$week_link_text = $week_first_day_date.' '.$week_first_day_month_name.' '.$week_first_day_year.' - '
***************
*** 560,565 ****
}
! $prev_year = Date_Calc::beginOfPrevWeek(1,1,$the_year-1,'%m/%d/%Y');
! $next_year = Date_Calc::beginOfNextWeek(1,1,$the_year+1,'%m/%d/%Y');
$pc_prev_year = pnModURL('postcalendar','user','view',array('viewtype'=>'year','Date'=>$prev_year));
$pc_next_year = pnModURL('postcalendar','user','view',array('viewtype'=>'year','Date'=>$next_year));
--- 567,572 ----
}
! $prev_year = Date_Calc::beginOfPrevWeek(1,1,$the_year-1,'%Y%m%d');
! $next_year = Date_Calc::beginOfNextWeek(1,1,$the_year+1,'%Y%m%d');
$pc_prev_year = pnModURL('postcalendar','user','view',array('viewtype'=>'year','Date'=>$prev_year));
$pc_next_year = pnModURL('postcalendar','user','view',array('viewtype'=>'year','Date'=>$next_year));
Index: smarty_plugins.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/smarty_plugins.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** smarty_plugins.php 7 Sep 2002 15:42:00 -0000 1.1
--- smarty_plugins.php 10 Sep 2002 15:16:24 -0000 1.2
***************
*** 130,134 ****
}
list($y,$m,$d) = explode('-',$date);
! $date = "$m/$d/$y";
$PostCalendarURL = 'index.php?module='.pnVarPrepForOS($modinfo['name']);
if($view == 'details') {
--- 130,135 ----
}
list($y,$m,$d) = explode('-',$date);
! // $date = "$m/$d/$y";
! $date = "$y$m$d";
$PostCalendarURL = 'index.php?module='.pnVarPrepForOS($modinfo['name']);
if($view == 'details') {
***************
*** 225,227 ****
--- 226,229 ----
echo $fend;
}
+
?>
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 |