403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/icd/jeventsComp/site/views/default/ical/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/icd/jeventsComp/site/views/default/ical/tmpl/ical_form.php
<?php 
defined('_JEXEC') or die('Restricted access');

$cfg	 = & JEVConfig::getInstance();


$view =  $this->getViewName();

echo "<div id='cal_title'>".JText::_('JEV_ICAL_EXPORT')."</div>\n";

?>

<form name="ical" method="post">
<?php
$categories = JEV_CommonFunctions::getCategoryData();

echo "<p>".JText::_('JEV_EVENT_CHOOSE_CATEG')."<br>\n";
foreach ($categories AS $c) {
	$cb="<input name=\"categories[]\" value=\"".$c->id."\" type=\"checkbox\"";
	if (isset($_POST['categories']) && in_array($c->id,JRequest::getVar('categories','','POST'))) {$cb=$cb." CHECKED";}
	$cb= $cb."><span style=\"background:".$c->color."\">&nbsp;&nbsp;&nbsp;&nbsp;</span> ".$c->title."<br>\n";
	echo $cb;
}

echo "</p><p>".JText::_('JEV_REP_YEAR')."<br>\n";
//consturc years array, easy to add own kind of selection
$year = array(date('Y'),date('Y')+1);

foreach ($year AS $y) {
	$yt="<input name=\"years[]\" type=\"checkbox\" value=\"".$y."\"";
	if (isset($_POST['years']) && in_array($y,JRequest::getVar('years','','POST'))) {$yt=$yt." CHECKED";}
	$yt= $yt.">".$y."<br>\n";
	echo $yt;
}

echo "<input type=\"submit\" name=\"submit\" value=\"".JText::_('JEV_REP_SUBMIT')."\">";

?>
</form>

<?php 
if (isset($_POST['submit'])) {
	//print_r(JRequest::getVar('categories','','POST'));
	//echo "\n".explode("|",JRequest::getVar('categories','','POST'));
	//echo "\n".JEVHelper::forceIntegerArray(explode("|",JRequest::getVar('categories','','POST')),true);
	$catids  = str_replace(",","|",JEVHelper::forceIntegerArray(JRequest::getVar('categories','','POST'),true));
	$years  = str_replace(",","|",JEVHelper::forceIntegerArray(JRequest::getVar('years','','POST'),true));
	//echo "<br>catid ".$catids;
	//echo "<br>years ".$years;
	$URL = "<a href=\"".JURI::root()."index.php?option=com_jevents&task=ical.ical&format=ical";
	if ($catids != 0) {$URL=$URL."&catids=".$catids;}
	if ($years != 0) {$URL=$URL."&years=".$years;}
	$URL=$URL."\">".JText::_('JEV_REP_ICAL_OWN')."</a>";

	echo "<p>".$URL."</p>";
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit