»Ç¶ó´åÄÄ
Loading...




À¥µðÀÚÀÎ,Æ÷Åä¼¥,±×´©º¸µå,Á¦·Îº¸µå,µ¿¿µ»óÁ¦ÀÛ °ü·Ã ¸Þ¸ð >>


¦­Àüü(434)¦­ÀÎÅͳÝ,ÄÄÇ»ÅÍ (93) | À¥µðÀÚÀÎtip (180) | CG,±×·¡ÇÈtip (70) | BBS_Tip (74) | ¿µ»ótip (17) |
Á¦·Îº¸µå °Ô½Ã¹°³¯Â¥ÀÓÀǺ¯°æÆÁ 2008-04-27 22:44:59
ȨÆäÀÌÁöȨÆäÀÌÁö

1. Á¦·Îº¸µå root Æú´õ¿¡ ÀÖ´Â write.php ¸¦ ¼öÁ¤ÇÕ´Ï´Ù.
±× ÆäÀÌÁö¸¦ ¿­°í ¾Æ·¡¿Í °°Àº ºÎºÐÀ» ã½À´Ï´Ù.

/******************************************************************************************
* ±Û¾²±â ¸ðµå¿¡ µû¸¥ ³»¿ë üũ
*****************************************************************************************/

        if($mode=="modify") {

                // ºñ¹Ð±ÛÀÌ°í ÆÐ½º¿öµå°¡ Ʋ¸®°í °ü¸®ÀÚ°¡ ¾Æ´Ï¸é ¸®ÅÏ
                if($data[is_secret]&&!$is_admin&&$data[ismember]!=$member[no]&&$HTTP_COOKIE_VARS[zb_s_check]!=$setup[no]."_".$no) error("Á¤»óÀûÀÎ ¹æ¹ýÀ¸·Î ¼öÁ¤Çϼ¼¿ä");

                        $name=stripslashes($data[name]); // À̸§
                        $email=stripslashes($data[email]); // ¸ÞÀÏ
                        $homepage=stripslashes($data[homepage]); // ȨÆäÀÌÁö
                        $subject=$data[subject]=stripslashes($data[subject]); // Á¦¸ñ
                        $subject=str_replace(""",""",$subject);
                        $homepage=str_replace(""",""",$homepage);
                        $name=str_replace(""",""",$name);
                        $sitelink1=str_replace(""",""",$sitelink1);
                        $sitelink2=str_replace(""",""",$sitelink2);
                        $memo=stripslashes($data[memo]); // ³»¿ë
                        $sitelink1=$data[sitelink1]=stripslashes($data[sitelink1]);
                        $sitelink2=$data[sitelink2]=stripslashes($data[sitelink2]);
            

ÀÌ ºÎºÐ ¹Ù·Î ¹Ø¿¡ ¾Æ·¡¸¦ ¼Ò½º¸¦ »ðÀÔÇÕ´Ï´Ù.
//ÀÓÀdz¯Â¥ ¼öÁ¤ Ãß°¡
            $reg_date=$data[reg_date];

±×·¯¸é °á°ú´Â ¾Æ·¡¿Í °°ÀÌ µÇ¾î¾ß ÇÕ´Ï´Ù.
À§¿¡ »ý·«....

/******************************************************************************************
* ±Û¾²±â ¸ðµå¿¡ µû¸¥ ³»¿ë üũ
*****************************************************************************************/

        if($mode=="modify") {

                // ºñ¹Ð±ÛÀÌ°í ÆÐ½º¿öµå°¡ Ʋ¸®°í °ü¸®ÀÚ°¡ ¾Æ´Ï¸é ¸®ÅÏ
                if($data[is_secret]&&!$is_admin&&$data[ismember]!=$member[no]&&$HTTP_COOKIE_VARS[zb_s_check]!=$setup[no]."_".$no) error("Á¤»óÀûÀÎ ¹æ¹ýÀ¸·Î ¼öÁ¤Çϼ¼¿ä");

                        $name=stripslashes($data[name]); // À̸§
                        $email=stripslashes($data[email]); // ¸ÞÀÏ
                        $homepage=stripslashes($data[homepage]); // ȨÆäÀÌÁö
                        $subject=$data[subject]=stripslashes($data[subject]); // Á¦¸ñ
                        $subject=str_replace(""",""",$subject);
                        $homepage=str_replace(""",""",$homepage);
                        $name=str_replace(""",""",$name);
                        $sitelink1=str_replace(""",""",$sitelink1);
                        $sitelink2=str_replace(""",""",$sitelink2);
                        $memo=stripslashes($data[memo]); // ³»¿ë
                        $sitelink1=$data[sitelink1]=stripslashes($data[sitelink1]);
                        $sitelink2=$data[sitelink2]=stripslashes($data[sitelink2]);
            
                        //ÀÓÀdz¯Â¥ ¼öÁ¤ Ãß°¡
                       $reg_date=$data[reg_date];    

                        if($data[file_name1])$file_name1="<br> ".$data[s_file_name1]."ÀÌ µî·ÏµÇ¾î ÀÖ½À´Ï´Ù. <input type=checkbox name=del_file1 value=1> »èÁ¦";
                        if($data[file_name2])$file_name2="<br> ".$data[s_file_name2]."ÀÌ µî·ÏµÇ¾î ÀÖ½À´Ï´Ù. <input type=checkbox name=del_file2 value=1> »èÁ¦";

ÀÌÇÏ »ý·«....

Á¦·Îº¸µå Æú´õÀÇ write.php ¼Ò½º¼öÁ¤ ³¡.

2. ±× ´ÙÀ½Àº write_ok.phpÀÇ ¼öÁ¤±ÛÀ϶§ÀÇ ºÎºÐ¸¸ ¼öÁ¤ÇÕ´Ï´Ù.
¾Æ·¡ÀÇ ºÎºÐÀ» ã½À´Ï´Ù.
/***************************************************************************
* ¼öÁ¤±ÛÀ϶§
**************************************************************************/
        if($mode=="modify"&&$no) {

                if($s_data[ismember]) {
                        if(!$is_admin&&$member[level]>$setup[grant_delete]&&$s_data[ismember]!=$member[no]) Error("Á¤»óÀûÀÎ ¹æ¹ýÀ¸·Î ¼öÁ¤Çϼ¼¿ä");
                }

                // ºñ¹Ð¹øÈ£ °Ë»ç;;
                if($s_data[ismember]!=$member[no]&&!$is_admin) {
                        if($password!=$s_data[password]) Error("ºñ¹Ð¹øÈ£°¡ Ʋ·È½À´Ï´Ù");
                }

                // ÆÄÀÏ»èÁ¦
                if($del_file1==1) {@z_unlink("./".$s_data[file_name1]);$del_que1=",file_name1='',s_file_name1=''";}
                if($del_file2==1) {@z_unlink("./".$s_data[file_name2]);$del_que2=",file_name2='',s_file_name2=''";}

                // ÆÄÀϵî·Ï
                if($file_name1) {$del_que1=",file_name1='$file_name1',s_file_name1='$s_file_name1'";}
                if($file_name2) {$del_que2=",file_name2='$file_name2',s_file_name2='$s_file_name2'";}

¿©±â ¹Ù·Î ¹Ø¿¡ ¾Æ·¡ÀÇ ¼Ò½º¸¦ Ãß°¡ÇÕ´Ï´Ù.
  //ÀÓÀÇ ³¯Â¥ º¯È¯
        if(!$year) {
        $reg_date= $reg_date_old;}
        else {
        $t_time = mktime($hour, $min, $sec, $mon, $day, $year);
        $reg_date=$t_time;}

¶Ç ±× ¾Æ·¡¿¡ Á» ³»·Á°¡½Ã´Ù º¸¸é ¼öÁ¤ÇÒ °÷ÀÌ ¶Ç ÀÖ½À´Ï´Ù.
@mysql_query("update $t_board"."_$id set headnum='$headnum',prev_no='$prev_no',next_no='$next_no',child='$child',depth='$depth',arrangenum='$arrangenum',father='$father',name='$name',email='$email',homepage='$homepage',reg_date='$reg_date',subject='$subject',memo='$memo',sitelink1='$sitelink1',sitelink2='$sitelink2',use_html='$use_html',reply_mail='$reply_mail',is_secret='$is_secret',category='$category' $del_que1 $del_que2 where no='$no'") or error(mysql_error());

ÀÌ·± ºÎºÐÀÌ Àִµ¥, ¼öÁ¤±ÛÀ϶§ ºÎºÐÀÇ ÀÌ·± ºÎºÐ¿¡ reg_date='$reg_date' ¼Ò½º¸¦ ³Ö¾îÁÝ´Ï´Ù.
±×·¯´Ï±î..
¼öÁ¤±ÛÀ϶§ ºÎºÐ¿¡¼­ // °øÁö -> ÀϹݱÛ, // ÀÏ¹Ý±Û -> °øÁö, // ÀϹÝ->ÀϹÝ, °øÁö->°øÁö À϶§, ÀÌ ¼¼ºÎºÐ¸¸ °íÃÄ½Ã¸é µË´Ï´Ù.
±×·¯¸é ¾Æ·¡ÀÇ ¼Ò½º¿Í °°ÀÌ µË´Ï´Ù.

»óÀ§ »ý·«...
/***************************************************************************
* ¼öÁ¤±ÛÀ϶§
**************************************************************************/
        if($mode=="modify"&&$no) {

                if($s_data[ismember]) {
                        if(!$is_admin&&$member[level]>$setup[grant_delete]&&$s_data[ismember]!=$member[no]) Error("Á¤»óÀûÀÎ ¹æ¹ýÀ¸·Î ¼öÁ¤Çϼ¼¿ä");
                }

                // ºñ¹Ð¹øÈ£ °Ë»ç;;
                if($s_data[ismember]!=$member[no]&&!$is_admin) {
                        if($password!=$s_data[password]) Error("ºñ¹Ð¹øÈ£°¡ Ʋ·È½À´Ï´Ù");
                }

                // ÆÄÀÏ»èÁ¦
                if($del_file1==1) {@z_unlink("./".$s_data[file_name1]);$del_que1=",file_name1='',s_file_name1=''";}
                if($del_file2==1) {@z_unlink("./".$s_data[file_name2]);$del_que2=",file_name2='',s_file_name2=''";}

                // ÆÄÀϵî·Ï
                if($file_name1) {$del_que1=",file_name1='$file_name1',s_file_name1='$s_file_name1'";}
                if($file_name2) {$del_que2=",file_name2='$file_name2',s_file_name2='$s_file_name2'";}

        //ÀÓÀÇ ³¯Â¥ º¯È¯
        if(!$year) {
        $reg_date= $reg_date_old;}
        else {
        $t_time = mktime($hour, $min, $sec, $mon, $day, $year);
        $reg_date=$t_time;}

                // °øÁö -> ÀϹݱÛ
                if(!$notice&&$s_data[headnum]<="-2000000000") {
                        $temp=mysql_fetch_array(mysql_query("select max(division) from $t_division"."_$id"));
                        $max_division=$temp[0];
                        $temp=mysql_fetch_array(mysql_query("select max(division) from $t_division"."_$id where num>0 and division!='$max_division'"));
                        if(!$temp[0]) $second_division=0; else $second_division=$temp[0];

                        // Çìµå³Ñ+1 ÇѰªÀ» °¡Áü;;
                        $max_headnum=mysql_fetch_array(mysql_query("select min(headnum) from $t_board"."_$id where (division='$max_division' or division='$second_division') and headnum>-2000000000")); // °øÁö°¡ ¾Æ´Ñ ÃÖ¼Ò headnum ±¸ÇÔ
                        $headnum=$max_headnum[0]-1;

                        $next_data=mysql_fetch_array(mysql_query("select no,headnum,division from $t_board"."_$id where (division='$max_division' or division='$second_division') and headnum='$max_headnum[0]' and arrangenum='0'")); // ´ÙÀ½±ÛÀ» ±¸ÇÔ;;
                        if(!$next_data[0]) $next_data[0]="0";
                        $next_no=$next_data[0];

                        if(!$next_data[division]) $division=1; else $division=$next_data[division];

                        $prev_data=mysql_fetch_array(mysql_query("select no from $t_board"."_$id where (division='$max_division' or division='$second_division') and headnum<'$headnum' and no!='$no' order by headnum desc limit 1")); // ÀÌÀü±ÛÀ» ±¸ÇÔ;;
                        if($prev_data[0]) $prev_no=$prev_data[0]; else $prev_no=0;

                        $child="0";
                        $depth="0";    
                        $arrangenum="0";
                        $father="0";
                   minus_division($s_data[division]);
                        @mysql_query("update $t_board"."_$id set headnum='$headnum',prev_no='$prev_no',next_no='$next_no',child='$child',depth='$depth',arrangenum='$arrangenum',father='$father',name='$name',email='$email',homepage='$homepage',reg_date='$reg_date',subject='$subject',memo='$memo',sitelink1='$sitelink1',sitelink2='$sitelink2',use_html='$use_html',reply_mail='$reply_mail',is_secret='$is_secret',category='$category' $del_que1 $del_que2 where no='$no'") or error(mysql_error());
                        plus_division($division);

                        // ´ÙÀ½±ÛÀÇ ÀÌÀü±ÛÀ» ¼öÁ¤
                        if($next_no)mysql_query("update $t_board"."_$id set prev_no='$no' where division='$next_data[division]' and headnum='$next_data[headnum]'");  

                        // ÀÌÀü±ÛÀÇ ´ÙÀ½±ÛÀ» ¼öÁ¤
                        if($prev_no)mysql_query("update $t_board"."_$id set next_no='$no' where no='$prev_no'");                  

                        mysql_query("update $t_board"."_$id set prev_no=0 where (division='$max_division' or division='$second_division') and prev_no='$s_data[no]' and headnum!='$next_data[headnum]'");
                        mysql_query("update $t_category"."_$id set num=num-1 where no='$s_data[category]'",$connect);
                        mysql_query("update $t_category"."_$id set num=num+1 where no='$category'",$connect);
                }

                   // ÀÏ¹Ý±Û -> °øÁö
                elseif($notice&&$s_data[headnum]>-2000000000) {
                        $temp=mysql_fetch_array(mysql_query("select max(division) from $t_division"."_$id"));
                        $max_division=$temp[0];
                        $temp=mysql_fetch_array(mysql_query("select max(division) from $t_division"."_$id where num>0 and division!='$max_division'"));
                        if(!$temp[0]) $second_division=0; else $second_division=$temp[0];

                        $max_headnum=mysql_fetch_array(mysql_query("select min(headnum) from $t_board"."_$id where division='$max_division' or division='$second_division'"));  // ÃÖ°í±ÛÀ» ±¸ÇÔ;;
                        $headnum=$max_headnum[0]-1;
                        if($headnum>-2000000000) $headnum=-2000000000; // ÃÖ°í headnumÀÌ °øÁö°¡ ¾Æ´Ï¸é ÇöÀç ±Û¿¡ °øÁö¸¦ ³ÖÀ½;

                        $next_data=mysql_fetch_array(mysql_query("select no,headnum,division from $t_board"."_$id where (division='$max_division' or division='$second_division') and headnum='$max_headnum[0]' and arrangenum='0'"));
                        if(!$next_data[0]) $next_data[0]="0";
                        $next_no=$next_data[0];
                        $prev_no=0;
                        $child="0";
                        $depth="0";
                        $arrangenum="0";
                        $father="0";
                        minus_division($s_data[division]);
                        $division=add_division();
                        @mysql_query("update $t_board"."_$id set division='$division',headnum='$headnum',prev_no='$prev_no',next_no='$next_no',child='$child',depth='$depth',arrangenum='$arrangenum',father='$father',name='$name',email='$email',homepage='$homepage',reg_date='$reg_date',subject='$subject',memo='$memo',sitelink1='$sitelink1',sitelink2='$sitelink2',use_html='$use_html',reply_mail='$reply_mail',is_secret='$is_secret',category='$category' $del_que1 $del_que2 where no='$no'") or error(mysql_error());

                        if($s_data[father]) mysql_query("update $t_board"."_$id set child='$s_data[child]' where no='$s_data[father]'"); // ´ä±ÛÀ̾úÀ¸¸é ¿øº»±ÛÀÇ ´ä±ÛÀ» ÇöÀç±ÛÀÇ ´ä±Û·Î ´ëü
                        if($s_data[child]) mysql_query("update $t_board"."_$id set depth=depth-1,father='$s_data[father]' where no='$s_data[child]'"); // ´ä±ÛÀÌ ÀÖÀ¸¸é ÇöÀç±ÛÀÇ À§Ä¡·Î;;

                        // ¿ø·¡ ´ÙÀ½±Û·Î À̱ÛÀ» °¡Áö°í ÀÖ¾ú´ø µ¥ÀÌŸÀÇ prev_noÀ» ¹Ù²Þ;
                        $temp=mysql_fetch_array(mysql_query("select max(headnum) from $t_board"."_$id where headnum<='$s_data[headnum]'"));
                        $temp=mysql_fetch_array(mysql_query("select no from $t_board"."_$id where headnum='$temp[0]' and depth='0'"));
                        mysql_query("update $t_board"."_$id set prev_no='$temp[no]' where prev_no='$s_data[no]'");

                        mysql_query("update $t_board"."_$id set next_no='$s_data[next_no]' where next_no='$s_data[no]'");

                        mysql_query("update $t_board"."_$id set prev_no='$no' where prev_no='0' and no!='$no'") or error(mysql_error()); // ´ÙÀ½±ÛÀÇ ÀÌÀü±ÛÀ» ¼³Á¤
                        mysql_query("update $t_category"."_$id set num=num-1 where no='$s_data[category]'",$connect);
                        mysql_query("update $t_category"."_$id set num=num+1 where no='$category'",$connect);

                // ÀϹÝ->ÀϹÝ, °øÁö->°øÁö À϶§
                } else {
                        @mysql_query("update $t_board"."_$id set name='$name',subject='$subject',email='$email',homepage='$homepage',reg_date='$reg_date',memo='$memo',sitelink1='$sitelink1',sitelink2='$sitelink2',use_html='$use_html',reply_mail='$reply_mail',is_secret='$is_secret',category='$category' $del_que1 $del_que2 where no='$no'") or error(mysql_error());
                        mysql_query("update $t_category"."_$id set num=num-1 where no='$s_data[category]'",$connect);
                        mysql_query("update $t_category"."_$id set num=num+1 where no='$category'",$connect);
                }


¾Æ·¡ »ý·«....


3. ±× ´ÙÀ½ ¸¶Áö¸·À¸·Î Á¦·Îº¸µå¸¦ ¼³Ä¡ÇÑ Æú´õ¿¡¼­ skin Æú´õ¿¡ µé¾î°¡¼Å¼­ "¸ðµç" °Ô½ÃÆÇ ½ºÅ²ÀÇ Æú´õ¿¡ µé¾î°¡ write.php ¼Ò½º¿¡ ¾Æ·¡ÀÇ ¼Ò½º¸¦ ³Ö¾îÁÖ½Ã¸é µË´Ï´Ù.
¹°·Ð ±× ½ºÅ²ÆÄÀÏÀÇ html ¼Ò½º¿¡ ¸Â°Ô °íÃļ­ ³Ö¾îÁÖ¼Å¾ß ¿Ã¹Ù¸¥ ¸ð¾çÀ¸·Î ³ª¿À°Ô µË´Ï´Ù. óÀ½ ¼Ò½ºÀÇ ÇØ¼®Àº ȸ¿ø ·¹º§ 5 ÀÌÇϳª Áï, 4ºÎÅÍ ±×¸®°í ¿î¿µÀÚ¿¡°Ô º¸¿©Áö´Â È­¸éÀ̰í
´ÙÀ½ È­¸éÀº ȸ¿ø·¹º§ 5ÀÌ»óÀ̳ª ºñȸ¿ø¿¡°Ô º¸¿©Áö´Â È­¸éÀÔ´Ï´Ù.

<!--- ³¯Â¥ ¼öÁ¤ ½ÃÀÛ ----->
<? if($member[level]< 5 && $is_admin) { ?>
<!--- ȸ¿ø ³¯Â¥ ÀÓÀÇ ¼öÁ¤ ½ÃÀÛ-------->
<input type=hidden name='reg_date_old' value=<?=$reg_date ?>>
<tr><td colspan=2><img src=images/t.gif width=1 height=3></td></tr>
<tr>
  <td class=daerew_8>³¯Â¥¼öÁ¤  </td>
  <td class=daerew_8 style='padding-right:20'><input type="text" name="year" size="6" maxlength=4 class=input> ³â <input type="text" name="mon" size="4" maxlength=2 class=input> ¿ù <input type="text" name="day" size="4" maxlength=2 class=input> ÀÏ (¼öÁ¤ ¾ÈÇҽÿ¡´Â ±×³É ³öµÎ¼¼¿ä.)
    <input type="hidden" name="hour" size="2" value="0">
    <input type="hidden" name="min" size="2" value="0">
    <input type="hidden" name="sec" size="2" value="0">
  </td>
</tr>
<!--- ȸ¿ø ³¯Â¥ ÀÓÀÇ ¼öÁ¤ ³¡ -------->
<? } ?>

<? if($member[level] > 5 ) { ?>
<!--- ±ÇÇÑ ¹ÛÀÇ È¸¿øÀÇ ³¯Â¥ ÀÓÀÇ ¼öÁ¤ ½ÃÀÛ-------->
<input type=hidden name='reg_date_old' value=<?=$reg_date ?>>
<input type="hidden" name="year" value="">
<input type="hidden" name="mon" value="">
<input type="hidden" name="day" value="">
<input type="hidden" name="hour" size="2" value="0">
<input type="hidden" name="min" size="2" value="0">
<input type="hidden" name="sec" size="2" value="0">
<!--- ±ÇÇÑ ¹ÛÀÇ È¸¿øÀÇ ³¯Â¥ ÀÓÀÇ ¼öÁ¤ ³¡ -------->
<? } ?>
<!--- ³¯Â¥ ¼öÁ¤ ³¡ ----->

¼Ò½º¸¦ »ðÀÔÇÏ¸é ¾Æ·¡¿Í °°ÀÌ µË´Ï´Ù.
»óÀ§ »ý·«...

<tr>
  <td align=right class=listnum width=80><img src=images/t.gif border=0 width=80 height=1><br><b>* </b></td>
  <td>
  <table border=0 cellpadding=0 cellspacing=0>
  <tr>
    <td><?=$category_kind?></td>
    <td><?=$hide_notice_start?> <input type=checkbox name=notice <?=$notice?> value=1></td><td class=neotune-upload> °øÁö»çÇ×  <?=$hide_notice_end?></td>
    <td><?=$hide_html_start?> <input type=checkbox name=use_html <?=$use_html?> value=1></td><td class=neotune-upload> HTML  <?=$hide_html_end?></td>
        <td><?=$hide_secret_start?><input type=checkbox name=is_secret <?=$secret?> value=1></td><td class=neotune-upload>ºñ°ø°³±Û <?=$hide_secret_end?></td>
    <td><input type=checkbox name=reply_mail <?=$reply_mail?> value=1></td><td class=neotune-upload> ´äº¯¸ÞÀÏ ¹Þ±â </td>  
  </tr>
  </table>
  </td>
</tr>

<? if($member[level]< 5 && $is_admin) { ?>
<!--- ³¯Â¥ ÀÓÀÇ ¼öÁ¤ ½ÃÀÛ-------->
<input type=hidden name='reg_date_old' value=<?=$reg_date ?>>
<tr>
  <td align=right class=listnum width=80><img src=images/t.gif border=0 width=80 height=1><br>³¯Â¥¼öÁ¤ </td>
  <td>
  <table border=0 cellpadding=0 cellspacing=0>
  <tr>                            
    <td><input type="text" name="year" size="6" maxlength=4 class=input> ³â <input type="text" name="mon" size="4" maxlength=2 class=input> ¿ù <input type="text" name="day" size="4" maxlength=2 class=input> ÀÏ (¼öÁ¤ ¾ÈÇҽÿ¡´Â ±×³É ³öµÎ¼¼¿ä.)
    <input type="hidden" name="hour" size="2" value="0">
    <input type="hidden" name="min" size="2" value="0">
    <input type="hidden" name="sec" size="2" value="0">
    </td>                                                      
  </tr>                                                    
  </table>      
  </td>
</tr>
<!--- ³¯Â¥ ÀÓÀÇ ¼öÁ¤ ³¡ -------->
<? } ?>

<tr><td bgcolor=#ffffff height=1 colspan=2><img src=images/t.gif height=1></td></tr>
<tr>
  <td align=right class=neotune-write><b>Subject </b></td>
  <td> <input type=text name=subject value="<?=$subject?>" <?=size(60)?> maxlength=200 class=input> </td>
</tr>
<tr><td bgcolor=#ffffff height=1 colspan=2><img src=images/t.gif height=1></td></tr>
<tr>
  <td align=right class=neotune-write><b>Contents </b></td>
  <td valign=top>
  <textarea name=memo <?=size2(80)?> rows=18 class=input><?=$memo?></textarea>
  </td>
</tr>

¾Æ·¡ »ý·«...

p.s. ÀÌÀü¿¡ ¼Ò½º¸¦ ¿Ã·Á³õ°í¼­ Á¦°¡ °ü¸®¸¦ ¸øÇؼ­ Á˼ÛÇÕ´Ï´Ù. ÀÌ ¼Ò½º´ë·Î Á¤È®È÷ ÇÏ½Å´Ù¸é Æ²¸²¾øÀÌ µÉ °ÍÀÔ´Ï´Ù.
1.»õ±ÛÀ» ÀÛ¼ºÇϸé Á¦·Îº¸µåÀÇ root Æú´õÀÎ bbs Æú´õÀÇ write.phpÀÇ ÆÄÀϼҽº ·ÎÁ÷´ë·Î ±× »õ±Û ÀÛ¼º½Ã°£ÀÌ $reg_date·Î database field¿¡ ÀúÀåÀÌ µË´Ï´Ù.
2. »õ±ÛÀÇ ³¯Â¥¸¦ ¼öÁ¤Çϰųª ¼öÁ¤¾ÈÇÑ´Ù¸é ¼öÁ¤ÇÑ ³¯Â¥¸¦ $reg_date¿¡ ³Ö¾îÁà¾ß Çϸç, ¼öÁ¤¾ÈÇÑ´Ù¸é ÀÌÀüÀÇ ½Ã°£ÀÌ ±×´ë·Î ´Ù½Ã ÀԷµǾî¾ß ÇÒ °ÍÀÔ´Ï´Ù.
±×·¡¼­ °Ô½ÃÆÇ ½ºÅ² Æú´õÀÇ write.php¿¡ »ðÀԵǴ ¼Ò¼Ò¸¦ º¸¸é
<!--- ³¯Â¥ ÀÓÀÇ ¼öÁ¤ ½ÃÀÛ-------->
<input type=hidden name='reg_date_old' value=<?=$reg_date ?>>
ÀÌ ºÎºÐÀÌ Àִµ¥, À̰ÍÀÇ Àǹ̴ ÀÌ¹Ì »õ±Û ÀԷ½à ÀÔ·ÂµÈ $reg_date°ªÀ»  $reg_date_old¿¡ ³Ö¾îÁشٴ ÀǹÌÀÔ´Ï´Ù.
±×·¡¼­ ³¯Â¥ ¼öÁ¤Çϰųª ¾ÈÇϰųª ÇÑ °ªÀÌ Á¦·Îº¸µåÀÇ root Æú´õÀÎ bbs Æú´õÀÇ write_ok.phpÀÇ ¹®¼­¿¡ Àü´ÞÀÌ µË´Ï´Ù.
Á¦·Îº¸µåÀÇ root Æú´õÀÎ bbs Æú´õÀÇ write_ok.phpÀÇ ¹®¼­´Â ¾Æ·¡¿Í °°Àº ¼Ò½º°¡ »ðÀÔÀÌ µÇ¾îÀִµ¥...
//ÀÓÀÇ ³¯Â¥ º¯È¯
        if(!$year) {
        $reg_date= $reg_date_old;}
        else {
        $t_time = mktime($hour, $min, $sec, $mon, $day, $year);
        $reg_date=$t_time;}
¸¸¾à ¼öÁ¤ÇÒ¶§, °Ô½ÃÆÇ ³¯Â¥¸¦ ¼öÁ¤¾ÈÇßÀ¸¸é ¿¹ÀüÀÇ ³¯Â¥°¡ ±×´ë·Î ´Ù½Ã $reg_date¿¡ ÀúÀåÀÌ µÇ°í, ¼öÁ¤À» ÇßÀ¸¸é, ¼öÁ¤ÇÑ °ªÀÌ $reg_date·Î »õ·Ó°Ô ÀúÀåÀÌ µË´Ï´Ù.
±×¸®ÇÏ¿©, ±× °ªÀ» ´Ù½Ã databaseÀÇ field¿¡ ´Ù½Ã ³Ö¾îÁÖ°Ô µÇ´Â °ÍÀÔ´Ï´Ù.




    



¸ñ·Ïº¸±â »èÁ¦Çϱâ

¹øÈ£ Á¦¸ñ ÀÏÀÚ
24  [BBS_Tip] Á¦·Îº¸µå ¿¹ºñÇʵå Ȱ¿ë  2009-02-17
23  [BBS_Tip] Á¦·Îº¸µå À̹ÌÁö ¹Ú½º ¿ë·® ´Ã¸®±â  2009-02-05
22  [BBS_Tip] Á¦·Îº¸µå rss »ý¼º ÆÄÀÏ  2009-02-03
21  [BBS_Tip] °Ô½Ã¹° µ¥ÀÌŸ »Ì´Â ¿©·¯°¡Áö  2009-02-02
20  [BBS_Tip] Ä«Å×°í¸® ¼±Åà À̵¿  2009-01-21
19  [BBS_Tip] Á¦·Îº¸µå ÇöÀçÀ§Ä¡ Ç¥½Ã¹æ¹ý  2009-01-06
18  [BBS_Tip] Á¦·Îº¸µå °Ô½ÃÆÇ ¾ÆÀ̵𠺯°æÇÏ±â  2009-01-06
17  [BBS_Tip] °Ô½Ã¹°¿ª¼øÁ¤·Ä  2007-12-06
16  [BBS_Tip] À̹ÌÁöÅÂ±× À̹ÌÁö»ðÀԽà ¸®»çÀÌÁî & »õ⺸±â  2008-06-07
15  [BBS_Tip] °ü¸®ÀÚ¾ÆÀ̵𠺯°æÆÁ  2008-06-06
14  [BBS_Tip] »ç¿ë±ÇÇÑ ¸Þ¼¼Áö ¼öÁ¤ ¹æ¹ý.  2008-06-06
13  [BBS_Tip] Æ¯Á¤°Ô½Ã¹° ³¢¿ö³Ö±â  2008-05-25
12  [BBS_Tip] ¼Õ½±°Ô Áú¹®´äº¯ °Ô½ÃÆÇ ¸¸µå´Â ¹ý  2008-05-22
11  [BBS_Tip] ³»¿ë¾ø´Â »çÁø¸¸À¸·Îµµ ±Ûµî·Ï.  2008-05-02
10  [BBS_Tip] ÇϳªÀÇ °Ô½ÃÆÇ¿¡¼­ ¿©·¯½ºÅ²À» Àû¿ëÇÏ´Â ¹ý  2008-04-28
9  [BBS_Tip] Á¦·ÎÄ«¿îÅÍ DB ÀÚµ¿»èÁ¦  2008-04-28
8  [BBS_Tip] ÀÏ¹ÝÆäÀÌÁö³» °Ô½Ã¹° °Ë»öÆû  2008-04-27
7  [BBS_Tip] °Ô½Ã¹° ¿ª¼ø Á¤·Ä¹æ¹ý  2008-04-27
6  [BBS_Tip] °ü¸®ÀÚ¸¸º¸°í½ÍÀº ³»¿ëÀÛ¼º½Ã.  2008-04-27
5  [BBS_Tip] ±ÇÇѹÛÀÇ °Ô½Ã¹° Ŭ¸¯½Ã ·Î±×ÀÎ⠾ȳª¿À°Ô  2008-04-27
4  [BBS_Tip] Á¦·Îº¸µå Ä«Å×°í¸® Ãâ·Â ÇÔ¼ö  2008-04-27
 [BBS_Tip] Á¦·Îº¸µå °Ô½Ã¹°³¯Â¥ÀÓÀǺ¯°æÆÁ  2008-04-27
2  [BBS_Tip] Á¦·Îº¸µå ·Î±×ÀÎ Ç®¸² Çö»ó ÇØ°áÃ¥  2008-04-27
1  [BBS_Tip] À¥¿¡µðÅÍ ±â´ÉÀÇ Á¦·Îº¸µå °Ô½ÃÆÇ ½ºÅ²  2008-04-27
¸ñ·Ïº¸±â
123