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]
01 Oct 2002 23:14:39postnuke_modules/postcalendarpnuser.php,1.57,1.58 pnuserapi.php,1.104,1.105Roger Raymond
 code cleanup

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

Modified Files:
	pnuser.php pnuserapi.php 
Log Message:
code cleanup


Index: pnuser.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnuser.php,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** pnuser.php	10 Sep 2002 15:49:32 -0000	1.57
--- pnuser.php	1 Oct 2002 23:14:36 -0000	1.58
***************
*** 26,62 ****
   */
  
! //************************************************************************
! //  Require utility classes
! //************************************************************************
! $pcModInfo = pnModGetInfo(pnModGetIDFromName('postcalendar'));
  $pcDir = pnVarPrepForOS($pcModInfo['directory']);
! 
! @define('SMARTY_DIR',"modules/$pcDir/pnincludes/Smarty/");
! @define('SMARTY_TEMPLATE_DIR',"modules/$pcDir/pntemplates");
! @define('SMARTY_COMPILE_DIR',"modules/$pcDir/pntemplates/compiled");
! require_once(SMARTY_DIR.'/Smarty.class.php');
! 
  function postcalendar_user_main()
  {
!     $output = new pnHTML();
!     
!     if (!pnSecAuthAction(0, 'PostCalendar::', '::', ACCESS_READ)) {
!         $output->Text(_POSTCALENDARNOAUTH);
!         return $output->GetOutput();
!     }
!     
!     // get the vars that were passed in
!     $Date = pnVarCleanFromInput('Date');
!     if(!isset($Date)) {
!         $time = time();
!         $time += (pnUserGetVar('timezone_offset') - pnConfigGetVar('timezone_offset')) * 3600;
!         $Date = ml_ftime('%m/%d/%Y',$time);
!     }
! 
!     $output->SetInputMode(_PNH_VERBATIMINPUT);
!     $output->Text(postcalendar_user_view(array('Date'=>$Date)));
!     $output->SetInputMode(_PNH_PARSEINPUT);
!     
!     return $output->GetOutput();
  }
  
--- 26,52 ----
   */
  
! //=========================================================================
! //  Get the module information
! //=========================================================================
! $pcModInfo = pnModGetInfo(pnModGetIDFromName('PostCalendar'));
  $pcDir = pnVarPrepForOS($pcModInfo['directory']);
! //=========================================================================
! //  Require the utility functions
! //=========================================================================
! require_once("modules/$pcDir/functions.php");
! //=========================================================================
! //  Load the API Functions
! //=========================================================================
! pnModAPILoad('PostCalendar','user');
! //=========================================================================
! //  start the main postcalendar application
! //=========================================================================
  function postcalendar_user_main()
  {
!     // check the authorization
!     if (!pnSecAuthAction(0, 'PostCalendar::', '::', ACCESS_READ)) { return _POSTCALENDARNOAUTH; } 
!     // get the date and go to the view function
!     $Date = postcalendar_getDate();
!     return postcalendar_user_view(array('Date'=>$Date));
  }
  
***************
*** 130,138 ****
      }
      
-     // Load the user API
-     if (!pnModAPILoad('postcalendar', 'user')) {
-         die('Failed to load PostCalendar User API');
-     }
-     
      $imgsrc = '<img src="images/global/print.gif" border="0" alt="print" />';
      
--- 120,123 ----
***************
*** 143,152 ****
          case 'month':
          case 'year':
!             $output->Text('<p align="right"><a href="modules.php?op=modload&name=postcalendar&file=print&date='.$Date.'&viewtype='.$viewtype.'">'.$imgsrc.'</a></p>');
!             $output->Text(pnModAPIFunc('postcalendar','user','buildView',array('Date'=>$Date,'viewtype'=>$viewtype)));
              break;
          case 'details':
