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 :  C:/Old Sites/moke/modules/mod_imageads/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Old Sites/moke/modules/mod_imageads/mod_imageads.php
<?php
/**
 * @version $Id: mod_imageads.php
 * @package ImageAds
 * @author Andrey Sokolnikov <aasfalcon@gmail.com>
 * @copyright (C) 2011 Emergination, LLC. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// use JModel
jimport('joomla.application.component.model');

// load constants and helper class
require_once JPATH_ADMINISTRATOR.DS.'components'.DS.'com_imageads'.DS.'classes'.DS.'constants.php';
require_once IA_PATH_SITE.DS.'classes'.DS.'helper.php';

// module CSS class suffix
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));

// load ads via model
JModel::addIncludePath(dirname(__FILE__).DS.'models', 'imageadsModel');
$model = JModel::getInstance('ModuleAds', 'imageadsModel');
$ads = $model->getModuleAds($params);

// get CSS file contents
$css_path = dirname(__FILE__).DS.'assets'.DS.'css'.DS.'image_ads.css';
$css = file_get_contents($css_path);

// replace parameters
$search = $replace = array();

foreach ($params->toArray() as $key => $value) {
	$search[] = '%'.$key.'%';
	$replace[] = $value;
}

$com_params = &JComponentHelper::getParams(IA_OPTION);
$search[] = '%image_width%';	$replace[] = $com_params->get('image_width') . 'px';
$search[] = '%image_height%';	$replace[] = $com_params->get('image_height') . 'px';

$css = str_replace($search, $replace, $css);

// setup attributes
$link_attribs = array();

if ($params->get('nofollow_links')) {
	$link_attribs['rel'] = 'nofollow';
}

if ($params->get('new_window_links')) {
	$link_attribs['target'] = '_blank';
}

// create "Get My Own Ad" link
$get_ad_link = JHTML::_('link',
    imageadsHelper::getFullUrl('index.php?option='.IA_OPTION.'&view=default'),
    $params->get('new_link_text', 'Advertise Here'));

// render module
require JModuleHelper::getLayoutPath('mod_imageads',
    $params->get('layout', 'default'));

Youez - 2016 - github.com/yon3zu
LinuXploit