...

View Full Version : Urgent: Please Help: Parse error: syntax error, unexpected '}'



northernfire
08-07-2008, 12:37 PM
hi there i would really appreciate someones help...as i know nothing about this coding... i posted on a couple other boards but they were rude... like we all should be proffessionals at this.. :(

Parse error: syntax error, unexpected '}' in /newadmin/index.php on line 238



<?
############################################################
# eMeeting Dating / Community Software
############################################################
$subd = "../";
require_once $subd . "includes/sv_config.php";
require_once $subd . "includes/langs/".D_LANG.".php";
require_once $subd . "includes/db_connect.php";
$connector = new DbConnector();
require_once $subd . "includes/functions.php";
require_once $subd . "templates/admin1/adm_layout.php";
############################################################
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="65%" valign="top">
<table width="100%" cellpadding=0 cellspacing=1 class="EM_data_table">
<tbody>
<tr>
<td colspan="4" class="EM_data_table_header">Overview</td>
</tr>
<tr>
<td colspan="4" class="EM_data_table_header">&nbsp;</td>
</tr>
<tr valign="top">
<td width="48" height="48" align="center" class="EM_data_table_inputarea1"><img src="img/icons/overview/members.gif" width="48" height="48"></td>
<td width="246" align="center" class="EM_data_table_inputarea1"><table width="100%" border="0">
<tr>
<td><a href="members.php"><? print $emAdmin['5']; ?></a></td>
</tr>
<tr>
<td>

<a href="members.php"><? print $emAdmin['6']; ?></a>,
<a href="members.php?page=add"><? print $emAdmin['7']; ?>,
</a><a href="groups.php"><? print $emAdmin['8']; ?>,
</a><a href="upgrade.php"><? print $emAdmin['9']; ?>,
</a><a href="online.php" ><? print $emAdmin['10']; ?>,</a>
<a href="stats.php"><? print $emAdmin['11']; ?>.</a>

</td>
</tr>
</table></td>
<td width="48" align="center" class="EM_data_table_inputarea1"><img src="img/icons/overview/photos.gif" width="48" height="48"></td>
<td width="317" align="center" class="EM_data_table_inputarea1"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['12']); ?></td>
</tr>
<tr>
<td><a href="members.php" ><? print $emAdmin['13']; ?>,</a><a href="members.php" >
<? print $emAdmin['14']; ?>.</a></td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td align="center" class="EM_data_table_row2"><img src="img/icons/overview/web.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['15']); ?></td>
</tr>
<tr>
<td>

<a href="settings.php?view=5"><? print $emAdmin['16']; ?>,
</a><a href="settings.php?view=3"><? print $emAdmin['17']; ?>,
</a> <a href="settings.php?view=2"><? print $emAdmin['19']; ?>,
</a> <a href="settings.php?view=6"><? print $emAdmin['21']; ?>,
</a><a href="settings.php?view=7"><? print $emAdmin['20']; ?>.</a>

