H69UNtblNBNpha2dtB1Odn8qYp1Qk5NK2gi7yfceofo9N
/
home
/
ymswebso
/
public_html
/
postads
/
control
/
Nama File / Folder
Size
Action
Wp
--
NONE
css
--
NONE
ddlevelsfiles
--
NONE
editor
--
NONE
images
--
NONE
includes
--
NONE
js
--
NONE
Thumbs.db
5.5KB
Hapus
Edit
Rename
ad_business_listing_search.php
19.885KB
Hapus
Edit
Rename
as-edit-main-image.php
1.42KB
Hapus
Edit
Rename
edit-ad_listing.php
24.004KB
Hapus
Edit
Rename
edit-city-process.php
1.946KB
Hapus
Edit
Rename
edit-city.php
5.485KB
Hapus
Edit
Rename
edit-featured_listing.php
22.988KB
Hapus
Edit
Rename
edit-list-silver-process.php
5.944KB
Hapus
Edit
Rename
edit-states-process.php
1.985KB
Hapus
Edit
Rename
edit-sub-category.php
6.637KB
Hapus
Edit
Rename
fckeditor_php4.php
6.037KB
Hapus
Edit
Rename
feature_ad_edit-process.php
4.382KB
Hapus
Edit
Rename
gold_deal_update_process.php
2.608KB
Hapus
Edit
Rename
gold_sub_image_edit.php
1.733KB
Hapus
Edit
Rename
header.php
7.578KB
Hapus
Edit
Rename
index.php
4.549KB
Hapus
Edit
Rename
main-business-list.php
14.005KB
Hapus
Edit
Rename
main-delite_listing.php
0.502KB
Hapus
Edit
Rename
manage-city.php
5.684KB
Hapus
Edit
Rename
manage-expired-featured.php
18.887KB
Hapus
Edit
Rename
manage-users.php
14.106KB
Hapus
Edit
Rename
new_business-process.php
4.474KB
Hapus
Edit
Rename
news-letter-mail.php
2.75KB
Hapus
Edit
Rename
notfound.php
1.504KB
Hapus
Edit
Rename
send-customer-email.php
2.841KB
Hapus
Edit
Rename
set-expiry-admin.php
3.732KB
Hapus
Edit
Rename
showmaincategories.php
0.455KB
Hapus
Edit
Rename
silver_deal_process.php
1.005KB
Hapus
Edit
Rename
silver_deal_update_process.php
2.641KB
Hapus
Edit
Rename
video-upload-process.php
0.9KB
Hapus
Edit
Rename
<=Back
<?php ob_start(); ?> <?php include("includes/session.php"); ?> <?php include("checkextension.php"); ?> <?php include("includes/login-verify.php"); ?> <?php include("includes/connection.php"); ?> <?php include("fckeditor.php"); ?> <?php $did = $_REQUEST['id']; $rand_value = rand(500000000,10); $rand_value_encrypted = md5($rand_value); $today=date("Y-n-j H:i:s"); $opening_hours = htmlspecialchars($_POST['opening_hours'], ENT_QUOTES); $payment_option = htmlspecialchars($_POST['payment_option'], ENT_QUOTES); $services = htmlspecialchars($_POST['services'], ENT_QUOTES); $business_name = htmlspecialchars($_POST['business_name'], ENT_QUOTES); $building_name = htmlspecialchars($_POST['building_name'], ENT_QUOTES); $unit_level = htmlspecialchars($_POST['unit_level'], ENT_QUOTES); $street_number = htmlspecialchars($_POST['street_number'], ENT_QUOTES); $street_name = htmlspecialchars($_POST['street_name'], ENT_QUOTES); $street_type = htmlspecialchars($_POST['street_type'], ENT_QUOTES); $suberb = htmlspecialchars($_POST['suberb'], ENT_QUOTES); $city = htmlspecialchars($_POST['city'], ENT_QUOTES); $state = htmlspecialchars($_POST['state'], ENT_QUOTES); $post_code = htmlspecialchars($_POST['post_code'], ENT_QUOTES); $address_display = htmlspecialchars($_POST['address_display'], ENT_QUOTES); $local_phone = htmlspecialchars($_POST['local_phone'], ENT_QUOTES); $national_phone = htmlspecialchars($_POST['national_phone'], ENT_QUOTES); $mobile_phone = htmlspecialchars($_POST['mobile_phone'], ENT_QUOTES); $fax_number = htmlspecialchars($_POST['fax_number'], ENT_QUOTES); $preferred_contact_number = htmlspecialchars($_POST['preferred_contact_number'], ENT_QUOTES); $business_email = htmlspecialchars($_POST['business_email'], ENT_QUOTES); $business_website = htmlspecialchars($_POST['business_website'], ENT_QUOTES); $main_category = htmlspecialchars($_POST['car_name'], ENT_QUOTES); $sub_category=@array_unique($_POST['car_model']); $member_id = $_POST['member_id']; if ((count($sub_category)>0)) { $sub_category=@implode(',',@array_unique($_POST['car_model'])); } $business_slogan = htmlspecialchars($_POST['business_slogan'], ENT_QUOTES); $description = htmlspecialchars($_POST['description'], ENT_QUOTES); function f_extension($fn) { $str=explode('/',$fn); $len=count($str); $str2=explode('.',$str[($len-1)]); $len2=count($str2); $ext=$str2[($len2-1)]; return $ext; } $img_1 = $_FILES['img_1']['name']; if($img_1 != "") { $business_ad_image = $_FILES['img_1']['name']; $filename = $business_ad_image; $ext = end(explode('.', $filename)); $ext = substr(strrchr($filename, '.'), 1); $ext = substr($filename, strrpos($filename, '.') + 1); $ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $filename); $exts = split("[/\\.]", $filename); $n = count($exts)-1; $ext = $exts[$n]; $rand_number=rand()."".rand(5, 10); $new_file_name=$rand_number.".".$ext; $path= "../imgs/".$new_file_name; if($ext=="jpg" || $ext=="jpeg" || $ext=="gif" || $ext=="png" || $ext=="bmp" || $ext=="JPG" || $ext=="JPEG" || $ext=="GIF") { move_uploaded_file($_FILES['img_1']['tmp_name'], $path); } } ////////////////////////////////////////////////////////////////////////////////////////// $sql="insert into business_ads(opening_hours, payment_option, services, member_id, rand_value, listing_type, business_name, building_name, unit_level, street_number, street_name, street_type, suberb, city, state, post_code, address_display, local_phone, national_phone, mobile_phone, fax_number, preferred_contact_number, business_email, business_slogan, main_category, sub_category, description, business_ad_image, status, created, modified, business_order)VALUES('$opening_hours', '$payment_option', '$services' ,'$member_id', '$rand_value_encrypted', 'business', '$business_name', '$building_name', '$unit_level', '$street_number', '$street_name', '$street_type', '$suberb', '$city', '$state', '$post_code', '$address_display', '$local_phone', '$national_phone', '$mobile_phone', '$fax_number', '$preferred_contact_number', '$business_email', '$business_slogan', '$main_category', '$sub_category', '$description', '$new_file_name', '1', '$today', '$today', '3')"; $result=mysql_query($sql); $_SESSION['msg'] = "<div class='message' style='width:95%; text-align:center; height:25px; background-color:#FEDC65; margin:6px;'>Your business listing has been successfully created and published on our website.</div>"; header ("Location: manage-business-listings"); ?> <?php ob_flush(); ?>
Liking