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("keyword-position-checker");
28
 
29
include_once(SP_CTRLPATH."/keyword.ctrl.php");
30
include_once(SP_CTRLPATH."/website.ctrl.php");
31
include_once(SP_CTRLPATH."/searchengine.ctrl.php");
32
include_once(SP_CTRLPATH."/report.ctrl.php");
33
$controller = New ReportController();
34
$controller->view->menu = 'seotools';
35
$controller->spTextTools = $controller->getLanguageTexts('seotools', $_SESSION['lang_code']);
36
$controller->set('spTextTools', $controller->spTextTools);
37
$controller->spTextKeyword = $controller->getLanguageTexts('keyword', $_SESSION['lang_code']);
38
$controller->set('spTextKeyword', $controller->spTextKeyword);
39
$controller->spTextPanel = $controller->getLanguageTexts('panel', $_SESSION['lang_code']);
40
$controller->set('spTextPanel', $controller->spTextPanel);
41
$controller->spTextReport = $controller->getLanguageTexts('report', $_SESSION['lang_code']);
42
$controller->set('spTextReport', $controller->spTextReport);
43
 
44
$controller->layout = 'ajax';
45
 
46
if($_SERVER['REQUEST_METHOD'] == 'POST'){
47
 
48
	switch($_POST['sec']){
49
 
50
		case "kwchecker":
51
			if (isQuickCheckerEnabled()) {
52
				$controller->showQuickRankChecker($_POST);
53
			} else {
54
				showErrorMsg($_SESSION['text']['label']["Access denied"]);
55
			}
56
			break;
57
 
58
		case "reportsum":
59
			$controller->showKeywordReportSummary($_POST);
60
			break;
61
 
62
		case "schedule":
63
			$controller->saveReportSchedule($_POST);
64
			break;
65
 
66
		case "report_gen_logs":
67
			checkAdminLoggedIn();
68
			$controller->showReportGenerationLogs($_POST);
69
			break;
70
 
71
		default:
72
			$controller->showReports($_POST);
73
			break;
74
	}
75
 
76
}else{
77
	switch($_GET['sec']){
78
 
79
		case "show-info":
80
			$controller->showTimeReport($_GET);
81
			break;
82
 
83
		case "kwchecker":
84
			$controller->quickRankChecker($_GET);
85
			break;
86
 
87
		case "reportsum":
88
			$controller->showKeywordReportSummary($_GET);
89
			break;
90
 
91
		case "schedule":
92
			$controller->showReportsScheduler(false, $_GET);
93
			break;
94
 
95
		case "report_gen_logs":
96
			checkAdminLoggedIn();
97
			$controller->showReportGenerationLogs($_GET);
98
			break;
99
 
100
		default:
101
			$controller->showReports($_GET);
102
			break;
103
	}
104
}
105
 
106
?>