</td>
</tr>
</table></td>
<td align="center" class="EM_data_table_inputarea2"><img src="img/icons/overview/payment.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['23']); ?></td>
</tr>
<tr>
<td><a href="payment.php"><? print $emAdmin['16']; ?></a></td>
</tr>
<tr>
<td><form method="post" action="payment.php?view=">
<select name="gateway">
<option value="0">NoChex</option>
<option value="1">Paypal</option>
<option value="2">2Checkout</option>
<option value="3">Authorize.net</option>
<option value="4">Cheque/Money order</option>
<option value="5">Bank Payment</option>
<option value="6">Worldpay</option>
<option value="7">e-Gold</option>
<option value="8">USA</option>
<option value="10">Moneybookers</option>
<option value="9">AlterPay</option>
<option value="11">E-Path</option>
<option value="12">Netstores</option>
<option value="13">Paymate</option>
</select>
<input type="submit" name="Submit2" value="select">
</form></td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td align="center" class="EM_data_table_row2"><img src="img/icons/overview/profile.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><a href="members.php" >
</a> <table width="100%" border="0">
<tr>
<td><? print S($emAdmin['30']); ?></td>
</tr>
<tr>
<td><a href="fields.php"><? print $emAdmin['31']; ?></a>
<a href="badwords.php">,<? print $emAdmin['33']; ?></a>
<a href="backup.php">,<? print $emAdmin['34']; ?></a></td>
</tr>
</table></td>
<td align="center" class="EM_data_table_inputarea2"><img src="img/icons/overview/templates.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2">
<table width="100%" border="0">
<tr>
<td><? print S($emAdmin['35']); ?></td>
</tr>
<tr>
<td><a href="template_design.php?view=change"><? print $emAdmin['36']; ?>, </a>
<a href="template_design.php?view=edit"><? print $emAdmin['312']; ?>.</a>
</td>
</tr>
</table></td>
</tr>
<tr valing="top">
<td align="center" class="EM_data_table_row2"><img src="img/icons/overview/tools.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['52']); ?></td>
</tr>
<tr>
<td><a href="pages.php"><? print $emAdmin['53']; ?></a>,
<a href="banners.php"><? print $emAdmin['54']; ?></a>,
<a href="feedback.php"><? print $emAdmin['55']; ?></a>,
<a href="tools.php"><? print $emAdmin['56']; ?></a>,
<a href="billing.php"><? print $emAdmin['0']; ?></a>,
<a href="help.php"><? print $emAdmin['22']; ?></a>,
<a href="faq.php">F.A.Q</a>.
</td>
</tr>
</table></td>
<td align="center" class="EM_data_table_inputarea2"><img src="img/icons/overview/mail.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"> <table width="100%" border="0">
<tr>
<td><? print S($emAdmin['57']); ?></td>
</tr>
<tr>
<td><a href="email.php"><? print $emAdmin['58']; ?></a>,
<a href="settings.php?view=1"><? print $emAdmin['59']; ?></a>,
<a href="newsletters.php"><? print $emAdmin['60']; ?></a>,
<a href="email.php?page=ext"><? print $emAdmin['060']; ?></a>.
</td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td align="center" class="EM_data_table_row2"><img src="img/icons/overview/chat.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['61']); ?></td>
</tr>
<tr>
<td><a href="chat.php"><? print $emAdmin['66']; ?></a>,
<a href="chat.php"><? print $emAdmin['68']; ?></a>
</td>
</tr>
</table></td>
<td align="center" class="EM_data_table_inputarea2"><img src="img/icons/overview/forum.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['66']); ?></td>
</tr>
<tr>
<td><a href="forum.php"><? print $emAdmin['62']; ?></a></td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td align="center" class="EM_data_table_row2"><img src="img/icons/overview/plugins.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['69']); ?></td>
</tr>
<tr>
<td><a href="userplane.php">Userplane</a></td>
</tr>
</table></td>
<td align="center" class="EM_data_table_inputarea2">&nbsp;</td>
<td align="center" class="EM_data_table_inputarea2">&nbsp;</td>
</tr>
<tr>
<td colspan="4" class="EM_data_table_header">&nbsp;</td>
</tr>
</tbody>
</table> </td>
<td width="1%">&nbsp;</td>
<td width="34%" valign="top"> <table width="100%" cellpadding=0 cellspacing=1 class="EM_data_table">
<tbody>
<tr>
<td colspan="4" class="EM_data_table_header">Last 20 Login Attempts</td>
</tr>
<tr>
<td class="EM_data_table_inputarea1">&nbsp;</td>
<td align="center" class="EM_data_table_inputarea1"><? print $emAdmin['128']; ?></td>
<td align="center" class="EM_data_table_inputarea1">Time/Date</td>
<td align="center" class="EM_data_table_inputarea1">IP</td>
</tr>
<?

## DISPLAY LOGIN ATTEMPTS
$RunThisLogCheck = "SELECT username,date,time,ip, value FROM frm_adminlog ORDER by id DESC LIMIT 20";
$LogResult = $connector->query($RunThisLogCheck);
while ($row = $connector->fetchArray($LogResult)){
if($row['value'] == 1){$bg = "#E2FFD9"; $bgimage = "box_yes.gif";}else{$bg = "#FFDDDD"; $bgimage = "box_error.gif";}
?>
<tr>
<td width="20" class="EM_data_table_row2"><img src="img/icons/<? print $bgimage; ?>" width="16" height="16">
</td>
<td width="125" align="center" class="EM_data_table_row2"><? print $row['username']; ?></td>
<td width="173" align="center" class="EM_data_table_inputarea2"><? print $row['time']."/". $row['date']; ?></td>
<td align="center" class="EM_data_table_inputarea2"><? print $row['ip']; ?></td>
</tr>
<? } ?>
<tr>
<td colspan="4" class="EM_data_table_header">&nbsp;</td>
</tr>
</tbody>
</table>

