<?
$page = "admin_mobile.php";
include "admin_header.php";

if(isset($_POST['task'])) { $task = $_POST['task']; } elseif(isset($_GET['task'])) { $task = $_GET['task']; } else { $task = "main"; }




if($task == "dosave") {
$moblog_server = $_POST['moblog_server'];
$moblog_port = $_POST['moblog_port'];
$moblog_email = $_POST['moblog_email'];
$moblog_password = $_POST['moblog_password'];

mysql_query("UPDATE bhost_admin SET moblog_server='$moblog_server', moblog_port='$moblog_port', moblog_email='$moblog_email', moblog_password='$moblog_password'");

echo $head;
echo "
<h2>$admin_mobile1</h2>
$admin_mobile2
<br><br>
<form action='admin_mobile.php' method='POST'>
<input type='submit' class='button' value='$admin_mobile3'>
<input type='hidden' name='task' value='main'>
</form>
";
echo $foot;
exit();
}






echo $head;

echo "
<h2>$admin_mobile1</h2>
$admin_mobile4
<br><br>

<b>$admin_mobile15</b>
<ol>
<li>$admin_mobile16<br><br></li>
<li>$admin_mobile17<br><b>GET http://www.yourdomain.com/moblog.php</b><br><br></li>
<li>$admin_mobile18<br><br></li>
<li>$admin_mobile19</li>
</ol>

<form action='admin_mobile.php' method='POST'>

<table width='100%' cellpadding='0' cellspacing='0' style='margin-top: 3px;'>
<tr><td class='header'>$admin_mobile14</td></tr>
<tr>
<td class='box'>
  <table cellpadding='0' cellspacing='0'>
  <tr>
  <td>$admin_mobile7</td>
  <td>&nbsp; <input type='text' class='text' name='moblog_server' value='$admin_info[moblog_server]' size='30' maxlength='255'></td>
  </tr>
  <tr>
  <td>$admin_mobile8</td>
  <td>&nbsp; <input type='text' class='text' name='moblog_port' value='$admin_info[moblog_port]' size='5' maxlength='6' size='3'></td>
  </tr>
  <tr>
  <td>$admin_mobile5</td>
  <td>&nbsp; <input type='text' class='text' name='moblog_email' value='$admin_info[moblog_email]' size='30' maxlength='255'> $admin_mobile9</td>
  </tr>
  <tr>
  <td>$admin_mobile6</td>
  <td>&nbsp; <input type='password' class='text' name='moblog_password' value='$admin_info[moblog_password]' size='30' maxlength='255'></td>
  </tr>
  </table>
<br>
$admin_mobile13
</td>
</tr>
</table>

<br>

<input type='submit' class='button' value='$admin_mobile12'>
<input type='hidden' name='task' value='dosave'>
</form>
";


echo $foot;
?>