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 :  /Old Sites/rescommittee/templates/jsn_solid_pro/css/styles/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/rescommittee/templates/jsn_solid_pro/css/styles/custom.css.php
<?php

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

// Get custom style declaration
$curDocument = JFactory::getDocument();
$customStyle = $curDocument->customStyle;

// Process custom style
foreach ($customStyle AS $section => $data)
{
	if ( ! is_array($data))
	{
		continue;
	}

	switch ($customStyle[$section]['type'])
	{
		case 'google':
			// Generate declaration for 'font-family' property
			$customStyle[$section]['type'] = "'{$customStyle[$section]['primary']}', {$customStyle[$section]['secondary']}";
?>
/* Import Google font face for use in <?php echo $section; ?> */
@import url(https://fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+', $customStyle[$section]['primary']); ?>);
<?php
			echo "\n";
		break;

		case 'embed':
			// Generate name for custom font face
			$name = preg_replace('/\.(ttf|otf|eot|svg|woff)$/', '', $customStyle[$section]['file']);

			// Generate declaration for 'font-family' property
			$customStyle[$section]['type'] = "'{$name}'";
?>
/* Declare custom font face for use in <?php echo $section; ?> */
@font-face {
	font-family: '<?php echo $name; ?>';
	src: url('<?php echo $curDocument->templateUrl . "/uploads/fonts/{$name}.eot"; ?>') format('eot'),
	     url('<?php echo $curDocument->templateUrl . "/uploads/fonts/{$name}.woff"; ?>') format('woff'),
	     url('<?php echo $curDocument->templateUrl . "/uploads/fonts/{$name}.ttf"; ?>') format('truetype'),
	     url('<?php echo $curDocument->templateUrl . "/uploads/fonts/{$name}.svg"; ?>') format('svg');
}
<?php
			echo "\n";
		break;

		case 'standard':
		default:
			// Generate declaration for 'font-family' property
			$customStyle[$section]['type'] = $customStyle[$section]['family'];
		break;
	}
}

// Set custom style
?>
/* Set font style for body */
body {
	font-family: <?php echo $customStyle['body']['type']?>;
	font-size: <?php echo $customStyle['size']; ?>%;
}

/* Set font style for heading */
h1,
h2,
h3,
h4,
h5,
h6,
#jsn-gotoplink,
.page-header,
.subheading-category,
.componentheading,
.contentheading,
h3.jsn-moduletitle,
ul.menu-treemenu li a,
ul.menu-sidemenu li a {
	font-family: <?php echo $customStyle['heading']['type']?>;
}

/* Set font style for menu */
#jsn-menu a,
#jsn-menu span {
	font-family: <?php echo $customStyle['menu']['type']?>;
}

Youez - 2016 - github.com/yon3zu
LinuXploit