| [ 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 : Labsmedia 8 */ 9 10 // $Id: ViewClickheat.class.php 95 2007-03-31 14:46:00Z cmil $ 11 12 require_once INCLUDE_PATH."/core/include/ViewModule.class.php"; 13 /** On force la langue du navigateur */ 14 $_SERVER['HTTP_ACCEPT_LANGUAGE'] = $GLOBALS['lang']['lang_iso']; 15 16 class ViewClickheat extends ViewModule 17 { 18 var $viewTemplate = "clickheat/viewclickheat.tpl"; 19 20 function ViewClickheat() 21 { 22 parent::ViewModule(); 23 } 24 25 function process() 26 { 27 ob_start(); 28 $t = split("-", $this->request->getDate()); 29 $pmvClickHeatDateStamp = mktime(0, 0, 0, $t[1], $t[2], $t[0] ); 30 if ($this->request->getPeriod() == DB_ARCHIVES_PERIOD_DAY) 31 { 32 $pmvClickHeatRange = 'd'; 33 } 34 elseif ($this->request->getPeriod() == DB_ARCHIVES_PERIOD_WEEK) 35 { 36 $pmvClickHeatRange = 'w'; 37 } 38 elseif ($this->request->getPeriod() == DB_ARCHIVES_PERIOD_MONTH) 39 { 40 $pmvClickHeatRange = 'm'; 41 } 42 else 43 { 44 $pmvClickHeatRange = 'd'; 45 } 46 $__action = ''; 47 define('PHPMV_SELECTED_SITE', (string) $this->request->getSiteId(true)); 48 include INCLUDE_PATH.'/plugins/clickheat/libs/index.php'; 49 $result = ob_get_clean(); 50 51 if ($__action === 'view') 52 { 53 $this->tpl->setMainTemplate("clickheat/tpl/structure_clickheat.tpl"); 54 55 $this->tpl->assign('clickheat_calendar', $__calendar); 56 $this->tpl->assign('clickheat_path', CLICKHEAT_PATH); 57 $this->tpl->assign('clickheat_index', CLICKHEAT_INDEX_PATH); 58 $this->tpl->assign('clickheat_group', LANG_GROUP); 59 $this->tpl->assign('clickheat_groups', $__selectGroups); 60 $this->tpl->assign('clickheat_browser', LANG_BROWSER); 61 $this->tpl->assign('clickheat_browsers', $__selectBrowsers); 62 $this->tpl->assign('clickheat_screen', LANG_SCREENSIZE); 63 $this->tpl->assign('clickheat_screens', $__selectScreens); 64 $this->tpl->assign('clickheat_heatmap', LANG_HEATMAP); 65 $this->tpl->assign('clickheat_js', $__js); 66 $this->tpl->assign('clickheat_loading', str_replace('\'', '\\\'', LANG_ERROR_LOADING)); 67 $this->tpl->assign('clickheat_cleaner', str_replace('\'', '\\\'', LANG_CLEANER_RUNNING)); 68 $this->tpl->assign('clickheat_admincookie', str_replace('\'', '\\\'', LANG_JAVASCRIPT_ADMIN_COOKIE)); 69 $this->tpl->assign('clickheat_alpha', $clickheatConf['alpha']); 70 $this->tpl->assign('clickheat_iframes', $clickheatConf['hideIframes'] === true ? 'true' : 'false'); 71 $this->tpl->assign('clickheat_flashes', $clickheatConf['hideFlashes'] === true ? 'true' : 'false'); 72 $this->tpl->assign('clickheat_force_heatmap', $clickheatConf['heatmap'] === true ? ' checked="checked"' : ''); 73 $this->tpl->assign('clickheat_jsokay', CLICKHEAT_ADMIN === true ? '<a href="#" onclick="showJsCode(); return false;">'.str_replace('\'', '\\\'', LANG_ERROR_JAVASCRIPT).'</a>' : ''); 74 $this->tpl->assign('clickheat_last', $__lastDayOfMonth); 75 $this->tpl->assign('clickheat_day', $__day); 76 $this->tpl->assign('clickheat_month', $__month); 77 $this->tpl->assign('clickheat_year', $__year); 78 $this->tpl->assign('clickheat_menu', '<a href="#" onclick="adminCookie(); return false;">'.LANG_LOG_MY_CLICKS.'</a><br />'.(CLICKHEAT_ADMIN === true ? '<a href="'.CLICKHEAT_INDEX_PATH.'action=config">'.LANG_CONFIG.'</a> - <a href="#" onclick="showJsCode(); return false;">Javascript</a>' : '')); 79 return true; 80 } 81 82 echo $result; 83 exit; 84 } 85 } 86 ?>
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 |
|