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
checkAdminLoggedIn();
25
include_once(SP_CTRLPATH."/seotools.ctrl.php");
26
$controller = New SeoToolsController();
27
$controller->set('spTextTools', $controller->getLanguageTexts('seotools', $_SESSION['lang_code']));
28
$controller->set('spTextPanel', $controller->getLanguageTexts('panel', $_SESSION['lang_code']));
29
 
30
if($_SERVER['REQUEST_METHOD'] == 'POST'){
31
 
32
	switch($_POST['sec']){
33
 
34
		case "update":
35
			$controller->updateSeoTool($_POST);
36
			break;
37
 
38
	}
39
 
40
}else{
41
	switch($_GET['sec']){
42
 
43
		case "changestatus":
44
			$status = empty($_GET['status']) ? 1 : 0;
45
			$controller->changeStatus($_GET['seotool_id'], $status);
46
			$controller->listSeoTools();
47
			break;
48
 
49
		case "changereportgen":
50
			$status = empty($_GET['status']) ? 1 : 0;
51
			$controller->changeStatus($_GET['seotool_id'], $status, 'reportgen');
52
			$controller->listSeoTools();
53
			break;
54
 
55
		case "changecron":
56
			$status = empty($_GET['status']) ? 1 : 0;
57
			$controller->changeStatus($_GET['seotool_id'], $status, 'cron');
58
			$controller->listSeoTools();
59
			break;
60
 
61
		case "changeaccess":
62
			$access = empty($_GET['user_access']) ? 1 : 0;
63
			$controller->changeStatus($_GET['seotool_id'], $access, 'user_access');
64
			$controller->listSeoTools();
65
			break;
66
 
67
		case "edit":
68
			$controller->editSeoTool($_GET);
69
			break;
70
 
71
		default:
72
			$controller->listSeoTools();
73
			break;
74
	}
75
}
76
 
77
?>