?
Path : /home/admin/domains/happytokorea.com/public_html/backend/modules/tour/ |
Current File : /home/admin/domains/happytokorea.com/public_html/backend/modules/tour/delete_photo_gallery.php |
<? session_start(); require_once('../../../config.php'); require_once('../../../libs/MySql.php'); require_once('../../../libs/function.php'); require_once('../../../libs/global.php'); require_once('../../../libs/backoff_ajax.php'); require_once('../../../libs/backoff.php'); require_once('../../../libs/xajax/xajax.inc.php'); $db=new MySql; ?> <!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>Untitled Document</title> </head> <body> <? $id_p=$_GET['content_id']; $topic_id=$_GET['id']; $result=$db->Query("SELECT * FROM tour_content WHERE content_id='$id_p' "); $arr=mysql_fetch_array($result); if($topic_id == 1){ $flgDelete = unlink("../../images/tour/".$arr['Content_photo1']); $result=$db->Query("UPDATE tour_content SET Content_photo1='' WHERE content_id='$id_p' "); } if($topic_id == 2){ $flgDelete = unlink("../../images/tour/".$arr['Content_photo2']); $result=$db->Query("UPDATE tour_content SET Content_photo2='' WHERE content_id='$id_p' "); } if($topic_id == 3){ $flgDelete = unlink("../../images/tour/".$arr['Content_photo3']); $result=$db->Query("UPDATE tour_content SET Content_photo3='' WHERE content_id='$id_p' "); } echo"<meta http-equiv=\"refresh\" content=\"0;url=ajaxContent.php?tour_id={$_GET['tour_id']}\">"; ?> </body> </html>