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
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 $redirect_page = $_POST['redirect_page']; $id=$_POST['lid']; $title = $_POST['deal_title']; $deal_image = isset($_FILES['deal_image']) ? $_FILES['deal_image']['name'] : ''; $deal_description = isset($_POST['deal_description']) ? $_POST['deal_description'] : ''; $value = $_POST['deal_value']; $today=date("Y-n-j H:i:s"); ////////////////////////////////////////////////////////////////////// $deal_image = $_FILES['deal_image']['name']; //////// checking file extension ///////////// $filename = $deal_image; // 1. The "explode/end" approach $ext = end(explode('.', $filename)); // 2. The "strrchr" approach $ext = substr(strrchr($filename, '.'), 1); // 3. The "strrpos" approach $ext = substr($filename, strrpos($filename, '.') + 1); // 4. The "preg_replace" approach $ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $filename); // 5. The "never use this" approach // From: http://php.about.com/od/finishedphp1/qt/file_ext_PHP.htm $exts = split("[/\\.]", $filename); $n = count($exts)-1; $ext = $exts[$n]; ////////////////////////////////////////////////////////////////////////////////////////// if($deal_image!="") { $rand_number=rand()."".rand(5, 10); $new_file_name=$rand_number.".".$ext; } else { $rand_number = ""; $new_file_name=""; } $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['deal_image']['tmp_name'], $path); $sqlimage = mysql_query("UPDATE business_deals SET image = '".$new_file_name."' WHERE id = '".$id."'"); } ////////////////////////////////////////////////////////////////////////////////////////// $sql = "UPDATE business_deals SET title = '".$title."', value = '" . $value . "', description = '".$deal_description."', status = '1', created = '".$today."', modified = '".$today."' WHERE id = '".$id."'"; $result=mysql_query($sql); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Add New Brand</title> <script language=JavaScript> function win(){ window.opener.location.href="/control/<?php echo $redirect_page; ?>"; self.close(); } </script> </head> <body onload="win();"> </body> </html> <?php ob_flush(); ?>
Liking