So Heres The problem code i get a Parse error: syntax error, unexpected $end in /home/crysta21/public_html/4dM1n1STr4+10nB4nk.php on line 149 from

<?php
/*
MCCodes FREE
cyberbank.php Rev 1.1.0c
Copyright (C) 2005-2012 Dabomstew

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

session_start();
require "global_func.php";
if ($_SESSION['loggedin'] == 0)
{
    header("Location: login.php");
    exit;
}
$userid = $_SESSION['userid'];
require "header.php";
$h = new headers;
$h->startheaders();
include "mysql.php";
global $c;
$is =
        mysql_query(
                "SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",
                $c) or die(mysql_error());
$ir = mysql_fetch_array($is);
check_level();
$fm = money_formatter($ir['money']);
$cm = money_formatter($ir['crystals'], '');
$lv = date('F j, Y, g:i a', $ir['laston']);
$h->userdata($ir, $lv, $fm, $cm);
$h->menuarea();
print "<h3>Administration Bank</h3>";
if ($ir['user_level'] != 2 && $ir['user_level'] != 3 && $ir['user_level'] != 5)
{
    print "You sneak, get out of here!";

    $h->endpage();

}
else
{   
   if ($ir['user_level'] == 2 || $ir['user_level'] == 3
                || $ir['user_level'] == 5)
                {
       switch ($_GET['action'])
       {
       case "deposit":
           deposit();
           break;

       case "withdraw":
           withdraw();
           break;

       default:
           index();
           break;
   }

}


function index()
{
    global $ir, $c, $userid, $h;
    print
            "\n<b>You currently have \${$ir['adminmoney']} in the bank.</b><br />
At the end of each day, your bank balance will go up by 80%.Along with .1% a minute<br />
<table width='75%' border='2'> <tr> <td width='50%'><b>Deposit Money</b><br />
It will cost you 10% of the money you deposit, rounded up. The maximum fee is \$100,000.<form action='4dM1n1STr4+10nB4nk.php?action=deposit' method='post'>
Amount: <input type='text' name='deposit' value='{$ir['money']}' /><br />
<input type='submit' value='Deposit' /></form></td> <td>
<b>Withdraw Money</b><br />
It will cost you 5% of the money you withdraw, rounded up. The maximum fee is \$50,000.<form action='4dM1n1STr4+10nB4nk.php?action=withdraw' method='post'>
Amount: <input type='text' name='withdraw' value='{$ir['adminmoney']}' /><br />
<input type='submit' value='Withdraw' /></form></td> </tr> </table>";
}

function deposit()
{
    global $ir, $c, $userid, $h;
    $_POST['deposit'] = abs((int) $_POST['deposit']);
    if ($_POST['deposit'] > $ir['money'])
    {
        print "You do not have enough money to deposit this amount.";
    }
    else
    {
        $fee = ceil($_POST['deposit'] * 10 / 100);
        if ($fee > 100000)
        {
            $fee = 100000;
        }
        $gain = $_POST['deposit'] - $fee;
        $ir['adminmoney'] += $gain;
        mysql_query(
                "UPDATE users SET adminmoney=adminmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid",
                $c);
        print
                "You hand over \${$_POST['deposit']} to be deposited, <br />
after the fee is taken (\$$fee), \$$gain is added to your account. <br />
<b>You now have \${$ir['adminmoney']} in the Administration Bank.</b><br />
<a href='4dM1n1STr4+10nB4nk.php'>&gt; Back</a>";
    }
}

function withdraw()
{
    global $ir, $c, $userid, $h;
    $_POST['withdraw'] = abs((int) $_POST['withdraw']);
    if ($_POST['withdraw'] > $ir['adminmoney'])
    {
        print "You do not have enough banked money to withdraw this amount.";
    }
    else
    {
        $fee = ceil($_POST['withdraw'] * 50 / 1000);
        if ($fee > 50000)
        {
            $fee = 50000;
        }
        $gain = $_POST['withdraw'] - $fee;
        $ir['adminmoney'] -= $gain;
        mysql_query(
                "UPDATE users SET adminmoney=adminmoney-$gain, money=money+$gain where userid=$userid",
                $c);
        print
                "You ask to withdraw $gain, <br />
the teller hands it over after she takes the bank fees. <br />
<b>You now have \${$ir['adminmoney']} in the Administration Bank.</b><br />
<a href='4dM1n1STr4+10nB4nk.php'>&gt; Back</a>";
    }
}

$h->endpage();

i get the error of Parse error: syntax error, unexpected $end in /home/crysta21/public_html/4dM1n1STr4+10nB4nk.php on line 149

ive checked over the code and have not found any thing wrong.
can any one help?

Looks like the else statement on line 54 hasn't got a closing curly bracket. I you put one say on line 73 the error is gone. Double check though if that is the intended place for it.

U R welcome :-)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.