</td>
</tr>
</table>
<? }elseif(isset($_REQUEST['view']) && $_REQUEST['view'] == "info"){ ?>
<iframe width="100%" height="500px" src="phpinfo.php"></iframe>
<? }elseif(isset($_REQUEST['view']) && $_REQUEST['view'] == "license"){ ?>
<form method="post" action="index.php">
<table width="100%" cellpadding=0 cellspacing=1 class="EM_data_table">
<tbody>
<tr>
<td colspan="2" class="EM_data_table_header">Update Software License
<input type="hidden" name="do" value="license"></td>
</tr>
<tr>
<td class="EM_data_table_inputarea1">Currenct License</td>
<td class="EM_data_table_inputarea1"><? print KEY_ID; ?></td>
</tr>
<tr>
<td width="248" class="EM_data_table_row2">Enter New License</td>
<td width="724" class="EM_data_table_inputarea2"><input name="newl" type="text" class="textbox" id="newl" size="45"></td>
</tr>
<tr>
<td colspan="2" class="EM_data_table_header"><input type="submit" name="Submit" value="<? print $emButtons['but3']; ?>" class="button"></td>
</tr>
</tbody>
</table>
</form>
<? } ?>
<? print $tdata[2]["contents"]; ?>

rafiki
08-07-2008, 12:50 PM
<?
############################################################
# eMeeting Dating / Community Software
############################################################
$subd = "../";
require_once $subd . "includes/sv_config.php";
require_once $subd . "includes/langs/".D_LANG.".php";
require_once $subd . "includes/db_connect.php";
$connector = new DbConnector();
require_once $subd . "includes/functions.php";
require_once $subd . "templates/admin1/adm_layout.php";
############################################################
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="65%" valign="top">
<table width="100%" cellpadding=0 cellspacing=1 class="EM_data_table">
<tbody>
<tr>
<td colspan="4" class="EM_data_table_header">Overview</td>
</tr>
<tr>
<td colspan="4" class="EM_data_table_header">&nbsp;</td>
</tr>
<tr valign="top">
<td width="48" height="48" align="center" class="EM_data_table_inputarea1"><img src="img/icons/overview/members.gif" width="48" height="48"></td>
<td width="246" align="center" class="EM_data_table_inputarea1"><table width="100%" border="0">
<tr>
<td><a href="members.php"><? print $emAdmin['5']; ?></a></td>
</tr>
<tr>
<td>

<a href="members.php"><? print $emAdmin['6']; ?></a>,
<a href="members.php?page=add"><? print $emAdmin['7']; ?>,
</a><a href="groups.php"><? print $emAdmin['8']; ?>,
</a><a href="upgrade.php"><? print $emAdmin['9']; ?>,
</a><a href="online.php" ><? print $emAdmin['10']; ?>,</a>
<a href="stats.php"><? print $emAdmin['11']; ?>.</a>

</td>
</tr>
</table></td>
<td width="48" align="center" class="EM_data_table_inputarea1"><img src="img/icons/overview/photos.gif" width="48" height="48"></td>
<td width="317" align="center" class="EM_data_table_inputarea1"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['12']); ?></td>
</tr>
<tr>
<td><a href="members.php" ><? print $emAdmin['13']; ?>,</a><a href="members.php" >
<? print $emAdmin['14']; ?>.</a></td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td align="center" class="EM_data_table_row2"><img src="img/icons/overview/web.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['15']); ?></td>
</tr>
<tr>
<td>

<a href="settings.php?view=5"><? print $emAdmin['16']; ?>,
</a><a href="settings.php?view=3"><? print $emAdmin['17']; ?>,
</a> <a href="settings.php?view=2"><? print $emAdmin['19']; ?>,
</a> <a href="settings.php?view=6"><? print $emAdmin['21']; ?>,
</a><a href="settings.php?view=7"><? print $emAdmin['20']; ?>.</a>

