addTitle('Servicios'); $login = new HTML_Login(); $t = new HTML_Table(array('width' => 760, 'align' => 'center', 'cellspacing' => 0, 'cellpadding' => 0, 'border' => 0, 'valign' => 'middle', 'height' => 200)); $t->addRow(array($login)); $m->addStyleSheet($login->getCSS()); $m->addBodyContent($t); $m->display(); } } if(isset($_SESSION['usuario']) && (isset($_POST['redirect']) || isset($_GET['redirect']))) { $db = DB::Connect('mysql://intranet:intranet@bal747f/intranet'); $query = "SELECT link FROM servicio WHERE servicio = "; if(isset($_POST['redirect'])) $query .= $_POST['redirect']; else $query .= $_GET['redirect']; $link = $db->getOne($query); header('location: '.$link); } ?>