// =====================
// |   v.2|    
// =====================

require_once('./admincp/om_ehdaa_r.php');
if ($_REQUEST['do'] == "add_ehdaa") {

$userid_user_no = 1;
    $bbuser_omanidream = $userid_user_no - $bbuserinfo[userid];
    if($bbuser_omanidream > 0) {
      eval(print_standard_error('error_gustuesrno'));
      exit;
    }



$ehdaa_user_no = $postneed;
    $post_omanidream = $ehdaa_user_no - $bbuserinfo[posts];
    if($post_omanidream > 0) {
      eval(print_standard_error('error_notpostehdaa'));
      exit;
    }


require_once('./admincp/ehdaa_show_icons.php');

$msg = "<thead><tr><td colspan=\"2\" class=\"thead\" colspan=\"2\"> </td></tr></thead>
<tbody>
<tr>
<form method=\"POST\" action=\"global.php?do=do_add_ehdaa\">
<td class=\"alt2\" align=\"center\"> :</td>
<td class=\"alt2\" align=\"center\">$bbuserinfo[username]</td>
</tr><tr>
<td class=\"alt2\" align=\"center\"> :</td>
<td class=\"alt2\" align=\"center\"><input size=\"20\" type=\"text\" name=\"two\" size=\"50\"></td>
</tr><tr>
<td class=\"alt1\" align=\"center\"> :</td>
<td class=\"alt1\" align=\"center\"><input size=\"70\" type=\"text\" name=\"three\" cols=\"50\"></td>

</tr><tr>

</tr>
<td colspan=\"2\" class=\"tfoot\" align=\"left\"><input type=\"submit\" value=\" \"></form></td>
</tr><tr>
<td colspan=\"2\" class=\"alt1\" align=\"center\"> </a> <a target=\"_blank\" href=\"http://www.omanidream.net\">  </form></td>
</tr><tr>

</tbody>";


if ($bbuserinfo['usergroupid'] == $groupnumstop) {
$msg = "<td class=\"alt3\" align=\"center\">  $groupmsgstop   </td>";
}




eval('print_output("' . fetch_template('ehdaa_msg') . '");');

} elseif ($_REQUEST['do'] == "do_add_ehdaa") {


if (!$_POST['two']) {
$msg = "<td class=\"alt2\" align=\"center\"> ...    </td>";
} elseif (!$_POST['two']) {
$msg = "<td class=\"alt2\" align=\"center\"> ...    </td>";
} elseif (!$_POST['three']) {
$msg = "<td class=\"alt2\" align=\"center\"> ...   </td>";
} elseif (strlen($_POST['three']) > 200) {
$msg = "<td class=\"alt2\" align=\"center\"> ...       200 </td>";
} else {




$DB_site->query("INSERT INTO notapp(id,name,two,dateline,three) VALUES ('','$bbuserinfo[username]','$two','" . TIMENOW . "','$three')");
$msg = "<td class=\"alt2\" align=\"center\">              </td>";
}

eval('print_output("' . fetch_template('ehdaa_msg') . '");');

} else {
$ehdaa_1 = $DB_site->query("SELECT * FROM ehdaa ORDER BY dateline DESC LIMIT $showehdaa");
while ($ehdaa_row = mysql_fetch_array($ehdaa_1)) {
$ehdaa_row['date'] = vbdate($vboptions['dateformat'], $ehdaa_row['dateline']);
$ehdaa_row['time'] = vbdate($vboptions['timeformat'], $ehdaa_row['dateline']);
$ehdaa_bit .= "<fieldset><legend align=\"right\" style=\"background-color: #FFFFFF; border: 1px solid #000000;\">&nbsp;&nbsp;&nbsp;<a href=\"mailto:$ehdaa_row[one]\"></a> <font color=0066CC>$ehdaa_row[name]</a> <font color=red> $ehdaa_row[two]</a> <font color=#ECAA46>$ehdaa_row[date]</a> <font color=#C98114> $ehdaa_row[time]</font>&nbsp;&nbsp;&nbsp;</legend><div align=\"right\"></a> <font color=#0066CC>$ehdaa_row[three]</div></font></font></font></font></fieldset><br />";
}
$the_om_ehdaa = "<marquee style=\"border: 1px solid #000000\" onmouseover=this.stop() onmouseout=this.start() scrollAmount=$speedehdaa scrollDelay=0 direction=up width=100%>$ehdaa_bit</marquee>";

}

// =====================
// |  v.2| Omanidream
// =====================