>>  Site Map >>  Forums >>  Tips&Trick for Nukeplus&phpNUKE

Forum module - topics in forum:



Tips&Trick for Nukeplus&phpNUKE - รวบรวมกลเม็ดการพัฒนาเวปด้วย phpNUKE plus BB



bug fix1 แก้ปัญหาการลงทะเบียนใน forum

[center:db2fec3d3d][highlight=pink:db2fec3d3d][shadow=cyan:db2fec3d3d] Code: :

         //
         // Get current date
         //
         $sql = "INSERT INTO " . USERS_TABLE . "   (user_id, uname, user_regdate, pass, email, user_icq, url, user_occ, user_from, user_intrest, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
         if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
         {
            $user_actkey = gen_rand_string(true);
            $key_len = 54 - (strlen($server_url));
            $key_len = ( $key_len > 6 ) ? $key_len : 6;
            $user_actkey = substr($user_actkey, 0, $key_len);
            $sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
         }
         else

[highlight=yellow:db2fec3d3d][face=impact:db2fec3d3d]ให้เปลี่ยนทั้งหมดเป็น[/face:db2fec3d3d][/highlight:db2fec3d3d]

Code: :
//
               // Get current date
               //
                              $reg_date = date("M d, Y");

               //
               // Get the users style for php Nuke from the Template Name.
               //
               $info=sql_query("select * from ".THEMES_TABLE." where themes_id='$user_style'", $dbi);
               $get_info=mysql_fetch_array($info);
                   $nuketheme=$get_info[template_name];
   
               $handle=opendir('themes');
                   while ($file = readdir($handle)) {
                       if ( (ereg("[$nuketheme]",$file)) ) {
                  $nuke_theme_exsist = "true";
                   }
               }
               closedir($handle);
             
               if($nuke_theme_exsist == "true"){
               $save_nuke_theme = "$nuketheme";
               } else {
                   $save_nuke_theme = "$Default_Theme";
               }

               $sql = "INSERT INTO " . USERS_TABLE . "   (uid, uname, user_regdate, pass, email, theme, user_icq, url, user_occ, user_from, user_intrest, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
                  VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', '" . $reg_date . "', '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '".$save_nuke_theme."', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
               if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
               {
                  $user_actkey = gen_rand_string(true);
                  $key_len = 54 - (strlen($server_url));
                  $key_len = ( $key_len > 6 ) ? $key_len : 6;
                  $user_actkey = substr($user_actkey, 0, $key_len);
                  $sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
               }
               else
 







[highlight=yellow:7c04a44518]ในกรณีที่คุณพยายามเปลี่ยน password ในหน้า forum แล้วไม่สามารถ login เข้า forum ได้ นั่นคือ bug อีกอัน [/highlight:7c04a44518]
ให้ลองหา ใน [highlight=yellow:7c04a44518]modules/Forums/includes/usercp_register.php[/highlight:7c04a44518]

Code: :

if ( $row['pass'] != md5($cur_password) )

เปลี่ยนเป็น
Code: :

if ( $row['pass'] != md5($cur_password) )





Attention! T!sitemap page!คุณอยู่ที่ sitemap ของ ไทยเฮลท์ สุขภาพ โรค ไข้ ยา บทความ ข่าว ไปที่เนื้อหาเดิม-original content
เว็บสุขภาพ อัพเดตโดยแพทย์ โปรแกรม คลินิค บทความ ข่าว เกมส์ เกม และเรื่องโรคต่างๆ เช่น โรคเบาหวาน ไขมัน หัวใจ ไข้หวัดนก ไข้เลือดออก โรคเอดส์ คลิปวีดีโอ ค้นหา ข้อมูล ภาพ ของไทย

Search from web


เว็บ คีย์เวอร์ด คลิปวีดีโอ




ไทยเฮลท์

Valid HTML 4.01 Valid CSS