</td>
</tr>
</table></td>
<td align="center" class="EM_data_table_inputarea2"><img src="img/icons/overview/payment.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['23']); ?></td>
</tr>
<tr>
<td><a href="payment.php"><? print $emAdmin['16']; ?></a></td>
</tr>
<tr>
<td><form method="post" action="payment.php?view=">
<select name="gateway">
<option value="0">NoChex</option>
<option value="1">Paypal</option>
<option value="2">2Checkout</option>
<option value="3">Authorize.net</option>
<option value="4">Cheque/Money order</option>
<option value="5">Bank Payment</option>
<option value="6">Worldpay</option>
<option value="7">e-Gold</option>
<option value="8">USA</option>
<option value="10">Moneybookers</option>
<option value="9">AlterPay</option>
<option value="11">E-Path</option>
<option value="12">Netstores</option>
<option value="13">Paymate</option>
</select>
<input type="submit" name="Submit2" value="select">
</form></td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td align="center" class="EM_data_table_row2"><img src="img/icons/overview/profile.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><a href="members.php" >
</a> <table width="100%" border="0">
<tr>
<td><? print S($emAdmin['30']); ?></td>
</tr>
<tr>
<td><a href="fields.php"><? print $emAdmin['31']; ?></a>
<a href="badwords.php">,<? print $emAdmin['33']; ?></a>
<a href="backup.php">,<? print $emAdmin['34']; ?></a></td>
</tr>
</table></td>
<td align="center" class="EM_data_table_inputarea2"><img src="img/icons/overview/templates.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2">
<table width="100%" border="0">
<tr>
<td><? print S($emAdmin['35']); ?></td>
</tr>
<tr>
<td><a href="template_design.php?view=change"><? print $emAdmin['36']; ?>, </a>
<a href="template_design.php?view=edit"><? print $emAdmin['312']; ?>.</a>
</td>
</tr>
</table></td>
</tr>
<tr valing="top">
<td align="center" class="EM_data_table_row2"><img src="img/icons/overview/tools.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['52']); ?></td>
</tr>
<tr>
<td><a href="pages.php"><? print $emAdmin['53']; ?></a>,
<a href="banners.php"><? print $emAdmin['54']; ?></a>,
<a href="feedback.php"><? print $emAdmin['55']; ?></a>,
<a href="tools.php"><? print $emAdmin['56']; ?></a>,
<a href="billing.php"><? print $emAdmin['0']; ?></a>,
<a href="help.php"><? print $emAdmin['22']; ?></a>,
<a href="faq.php">F.A.Q</a>.
</td>
</tr>
</table></td>
<td align="center" class="EM_data_table_inputarea2"><img src="img/icons/overview/mail.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"> <table width="100%" border="0">
<tr>
<td><? print S($emAdmin['57']); ?></td>
</tr>
<tr>
<td><a href="email.php"><? print $emAdmin['58']; ?></a>,
<a href="settings.php?view=1"><? print $emAdmin['59']; ?></a>,
<a href="newsletters.php"><? print $emAdmin['60']; ?></a>,
<a href="email.php?page=ext"><? print $emAdmin['060']; ?></a>.
</td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td align="center" class="EM_data_table_row2"><img src="img/icons/overview/chat.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['61']); ?></td>
</tr>
<tr>
<td><a href="chat.php"><? print $emAdmin['66']; ?></a>,
<a href="chat.php"><? print $emAdmin['68']; ?></a>
</td>
</tr>
</table></td>
<td align="center" class="EM_data_table_inputarea2"><img src="img/icons/overview/forum.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['66']); ?></td>
</tr>
<tr>
<td><a href="forum.php"><? print $emAdmin['62']; ?></a></td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td align="center" class="EM_data_table_row2"><img src="img/icons/overview/plugins.gif" width="48" height="48"></td>
<td align="center" class="EM_data_table_inputarea2"><table width="100%" border="0">
<tr>
<td><? print S($emAdmin['69']); ?></td>
</tr>
<tr>
<td><a href="userplane.php">Userplane</a></td>
</tr>
</table></td>
<td align="center" class="EM_data_table_inputarea2">&nbsp;</td>
<td align="center" class="EM_data_table_inputarea2">&nbsp;</td>
</tr>
<tr>
<td colspan="4" class="EM_data_table_header">&nbsp;</td>
</tr>
</tbody>
</table> </td>
<td width="1%">&nbsp;</td>
<td width="34%" valign="top"> <table width="100%" cellpadding=0 cellspacing=1 class="EM_data_table">
<tbody>
<tr>
<td colspan="4" class="EM_data_table_header">Last 20 Login Attempts</td>
</tr>
<tr>
<td class="EM_data_table_inputarea1">&nbsp;</td>
<td align="center" class="EM_data_table_inputarea1"><? print $emAdmin['128']; ?></td>
<td align="center" class="EM_data_table_inputarea1">Time/Date</td>
<td align="center" class="EM_data_table_inputarea1">IP</td>
</tr>
<?

