Melhorias no arquivo index.php

Esse commit está contido em:
felipenmoura
2010-01-28 01:17:22 +00:00
commit a5a7f307af
+44 -12
Ver Arquivo
@@ -14,7 +14,7 @@
$u->status(1);
$u->email('contato@thewebmind.org');
if($u->save() || true)
if($u->save())
{
$info= "<table style='width:100%;
color:#444;
@@ -50,9 +50,25 @@
</td>
</tr>
</table>";
}else
{
echo "Error: Please, set permissions to your PHP server, to change files in:
}else{
echo "<table style='width:100%;
color:#444;
background-color:#eec;
border-bottom:solid 2px #669;
padding: 7px;
text-align:justify;
position:absolute;
top:0px;
bottom:0px;'
id='selfDestroyDiv'
align='center'>
<tr>
<td>
<img src='images/error.png'>
</td>
<td>
<b>Error</b>: An error accurred when trying to access some files.<br/>
<b>Tip</b>: Please, set permissions to your PHP server, to change AT LEAST these directories:<br/>
<ul>
<li>
restrict/".$_MIND['userDir']."
@@ -60,9 +76,24 @@
<li>
restrict/".$_MIND['publishDir']."
</li>
</ul>";
</ul>
</td>
<td style='padding-top:20px;'>
<center>
<input type='image'
src='images/try_again.png'
onclick='self.location.href= self.location.href'>
</center>
</td>
</tr>
<tr>
<td colspan='2'>
Due to keep theWebMind up to date, we advise you to set these permissions to all this directory
</td>
</tr>
</table>";
exit;
}
}
}else
$info= false;
?>
@@ -244,6 +275,13 @@
Turn on your javascript to enjoy theWebMind 2.0<br/><br/>
If your browser does not support javascript, try one of these: Firefox, Chrome, Safari, Opera or even Internet Explorer 7+.
</noscript>
<?php
if(isset($info))
{
echo $info;
}
?>
<table style='width: 100%; height: 100%;'>
<tr>
<td style='text-align: center;'>
@@ -265,12 +303,6 @@
action='login.php'
method='post'
target='hidden_frame'>
<?php
if(isset($info))
{
echo $info;
}
?>
<table>
<tr>
<td style='color:#fff;'>