Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php
2
 
3
/***************************************************************************
4
 *   Copyright (C) 2009-2011 by Geo Varghese(www.seopanel.in)  	   *
5
 *   sendtogeo@gmail.com   												   *
6
 *                                                                         *
7
 *   This program is free software; you can redistribute it and/or modify  *
8
 *   it under the terms of the GNU General Public License as published by  *
9
 *   the Free Software Foundation; either version 2 of the License, or     *
10
 *   (at your option) any later version.                                   *
11
 *                                                                         *
12
 *   This program is distributed in the hope that it will be useful,       *
13
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
14
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
15
 *   GNU General Public License for more details.                          *
16
 *                                                                         *
17
 *   You should have received a copy of the GNU General Public License     *
18
 *   along with this program; if not, write to the                         *
19
 *   Free Software Foundation, Inc.,                                       *
20
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
21
 ***************************************************************************/
22
 
23
include_once("includes/sp-load.php");
24
checkLoggedIn();
25
 
26
// check for access to seo tool
27
// isUserHaveAccessToSeoTool("webmaster-tools");
28
 
29
include_once(SP_CTRLPATH."/analytics.ctrl.php");
30
$controller = New AnalyticsController();
31
$controller->view->menu = 'seotools';
32
$controller->layout = 'ajax';
33
$controller->spTextTools = $controller->getLanguageTexts('seotools', $_SESSION['lang_code']);
34
$controller->set('spTextTools', $controller->spTextTools);
35
 
36
if($_SERVER['REQUEST_METHOD'] == 'POST'){
37
 
38
	switch($_POST['sec']) {
39
 
40
		case "doQuickChecker":
41
			$controller->doQuickChecker($_POST);
42
			break;
43
 
44
		case "viewAnalyticsSummary":
45
		    $controller->viewAnalyticsSummary($_POST);
46
		    break;
47
 
48
		case "viewAnalyticsReports":
49
		    $controller->viewAnalyticsReports($_POST);
50
		    break;
51
 
52
		case "viewAnalyticsGraphReports":
53
		    $controller->viewAnalyticsGraphReports($_POST);
54
		    break;
55
 
56
		default:
57
		    $controller->viewAnalyticsSummary($_POST);
58
		    break;
59
	}
60
 
61
} else {
62
 
63
	switch($_GET['sec']) {
64
 
65
		case "quickChecker":
66
			$controller->viewQuickChecker($_GET);
67
			break;
68
 
69
		case "viewAnalyticsSummary":
70
		    $controller->viewAnalyticsSummary($_GET);
71
		    break;
72
 
73
		case "viewAnalyticsReports":
74
		    $controller->viewAnalyticsReports($_GET);
75
		    break;
76
 
77
		case "viewAnalyticsGraphReports":
78
		    $controller->viewAnalyticsGraphReports($_GET);
79
		    break;
80
 
81
		case "source_box":
82
		    $controller->showSourceSelectBox($_GET['website_id']);
83
		    break;
84
 
85
		default:
86
		    $controller->viewAnalyticsSummary($_POST);
87
		    break;
88
 
89
	}
90
 
91
}
92
?>