|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/yuchun/ |
Upload File : |
<?
include "$DOCUMENT_ROOT/conf/conf_dir.php";
echo "<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />";
//include "$DOCUMENT_ROOT/conf/conf_i.php";
//exit;
if($mode == "del" && $idx){
$qry = "update user set m_img='',m_img_chk='N' where id = '$idx'";
$qry_result = mysql_query($qry,$db_con);
$FILES_PATH = $_SERVER['DOCUMENT_ROOT']."/files/uprofile/";
$del_file= $FILES_PATH.$fileName;
if($fileName && is_file($del_file)) unlink($del_file);
$tmp_img= get_imgColor($idx);
$_SESSION[S_IMG_B]= $tmp_img[0];
$_SESSION[S_IMG_S]= $tmp_img[3];
$_SESSION[S_COLOR] = $tmp_img[1];
$_SESSION[S_CLASSNUM] = $tmp_img[2];
//exit;
}
?>