| 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 |
include_once(SP_CTRLPATH."/adminpanel.ctrl.php");
|
|
|
26 |
$controller = New AdminPanelController();
|
|
|
27 |
$controller->view->menu = 'adminpanel';
|
|
|
28 |
|
|
|
29 |
// set site details according to customizer plugin
|
|
|
30 |
$custSiteInfo = getCustomizerDetails();
|
|
|
31 |
$siteName = !empty($custSiteInfo['site_name']) ? $custSiteInfo['site_name'] : "Seo Panel";
|
|
|
32 |
$controller->set('spTitle', "$siteName: User control panel for manage settings");
|
|
|
33 |
$controller->set('spDescription', "$siteName user control panel for manage settings");
|
|
|
34 |
$controller->set('spKeywords', "$siteName settings,User control panel,manage $siteName settings");
|
|
|
35 |
$controller->spTextPanel = $controller->getLanguageTexts('panel', $_SESSION['lang_code']);
|
|
|
36 |
$controller->set('spTextPanel', $controller->spTextPanel);
|
|
|
37 |
$controller->set('spTextTools', $controller->getLanguageTexts('seotools', $_SESSION['lang_code']));
|
|
|
38 |
$info = $_REQUEST;
|
|
|
39 |
|
|
|
40 |
if($_SERVER['REQUEST_METHOD'] == 'POST'){
|
|
|
41 |
|
|
|
42 |
switch($_POST['sec']){
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
}else{
|
|
|
46 |
switch($_GET['sec']){
|
|
|
47 |
case "newweb":
|
|
|
48 |
$info['start_script'] = 'websites.php?sec=new&check=1';
|
|
|
49 |
$controller->index($info);
|
|
|
50 |
break;
|
|
|
51 |
|
|
|
52 |
case "myprofile":
|
|
|
53 |
$info['menu_selected'] = 'my-profile';
|
|
|
54 |
$info['start_script'] = 'users.php?sec=my-profile';
|
|
|
55 |
$controller->index($info);
|
|
|
56 |
break;
|
|
|
57 |
|
|
|
58 |
case "connections":
|
|
|
59 |
$info['menu_selected'] = 'my-profile';
|
|
|
60 |
$info['start_script'] = 'connections.php';
|
|
|
61 |
$controller->index($info);
|
|
|
62 |
break;
|
|
|
63 |
|
|
|
64 |
case "settings":
|
|
|
65 |
$info['menu_selected'] = 'settings';
|
|
|
66 |
$info['start_script'] = 'settings.php';
|
|
|
67 |
$controller->index($info);
|
|
|
68 |
break;
|
|
|
69 |
|
|
|
70 |
case "moz-settings":
|
|
|
71 |
$info['menu_selected'] = 'settings';
|
|
|
72 |
$info['start_script'] = 'settings.php?category=moz';
|
|
|
73 |
$controller->index($info);
|
|
|
74 |
break;
|
|
|
75 |
|
|
|
76 |
case "google-settings":
|
|
|
77 |
$info['menu_selected'] = 'settings';
|
|
|
78 |
$info['start_script'] = 'settings.php?category=google';
|
|
|
79 |
$controller->index($info);
|
|
|
80 |
break;
|
|
|
81 |
|
|
|
82 |
case "alerts":
|
|
|
83 |
$info['menu_selected'] = 'my-profile';
|
|
|
84 |
$info['start_script'] = 'alerts.php';
|
|
|
85 |
$controller->index($info);
|
|
|
86 |
break;
|
|
|
87 |
|
|
|
88 |
default:
|
|
|
89 |
$_GET['sec'] = addslashes($_GET['sec']);
|
|
|
90 |
$controller->index($_GET);
|
|
|
91 |
break;
|
|
|
92 |
}
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
?>
|