-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
40 lines (38 loc) · 1.18 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?PHP
require_once 'frontend_tpl_conf.php';
$aParams = array ();
switch (@$_GET ["ac"]) {
case "usuario" :
require FRONTEND_PATH_CONTROLLERS . "/UsuarioController.php";
$libro = new UsuarioController ( $engine );
$libro->manejadorDeAcciones ();
break;
case "cancion" :
require FRONTEND_PATH_CONTROLLERS . "/CancionController.php";
require_once('radiolistpro/id3/getid3/getid3.php');
require_once('radiolistpro/id3/demos/demo.audioinfo.class.php');
$libro = new CancionController ( $engine );
$libro->manejadorDeAcciones ();
break;
case "album" :
require FRONTEND_PATH_CONTROLLERS . "/AlbumController.php";
$libro = new AlbumController ( $engine );
$libro->manejadorDeAcciones ();
break;
case "genero" :
require FRONTEND_PATH_CONTROLLERS . "/GeneroController.php";
$libro = new GeneroController ( $engine );
$libro->manejadorDeAcciones ();
break;
case "loadCancion" :
require FRONTEND_PATH_CONTROLLERS . "/LoadCancion.php";
if (! empty ( $_GET ["id"] )) {
$loadDoc = new LoadDocument ( $_GET ["id"] );
}
break;
default :
$aParams ['user'] = 'super admin';
echo $engine->render ( 'index', $aParams );
break;
}
?>