## DISPLAY LOGIN ATTEMPTS
$RunThisLogCheck = "SELECT username,date,time,ip, value FROM frm_adminlog ORDER by id DESC LIMIT 20";
$LogResult = $connector->query($RunThisLogCheck);
while ($row = $connector->fetchArray($LogResult)){
if($row['value'] == 1){$bg = "#E2FFD9"; $bgimage = "box_yes.gif";}else{$bg = "#FFDDDD"; $bgimage = "box_error.gif";}
?>
<tr>
<td width="20" class="EM_data_table_row2"><img src="img/icons/<? print $bgimage; ?>" width="16" height="16">
</td>
<td width="125" align="center" class="EM_data_table_row2"><? print $row['username']; ?></td>
<td width="173" align="center" class="EM_data_table_inputarea2"><? print $row['time']."/". $row['date']; ?></td>
<td align="center" class="EM_data_table_inputarea2"><? print $row['ip']; ?></td>
</tr>
<? } ?>
<tr>
<td colspan="4" class="EM_data_table_header">&nbsp;</td>
</tr>
</tbody>
</table>

</td>
</tr>
</table>
<? }elseif(isset($_REQUEST['view']) && $_REQUEST['view'] == "info"){ ?>
<iframe width="100%" height="500px" src="phpinfo.php"></iframe>
<? }elseif(isset($_REQUEST['view']) && $_REQUEST['view'] == "license"){ ?>
<form method="post" action="index.php">
<table width="100%" cellpadding=0 cellspacing=1 class="EM_data_table">
<tbody>
<tr>
<td colspan="2" class="EM_data_table_header">Update Software License
<input type="hidden" name="do" value="license"></td>
</tr>
<tr>
<td class="EM_data_table_inputarea1">Currenct License</td>
<td class="EM_data_table_inputarea1"><? print KEY_ID; ?></td>
</tr>
<tr>
<td width="248" class="EM_data_table_row2">Enter New License</td>
<td width="724" class="EM_data_table_inputarea2"><input name="newl" type="text" class="textbox" id="newl" size="45"></td>
</tr>
<tr>
<td colspan="2" class="EM_data_table_header"><input type="submit" name="Submit" value="<? print $emButtons['but3']; ?>" class="button"></td>
</tr>
</tbody>
</table>
</form>
<? } ?>
<? print $tdata[2]["contents"]; ?>
Just for read-ability.

derzok
08-07-2008, 01:32 PM
Look carefully at what you've got below:



## DISPLAY LOGIN ATTEMPTS
$RunThisLogCheck = "SELECT username,date,time,ip, value FROM frm_adminlog ORDER by id DESC LIMIT 20";
$LogResult = $connector->query($RunThisLogCheck);
while ($row = $connector->fetchArray($LogResult)){
if($row['value'] == 1){$bg = "#E2FFD9"; $bgimage = "box_yes.gif";}else{$bg = "#FFDDDD"; $bgimage = "box_error.gif";}
?>
<tr>
<td width="20" class="EM_data_table_row2"><img src="img/icons/<? print $bgimage; ?>" width="16" height="16">
</td>
<td width="125" align="center" class="EM_data_table_row2"><? print $row['username']; ?></td>
<td width="173" align="center" class="EM_data_table_inputarea2"><? print $row['time']."/". $row['date']; ?></td>
<td align="center" class="EM_data_table_inputarea2"><? print $row['ip']; ?></td>
</tr>
<? } ?>
<tr>
<td colspan="4" class="EM_data_table_header">&nbsp;</td>
</tr>
</tbody>
</table>

