Variables | |
$link = getdb() | |
$realty = new freerealtyAdmin() | |
$query = "DELETE FROM ".$table_prefix."homes WHERE (id = '$delete')" | |
print Listing | $query = "select id_files from ".$table_prefix."tbl_Files where prop_num = $delete" |
$result = mysql_query($query, $link) | |
$image_order = addslashes($_POST['image_order']) | |
$sql = "update ".$table_prefix."tbl_Files set description='$desc', image_order = '$image_order' " | |
$query | |
$result = mysql_query("$query",$link) | |
$image_order = $image_row['image_order'] | |
$description = stripslashes($image_row['description']) | |
$filename = stripslashes($image_row['filename']) | |
return | |
$title = addslashes($title) | |
$address = addslashes($address) | |
$city = addslashes($city) | |
$previewdesc = addslashes($previewdesc) | |
$fulldesc = addslashes($fulldesc) | |
$neighborhood = addslashes($neighborhood) | |
$notes = addslashes($notes) | |
$proptax = ereg_replace("[^[:alnum:]]","",$proptax) | |
$price_low = ereg_replace("[^[:alnum:]]","",$price_low) | |
$price_hi = ereg_replace("[^[:alnum:]]","",$price_hi) | |
$fulldesc = ereg_replace("(\r\n|\n|\r)", "<br>", $fulldesc) | |
$query = "SELECT agent, agenturl, agentemail from ".$table_prefix."agents where id = '$owner'" | |
$result = mysql_query($query,$link) | |
$query = "UPDATE ".$table_prefix."homes SET title = '$title', address = '$address', city = '$city', state = '$state', zip = '$zip', price = '$price', previewdesc = '$previewdesc', fulldesc = '$fulldesc', type = '$type', imageloc = '$imageloc', beds ='$beds', baths='$baths', status='$status', featured='$featured', mls='$mls', neighborhood='$neighborhood', agent='$agent', agenturl='$agenturl', agentemail='$agentemail', notes = '$notes', owner = '$owner', yearbuilt= '$yearbuilt', sqfeet = '$sqfeet', lotsize= '$lotsize', numfloors = '$numfloors', garagesize = '$garagesize', proptax = '$proptax', country = '$country', virtualtour = '$virtualtour', dateavailable = '$dateavailable', heat = '$heat', style = '$style', onmarket = '$onmarket', price_low = '$price_low', price_hi = '$price_hi', nearby = '$nearby', floorplan = '$floorplan', dateupdated = '$dateupdated' WHERE id='$modify'" | |
$address = addslashes($address) | |
$city = addslashes($city) | |
$previewdesc = addslashes($previewdesc) | |
$fulldesc = addslashes($fulldesc) | |
$neighborhood = addslashes($neighborhood) | |
$proptax = ereg_replace("[^[:alnum:]]","",$proptax) | |
$price_low = ereg_replace("[^[:alnum:]]","",$price_low) | |
$price_hi = ereg_replace("[^[:alnum:]]","",$price_hi) | |
$query = "SELECT agent, agentemail, agenturl from ".$table_prefix."agents where id = '$owner'" | |
$result = mysql_query($query,$link) | |
$query = "INSERT INTO ".$table_prefix."homes (title, address, city, state, zip, price, previewdesc, fulldesc, type, imageloc, beds, baths, status, featured, mls, neighborhood, agent, agenturl, agentemail, notes, owner, yearbuilt, sqfeet, lotsize, numfloors, garagesize, proptax, country, virtualtour, dateavailable, heat, style, onmarket, price_low, price_hi, nearby, floorplan, dateposted) values ('$title', '$address', '$city', '$state', '$zip', '$price', '$previewdesc', '$fulldesc', '$type', '$imageloc', '$beds', '$baths', '$status', '$featured','$mls', '$neighborhood', '$agent', '$agenturl', '$agentemail', '$notes', '$owner', '$yearbuilt', '$sqfeet', '$lotsize', '$numfloors', '$garagesize', '$proptax', '$country', '$virtualtour', '$dateavailable', '$heat', '$style', '$onmarket', '$price_low', '$price_hi', '$nearby', '$floorplan', '$dateposted')" | |
$modify = mysql_insert_id($link) | |
print Your listing has been | added |
$a_row ['address'] = stripslashes($a_row['address']) | |
$a_row ['city'] = stripslashes($a_row['city']) | |
$a_row ['previewdesc'] = stripslashes($a_row['previewdesc']) | |
$a_row ['fulldesc'] = stripslashes($a_row['fulldesc']) | |
$a_row ['neighborhood'] = stripslashes($a_row['neighborhood']) | |
$a_row ['notes'] = stripslashes($a_row['notes']) | |
$a_row ['fulldesc'] = ereg_replace("<br />", "\r\n", $a_row['fulldesc']) | |
$query = "SELECT id_files,filename,filesize,thumb_size FROM ".$table_prefix."tbl_Files WHERE prop_num = $edit order by image_order " | |
$result = mysql_query("$query",$link) | |
$num_images = 0 | |
$num_images | |
print< divclass=\"admin\"> | Featured |
city | |
$sql = "select agent,id from ".$table_prefix."agents order by agent" | |
$res = mysql_query($sql, $link) | |
Agent | |
print</select >< br/> print< b > Please mark whichever features | apply |
city | |
Agent | |
$sql = "select agent,id from ".$table_prefix."agents order by agent" | |
$res = mysql_query($sql, $link) | |
print</div ></div >< br/>< /div > | $homes_key = "0" |
$link = getdb() |
Login is handled by an external file
$query |
Initial value:
"SELECT filename, id_files, prop_num,owner, thumb, thumb_size, thumb_filetype, description, image_order FROM " .$table_prefix."tbl_Files WHERE id_files = '$editimage'"
print city |