Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, November 13, 2026

Diff for Metafox/subst.inc.php between version 1.44 and 1.45

version 1.44, 2009/06/06 22:43:14 version 1.45, 2010/10/15 14:09:15
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/subst.inc.php,v 1.43 2008-11-24 10:04:10 nepto Exp $ */  /* $Platon: Metafox/subst.inc.php,v 1.44 2009-06-06 22:43:14 nepto Exp $ */
   
 require_once 'cfgldr.inc.php';  require_once 'cfgldr.inc.php';
 require_once 'error.inc.php';  require_once 'error.inc.php';
Line 416  if ($ezin_tmpl_main->isVar('article_item
Line 416  if ($ezin_tmpl_main->isVar('article_item
 } /* }}} */  } /* }}} */
   
 /*  /*
    * Building calendar
    */
   
   if ($ezin_tmpl_main->isVar('calendar')) {
           global $ezin_cfg;
           global $ezin_db_article;
   
           if ($ezin_cfg['calendar'] == '1') {
   
                   $url = 'http://'.$_SERVER['HTTP_HOST'].$ezin_cfg['url'];
                   require_once 'libpub/calendar/calendar1.php';
                   $include_JS = '<script type="text/javascript" src="libpub/calendar/calendar1.js"></script>'."\n";
                   $include_JS .= '<script type="text/javascript" src="libpub/calendar/callService.js"></script>'."\n";
                   $include_JS .= '<!-- BEGIN: JavaScript for Calendar1 -->
                <script type="text/javascript">
                  var popup_new_load = new stock(popup_new_load_execute);
                   function loadMonth(position)
                   {
                    //alert(position);
                    callService("'.$url.'libpub/calendar/calendar1.php",position,popup_new_load);
                   }
                   function popup_new_load_execute(data)
                   {
                    var a=0;
                    var idCalendar="";
                    while (data.substring(a,a+1)!="|") {a++;}
                    idCalendar=data.substring(0,a);
                    data=data.substring(a+1);
                    data=data.replace(/<ezin_url>/gi,"'.$ezin_cfg['url'].'");
                    document.getElementById(idCalendar).innerHTML=data;
                   }
                 </script>
                   <!-- END: JavaScript for Calendar1 -->'."\n";
   
                   // ak je clanok otvoreny z kalendara, kalendar ostane v tom mesiaci otvoreny
               $include_calendar = ($_GET['ezin_tmpl_calendar_source'] == '1') ?
                           getCalendar($ezin_db_article['article_calendar_flag'], "calendar1")
                   :
                   getCalendar(null, "calendar1");
   
   
                   $ezin_tmpl_main->set(array('calendar' => $include_JS.$include_calendar));
           } else {
                   $ezin_tmpl_main->set(array('calendar' => ''));
           }
   }
   
   /*
  * Creating poll   * Creating poll
  */   */
   

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top