Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/08/2010, 12:46
betamic
 
Fecha de Ingreso: julio-2004
Mensajes: 10
Antigüedad: 19 años, 9 meses
Puntos: 1
Respuesta: Utilizar sesiones y usuarios de wordpress

amigos... hola nuevamente... encontre la solucion a mi problema...

aqui se las dejo...

este archivo lo deje en un carpeta detro de la raiz de wordpress

Código 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>Documento sin título</title>
</head>
<body>
<?php
require('../wp-blog-header.php');
?>
<?php 
if (!(current_user_can('level_0'))){ ?>
<h2>Inicio de Sesión</h2>
<form action="<?php echo get_option('home'); ?>../wp-login.php" method="post">
<input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1?>" size="20" />
<input type="password" name="pwd" id="pwd" size="20" />
<input type="submit" name="submit" value="Send" class="button" />
<p>
<label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" />Recordarme</label>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
</p>
</form>
<a href="<?php echo get_option('home'); ?>../wp-login.php?action=lostpassword">Perdió su contraseña?</a>
<?php } else { ?>
<h2>Fin de Sesión</h2>
<a href="<?php echo wp_logout_url($_SERVER['REQUEST_URI']); ?>">logout</a><br />
<a href="http://localhost/deis/wp-admin/">admin</a>
<?php }?>
</body>
</html>