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("directory-submission");
28
 
29
include_once(SP_CTRLPATH."/directory.ctrl.php");
30
$controller = New DirectoryController();
31
$controller->view->menu = 'seotools';
32
$controller->layout = 'ajax';
33
$controller->set('spTextTools', $controller->getLanguageTexts('seotools', $_SESSION['lang_code']));
34
$controller->set('spTextPanel', $controller->getLanguageTexts('panel', $_SESSION['lang_code']));
35
$controller->spTextDir = $controller->getLanguageTexts('directory', $_SESSION['lang_code']);
36
$controller->set('spTextDir', $controller->spTextDir);
37
 
38
if($_SERVER['REQUEST_METHOD'] == 'POST'){
39
 
40
	switch($_POST['sec']){
41
 
42
		case "updatesiteinfo":
43
			$controller->saveSubmissiondata($_POST);
44
			break;
45
 
46
		case "submitsite":
47
			$controller->submitSite($_POST);
48
			break;
49
 
50
		case "skipped":
51
			$controller->showSkippedDirectories($_POST);
52
			break;
53
 
54
		case "reports":
55
			$controller->showSubmissionReports($_POST);
56
			break;
57
 
58
		case "checksub":
59
			$controller->generateSubmissionReports($_POST);
60
			break;
61
 
62
		case "directorymgr":
63
			checkAdminLoggedIn();
64
			$controller->showDirectoryManager($_POST);
65
			break;
66
 
67
		case "startdircheck":
68
			checkAdminLoggedIn();
69
			$controller->startDirectoryCheckStatus($_POST);
70
			break;
71
 
72
		default:
73
			$controller->showWebsiteSubmissionPage($_POST);
74
			break;
75
	}
76
 
77
}else{
78
	switch($_GET['sec']){
79
 
80
		case "skip":
81
			$controller->skipSubmission($_GET);
82
			break;
83
 
84
		case "unskip":
85
			$controller->unSkipSubmission($_GET['id']);
86
			$controller->showSkippedDirectories($_GET);
87
			break;
88
 
89
		case "reload":
90
			$controller->startSubmission($_GET['website_id'], $_GET['dir_id']);
91
			break;
92
 
93
		case "reports":
94
			$controller->showSubmissionReports($_GET);
95
			break;
96
 
97
		case "skipped":
98
			$controller->showSkippedDirectories($_GET);
99
			break;
100
 
101
		case "checksub":
102
			$controller->checkSubmissionReports($_GET);
103
			break;
104
 
105
		case "delete":
106
			$controller->deleteSubmissionReports($_GET['id']);
107
			break;
108
 
109
		case "changeconfirm":
110
			$controller->changeConfirmStatus($_GET);
111
			$controller->showConfirmStatus($_GET['id']);
112
			break;
113
 
114
		case "checkstatus":
115
			$status = $controller->checkSubmissionStatus($_GET);
116
			$controller->updateSubmissionStatus($_GET['id'], $status);
117
			$controller->showSubmissionStatus($_GET['id']);
118
			break;
119
 
120
		case "featured":
121
			$controller->showFeaturedSubmission($_GET);
122
			break;
123
 
124
		case "directorymgr":
125
			checkAdminLoggedIn();
126
			$controller->showDirectoryManager($_GET);
127
			break;
128
 
129
		case "dirstatus":
130
			$controller->changeStatusDirectory($_GET['dir_id'], $_GET['status'], true);
131
			break;
132
 
133
		case "showcheckdir":
134
			checkAdminLoggedIn();
135
			$controller->showCheckDirectory();
136
			break;
137
 
138
		case "startdircheck":
139
			checkAdminLoggedIn();
140
			$controller->startDirectoryCheckStatus($_GET);
141
			break;
142
 
143
		case "checkdir":
144
			checkAdminLoggedIn();
145
			$controller->checkPR = empty($_GET['checkpr']) ? 0 : 1;
146
			$controller->checkDirectoryStatus($_GET['dir_id'], $_GET['nodebug']);
147
			break;
148
 
149
		case "checkcaptcha":
150
			$_SESSION['no_captcha'] = $_GET['no_captcha'];
151
			break;
152
 
153
		case "checkreciprocal":
154
			$_SESSION['no_reciprocal'] = $_GET['no_reciprocal'];
155
			break;
156
 
157
		default:
158
			$controller->showSubmissionPage();
159
			break;
160
	}
161
}
162
 
163
?>