All pastes #941895 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-14 01:13 UTC
rendered paste body
<?php 

include("pddjs.includes.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>Member Area / Administrator</title>

<script type="text/javascript" src="meteora/meteora.js">
</script>
<script type="text/javascript">
      Meteora.uses('popup');
	  Meteora.uses('Control.Form');
</script>
<script type="text/javascript">

Meteora.uses('Control.Popup');
Meteora.uses('Control.Spinbutton');
Meteora.uses('Control.Calendar');
Meteora.showDebug(true);
Meteora.onStart(
  function () {
    new Calendar(
      'calendar_input',
      {
        format: '%Y-%m-%d %H:%i',
        minYear: 2008,
        maxYear: 2010,
        showHour: true,
        showMinute: true,
        showMeridiem: true
    });
  }
);
Meteora.onStart(
  function () {
    new SpinButton(
      'spinbutton-demo-input',
      {
        'values': [
          '3',
          '4',
          '5',
          '6',
          '7',
          '8',
          '9',
		  '10',
		  '1',
		  '2'
        ],
        'onChange': function(data) {
          $('result').innerHTML = data.value;
        },
        'cycle': true
      }
    );
  }
);


function PassRecovery() {
  new Popup(
    'Recuperar contraseña',
    {
      'url': 'passrecovery.php'
    }
  );
}
/*Meteora.uses('Control.Editor');

Meteora.onStart(
  function() {
    new Editor(
      'editor-demo-textarea'
    );
  }
);*/
</script>
<link href="ccs_main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style3 {
	font-size: x-small;
	font-style: italic;
	color: #666666;
}
-->
</style>
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="header_login"><div align="right"><img src="images/header_administrator.jpg" width="500" height="100" /></div></td>
  </tr>
</table>

<br />
<table width="584" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="146"><a href="?mod=usuarios"><img src="images/usuarios.jpg" width="146" height="67" border="0" /></a></td>
    <td width="146"><a href="?mod=colocar_aviso"><img src="images/colocar_aviso.jpg" width="146" height="67" border="0" /></a></td>
    <td width="146"><a href="?mod=registros"><img src="images/ver_registros.jpg" width="146" height="67" border="0" /></a></td>
    <td width="146"><a href="logout.php"><img src="images/salir.jpg" width="146" height="67" border="0" /></a></td>
  </tr>
</table>
<table width="812" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="438"><table width="350" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><h2 align="center">Agregar usuario</h2></td>
      </tr>
      <tr>
        <td><form method="post"  action="agregar_usuario.php" onsubmit="return formSubmit(this)">
          <table width="410" border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="153"><div align="right">Nombre:</div></td>
              <td width="243"><input name="nombre" type="text" class="required" id="nombre" /></td>
            </tr>
            <tr>
              <td><div align="right">E-Mail:</div></td>
              <td><input type="text" name="email" id="email" class="required" /></td>
            </tr>
            <tr>
              <td><div align="right">Usuario:</div></td>
              <td><input type="text" name="loginname" id="loginname" class="required" /></td>
            </tr>
            <tr>
              <td><div align="right">Contraseña:</div></td>
              <td><input name="pwd" type="text" class="required" id="pwd" value="<?php echo hiddenname(3,2); ?>" /></td>
            </tr>
            <tr>
              <td><div align="right">Número de descargar por archivos:</div></td>
              <td><input name="permitido" type="text" class="required" id="spinbutton-demo-input" value="3" size="4" maxlength="3" /></td>
            </tr>
            <tr>
              <td><div align="right">Válido hasta:</div></td>
              <td><input type="text" name="caduca" class="required" id="calendar_input" /></td>
            </tr>
            <tr>
              <td><div align="right">Directorios permitidos:</div></td>
              <td><textarea name="permitidos" id="permitidos" class="required"></textarea>
                <br />
                <span class="style3">Separados por comas. Ej: Marzo2008,Febrero08</span></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><input type="submit" name="button" id="button" value="Crear" /></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
          </table>
                </form>
        </td>
      </tr>
    </table></td>
    <td width="374">&nbsp;</td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<?php
if ($_GET["mod"] == "" OR $_GET["mod"] == "usuarios") {
	
} else {
	$module=$_GET["mod"]."_mod.php";
	if (file_exists($module)) {
		@include($module);
	} else {
		echo "Not found";
	}
}


?>
</body>
</html>