<?php /** * Created by PhpStorm. * User: Garrett * Date: 3/7/2015 * Time: 06:10 */ require_once "classes/Donorbid.php"; $id = $_GET['id']; $amt = $_GET['amt']; $product = $db->getProduct($id); if (is_null($product)) { $product = new Item(); } $charity = $db->getCharity($product->getCharity()); if (is_null($charity)) { $charity = new Charity(); } $seller = $product->getSeller(); if (is_null($seller)) { $seller = new User(); } $user = $_SESSION['user']; if (!$util->isValidUser($user)) { //Disabled until login is working! header('Location: login.php'); } else { } //temporary here $seller->setImage("images/creep.jpg");