# 59 Temple Place, # Suite 330, # Boston, MA 02111-1307 USA # # $Id: edit_listing.php,v 1.2 2005/02/19 16:53:35 filetreefrog Exp $ ################################################## if (!defined("PATHOS")) { exit(""); } $listing = null; if (isset($_GET['id'])) { $listing = $db->selectObject("listing", "id=" . $_GET['id']); if ($listing != null) { $loc = unserialize($listing->location_data); } } if (pathos_permissions_check("manage", $loc)) { $config = $db->selectObject('listingmodule_config', "location_data='" . serialize($loc) . "'"); if ($config == null) { //do nothing here yes. } $form = listing::form($listing); $form->location($loc); $form->meta("action", "save_listing"); $template = new template("listingmodule", "_form_editlisting", $loc); $template->assign("is_edit", isset($listing->id) ? 1 : 0); $template->assign("form_html", $form->toHTML()); $template->output(); } else { echo SITE_403_HTML; }