[ Index ] |
|
Code source de phpMyVisites 2.3 |
1 <?php 2 /* 3 * phpMyVisites : website statistics and audience measurements 4 * Copyright (C) 2002 - 2006 5 * http://www.phpmyvisites.net/ 6 * phpMyVisites is free software (license GNU/GPL) 7 * Authors : phpMyVisites team 8 */ 9 10 // $Id: AdminSiteCookieExclude.class.php 29 2006-08-18 07:35:21Z matthieu_ $ 11 12 13 require_once INCLUDE_PATH."/core/include/AdminModule.class.php"; 14 15 class AdminSiteCookieExclude extends AdminModule 16 { 17 var $viewTemplate = "admin/site_cookie_exclude.tpl"; 18 19 function AdminSiteCookieExclude() 20 { 21 parent::AdminModule(); 22 23 } 24 25 function process() 26 { 27 $siteAdmin = $this->needASiteAdminSelected(); 28 29 if($siteAdmin) 30 { 31 $choice = $this->request->getConfirmedState(); 32 33 $cookieSet = false; 34 35 // is the cookie already set or not? 36 if(isset($_COOKIE[COOKIE_NAME_NO_STAT.$siteAdmin])) 37 { 38 $cookieSet = true; 39 } 40 41 if($choice == 1) 42 { 43 $ck = new Cookie(COOKIE_NAME_NO_STAT.$siteAdmin); 44 if($cookieSet) 45 { 46 $ck->delete(); 47 } 48 else 49 { 50 $ck->save(); 51 } 52 $this->setMessage(); 53 } 54 else 55 { 56 if($cookieSet) 57 { 58 $this->tpl->assign("cookie_no_stat", true); 59 } 60 else 61 { 62 $this->tpl->assign("cookie_no_stat", false); 63 } 64 } 65 } 66 } 67 } 68 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 14:10:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |