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
isHavingWebsite();
26
include_once(SP_CTRLPATH."/seoplugins.ctrl.php");
27
$controller = New SeoPluginsController();
28
$controller->view->menu = 'seoplugins';
29
$controller->spTextPlugin = $controller->getLanguageTexts('plugin', $_SESSION['lang_code']);
30
$controller->set('spTextPlugin', $controller->spTextPlugin);
31
 
32
// set site details according to customizer plugin
33
$custSiteInfo = getCustomizerDetails();
34
$siteName = !empty($custSiteInfo['site_name']) ? $custSiteInfo['site_name'] : "Seo Panel";
35
$controller->set('spTitle', "$siteName: Provides latest seo plugins to increase and track the performace your website");
36
$controller->set('spDescription', "Its an open source software and also you can develop your own seo plugins for $siteName. Download new seo plugins and install into your $siteName software and increase your site perfomance.");
37
$controller->set('spKeywords', "$siteName plugins,latest seo plugins,download seo plugins,install seo plugins,develop seo plugins");
38
 
39
if($_SERVER['REQUEST_METHOD'] == 'POST'){
40
 
41
	switch($_POST['sec']){
42
 
43
		default:
44
			$controller->manageSeoPlugins($_REQUEST, 'post');
45
			break;
46
	}
47
 
48
}else{
49
	switch($_GET['sec']){
50
 
51
		case "show":
52
			$controller->showSeoPlugins($_GET);
53
			break;
54
 
55
		default:
56
 
57
			// if plugin id existing present
58
			if (!empty($_GET['pid'])) {
59
				$controller->manageSeoPlugins($_REQUEST, 'get');
60
			} else {
61
				$controller->showSeoPlugins($_GET);
62
			}
63
 
64
			break;
65
	}
66
}
67
?>