-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateListing.php
More file actions
40 lines (25 loc) · 1.18 KB
/
createListing.php
File metadata and controls
40 lines (25 loc) · 1.18 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
<?php
require_once("../config/config.php");
require_once("../includes/global.inc.php");
require_once( $fullPath."/membership/includes/checkLogin.inc.php");
require_once( $fullPath."/auction/classes/listingTools.class.php");
$content = "";
/******************************************************************************
PAGE LOGIC
****************************************************************************/
if (!isset($_SESSION['listing']) || isset($_GET['startNew'])) {
$listingTools = new listingTools();
$data = "";
$listing = $listingTools->loadListingSession($data);
unset($_SESSION['editing']);
} else if (isset($_SESSION['editing'])) {
$content = "<p>You are in EDITING mode <a href='createListing.php?startNew=1'>click here</a> to start a new listing.</p>";
}
$listing = unserialize($_SESSION['listing']);
/******************************************************************************
PAGE CONTENT
*****************************************************************************/
$heading = "Create Listing";
$include = "includes/createListingForm.inc.php";
require_once("themes/".$pageTools->getTheme("auction")."/templates/template.inc.php");
?>