-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsavedListings.php
More file actions
52 lines (32 loc) · 1.29 KB
/
savedListings.php
File metadata and controls
52 lines (32 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
require_once("../config/config.php");
require_once("../includes/global.inc.php");
require_once($fullPath . "/auction/classes/listingTools.class.php");
require_once($fullPath . "/membership/includes/checkLogin.inc.php");
$listingTools = new listingTools();
if (isset($_POST['listingID'])) {
$listingTools->loadExistingListing($_POST['listingID'], TRUE);
$listing = unserialize($_SESSION['listing']);
}
if (isset($_POST['edit'])) {
$listingTools->moveTempPhotos($listing->getID(),$listing->getPhotos(),1);
$_SESSION['editing'] = 1;
header("Location: createListing.php");
}
if (isset($_POST['preview'])) {
$listingTools->moveTempPhotos($listing->getID(),$listing->getPhotos(),1);
$_SESSION['editing'] = 1;
header("Location: previewListing.php");
}
if (isset($_POST['publish'])) {
header("Location: publishListing.php");
}
if (isset($_POST['delete'])) {
$listingTools->deleteListing($_POST['listingID']);
$listingTools->unsetListing();
}
$heading = "Saved Listings";
$help = "You can create auctions when you have free time and save them ready to list when required. It also facillitates re-listing auctions on the fly!";
$include = "includes/savedListings.inc.php";
require_once("themes/".$pageTools->getTheme("auction")."/templates/template.inc.php");
?>