1
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
อึ้ง ทึ่ง ฮา







DirectoryIndex index.html
** DirectoryIndex ไม่จำเป็นต้องตามด้วย index.html เสมอแต่ใส่ไว้เพื่อบอกให้รู้ว่าถ้าใน folder นั้นไม่มีการเรียกชื่อไฟล์โดยตรง (อย่างเช่น http://localhost/ ) server ก็จะได้เรียกไฟล์ที่เราใส่ไว้มาใช้ครับ (ปกติ จะเป็น index.php)DirectoryIndex home.html index.html index.php ซึ่งserver จะเรียกใช้ไฟล์แรกก่อน ถ้าหากว่าไฟล์แรกไม่มีอยู่ก็จะเรียกอันถัดไปครับDirectoryIndex index.html index.php

) ** อนาคต จะให้ user save ไว้ได้ด้วย แล้วนับ pageview มาจัดเป็น poppular





// Show the verification code or let it hear.
function VerificationCode()
{
global $sourcedir, $modSettings, $context, $scripturl;
//ThaiCaptCha By ExpertDuck
//list คำก็เพิ่มไปใน array นะครับหรือว่าจะทำใส่ text file แยกไว้แล้วค่อย ดึงเข้ามาหั่นให้เป็น array ก็แล้วแต่ครับ
$ar=array('ลุงเป็ด','ไม่เกรียน','ขอบคุณ','สวัสดี','ครับ','ค่ะ','ค้นหา','แหล่ม','ซุโค่ย','เยี่ยม','มีน้ำใจ','แบ่งปัน','สามัคคี','รักนะ','จุ๊บๆ','คนไทย','อ่านกฏ','พรหมลิขิต');
$_SESSION['visual_verification_code'] = $ar[array_rand($ar)];
// Create the image for the visual verification code.
function showCodeImage($code)
{
global $settings, $user_info, $modSettings; //ThaiCaptCha By :expertDuck.com
$img_path = $settings['default_theme_dir'] . '/fonts/img.jpg';
$font = $settings['default_theme_dir'] . '/fonts/THKoHo.ttf';
$img = @imagecreatefromjpeg($img_path);
$bgc = imagecolorallocate($img, 0, 0, 0);
imagettftext($img, 30, 0, 35-(strlen($code)), 35, $bgc, $font, $code);
header('Content-Type: image/jpeg');
imagejpeg($img);
imagedestroy($img);
die();
แก้ไข: ลืมใส่สีให้ตัวอักษรครับ($bgc) ลิงค์ captchathai นะครับ
แต่ตัวนี้ผมโมเอง จาก เครตดิต เดิม http://expertduck.com/ ผมคิดค้น
ตัวนี้ก็เปลี่ยนโค้ดนิดหน่อยอ่ะครับก็ไม่รู้จะมีปัญหากับระบบอะไรบ้างหรือป่าว
ที่มีหลายๆคนบ่นๆเรื่อง ทำได้แต่สมัครไม่ได้ ผมก็เลย ฮึๆ อ่ะนะอย่าว่ากัน เรื่องมั่วๆ ต้องยกให้ผม
ฝากลิงค์ไว้เลยละกันครับ เดี๋ยวให้ท่านอาร์ม มาแก้ไขให้อิอิ
โหลดที่นี้