<?php session_start(); if (!isset($_SESSION['user'])) { echo "You are not authorized to see this content.<br /> Please <a href='#' onclick='signin()'>Sign In</a> to view the contents."; } else { require 'Value_Object/User.php'; require 'Logic/UserLogic.php'; $user = new User(); $userlogic = new UserLogic(); $user = $userlogic->GetUser($_SESSION['user']); ?> <div id="profile" > <form id="editPro" name="editPro" method="post" action="editProfile.php" onkeydown="keyeProfile(event)"> <table width="70%" height="339" border="1"> <tr> <td class="vtop centered" width="27%"> <span id="pic"> <img src="<?php echo $user->picpath; ?> " alt="Not Available" name="profilepic" width="160" height="155" id="profilepic" style="background-color: #999999" /> </span> </td> <td class="vtop lta" width="73%">
<?php session_start(); require_once 'Value_Object/User.php'; require_once 'Logic/UserLogic.php'; $user = new User(); $ul = new UserLogic(); $user = $ul->GetUser($_SESSION['user']); $ul->addAmount($_POST['amount'], $_SESSION['user']); ?> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="paypalForm" id="paypalForm"> <input type="hidden" name="cmd" value="_xclick"> <input type="image" src="images/paypallogo.gif" border="0" name="submit" alt="Make payments with PayPal - its fast, free and secure! CLICK HERE"> <input type="hidden" name="business" value="<?php echo $user->email; ?> "> <input type="hidden" name="return" value="localhost/eveiling/payPalacc.php"> <input type="hidden" name="amount" value="500"> <input type="hidden" name="item_name" value="Payment"> <input type="hidden" name="item_number" value="id"> <input type="hidden" name="no_shipping" value="0"> <input type="hidden" name="shipping" value="0"> <input type="hidden" name="cancel_return" value="http://localhost/eveiling/index.php"> <input type="hidden" name="notify_url" value="notification url"> <input type="hidden" name="no_note" value="0">( Are you sure u want to credit your accounr? ) <center><input type="submit" value="Click To Proceed"></center> </form> <div id="eee"></div>