setHidden(1); $o_friend = new Friend($_DB, $_TBL); $o_event = new Event($_DB, $_TBL); $o_forum = new Forum($_DB, $_TBL); $o_tag = new Tag($_DB, $_TBL); #include "./modules/account/account.func.php"; if($_COOKIE[member_id]) { $mf_info = $o_member->getForumMemberById($_COOKIE[member_id]); $m_info = $o_member->getMembershipInfoById($_COOKIE[member_id]); } if($_GET[f] == 'info' || $_GET[f] == 'friend') { if(isset($_COOKIE[member_id]) && ($_POST[Submit] == 'photo')) { for($i=0;$igetFileType())) { //checking support file type $_POST[filename] = substr(md5(uniqid()), 0, 7); $ext = $o_upload->getExtensionByType(); $_POST[mime_type] = $_FILES[img][type]; //if height config then resize and crop image source before use if($_CONF[photo_image_height_large]) { $o_crop = new Images($_FILES[img][tmp_name], $_FILES[img][type], 92); $o_crop->cropImage($_CONF[photo_image_width_large], $_CONF[photo_image_height_large], $_FILES[img][tmp_name]); } //copy original file to upload dir for backup copy($_FILES[img][tmp_name], $upload_dir.'/'.$_FILES[img][name]); //resize original first before add watermark $resize_images = new Images($upload_dir.'/'.$_FILES[img][name], $_FILES[img][type]); $resize_images->resize($_CONF[photo_image_width_large], $_CONF[photo_image_height_large], $upload_dir.'/'.$_FILES[img][name]); //create image and resize copy image $images1 = new Images($upload_dir.'/'.$_FILES[img][name], $_FILES[img][type]); if(!empty($_CONF[watermark_file])) $images1->setWaterMark($_CONF[watermark_file]); $images3 = new Images($upload_dir.'/'.$_FILES[img][name], $_FILES[img][type]); if(!empty($_CONF[watermark_file])) $images3->setWaterMark($_CONF[watermark_file]); //create image and water mark if($_CONF[watermark_large] && !empty($_CONF[watermark_file])) $images1->markAndResize($upload_dir.'/'.$_POST[filename].'-L.'.$ext, $_CONF[watermark_pos], $_CONF[photo_image_width_large], $_CONF[photo_image_height_large]); else//just resize $images1->resize($_CONF[photo_image_width_large], $_CONF[photo_image_height_large], $upload_dir.'/'.$_POST[filename].'-L.'.$ext); if($_CONF[watermark_small] && !empty($_CONF[watermark_file])) $images3->markAndResize($upload_dir.'/'.$_POST[filename].'-S.'.$ext, $_CONF[watermark_pos], $_CONF[photo_image_width_small], $_CONF[photo_image_height_small]); else $images3->resize($_CONF[photo_image_width_small], $_CONF[photo_image_height_small], $upload_dir.'/'.$_POST[filename].'-S.'.$ext); } else $error = 1; }//ปิด statement ถ้ามีการ upload file else if(!empty($_POST[embed])) { $error = 0; $_POST[mime_type] = 'video/youtube'; $_POST[filename] = substr(md5(uniqid()), 0, 7); } if(!$error) { //if upload success $_POST[path_id] = $_CONF[img_media_path].'/'.$dir_name; //ตรวจสอบว่า permalink มีอยู่หรือเปล่า ถ้าไม่ซ้ำก็ใช้ name ถ้าซ้ำให้ random $_POST[permalink] = Site_URL::getValidURL($_POST[name]); $dat = $o_media->getMediaInfoByPermalink($_POST[permalink]); !empty($dat[0][id]) ? $_POST[permalink] = $_POST[permalink].'-'.rand(0,1000) : $_POST[permalink] = $_POST[name]; $media_id = $o_media->newMedia(Array(set_id=>$_POST[set_id], member_id=>$_COOKIE[member_id], filename=>$_POST[filename], mime_type=>$_POST[mime_type], path_id=>$_POST[path_id], ext=>$ext, name=>$_POST[name], permalink=>$_POST[permalink], detail=>$_POST[detail], size=>$_FILES[img][size], fyear=>date('Y'), fdate=>date('d'), fmonth=>date('m'), view=>2, created_by=>$mf_info[0][nickname], embed=>$_POST[embed])); if($_POST[tag_relation]) { $temp = split(',', $_POST[tag_relation]); for($i=0;$igetTagInfoByName($tag); //check if tag doesn't exist then new tag first if(empty($dat[0][tag_id])) $tag_id = $o_tag->newTag(Array('name'=>$tag, 'taxonomy'=>'media')); else $tag_id = $dat[0][tag_id]; $o_tag->newTagRelationship($media_id, $tag_id, 'media'); } } } $o_tag->updateTagClound(); } if(isset($_GET[tab])) $_POST[Submit] = ''; header('Location:'.$_SERVER[HTTP_REFERER]); } isset($_GET[id]) ? $_GET[member_id] = $_GET[id] : 1; isset($_CONF[subdomain]) ? $_GET[nickname] = $_CONF[subdomain] : 1;//ถ้ามี subdomain ให้ override nickname เลย if(!empty($_GET[nickname])) {//override member_id if nickname set $tmp = $o_member->getForumMemberByName($_GET[nickname]); $_GET[member_id] = $tmp[0][member_id]; } $m_dat = $o_member->getMembershipInfoById($_GET[member_id]); $mf_dat = $o_member->getForumMemberById($_GET[member_id]); $me_dat = $o_member->getMembershipExtInfoById($_GET[member_id]); if($me_dat[0][url]) $me_dat[0][url] = 'http://'.str_replace('http://', '', $me_dat[0][url]); #print_r($_GET); if(!$m_dat[0][valid]) { header('HTTP/1.1 404 Not Found'); include './404.php'; exit; } //check ip if not in list then push if(!preg_match("/$_SERVER[REMOTE_ADDR]/i", $me_dat[0][unique_views])) $o_member->editMembershipExt(Array(member_id=>$_GET[member_id], unique_views=>$me_dat[0][unique_views].','.$_SERVER[REMOTE_ADDR])); //increase view info stat $_DB->sqlQuery("update ".$_TBL[membership_ext]." set views = views + 1 where member_id = '".$_GET[member_id]."'"); $content[title] = $mf_dat[0][nickname]; $content[navigator] .= Site_Link::index($noid, _INDEX).' » '.Site_Link::account($noid, _ACCOUNT).' » '.$mf_dat[0][nickname]; if(!$_GET[member_id]) { $content[body] = '
'._NOTFOUND.'
'; exit; } } else if($_GET[f] == 'forgot') { if(isset($_POST[Submit])) { $member_info = $o_member->getMembershipInfo($_POST[email]); if(empty($member_info[0][member_id])) $member_info = $o_member->getMembershipInfoByNickname($_POST[email]); #if($_CONF[secure_membership]) { $new = substr(md5(uniqid()), 0, 6); $o_member->editMembership(Array(member_id=>$member_info[0][member_id], passwd=>$new), $_CONF[secure_membership]); $member_info[0][passwd] = $new; #} if($member_info[0][member_id]) { $o_file = new File_Lib($_CONF[txt_dir].'/forgot_passwd.txt'); $body = $o_file->fileRead(); $body = str_replace("", $_POST[email], $body); $body = str_replace("", $member_info[0][passwd], $body); /*$o_mail = new Send_Mail($_POST[email], $_CONF[contact_email], "Your password ("._COMPANY.")", $body); $o_mail->setCharSet('UTF-8'); $o_mail->setSenderName($_CONF[contact_email_name]); $o_mail->setReplyTo($_CONF[contact_email]); $o_mail->setReplyName($_CONF[contact_email_name]); if($o_mail->sendMailNonAttachment()) echo '';*/ /*$o_mail = new MAIL; // initialize MAIL class $o_mail->From($_CONF[contact_email], $_CONF[contact_email_name]); // set from address $o_mail->AddTo($_POST[email]); // add to address $o_mail->Subject('Your password ('._COMPANY.')', _CHARSET); // set subject $_CONF[content_type] == 'HTML' ? $o_mail->Html($body, _CHARSET) : $o_mail->Text($body, _CHARSET); if($_CONF[smtp_user]) $c = $o_mail->Connect($_CONF[smtp_server], $_CONF[smtp_port], $_CONF[smtp_user], $_CONF[smtp_passwd], $_CONF[smtp_vssl], $_CONF[smtp_timeout]) or die(print_r($o_mail->Result)); // send mail relay using the '$c' resource connection if($o_mail->Send($c)) $alert = '
'._PASSWDSENT.'
';*/ //Create a new PHPMailer instance $mail = new PHPMailer; //Tell PHPMailer to use SMTP $mail->isSMTP(); //Enable SMTP debugging // 0 = off (for production use) // 1 = client messages // 2 = client and server messages $mail->SMTPDebug = 0; //Ask for HTML-friendly debug output $mail->Debugoutput = 'html'; //Set the hostname of the mail server $mail->Host = $_CONF['smtp_server']; //Set the SMTP port number - likely to be 25, 465 or 587 $mail->Port = $_CONF['smtp_port']; //Set the encryption system to use - ssl (deprecated) or tls $mail->SMTPSecure = $_CONF['smtp_vssl']; //Whether to use SMTP authentication $mail->SMTPAuth = true; //Username to use for SMTP authentication $mail->Username = $_CONF['smtp_user']; //Password to use for SMTP authentication $mail->Password = $_CONF['smtp_passwd']; //Set who the message is to be sent from $mail->setFrom($_CONF['contact_email'], $_CONF['contact_email_name']); $mail->addReplyTo($_CONF['contact_email']); //Set who the message is to be sent to $mail->addAddress($_POST['email']); //Set the subject line $mail->Subject = 'Your password ('._COMPANY.')'; //Read an HTML message body from an external file, convert referenced images to embedded, //convert HTML into a basic plain-text alternative body //$mail->msgHTML(file_get_contents('content.html'), dirname(__FILE__)); #$mail->msgHTML($body); $mail->Body = $body; //send the message, check for errors if (!$mail->send()) echo "Mailer Error: " . $mail->ErrorInfo; else $alert = '
'._PASSWDSENT.'
'; } else $alert = '
'._USERNOTEXIST.'
'; } $content[title] = _FORGOTPASSWD; $content[navigator] .= Site_Link::index($noid, _INDEX).' » '.Site_Link::account($noid, _ACCOUNT).' » '._FORGOTPASSWD; $content[body] = ' '; } else if($_GET[f] == 'gallery') { $m_dat = $o_member->getMembershipInfoById($_GET[id]); if(!$m_dat[0][valid]) { echo ''; } $dat = $o_member->getForumMemberById($_GET[id]); $content[title] = $dat[0][nickname].' '._PHOTOGALLERY; $content[navigator] .= Site_Link::index($noid, _INDEX).' » '.Site_Link::account($noid, _ACCOUNT).' » '.Site_Link::user2($_GET[id], $dat[0][nickname]).' » '._PHOTOGALLERY; } !isset($_CONF[account_action_model]) ? $_CONF[account_action_model] = 'default' : 1; include './tric/modules/account/action.'.$_CONF[account_action_model].'.php'; ?> Bangkok Art & Culture Centre | bacc.or.th
Loading

