Your IP : 216.73.216.219


Current Path : /home/pteabiscqq/www/plugins/system/lab5_cookie_commander/cookie_commander/tmpl/
Upload File :
Current File : /home/pteabiscqq/www/plugins/system/lab5_cookie_commander/cookie_commander/tmpl/cookie.x_others.php

<?php defined('_JEXEC') or die();
/////////////////////////////////////////////////////////////////////////////////////////////
/** 
* Cookie Commander
* 
* @author : Lab5 - Dennis Riegelsberger
* @authorUrl : https://lab5.ch
* @copyright : Copyright (C) 2018+  Lab5 - Dennis Riegelsberger. All rights reserved.
* @license : GNU/GPL General Public License version 2 or later
* @project : https://lab5.ch/cookie-commander
* @on JED : https://extensions.joomla.org/extensions/extension/site-management/cookie-control/lab5-cookie-commander/
* 
* Built with <3 
* Lab5
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 
/////////////////////////////////////////////////////////////////////////////////////////////
// All other Cookies
/////////////////////////////////////////////////////////////////////////////////////////////
/* * * * * * * * * * * * * * * * * * * * * * * * 

			This very cookie deletion plugin, MUST be the very last, because it deletes ALL cookies ( except those excluded with $cookie->whitelist ) !!!

* * * * * * * * * * * * * * * * * * * * * * * */ 
				/////////////////////////
				// Delete Rest of Cookies if not allowed :
				///////////////////////// 
				if( !$cookie->status ): // ! == '1'
				///////////////////////////////////////////////////// 
					 
						//////////////////////////////////////////////////////////////
						foreach( $cookie->allcookies as $cookie_name => $cookieval ){
										if( !in_array( $cookie_name, $cookie->whitelist ) ){
										//////////////////////////////////////////////////////////////
													
													/////////////////////////
													// Store 
													/////////////////////////
									
															$cookie->whitelist[] = $cookie_name;
											
													/////////////////////////
													// Remove cookie
													/////////////////////////
													
															$kill_cookie_func( $cookie_name );

										} ////////////////////////////////////////////////////////////
						} ////////////////////////////////////////////////////////////
						
				endif; ////////////////////////////////////////// 
				
/////////////////////////////////////////////////////////////////////////////////////////////
unset( $cookie_name, $cookieval ); 
/////////////////////////////////////////////////////////////////////////////////////////////