Location: PHPKode > projects > Digital Media Courseware > template/admin/index.php
<?php

require_once( DMCROOT . 'lib/class/DMC.php');
require_once( DMCROOT . 'lib/class/Sesion.php');
require_once( DMCROOT . 'lib/class/Course.php');

$DMC = new DMC();
$Course = new Course();
$Sesion = new Sesion();

$DMC->setPage('be_index');

if (isset($_POST['entrando']) && $_POST['entrando'] == 'si') {
	if ($Sesion->loginCurso($_POST['usuario'],$_POST['clave'],$_GET['id'],1)) {
		header ("Location: curso.php");
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $DMC->lang_data['base']['nombre'] ?>: <?php echo $DMC->m('encabezado') ?></title>
<script src="../../../js/validador.php" type="text/javascript" language="JavaScript"></script>
<link href="../../../css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1><?php echo $DMC->m('encabezado') ?></h1>
<p><?php echo $DMC->m('titulo_intro') ?>:</p>
<form action="index.php" name="login" id="login" method="post">
	<table>
    	<tr>
    		<th align="right"><?php echo $DMC->m('frm_usuario') ?>: </th>
    		<td><input name="usuario" type="text" id="usuario" value="<?php echo $_POST['usuario'] ?>" size="20" /> <?php if ($err=='usuario') { ?><span class="nota"><?php echo $DMC->m('err_usuario') ?></span><?php } ?><?php if ($err=='tipo') { ?><span class="nota"><?php echo $DMC->m('err_tipo') ?></span><?php } ?></td>
   		</tr>
    	<tr>
    		
      <th align="right"><?php echo $DMC->m('frm_clave') ?>:</th>
    		<td><input name="clave" type="password" id="clave" value="<?php echo $_POST['clave'] ?>" size="20" /> <?php if ($err=='clave') { ?><span class="nota"><?php echo $DMC->m('err_clave') ?></span><?php } ?></td>
   		</tr>
    	<tr>
    		<td>&nbsp;</td>
    		<td>&nbsp;</td>
   		</tr>
    	<tr>
    		<td>&nbsp;</td>
    		<td><input type="submit" name="boton" class="boton" value="<?php echo $DMC->m('frm_boton') ?>" />
   			<input name="entrando" type="hidden" id="entrando" value="si" /></td>
   		</tr>
   	</table>
</form>
</body>
</html>
Return current item: Digital Media Courseware