Olaf Lederer
11-30-2006, 11:01 PM
hello,
I noticed that there is no email send after the payment is done:
function getAdmins()
{
$sql = "SELECT * ";
$sql .= "FROM `{$this->mPrefix}admins` ";
$sql .= "WHERE `status` = 'active'";
return $this->mDb->getRow($sql);
}
must be
function getAdmins()
{
$sql = "SELECT * ";
$sql .= "FROM `{$this->mPrefix}admins` ";
$sql .= "WHERE `status` = 'active'";
return $this->mDb->getAll($sql);
}
further there is bug inside the file "purchase-complete.php"
the method
$gDirDb->setPlan($id_link, $id_plan, $tid);
is called already via the paypal plugin
further it makes no sense to activate the link after the payment is done, what if the link is from an illegal website?
I removed this code (and added a simple return)
$sql = "UPDATE `{$this->mPrefix}links` ";
$sql .= "SET `status` = 'active' ";
$sql .= "WHERE `id` = '{$aLink}'";
return $this->mDb->query($sql);
I noticed that there is no email send after the payment is done:
function getAdmins()
{
$sql = "SELECT * ";
$sql .= "FROM `{$this->mPrefix}admins` ";
$sql .= "WHERE `status` = 'active'";
return $this->mDb->getRow($sql);
}
must be
function getAdmins()
{
$sql = "SELECT * ";
$sql .= "FROM `{$this->mPrefix}admins` ";
$sql .= "WHERE `status` = 'active'";
return $this->mDb->getAll($sql);
}
further there is bug inside the file "purchase-complete.php"
the method
$gDirDb->setPlan($id_link, $id_plan, $tid);
is called already via the paypal plugin
further it makes no sense to activate the link after the payment is done, what if the link is from an illegal website?
I removed this code (and added a simple return)
$sql = "UPDATE `{$this->mPrefix}links` ";
$sql .= "SET `status` = 'active' ";
$sql .= "WHERE `id` = '{$aLink}'";
return $this->mDb->query($sql);