BACC Digital Archive Searching

E-Archive Search System

Copyright © 2017 Bangkok Art and Culture Centre | Login

www.weipinxgt.com www.hdf598.com www.rzkfqcg.com www.ywd100.com www.gzunitrade.com www.5aziyuan.com www.alsclean.com www.ynzsgc.com www.sdldtg.com www.i-sarima.com www.aijianbing.com www.xushiweigou.com www.haoyulongsp.com www.binqimotor.com www.kenminamipainting.com www.erli30.com www.cdhg88.com www.horse-home.com www.myjxzp.com www.dgselling.com www.chenlongjiancai.com www.zhongkuanwuliu.com www.huameide-sz.com www.shouxitongban.com www.scgcjx0207.com www.qdshengqian.com www.3w800.com www.kl-ad.com www.imshenghuo.com www.xxanlhw.com www.hfkaibo.com www.wlwservice.com www.jxguanghua.com www.zkld2009.com www.duanem.com www.hzwjzs.com www.chdlav.com www.lyxszl.com www.xinlaihuijiaju.com www.hrwholecare.com www.yingyang168.com www.honeywell-lk.com www.yushusanjiangyuanbao.com www.kangningyiyuan.com www.xzkjsxx.com www.jztushuguan.com www.gksswh.com www.jakjxx.com www.yyxlzw.com www.dwdzxx.com www.shszjzx.com www.skf-nsk-fag-ntn.com www.shanghailvhua.com www.yomandoors.com www.wenchengvote.com www.cn-sportsprotectors.com www.fuyixuantc.com www.jiayongdiant.com www.reshousuoj.com www.wuxitianzhile.com www.lsallx.com www.ravor-system.com www.jhbrq.com www.mirrvoll.com www.likekiwi.com www.hbclzqcj.com www.cqqfbxgm.com www.nmgdwjlw.com www.zmdjtzfw.com www.xunchengchaju.com www.gssx-pxgl.com www.sha-jing.com www.zysjmbj.com www.131701.com www.tlyhyy.com www.hbfbfz.com www.hljpadm.com www.fenxiangzhuan005.com www.jv001.com www.ruiyucnc.com www.zhuochenglaser.com www.zhaoshudeng.com www.facebook-france.com www.yuxianchu.com www.139yes.com www.lazonaentertainment.com www.eastofedens.com www.latelier-gourmet.com www.kaisyomaru.com www.tenglonghb.com www.bdsmfreevids.com www.gzshbzw.com www.ymgb0991.com www.setonohanayome.com www.attachmentmoms.com www.njmzyjg.com www.hi4r.com www.exotic-nails.com www.ef25.com www.lslcxx.com