!             $output->Text('<p align="right"><a href="modules.php?op=modload&name=postcalendar&file=print&date='.$Date.'&viewtype=event&eid='.$eid.'">'.$imgsrc.'</a></p>');
!             $output->Text(pnModAPIFunc('postcalendar','user','eventDetail',array('eid'=>$eid)));
              break;
      }
--- 128,137 ----
          case 'month':
          case 'year':
!             $output->Text('<p align="right"><a href="modules.php?op=modload&name=PostCalendar&file=print&date='.$Date.'&viewtype='.$viewtype.'">'.$imgsrc.'</a></p>');
!             $output->Text(pnModAPIFunc('PostCalendar','user','buildView',array('Date'=>$Date,'viewtype'=>$viewtype)));
              break;
          case 'details':
!             $output->Text('<p align="right"><a href="modules.php?op=modload&name=PostCalendar&file=print&date='.$Date.'&viewtype=event&eid='.$eid.'">'.$imgsrc.'</a></p>');
!             $output->Text(pnModAPIFunc('PostCalendar','user','eventDetail',array('eid'=>$eid)));
              break;
      }
***************
*** 190,204 ****
      $modinfo = pnModGetInfo(pnModGetIDFromName('postcalendar'));
      
!     $time24hours            = pnModGetVar('postcalendar','time24hours');
!     $useinternationaldates  = pnModGetVar('postcalendar','useinternationaldates');
!     $allowdirectsubmit      = pnModGetVar('postcalendar','allowdirectsubmit');
!     $displaytopics          = pnModGetVar('postcalendar','displaytopics');
!     $pcAllowSiteWide        = pnModGetVar('postcalendar','pcAllowSiteWide');
      
-     if (!pnModAPILoad('postcalendar', 'user')) {
-         $output->Text(_PC_API_LOAD_FAILED);
-         return $output->GetOutput();
-     }
- 
      // get DB information
      pnModDBInfoLoad('postcalendar');
--- 175,184 ----
      $modinfo = pnModGetInfo(pnModGetIDFromName('postcalendar'));
      
!     $time24hours            = pnModGetVar('PostCalendar','time24hours');
!     $useinternationaldates  = pnModGetVar('PostCalendar','useinternationaldates');
!     $allowdirectsubmit      = pnModGetVar('PostCalendar','allowdirectsubmit');
!     $displaytopics          = pnModGetVar('PostCalendar','displaytopics');
!     $pcAllowSiteWide        = pnModGetVar('PostCalendar','pcAllowSiteWide');
      
      // get DB information
      pnModDBInfoLoad('postcalendar');
***************
*** 212,216 ****
      $users_col      = &$pntable['postcalendar_users_column'];
      
!     $categories = pnModAPIFunc('postcalendar','user','getCategories');
      
      // main menu
--- 192,196 ----
      $users_col      = &$pntable['postcalendar_users_column'];
      
!     $categories = pnModAPIFunc('PostCalendar','user','getCategories');
      
      // main menu
