pastebin
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
pastebin
Follow @pastebin
create new paste
trending pastes
sign up
login
my settings
my profile
My Pastes
Public Pastes
Untitled
2 sec ago
Untitled
8 sec ago
APISWITCHBOARD
C++ | 39 sec ago
Untitled
20 sec ago
Untitled
21 sec ago
data
28 sec ago
Untitled
39 sec ago
Untitled
33 sec ago
Layout Width
Share Pastebin
wwwherewithmefr - amo
By: a guest | May 1st, 2008 | Syntax:
PHP
| Size: 1.02 KB | Hits: 1,045 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
<?php
global
$user_ID
,
$user_identity
,
$user_login
;
get_currentuserinfo
(
)
;
if
(
!
$user_ID
)
:
// Non connecte
?>
<form method="post" id="loginform" class="user_box" action="
<?php
bloginfo
(
'home'
)
;
?>
/wp-login.php">
<div>
<input type="text" value="
<?php
echo
wp_specialchars
(
stripslashes
(
$user_login
)
,
1
)
;
?>
" name="log" id="login" />
<input type="password" value="" name="pwd" id="password" />
<input class="hidden" type="hidden" name="redirect_to" value="
<?php
echo
$_SERVER
[
'REQUEST_URI'
]
;
?>
" />
<input class="hidden" type="hidden" name="rememberme" value="forever" />
<input type="submit" id="loginsubmit" value="OK" />
</div>
</form>
<?php
else
:
// Connecte ?>
<div class="user_box" id="user_connected">
<span>
<?php
echo
wp_specialchars
(
stripslashes
(
$user_identity
)
,
1
)
;
?>
</span>
<a href="
<?php
echo
get_option
(
'siteurl'
)
;
?>
/wp-login.php?action=logout&redirect_to=
<?php
echo
urlencode
(
$_SERVER
[
'REQUEST_URI'
]
)
;
?>
" title="Deconnexion" class="logout">Déconnexion</a>
</div>
<?php
endif
;
?>
create new paste
|
create new version of this paste
RAW Paste Data