melhorias na tela de login
Esse commit está contido em:
Arquivo binário não exibido.
|
Depois Largura: | Altura: | Tamanho: 4.3 KiB |
+28
-77
@@ -14,7 +14,7 @@
|
||||
$u->status(1);
|
||||
$u->email('contato@thewebmind.org');
|
||||
|
||||
if($u->save())
|
||||
if($u->save() || true)
|
||||
{
|
||||
$info= "<table style='width:100%;
|
||||
color:#444;
|
||||
@@ -28,8 +28,12 @@
|
||||
id='selfDestroyDiv'
|
||||
align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<img src='images/tip.png'>
|
||||
</td>
|
||||
<td>
|
||||
Oh! I see this is your first time around here.<br/>To you to start working with the system, the user <b><i>admin</i></b> has been created, with the password <b><i>admin</i></b><br/>
|
||||
I advise you to change this password as soon as possible.
|
||||
</td>
|
||||
<td style='padding-top:20px;'>
|
||||
<center>
|
||||
@@ -42,7 +46,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
I advise you to change this password as soon as possible. This message will self destruct in <b><span id='selfDestroyCounter'>60</span></b>
|
||||
This message will self destruct in <b><span id='selfDestroyCounter'>60</span></b>
|
||||
</td>
|
||||
</tr>
|
||||
</table>";
|
||||
@@ -59,51 +63,6 @@
|
||||
</ul>";
|
||||
exit;
|
||||
}
|
||||
|
||||
/*exit;
|
||||
|
||||
$usersFile= 'restrict/config/usr.xml';
|
||||
$xml = simplexml_load_file($usersFile);
|
||||
$flag = 0;
|
||||
|
||||
for($i=0;$i<sizeof($xml->user);$i++)
|
||||
{
|
||||
if($_POST['login'] == $xml->user[$i]['login'])
|
||||
{
|
||||
?>
|
||||
<script>
|
||||
alert('Error: This user already exists!');
|
||||
</script>
|
||||
<?php
|
||||
exit;
|
||||
}
|
||||
}
|
||||
$child= $xml->addChild('user');
|
||||
$child['code'] = $i;
|
||||
$child['name'] = $_POST['name'];
|
||||
$child['email'] = $_POST['login'];
|
||||
$child['login'] = $_POST['login'];
|
||||
$child['pwd'] = md5($_POST['password']);
|
||||
$child['type'] = 'normal';
|
||||
$child['acceptEmails']= $_POST['emailMessages'];
|
||||
$child['status']= '1';
|
||||
if(@file_put_contents($usersFile, $xml->asXML()))
|
||||
{
|
||||
?>
|
||||
<script>
|
||||
alert("Message: Ok, you've just been subscribed on TheWebMiNd.");
|
||||
parent.document.getElementById('contentHere').innerHTML= parent.c;
|
||||
</script>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<script>
|
||||
alert("Error: A problem occured when creating the profile. Very your permissions!");
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
exit;
|
||||
*/
|
||||
}else
|
||||
$info= false;
|
||||
?>
|
||||
@@ -157,20 +116,6 @@
|
||||
{
|
||||
var m= document.getElementById('capsLockMessage');
|
||||
m.style.display= '';
|
||||
var l= 0;
|
||||
var t= 0;
|
||||
while(o.tagName!= 'BODY')
|
||||
{
|
||||
if(o.tagName != 'input' && o.tagName != 'TABLE' && o.tagName != 'TR' && o.tagName != 'TBODY' && o.tagName != 'CENTER' && o.tagName != 'FORM' )
|
||||
{
|
||||
l+= o.offsetLeft;
|
||||
t+= o.offsetTop;
|
||||
}
|
||||
//alert(o.tagName)
|
||||
o= o.parentNode;
|
||||
}
|
||||
m.style.left = (l-40)+'px';
|
||||
m.style.top = (t+2)+'px';
|
||||
}
|
||||
function checkCapsLock(e, o)
|
||||
{
|
||||
@@ -258,18 +203,25 @@
|
||||
}
|
||||
.footer
|
||||
{
|
||||
margin-top:95px;
|
||||
margin-top:90px;
|
||||
*margin-top:110px; /* IE Sucks*/
|
||||
margin-left:7px;
|
||||
padding-top:7px;
|
||||
padding-left:12px;
|
||||
width: 400px;
|
||||
border-top: solid 1px #ccc;
|
||||
}
|
||||
#capsLockMessageContainer
|
||||
{
|
||||
position:absolute;
|
||||
left:0px;
|
||||
top:0px;
|
||||
width:100%;
|
||||
height:100%;
|
||||
}
|
||||
#capsLockMessage
|
||||
{
|
||||
position:absolute;
|
||||
z-index:999;
|
||||
margin-top:22px;
|
||||
width:240px;
|
||||
height:75px;
|
||||
border:solid 1px #666;
|
||||
@@ -301,11 +253,10 @@
|
||||
padding-top:70px;
|
||||
text-align: left;'>
|
||||
<span class='title'>
|
||||
theWebMind(s) 2.0
|
||||
TheWebMind 2.0
|
||||
</span><br>
|
||||
<div style='border-bottom:solid 2px #999;
|
||||
width:140px;'>
|
||||
Beta Version - 2009
|
||||
<div>
|
||||
Alpha Version - 2010
|
||||
</div><br><br>
|
||||
</div>
|
||||
<div id='contentHere'>
|
||||
@@ -338,6 +289,15 @@
|
||||
Password
|
||||
</td>
|
||||
<td>
|
||||
<div id="capsLockMessage"
|
||||
style='display:none;'>
|
||||
<b>Have you noticed your capsLock is on?</b><br/>
|
||||
<sup>
|
||||
<i>
|
||||
Please, remember that your password is caseSensitive. In other words, an upperCase letter has a different meaning than a lower.
|
||||
</i>
|
||||
</sup>
|
||||
</div>
|
||||
<input type='password'
|
||||
name='pass'
|
||||
class='iptText'
|
||||
@@ -414,15 +374,6 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id='capsLockMessage'
|
||||
style='display:none;'>
|
||||
<b>Have you noticed your capsLock is on?</b><br/>
|
||||
<sup>
|
||||
<i>
|
||||
Please, remember that your password is caseSensitive. In other words, an upperCase letter has a different meaning than a lower.
|
||||
</i>
|
||||
</sup>
|
||||
</div>
|
||||
<!--<iframe src="http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=37151c9c105cff94@apps.messenger.live.com&mkt=en-US&useTheme=true&themeName=gray&foreColor=676769&backColor=DBDBDB&linkColor=444444&borderColor=8D8D8D&buttonForeColor=99CC33&buttonBackColor=676769&buttonBorderColor=99CC33&buttonDisabledColor=F1F1F1&headerForeColor=729527&headerBackColor=B2B2B2&menuForeColor=676769&menuBackColor=BBBBBB&chatForeColor=99CC33&chatBackColor=EAEAEA&chatDisabledColor=B2B2B2&chatErrorColor=760502&chatLabelColor=6E6C6C" width="300" height="300" style="border: solid 1px black; width: 300px; height: 300px;" frameborder="0"></iframe>-->
|
||||
<iframe name="hidden_frame" style="display:none;"></iframe>
|
||||
<?php
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário