From 4f94e53093f2efc2b1046be872fa3934809a918f Mon Sep 17 00:00:00 2001 From: Sebastian Arena Date: Sun, 8 May 2005 13:27:48 +0000 Subject: [PATCH] --- src/info.agregarRanking.php | 12 ++++++++++++ src/info.ingresarInfo.php | 36 ++++++++++++++++++++++++++++++++++++ src/info.ingresarTemas.php | 36 ++++++++++++++++++++++++++++++++++++ src/info.listarInfo.php | 32 ++++++++++++++++++++++++++++++++ src/info.listarTemas.php | 30 ++++++++++++++++++++++++++++++ 5 files changed, 146 insertions(+) create mode 100644 src/info.agregarRanking.php create mode 100644 src/info.ingresarInfo.php create mode 100644 src/info.ingresarTemas.php create mode 100644 src/info.listarInfo.php create mode 100644 src/info.listarTemas.php diff --git a/src/info.agregarRanking.php b/src/info.agregarRanking.php new file mode 100644 index 0000000..dcf255e --- /dev/null +++ b/src/info.agregarRanking.php @@ -0,0 +1,12 @@ +incrementarRanking(); + Header("Location: " . $objInfo->url); +} else { + Header("Location: admin.log.php"); +} + +?> diff --git a/src/info.ingresarInfo.php b/src/info.ingresarInfo.php new file mode 100644 index 0000000..09f3911 --- /dev/null +++ b/src/info.ingresarInfo.php @@ -0,0 +1,36 @@ +esAdmin()) { + + if (isset($_POST['txtTema']) && isset($_POST['txtURL']) && isset($_POST['txtComentario'])) { + if ( info_ingresar_info( $_POST['txtTema'], $_POST['txtURL'], $_SESSION['user']->getId(), $_POST['txtComentario'] ) ) { + info_form_ingresar_info( "", "", "" ); + } else { + info_form_ingresar_info( $_POST['txtTema'], $_POST['txtURL'], $_POST['txtComentario'] ); + } + } else { + info_form_ingresar_info( "", "", "" ); + } +} else { + echo warn("No esta habilitado para dar de alta informacion, debe ser socio o asesor"); +} + +marco_pie('Sebastian Arena', 'seba@arenanet.com.ar', 'img/sarena.jpg'); + +?> diff --git a/src/info.ingresarTemas.php b/src/info.ingresarTemas.php new file mode 100644 index 0000000..4b336a9 --- /dev/null +++ b/src/info.ingresarTemas.php @@ -0,0 +1,36 @@ +esAdmin()) { + + if (isset($_POST['txtNombre']) && isset($_FILES['txtIcono']) && isset($_POST['txtDescripcion'])) { + if ( info_ingresar_tema( $_POST['txtNombre'], $_SESSION['user']->getId(), $_POST['txtDescripcion'], $_FILES['txtIcono']['tmp_name'] ) ) { + info_form_ingresar_tema( "", "", "" ); + } else { + info_form_ingresar_tema( $_POST['txtNombre'], $_FILES['txtIcono'], $_POST['txtDescripcion'] ); + } + } else { + info_form_ingresar_tema( "", "", "" ); + } +} else { + echo warn("No esta habilitado para dar de alta un tema, debe ser administrador del sistema"); +} + +marco_pie('Sebastian Arena', 'seba@arenanet.com.ar', 'img/sarena.jpg'); + +?> diff --git a/src/info.listarInfo.php b/src/info.listarInfo.php new file mode 100644 index 0000000..c791d0c --- /dev/null +++ b/src/info.listarInfo.php @@ -0,0 +1,32 @@ + + + + + + +
Ordenar por Ranking  |  Ordenar por Tema/Ranking
+ + + diff --git a/src/info.listarTemas.php b/src/info.listarTemas.php new file mode 100644 index 0000000..4405d5b --- /dev/null +++ b/src/info.listarTemas.php @@ -0,0 +1,30 @@ + + + + + + + + + + +
IDIconoNombreDescripcionAutor
+ + -- 2.43.0