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
include_once(SP_CTRLPATH."/index.ctrl.php");
25
include_once(SP_CTRLPATH."/directory.ctrl.php");
26
$controller = New IndexController();
27
$controller->view->menu = 'home';
28
 
29
// set site details according to customizer plugin
30
$custSiteInfo = getCustomizerDetails();
31
if (!empty($custSiteInfo['site_title'])) $controller->set('spTitle', $custSiteInfo['site_title']);
32
if (!empty($custSiteInfo['site_description'])) $controller->set('spDescription', $custSiteInfo['site_description']);
33
if (!empty($custSiteInfo['site_keywords'])) $controller->set('spKeywords', $custSiteInfo['site_keywords']);
34
 
35
if($_SERVER['REQUEST_METHOD'] == 'GET'){
36
 
37
	switch($_GET['sec']){
38
 
39
		case "news":
40
			include_once(SP_CTRLPATH."/information.ctrl.php");
41
			$infoCtrler = new InformationController();
42
			$infoCtrler->showNews($_GET);
43
			break;
44
 
45
		case "showdiv":
46
			$areaId = $_GET['div_id'];
47
			?>
48
			<script type="text/javascript">
49
			$('#dialogContent').html($("#<?php echo $areaId;?>").html());
50
			</script>
51
			<?php
52
			break;
53
 
54
		default:
55
			$controller->index($_GET);
56
			break;
57
	}
58
}elseif($_SERVER['REQUEST_METHOD'] == 'POST'){
59
 
60
	switch($_POST['sec']){
61
 
62
	    default:
63
			$controller->index($_POST);
64
			break;
65
	}
66
}
67
 
68
?>