WeBid Bug Tracking

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000296WeBidAuctionspublic2011-07-02 17:142012-12-13 16:16
Reporterpani100 
Assigned To 
PriorityurgentSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version1.0.2 
Target VersionFixed in Version1.1.0 
Summary0000296: message.php errors
DescriptionIn message.php for suspended auctions have a problem with $url line 37 and line 49 :

[PHP]$system->SETTINGS['sitename'] needs to be: $system->SETTINGS['siteurl'][/PHP]

This is the code:

[PHP] $url = $system->SETTINGS['sitename'] . 'pay.php?a=6&auction_id=' . $auction_data['id'];

    $body = sprintf($MSG['777'], $auction_data['title'], $url);

}

elseif ($user->logged_in && $user->user_data['suspended'] == 5)

{

    $query = "SELECT a.title, a.id FROM " . $DBPrefix . "auctions a

            LEFT JOIN " . $DBPrefix . "winners w ON (w.auction = a.id)

            WHERE w.ff_paid = 0 AND w.seller = " . $user->user_data['id'];

    $res = mysql_query($query);

    $system->check_mysql($res, $query, __LINE__, __FILE__);

    $auction_data = mysql_fetch_assoc($res);

    $title = $MSG['753'];

    $url = $system->SETTINGS['sitename'] . 'pay.php?a=7&auction_id=' . $auction_data['id'];

    $body = sprintf($MSG['796'], $auction_data['title'], $url);

}

else[/PHP]



And it should be?



    [PHP]$url = $system->SETTINGS['siteurl'] . 'pay.php?a=6&auction_id=' . $auction_data['id'];

    $body = sprintf($MSG['777'], $auction_data['title'], $url);

}

elseif ($user->logged_in && $user->user_data['suspended'] == 5)

{

    $query = "SELECT a.title, a.id FROM " . $DBPrefix . "auctions a

            LEFT JOIN " . $DBPrefix . "winners w ON (w.auction = a.id)

            WHERE w.ff_paid = 0 AND w.seller = " . $user->user_data['id'];

    $res = mysql_query($query);

    $system->check_mysql($res, $query, __LINE__, __FILE__);

    $auction_data = mysql_fetch_assoc($res);

    $title = $MSG['753'];

    $url = $system->SETTINGS['siteurl'] . 'pay.php?a=7&auction_id=' . $auction_data['id'];

    $body = sprintf($MSG['796'], $auction_data['title'], $url);

}

else[/PHP]



Also on line 40 we have: [PHP]elseif ($user->logged_in && $user->user_data['suspended'] == 5)[/PHP]

but in line 49 it refers to a=7 ([PHP]$url = $system->SETTINGS['sitename'] . 'pay.php?a=7&auction_id=' . $auction_data['id'];[/PHP])

should line 40 also be changed too? :

[PHP]$url = $system->SETTINGS['siteurl'] . 'pay.php?a=5&auction_id=' . $auction_data['id'];[/PHP]



not sure on that one.
TagsNo tags attached.
import_id298
Thread
Attached Files

- Relationships

-  Notes
(0000846)
drgonzo3000 (reporter)
2011-09-16 13:29
edited on: 2011-09-16 13:33

No line 49 needs to stay as 7 as it refers to a differnet type of suspension:


suspended possible values:
0 = active user
1 = suspended by the admin
5 = account suspended until user pays final value fee
6 = account suspended until user pays buyer fee
7 = account suspended until user repays debt
8 = account not activated by user
9 = signup fee not paid
10 = requires admin approval

- Issue History
Date Modified Username Field Change
2015-04-01 13:17 renlok New Issue
2015-04-01 13:17 renlok import_id => 298
2015-04-01 13:17 renlok Date Submitted 2015-04-01 13:17 => 2011-07-02 17:14
2015-04-01 13:17 renlok Last Update 2015-04-01 13:17 => 2012-12-13 16:16


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker