From: Sebastian Arena Date: Sun, 8 May 2005 13:27:48 +0000 (+0000) Subject: (no commit message) X-Git-Tag: svn_import~30 X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/commitdiff_plain/4f94e53093f2efc2b1046be872fa3934809a918f?ds=inline --- 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
+ +