</td>
</tr>
</table>
<? }elseif(isset($_REQUEST['view']) && $_REQUEST['view'] == "info"){ ?>
<iframe width="100&#37;" height="500px" src="phpinfo.php"></iframe>
<? }elseif(isset($_REQUEST['view']) && $_REQUEST['view'] == "license"){ ?>
<form method="post" action="index.php">
<table width="100%" cellpadding=0 cellspacing=1 class="EM_data_table">
<tbody>
<tr>
<td colspan="2" class="EM_data_table_header">Update Software License
<input type="hidden" name="do" value="license"></td>
</tr>
<tr>
<td class="EM_data_table_inputarea1">Currenct License</td>
<td class="EM_data_table_inputarea1"><? print KEY_ID; ?></td>
</tr>
<tr>
<td width="248" class="EM_data_table_row2">Enter New License</td>
<td width="724" class="EM_data_table_inputarea2"><input name="newl" type="text" class="textbox" id="newl" size="45"></td>
</tr>
<tr>
<td colspan="2" class="EM_data_table_header"><input type="submit" name="Submit" value="<? print $emButtons['but3']; ?>" class="button"></td>
</tr>
</tbody>
</table>
</form>
<? } ?>
<? print $tdata[2]["contents"]; ?>


Without the html (to make it easier to spot the error):


## DISPLAY LOGIN ATTEMPTS
$RunThisLogCheck = "SELECT username,date,time,ip, value FROM frm_adminlog ORDER by id DESC LIMIT 20";
$LogResult = $connector->query($RunThisLogCheck);
while ($row = $connector->fetchArray($LogResult)){
if($row['value'] == 1) {
$bg = "#E2FFD9";
$bgimage = "box_yes.gif";
} else {
$bg = "#FFDDDD";
$bgimage = "box_error.gif";
}
print $row['username'];
print $row['time']."/". $row['date'];
print $row['ip'];
}

}elseif(isset($_REQUEST['view']) && $_REQUEST['view'] == "info"){

}elseif(isset($_REQUEST['view']) && $_REQUEST['view'] == "license"){

}
print $tdata[2]["contents"];


See how that "} elseif..." just comes out of nowhere? What's it in reference to?

rafiki
08-07-2008, 02:29 PM
Also any half decent editors would have a function called select matching brace's which could of helped you with this error.

northernfire
08-07-2008, 03:18 PM
like i said tho.. i dont know...anything bout coding... i didnt code it.. im just trying to install emeeting .. and this is my error.. which im trying to get help with.. so i have no idea... i dont even know of editors that would help me..

so i dont know what to do..

its like opening a book but you dont know how to read..

i was just hoping someone would be able to help a complete dummy to this..

Nightfire
08-07-2008, 03:25 PM
You've been shown the error in the 2nd reply.

Look at your opening braces { and your closing ones }. You have 1 too many closing ones.



<? }elseif(isset($_REQUEST['view']) && $_REQUEST['view'] == "info"){ ?>


Delete the first one }

derzok
08-07-2008, 03:33 PM
I think he (sorry if you're a lady, northernfire) might need to remove the "else" part of the elseif also. Otherwise PHP will complain about a floating elseif in the middle of his code. Try turning it into:



<? if(isset($_REQUEST['view']) && $_REQUEST['view'] == "info"){ ?>


You said this is third party software? You should ask their support forums about it - if you're having this error out of the box, I'm sure someone else is. There might even be a patch for it.

hinch
08-07-2008, 03:47 PM
could try replacing lines 238 - 240 with the following see if that works



<? } elseif (isset($_REQUEST['view']) && ($_REQUEST['view'] == "info")){ ?>
<iframe width="100&#37;" height="500px" src="phpinfo.php"></iframe>
<? } elseif (isset($_REQUEST['view']) && ($_REQUEST['view'] == "license")){ ?>

northernfire
08-07-2008, 04:07 PM
i am female...lol

and thank you all for your help... nothing is working.. im just going to try another program..

thanks again

your help has been appreciated

derzok
08-07-2008, 04:39 PM
Good luck! Post back if you've got any other questions.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum