DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /AppServ/www/app/webroot/news/modules/mod_eventlistcalqajax/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/app/webroot/news/modules/mod_eventlistcalqajax/tmpl/default.php
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>

<?php
//Month Names 
$uxtime_first_of_month = gmmktime(0, 0, 0, $prev_month, 1, $offset_year);
list($tmp, $year, $prev_month, $weekday) = explode(',', gmstrftime('%m,%Y,%b,%w', $uxtime_first_of_month));

$uxtime_first_of_month = gmmktime(0, 0, 0, $next_month, 1, $offset_year);
list($tmp, $year, $next_month, $weekday) = explode(',', gmstrftime('%m,%Y,%b,%w', $uxtime_first_of_month));

//Creating switching links
$pn = array( $prev_month=>$prev_link, $next_month=>$next_link);

// Use MooTools to navigate through the months
if ($UseMooTools) {
    if (!defined('_IN_AJAXCALL')) { ?>
<script type="text/javascript">
function mod_eventlistcalqajax_click<?php print $module->id; ?>(url) {
    var myFadeOut = new Fx.Style('eventcalq<?php print $module->id; ?>', 'opacity', {duration: 500, onComplete: function() { 
	myAjax = new Ajax(url, {method: 'get', update: $('eventcalq<?php print $module->id; ?>'), 
		onComplete: function() { 
		    var myFadeIn   = new Fx.Style('eventcalq<?php print $module->id; ?>', 'opacity', {duration: 500}).start(0, 1);
		    var myTooltips = new Tips($$('#eventcalq<?php print $module->id; ?> .hasTip'), { maxTitleChars: 50, fixed: false}); 
		}, 
		onFailure: function(resp) { 
		    $('eventcalq<?php print $module->id; ?>').setHTML("AJAX failure:<br />"+resp.responseText);
		    var myFadeIn = new Fx.Style('eventcalq<?php print $module->id; ?>', 'opacity', {duration: 500}).start(0, 1);
		}
	    });
	    myAjax.request(); 
	}});
    myFadeOut.start(1, 0);
} 
</script>
<?php
    }
}

$document = &JFactory::getDocument(); 
if ($Default_Stylesheet ==1)
{
	$document->addStyleSheet( JURI::base() . 'modules/mod_eventlistcalqajax/mod_eventlistcalqajax.css' );
}
else
{
	$document->addStyleSheet( JURI::base() . $User_stylesheet );
}

//Output
if (!defined('_IN_AJAXCALL')) { 
    echo '<div class="eventcalq" align="center" id="eventcalq'.$module->id.'">';
}

	$calendar = '';
	$month_href = NULL;
	$year = $offset_year;
	$month = $offset_month;
			
    $uxtime_first_of_month = gmmktime(0, 0, 0, $month, 1, $year);
    #remember that mktime will automatically correct if invalid dates are entered
    # for instance, mktime(0,0,0,12,32,1997) will be the date for Jan 1, 1998
    # this provides a built in "rounding" feature to generate_calendar()

    $day_names = array(); #generate all the day names according to the current locale
	$day_names_short = array();
	$day_names_long = array();
	if ($UseJoomlaLanguage == 1)
	{
		if ($first_day ==1)
		{
		$day_names_long = array(JText::_('MONDAY'),JText::_('TUESDAY'),JText::_('WEDNESDAY'),JText::_('THURSDAY'),JText::_('FRIDAY'),JText::_('SATURDAY'),JText::_('SUNDAY'));
		$day_names_short = array(JText::_('MON'),JText::_('TUE'),JText::_('WED'),JText::_('THU'),JText::_('FRI'),JText::_('SAT'),JText::_('SUN'));		
		}
		else
		{
		$day_names_long = array(JText::_('SUNDAY'),JText::_('MONDAY'),JText::_('TUESDAY'),JText::_('WEDNESDAY'),JText::_('THURSDAY'),JText::_('FRIDAY'),JText::_('SATURDAY'));
		$day_names_short = array(JText::_('SUN'),JText::_('MON'),JText::_('TUE'),JText::_('WED'),JText::_('THU'),JText::_('FRI'),JText::_('SAT'));
		}   
	}
	else
	{
		for( $n = 0, $t = ( 3 + $first_day ) *24 *60 *60; $n < 7; ++$n, $t += 24 *60 *60) #January 4, 1970 was a Sunday
		 {  
		   if (!function_exists('mb_convert_case'))
		   {
		   $day_names_long[$n] = ucfirst(gmstrftime('%A',$t)); #%A means full textual day name
		   $day_names_short[$n] = ucfirst(gmstrftime('%A',$t)); #%a means short day name	   
		   }
		   else
		   {
		   $day_names_long[$n] = mb_convert_case(gmstrftime('%A',$t),MB_CASE_TITLE, "UTF-8"); #%A means full textual day name
		   $day_names_short[$n] = mb_convert_case(gmstrftime('%A',$t),MB_CASE_TITLE, "UTF-8"); #%a means short day name
		   }
		  } 
	  }
//	   print_r (array_values($day_names_long));

    list($month, $year, $month_name_long, $month_name_short, $weekday) = explode(',', gmstrftime('%m,%Y,%B,%b,%w', $uxtime_first_of_month));
		if ($UseJoomlaLanguage == 1)
	{	
		switch ($month)
		{
			case 1:  $month_name_short= JText::_('JANUARY_SHORT');
			   $month_name_long = JText::_('JANUARY');
			   break;
			case 2:  $month_name_short= JText::_('FEBRUARY_SHORT');
			  $month_name_long =  JText::_('FEBRUARY');
			  break;
			case 3:  $month_name_short= JText::_('MARCH_SHORT');
			     $month_name_long =  JText::_('MARCH');
				 break;
			case 4:  $month_name_short= JText::_('APRIL_SHORT');
			     $month_name_long =  JText::_('APRIL');
				 break;
			case 5:  $month_name_short= JText::_('MAY_SHORT');
			       $month_name_long =  JText::_('MAY');
				   break;
			case 6:  $month_name_short= JText::_('JUNE_SHORT');
			      $month_name_long =  JText::_('JUNE');
				  break;
			case 7:  $month_name_short= JText::_('JULY_SHORT');
			      $month_name_long =  JText::_('JULY');
				  break;
			case 8:  $month_name_short= JText::_('AUGUST_SHORT');
			    $month_name_long =  JText::_('AUGUST');
				break;
			case 9:  $month_name_short= JText::_('SEPTEMBER_SHORT');
			  $month_name_long =  JText::_('SEPTEMBER');
			  break;
			case 10: $month_name_short= JText::_('OCTOBER_SHORT');
			   $month_name_long =  JText::_('OCTOBER');
			   break;
			case 11: $month_name_short= JText::_('NOVEMBER_SHORT');
			  $month_name_long =  JText::_('NOVEMBER');
			  break;
			case 12: $month_name_short= JText::_('DECEMBER_SHORT');
			  $month_name_long =  JText::_('DECEMBER');
			  break;
		}
	}
    $weekday = ($weekday + 7 - $first_day) % 7; #adjust for $first_day
	$year_length = $Year_length ? $year : substr($year, 2, 3);
	if (!function_exists('mb_convert_case'))
	{
		$the_month = ucfirst($Month_length ?  htmlentities($month_name_short,ENT_COMPAT,"UTF-8") :htmlentities($month_name_long,ENT_COMPAT,"UTF-8"));	
	}
	else
	{
		$the_month = mb_convert_case($Month_length ?  $month_name_short : $month_name_long ,MB_CASE_TITLE, "UTF-8");
	}
    $title   = $the_month.'&nbsp;'.$year_length;    #note that some locales don't capitalize month and day names
	
    #Begin calendar. Uses a real <caption>. See http://diveintomark.org/archives/2002/07/03
	
	if (!$UseMooTools) {
// Modified by Toni to display << and >> for previous and next months	
    @list($p, $pl) = each($pn); @list($n, $nl) = each($pn); #previous and next links, if applicable
// Modified by Toni to display << and >> for previous and next months		
	
	if($p) $p = ($pl ? '<a href="'.htmlspecialchars($pl).'" rel="nofollow">&lt;&lt; </a>' : $p).'&nbsp;'; //Modified by Toni
    if($n) $n = '&nbsp;'.($nl ? '<a href="'.htmlspecialchars($nl).'" rel="nofollow"> &gt;&gt;</a>' : $n); //Modified by Toni	
	
	$month_href = NULL;
    
    $calendar .= '<table class="mod_eventlistcalqajax_calendar" cellspacing="0" cellpadding="0">'."\n".	  
       '<caption class="mod_eventlistcalqajax_calendar-month">'.$p.($month_href ? '<a href="'.htmlspecialchars($month_href).'" rel="nofollow">'.$title.'</a>' : $title).$n."</caption>\n<tr>";
	   
	} else {
	#previous and next links, if applicable
	@list($p, $pl) = each($pn); 
	@list($n, $nl) = each($pn); 
	$calendar .= '<table class="mod_eventlistcalqajax_calendar" cellspacing="0" cellpadding="0">'."\n";	  
	$calendar .= '<caption class="mod_eventlistcalqajax_calendar-month">';

	if ($p) {
	    if ($pl) {
		$calendar .= '<a href="#" onClick="mod_eventlistcalqajax_click'.$module->id.'(\''.htmlspecialchars($pl).'\'); return false;"> &lt;&lt;</a>&nbsp;';
	    } else {
		$calendar .= $p."&nbsp;";
	    }
	}
	$calendar .= '<span class="evtq_home"><a href="#" onClick="mod_eventlistcalqajax_click'.$module->id.'(\''.htmlspecialchars($home_link).'\'); return false;">'.$title.'</a></span>';
	if ($n) {
	    if ($nl) {
		$calendar .= '<a href="#" onClick="mod_eventlistcalqajax_click'.$module->id.'(\''.htmlspecialchars($nl).'\'); return false;"> &gt;&gt;</a>&nbsp;';
	    } else {
		$calendar .= $n."&nbsp;";
	    }
	}
	$calendar .= "</caption>";
	$calendar .= "<tr>";

    }


 
    if($day_name_length){ #if the day names should be shown ($day_name_length > 0)
        #if day_name_length is >3, the full name of the day will be printed
		if ($day_name_length >3){
        foreach($day_names_long as $d)
            $calendar .= '<th class="mod_eventlistcalqajax_daynames" abbr="'.$d.'">&nbsp;'.$d.'&nbsp;</th>';
        $calendar .= "</tr>\n<tr>";
		}
		else
		{
		   foreach($day_names_short as $d)
		   if (function_exists('mb_substr'))
		   {
                $calendar .= '<th class="mod_eventlistcalqajax_daynames" abbr="'.$d.'">&nbsp;'.mb_substr($d,0,$day_name_length,'UTF-8').'&nbsp;</th>';
		   }
		   else
		   {
		   	   $calendar .= '<th class="mod_eventlistcalqajax_daynames" abbr="'.$d.'">&nbsp;'.substr($d,0,$day_name_length).'&nbsp;</th>';
		   }
        	$calendar .= "</tr>\n<tr>";
		}
    }

	// Today
   $config =& JFactory::getConfig(); 
   $tzoffset = $config->getValue('config.offset');
   $time 		= time()  + (($tzoffset + $Time_offset)*60*60); //25/2/08 Change for v 0.6 to incorporate server offset into time; 
   $today 		= date( 'j', $time);
   $currmonth 	= date( 'm', $time);
   $curryear 	= date( 'Y', $time);

   	for ($counti = 0; $counti < $weekday; $counti++) {
		$calendar .= '<td class="mod_eventlistcalqajax">&nbsp;</td>'; #initial 'empty' days
	}
    
   for($day = 1, $days_in_month = gmdate('t', $uxtime_first_of_month); $day <= $days_in_month; $day++, $weekday++) {
    	
        if($weekday == 7){
            $weekday   = 0; #start a new week
            $calendar .= "</tr>\n<tr>";
        }
		
		if (($day == $today) & ($currmonth == $month) & ($curryear == $year)) {
     		$istoday = 1;
   		} else {
      		$istoday = 0;
   		}
		$tdbaseclass = ( $istoday ) ? 'mod_eventlistcalqajax_caltoday' : 'mod_eventlistcalqajax_calday';

   		//space in front of daynumber when day < 10
		($day < 10) ? $space = '&nbsp;&nbsp;': $space = '';
		
        if (isset($days[$day][1]))
		{
			$link = $days[$day][0];
			$title = $days[$day][1];
			
			if ($Show_Tooltips==1)
			{
				$calendar .= '<td class="'.$tdbaseclass.'link">';
				if ($link)
				{
					$tip = '';
					
					$title = explode('+%+%+', $title);
					if ($Show_Tooltips_Title == 1)
					{
						if (count( $title ) > 1) {
							$tipTitle = count( $title ) . ' ' . JText::_($CalTooltipsTitlePl);
						}
						else {
							$tipTitle = '1 ' . JText::_($CalTooltipsTitle);
						}
					}
					else
					{
						$tipTitle = '';
					}

					foreach ( $title as $t ) {
						$tip .= trim($t) . '<br />';
					}

					$calendar .= JHTML::tooltip($tip, $tipTitle, 'tooltip.png', $space.$day, $link);
				}

				$calendar .= '</td>';
			}
			else
			{
				$calendar .= '<td class="'.$tdbaseclass.'link">'.($link ? '<a href="'.$link.'">'.$space.$day.'</a>' : $space.$day).'</td>';
			}
		} else {
			$calendar .= '<td class="'.$tdbaseclass.'">'.$space.$day.'</td>';
		}
	}
	for ($counti = $weekday; $counti < 7; $counti++) {
		$calendar .= '<td class="mod_eventlistcalqajax">&nbsp;</td>'; #remaining 'empty' days
	}

    echo $calendar."</tr>\n</table>\n";

if (!defined('_IN_AJAXCALL')) { 
    echo "</div>";
}

Anon7 - 2022
AnonSec Team