|
|
@@ -15,7 +15,9 @@
|
|
15
|
15
|
include("classes/gelato.class.php");
|
|
16
|
16
|
include("classes/templates.class.php");
|
|
17
|
17
|
include("classes/pagination.php");
|
|
|
18
|
+ include("classes/user.class.php");
|
|
18
|
19
|
|
|
|
20
|
+ $user = new user();
|
|
19
|
21
|
$conf = new configuration();
|
|
20
|
22
|
$tumble = new gelato();
|
|
21
|
23
|
$template = new plantillas($conf->template);
|
|
|
@@ -48,6 +50,14 @@
|
|
48
|
50
|
$template->cargarPlantilla($input, $output, "template_header");
|
|
49
|
51
|
$template->mostrarPlantilla();
|
|
50
|
52
|
|
|
|
53
|
+ if ($user->isAdmin()) {
|
|
|
54
|
+ $input = array("{User}", "{URL_Tumble}");
|
|
|
55
|
+ $output = array($_SESSION["user_login"], $conf->urlGelato);
|
|
|
56
|
+
|
|
|
57
|
+ $template->cargarPlantilla($input, $output, "template_isadmin");
|
|
|
58
|
+ $template->mostrarPlantilla();
|
|
|
59
|
+ }
|
|
|
60
|
+
|
|
51
|
61
|
if (!$id_post) {
|
|
52
|
62
|
|
|
53
|
63
|
$limit=$conf->postLimit;
|