***************
*** 351,355 ****
              $output->Linebreak(2);
          } else {
!             $output->Text(pnModAPIFunc('postcalendar','user','eventPreview',array('event_subject'=>$event_subject,
                                                                                    'event_desc'=>$event_desc,
                                                                                    'event_topic'=>$event_topic,
--- 331,335 ----
              $output->Linebreak(2);
          } else {
!             $output->Text(pnModAPIFunc('PostCalendar','user','eventPreview',array('event_subject'=>$event_subject,
                                                                                    'event_desc'=>$event_desc,
                                                                                    'event_topic'=>$event_topic,
***************
*** 422,431 ****
          // serialze the location data
          
!         $location = serialize(compact('event_location',
!                                       'event_street1',
!                                       'event_street2',
!                                       'event_city',
!                                       'event_state',
!                                       'event_postal'));        
          
          $sql = "INSERT INTO $events_table (
--- 402,407 ----
          // serialze the location data
          
!         $location = serialize(compact('event_location','event_street1','event_street2',
!                                       'event_city','event_state','event_postal'));        
          
          $sql = "INSERT INTO $events_table (
***************
*** 501,530 ****
      // build the form
      // set up Smarty
!     $tpl = new Smarty();
!     $tpl->template_dir = SMARTY_TEMPLATE_DIR;
!     $tpl->compile_dir  = SMARTY_COMPILE_DIR;
!     $tpl->left_delimiter  =  '[-';
!     $tpl->right_delimiter =  '-]';
!     // find out what template we're using
!     $template_name = pnModGetVar('postcalendar','pcTemplate');
      if(!isset($template_name)) {
          $template_name ='default';
      }
      //=================================================================
-     //  Register our custom functions
-     //=================================================================
-     $tpl->register_function('pc_date_format','postcalendar_smarty_pcDateFormat');
-     $tpl->register_function('pc_event_url','postcalendar_smarty_pcEventURL');
-     $tpl->register_function('pc_date_select','postcalendar_smarty_pcDateSelect');
-     $tpl->register_function('pc_url','postcalendar_smarty_pcURL');
-     //=================================================================
      //  PARSE MAIN
      //=================================================================
-     $tpl->assign('bgcolor1',                $bgcolor1);
-     $tpl->assign('bgcolor2',                $bgcolor2);
-     $tpl->assign('bgcolor3',                $bgcolor3);
-     $tpl->assign('bgcolor4',                $bgcolor4);
-     $tpl->assign('textcolor1',              $textcolor1);
-     $tpl->assign('textcolor2',              $textcolor2);
      $tpl->assign('DayView',                 _CALDAYLINK);
      $tpl->assign('WeekView',                _CALWEEKLINK);
--- 477,488 ----
      // build the form
      // set up Smarty
!     $tpl = new pcSmarty();
!     $template_name = pnModGetVar('PostCalendar','pcTemplate');
      if(!isset($template_name)) {
          $template_name ='default';
      }
      //=================================================================
      //  PARSE MAIN
      //=================================================================
      $tpl->assign('DayView',                 _CALDAYLINK);
      $tpl->assign('WeekView',                _CALWEEKLINK);
***************
*** 558,572 ****
      $output->SetOutputMode(_PNH_RETURNOUTPUT);
      if($useinternationaldates) {
!         $sel_data = pnModAPIFunc('postcalendar','user','buildDaySelect',array('pc_day'=>$day,'selected'=>$event_startday));
          $formdata = $output->FormSelectMultiple('event_startday', $sel_data);
!         $sel_data = pnModAPIFunc('postcalendar','user','buildMonthSelect',array('pc_month'=>$month,'selected'=>$event_startmonth));
          $formdata .= $output->FormSelectMultiple('event_startmonth', $sel_data);
      } else {
!         $sel_data = pnModAPIFunc('postcalendar','user','buildMonthSelect',array('pc_month'=>$month,'selected'=>$event_startmonth));
          $formdata = $output->FormSelectMultiple('event_startmonth', $sel_data);
!         $sel_data = pnModAPIFunc('postcalendar','user','buildDaySelect',array('pc_day'=>$day,'selected'=>$event_startday));
          $formdata .= $output->FormSelectMultiple('event_startday', $sel_data);
      }
!     $sel_data = pnModAPIFunc('postcalendar','user','buildYearSelect',array('pc_year'=>$year,'selected'=>$event_startyear));
      $formdata .= $output->FormSelectMultiple('event_startyear', $sel_data);
      $output->SetOutputMode(_PNH_KEEPOUTPUT);
--- 516,530 ----
      $output->SetOutputMode(_PNH_RETURNOUTPUT);
      if($useinternationaldates) {
!         $sel_data = pnModAPIFunc('PostCalendar','user','buildDaySelect',array('pc_day'=>$day,'selected'=>$event_startday));
          $formdata = $output->FormSelectMultiple('event_startday', $sel_data);
!         $sel_data = pnModAPIFunc('PostCalendar','user','buildMonthSelect',array('pc_month'=>$month,'selected'=>$event_startmonth));
          $formdata .= $output->FormSelectMultiple('event_startmonth', $sel_data);
      } else {
!         $sel_data = pnModAPIFunc('PostCalendar','user','buildMonthSelect',array('pc_month'=>$month,'selected'=>$event_startmonth));
          $formdata = $output->FormSelectMultiple('event_startmonth', $sel_data);
!         $sel_data = pnModAPIFunc('PostCalendar','user','buildDaySelect',array('pc_day'=>$day,'selected'=>$event_startday));
          $formdata .= $output->FormSelectMultiple('event_startday', $sel_data);
      }
!     $sel_data = pnModAPIFunc('PostCalendar','user','buildYearSelect',array('pc_year'=>$year,'selected'=>$event_startyear));
      $formdata .= $output->FormSelectMultiple('event_startyear', $sel_data);
      $output->SetOutputMode(_PNH_KEEPOUTPUT);
***************
*** 584,598 ****
      $output->SetOutputMode(_PNH_RETURNOUTPUT);
      if($useinternationaldates) {
!         $sel_data = pnModAPIFunc('postcalendar','user','buildDaySelect',array('pc_day'=>$day,'selected'=>$event_endday));
          $formdata = $output->FormSelectMultiple('event_endday', $sel_data);
!         $sel_data = pnModAPIFunc('postcalendar','user','buildMonthSelect',array('pc_month'=>$month,'selected'=>$event_endmonth));
          $formdata .= $output->FormSelectMultiple('event_endmonth', $sel_data);
      } else {
!         $sel_data = pnModAPIFunc('postcalendar','user','buildMonthSelect',array('pc_month'=>$month,'selected'=>$event_endmonth));
          $formdata = $output->FormSelectMultiple('event_endmonth', $sel_data);
!         $sel_data = pnModAPIFunc('postcalendar','user','buildDaySelect',array('pc_day'=>$day,'selected'=>$event_endday));
          $formdata .= $output->FormSelectMultiple('event_endday', $sel_data);
      }
!     $sel_data = pnModAPIFunc('postcalendar','user','buildYearSelect',array('pc_year'=>$year,'selected'=>$event_endyear));
      $formdata .= $output->FormSelectMultiple('event_endyear', $sel_data);
      $output->SetOutputMode(_PNH_KEEPOUTPUT);
--- 542,556 ----
      $output->SetOutputMode(_PNH_RETURNOUTPUT);
      if($useinternationaldates) {
!         $sel_data = pnModAPIFunc('PostCalendar','user','buildDaySelect',array('pc_day'=>$day,'selected'=>$event_endday));
          $formdata = $output->FormSelectMultiple('event_endday', $sel_data);
!         $sel_data = pnModAPIFunc('PostCalendar','user','buildMonthSelect',array('pc_month'=>$month,'selected'=>$event_endmonth));
          $formdata .= $output->FormSelectMultiple('event_endmonth', $sel_data);
      } else {
!         $sel_data = pnModAPIFunc('PostCalendar','user','buildMonthSelect',array('pc_month'=>$month,'selected'=>$event_endmonth));
          $formdata = $output->FormSelectMultiple('event_endmonth', $sel_data);
!         $sel_data = pnModAPIFunc('PostCalendar','user','buildDaySelect',array('pc_day'=>$day,'selected'=>$event_endday));
          $formdata .= $output->FormSelectMultiple('event_endday', $sel_data);
      }
!     $sel_data = pnModAPIFunc('PostCalendar','user','buildYearSelect',array('pc_year'=>$year,'selected'=>$event_endyear));
      $formdata .= $output->FormSelectMultiple('event_endyear', $sel_data);
      $output->SetOutputMode(_PNH_KEEPOUTPUT);
***************
*** 602,606 ****
      //  PARSE SELECT_TIMED_EVENT
      //=================================================================
!     $stimes = pnModAPIFunc('postcalendar','user','buildTimeSelect',array('hselected'=>$event_starttimeh,'mselected'=>$event_starttimem));
      
      $output->SetOutputMode(_PNH_RETURNOUTPUT);
--- 560,564 ----
      //  PARSE SELECT_TIMED_EVENT
      //=================================================================
!     $stimes = pnModAPIFunc('PostCalendar','user','buildTimeSelect',array('hselected'=>$event_starttimeh,'mselected'=>$event_starttimem));
      
      $output->SetOutputMode(_PNH_RETURNOUTPUT);
***************
*** 621,625 ****
      $output->SetOutputMode(_PNH_KEEPOUTPUT);
          
!     $etimes = pnModAPIFunc('postcalendar','user','buildTimeSelect',array('hselected'=>$event_endtimeh,'mselected'=>$event_endtimem));
      $tpl->assign('SelectTimedHours', $timed_hours);
      $tpl->assign('SelectTimedMinutes', $timed_minutes);
--- 579,583 ----
      $output->SetOutputMode(_PNH_KEEPOUTPUT);
          
!     $etimes = pnModAPIFunc('PostCalendar','user','buildTimeSelect',array('hselected'=>$event_endtimeh,'mselected'=>$event_endtimem));
      $tpl->assign('SelectTimedHours', $timed_hours);
      $tpl->assign('SelectTimedMinutes', $timed_minutes);
***************
*** 688,692 ****
      //  PARSE select_event_type_block
      //=================================================================
!     $maincategories = pnModAPIFunc('postcalendar','user','getCategories');
      $categories = array();
      foreach($maincategories as $category) {
--- 646,650 ----
      //  PARSE select_event_type_block
      //=================================================================
!     $maincategories = pnModAPIFunc('PostCalendar','user','getCategories');
      $categories = array();
      foreach($maincategories as $category) {
***************
*** 701,705 ****
      $tpl->assign('InputEventCategory', 'event_category');
      //=================================================================
!     //  PARSE event_sharing_block
      //=================================================================
      /*
--- 659,663 ----
      $tpl->assign('InputEventCategory', 'event_category');
      //=================================================================
!     //  PARSE event_sharing_block (N/A)
      //=================================================================
      /*
***************
*** 881,905 ****
  function postcalendar_user_search()
  {   
-     // let's load the User API so we can use it
-     if(!pnModAPILoad('postcalendar','user')) {
-         die('Could not load PostCalendar user API');
-     }
-     
      $output = new pnHTML();
      $output->SetInputMode(_PNH_VERBATIMINPUT);
      
      // load the DHTML JavaScript code and insert it into the page
!     if (pnModGetVar('postcalendar','usepopups')) {
!         $output->Text(pnModAPIFunc('postcalendar','user','loadPopups'));
      }
  
      // insert the js popup code into the page
!     if(pnModGetVar('postcalendar','eventsopeninnewwindow')) {
!         $output->Text(pnModAPIFunc('postcalendar','user','jsPopup'));
      }
  
      
      $output->Text(postcalendar_usermenu(array('Date'=>Date('d/m/Y'))));
!     $output->FormStart(pnModUrl('postcalendar','user','search'));
      $output->TableStart(_PC_SEARCH_FORM);
      $output->Text(_PC_SEARCH_KEYWORDS.' ');
--- 839,858 ----
  function postcalendar_user_search()
  {   
      $output = new pnHTML();
      $output->SetInputMode(_PNH_VERBATIMINPUT);
      
      // load the DHTML JavaScript code and insert it into the page
!     if (pnModGetVar('PostCalendar','usepopups')) {
!         $output->Text(pnModAPIFunc('PostCalendar','user','loadPopups'));
      }
  
      // insert the js popup code into the page
!     if(pnModGetVar('PostCalendar','eventsopeninnewwindow')) {
!         $output->Text(pnModAPIFunc('PostCalendar','user','jsPopup'));
      }
  
      
      $output->Text(postcalendar_usermenu(array('Date'=>Date('d/m/Y'))));
!     $output->FormStart(pnModUrl('PostCalendar','user','search'));
      $output->TableStart(_PC_SEARCH_FORM);
      $output->Text(_PC_SEARCH_KEYWORDS.' ');
***************
*** 912,916 ****
      $keywords = pnVarCleanFromInput('keywords');
      if(!empty($keywords)) {
!         pnModDBInfoLoad('postcalendar');
          list($dbconn) = pnDBGetConn();
          $pntable = pnDBGetTables();
--- 865,869 ----
      $keywords = pnVarCleanFromInput('keywords');
      if(!empty($keywords)) {
!         pnModDBInfoLoad('PostCalendar');
          list($dbconn) = pnDBGetConn();
          $pntable = pnDBGetTables();
***************
*** 986,990 ****
  {   
      // lets get the module's information
!     $modinfo = pnModGetInfo(pnModGetIDFromName('postcalendar'));
      $footer = "<p align=\"right\"><a href=\"http://pc.bahraini.tv\">PostCalendar v$modinfo[version]</a></p>";
      return $footer;
--- 939,943 ----
  {   
      // lets get the module's information
!     $modinfo = pnModGetInfo(pnModGetIDFromName('PostCalendar'));
      $footer = "<p align=\"right\"><a href=\"http://pc.bahraini.tv\">PostCalendar v$modinfo[version]</a></p>";
      return $footer;

Index: pnuserapi.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnuserapi.php,v
retrieving revision 1.104
retrieving revision 1.105
diff -C2 -d -r1.104 -r1.105
*** pnuserapi.php	10 Sep 2002 15:16:24 -0000	1.104
--- pnuserapi.php	1 Oct 2002 23:14:36 -0000	1.105
***************
*** 78,95 ****
  @define('REPEAT_ON_6MONTH',4);
  @define('REPEAT_ON_YEAR',5);
! 
! //************************************************************************
  //  Require utility classes
! //************************************************************************
! $pcModInfo = pnModGetInfo(pnModGetIDFromName('postcalendar'));
  $pcDir = pnVarPrepForOS($pcModInfo['directory']);
  require_once('modules/'.$pcDir.'/pnincludes/Date/Calc.php');
  require_once('modules/'.$pcDir.'/pnincludes/Benchmark/Timer.php');
! require_once('modules/'.$pcDir.'/smarty_plugins.php');
! 
  @define('SMARTY_DIR',"modules/$pcDir/pnincludes/Smarty/");
! @define('SMARTY_TEMPLATE_DIR',"modules/$pcDir/pntemplates/");
! @define('SMARTY_COMPILE_DIR',"modules/$pcDir/pntemplates/compiled");
  require_once(SMARTY_DIR.'/Smarty.class.php');
  
  /**
--- 78,135 ----
  @define('REPEAT_ON_6MONTH',4);
  @define('REPEAT_ON_YEAR',5);
! //=========================================================================
  //  Require utility classes
! //=========================================================================
! $pcModInfo = pnModGetInfo(pnModGetIDFromName('PostCalendar'));
  $pcDir = pnVarPrepForOS($pcModInfo['directory']);
  require_once('modules/'.$pcDir.'/pnincludes/Date/Calc.php');
  require_once('modules/'.$pcDir.'/pnincludes/Benchmark/Timer.php');
! //=========================================================================
! //  Setup Smarty defines
! //=========================================================================
  @define('SMARTY_DIR',"modules/$pcDir/pnincludes/Smarty/");
! require_once('modules/'.$pcDir.'/smarty_plugins.php');
  require_once(SMARTY_DIR.'/Smarty.class.php');
+ //=========================================================================
+ //  Here we extend smarty to make configuring it simpler
+ //=========================================================================
+ class pcSmarty extends Smarty
+ {
+     function pcSmarty()
+     {
+         pnThemeLoad(pnUserGetTheme());
+         global $bgcolor1,$bgcolor2,$bgcolor3,$bgcolor4,$bgcolor5,$bgcolor6,$textcolor1,$textcolor2;
+         
+         // call constructor
+         $this->Smarty();
+         // gather module information
+         $pcModInfo = pnModGetInfo(pnModGetIDFromName('PostCalendar'));
+         $pcDir = pnVarPrepForOS($pcModInfo['directory']);
+         // setup up pcSmarty configs
+         $this->template_dir     =   "modules/$pcDir/pntemplates";
+         $this->compile_dir      =   "modules/$pcDir/pntemplates/compiled";
+         $this->left_delimiter   =   '[-';
+         $this->right_delimiter  =   '-]';
+         $this->caching          =   false;
+         $this->cache_dir        =   "modules/$pcDir/pntemplates/cache";
+         $this->cache_lifetime   =   60*60*24*1; // 1 day
+         $this->use_sub_dirs     =   false;
+         // register postcalendar custom functions
+         $this->register_function('pc_date_format','postcalendar_smarty_pcDateFormat');
+         $this->register_function('pc_event_url','postcalendar_smarty_pcEventURL');
+         $this->register_function('pc_date_select','postcalendar_smarty_pcDateSelect');
+         $this->register_function('pc_url','postcalendar_smarty_pcURL');
+         $this->register_modifier('pc_date_format','postcalendar_smarty_pc_date_format');
+         // assign theme globals
+         $this->assign('BGCOLOR1',   $bgcolor1);    
+         $this->assign('BGCOLOR2',   $bgcolor2);  
+         $this->assign('BGCOLOR3',   $bgcolor3);  
+         $this->assign('BGCOLOR4',   $bgcolor4); 
+         $this->assign('BGCOLOR5',   $bgcolor5);
+         $this->assign('BGCOLOR6',   $bgcolor6);
+         $this->assign('TEXTCOLOR1', $textcolor1);  
+         $this->assign('TEXTCOLOR2', $textcolor2);
+     }    
+ }
  
  /**
***************
*** 356,364 ****
      //  Setup Smarty Template Engine
      //=================================================================
!     $tpl = new Smarty();
!     $tpl->template_dir = SMARTY_TEMPLATE_DIR;
!     $tpl->compile_dir  = SMARTY_COMPILE_DIR;
!     $tpl->left_delimiter  =  '[-';
!     $tpl->right_delimiter =  '-]';
      //=================================================================
      //  Find out what Template we're using (n/a)
--- 396,404 ----
      //  Setup Smarty Template Engine
      //=================================================================
!     $tpl = new pcSmarty();
!     //$tpl->template_dir = SMARTY_TEMPLATE_DIR;
!     //$tpl->compile_dir  = SMARTY_COMPILE_DIR;
!     //$tpl->left_delimiter  =  '[-';
!     //$tpl->right_delimiter =  '-]';
      //=================================================================
      //  Find out what Template we're using (n/a)
***************
*** 581,589 ****
      //  Register our custom functions
      //=================================================================
!     $tpl->register_function('pc_date_format','postcalendar_smarty_pcDateFormat');
!     $tpl->register_function('pc_event_url','postcalendar_smarty_pcEventURL');
!     $tpl->register_function('pc_date_select','postcalendar_smarty_pcDateSelect');
!     $tpl->register_function('pc_url','postcalendar_smarty_pcURL');
!     $tpl->register_modifier('pc_date_format','postcalendar_smarty_pc_date_format');
      
      //=================================================================
--- 621,629 ----
      //  Register our custom functions
      //=================================================================
!     //$tpl->register_function('pc_date_format','postcalendar_smarty_pcDateFormat');
!     //$tpl->register_function('pc_event_url','postcalendar_smarty_pcEventURL');
!     //$tpl->register_function('pc_date_select','postcalendar_smarty_pcDateSelect');
!     //$tpl->register_function('pc_url','postcalendar_smarty_pcURL');
!     //$tpl->register_modifier('pc_date_format','postcalendar_smarty_pc_date_format');
      
      //=================================================================


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