diff -urN zb41pl7/image_box.php zb41pl8/image_box.php --- zb41pl7/image_box.php 2006-08-18 06:41:28.000000000 +0900 +++ zb41pl8/image_box.php 2006-08-18 06:41:29.000000000 +0900 @@ -86,7 +86,7 @@ if($filesize) { if(!is_uploaded_file($upload[$i])) Error("Á¤»óÀûÀÎ ¹æ¹ýÀ¸·Î ¾÷·Îµå ÇØÁÖ¼¼¿ä","window.close"); - if(!eregi("\.gif",$upload_name[$i])&&!eregi("\.jpg",$upload_name[$i])) Error("À̹ÌÁö´Â gif ¶Ç´Â jpg ÆÄÀÏÀ» ¿Ã·ÁÁÖ¼¼¿ä"); + if(!eregi("\.gif\$",$upload_name[$i])&&!eregi("\.jpg\$",$upload_name[$i])) Error("À̹ÌÁö´Â gif ¶Ç´Â jpg ÆÄÀÏÀ» ¿Ã·ÁÁÖ¼¼¿ä"); $size=GetImageSize($upload[$i]); if(!$size[2]) Error("À̹ÌÁö ÆÄÀÏÀ» ¿Ã·ÁÁֽñ⠹ٶø´Ï´Ù"); if(!@move_uploaded_file($upload[$i] , $path."/".$upload_name[$i])) Error("À̹ÌÁö ¾÷·Îµå°¡ Á¦´ë·Î µÇÁö ¾Ê¾Ò½À´Ï´Ù"); diff -urN zb41pl7/lib.php zb41pl8/lib.php --- zb41pl7/lib.php 2006-08-18 06:41:28.000000000 +0900 +++ zb41pl8/lib.php 2006-08-18 06:41:29.000000000 +0900 @@ -2,7 +2,7 @@ /****************************************************************************** * Zeroboard library * - * ¸¶Áö¸· ¼öÁ¤ÀÏÀÚ : 2003. 8. 7 + * ¸¶Áö¸· ¼öÁ¤ÀÏÀÚ : 2006. 3. 15 * ÀÌ ÆÄÀϳ»ÀÇ ¸ðµç ÇÔ¼ö´Â ¿øÇϽô´ë·Î »ç¿ëÇϼŵµ µË´Ï´Ù. * * by zero (zero@nzeo.com) @@ -13,17 +13,23 @@ @header ("P3P : CP=\"ALL CURa ADMa DEVa TAIa OUR BUS IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC OTC\""); // ÇöÀç ¹öÁ¯ - $zb_version = "4.1 pl7"; + $zb_version = "4.1 pl8"; /******************************************************************************* * ¿¡·¯ ¸®Æ÷ÆÃ ¼³Á¤°ú register_globals_onÀ϶§ º¯¼ö Àç Á¤ÀÇ ******************************************************************************/ @error_reporting(E_ALL ^ E_NOTICE); - @extract($HTTP_GET_VARS); + foreach($HTTP_GET_VARS as $key=>$val) $$key = del_html($val); @extract($HTTP_POST_VARS); @extract($HTTP_SERVER_VARS); @extract($HTTP_ENV_VARS); + $page = (int)$page; + + $temp_filename=realpath(__FILE__); + if($temp_filename) $config_dir=eregi_replace("lib.php","",$temp_filename); + else $config_dir=""; + /******************************************************************************* * ±âº» º¯¼ö ÃʱâÈ­. (phpÀÇ ¿À·ù°°Áö ¾ÊÀº ¿À·ù ¶§¹®¿¡;; ¤Ñ¤Ñ+) ******************************************************************************/ diff -urN zb41pl7/license.txt zb41pl8/license.txt --- zb41pl7/license.txt 2005-04-04 18:11:07.000000000 +0900 +++ zb41pl8/license.txt 2006-03-15 19:10:51.000000000 +0900 @@ -3,7 +3,7 @@ ¾Æ·¡ ¶óÀ̼¾½º¿¡ µ¿ÀÇÇϽô ºÐ¸¸ Á¦·Îº¸µå¸¦ »ç¿ëÇÒ¼ö ÀÖ½À´Ï´Ù. ÇÁ·Î±×·¥¸í : Zeroboard -¹èÆ÷¹öÁ¯ : 4.1 pl 7 (2005. 4. 4) +¹èÆ÷¹öÁ¯ : 4.1 pl 8 (2006. 3. 15) °³¹ßÀÚ : zero Homepage : http://zeroboard.com diff -urN zb41pl7/login_check.php zb41pl8/login_check.php --- zb41pl7/login_check.php 2006-08-18 06:41:28.000000000 +0900 +++ zb41pl8/login_check.php 2006-08-18 06:41:29.000000000 +0900 @@ -6,6 +6,11 @@ $user_id = trim($user_id); $password = trim($password); + if(!get_magic_quotes_gpc()) { + $user_id = addslashes($user_id); + $password = addslashes($password); + } + if(!$user_id) Error("¾ÆÀ̵𸦠ÀÔ·ÂÇÏ¿© Áֽʽÿä"); if(!$password) Error("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© Áֽʽÿä"); diff -urN zb41pl7/member_join_ok.php zb41pl8/member_join_ok.php --- zb41pl7/member_join_ok.php 2006-08-18 06:41:28.000000000 +0900 +++ zb41pl8/member_join_ok.php 2006-08-18 06:41:29.000000000 +0900 @@ -40,6 +40,11 @@ // ºó¹®ÀÚ¿­ÀÎÁö¸¦ °Ë»ç $user_id = str_replace("¤Ô","",$user_id); $name = str_replace("¤Ô","",$name); + + if(!get_magic_quotes_gpc()) { + $user_id = addslashes($user_id); + $password = addslashes($password); + } $user_id=trim($user_id); if(isBlank($user_id)) Error("ID¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù",""); diff -urN zb41pl7/member_memo.php zb41pl8/member_memo.php --- zb41pl7/member_memo.php 2006-08-18 06:41:28.000000000 +0900 +++ zb41pl8/member_memo.php 2006-08-18 06:41:29.000000000 +0900 @@ -16,13 +16,13 @@ // »õÂÊÁö ¿Ô½À´Ï´Ù;; ¾Ë¶÷ ¾ø¾Ö±â mysql_query("update $member_table set new_memo='0' where no='$member[no]'"); -// ÀÏÁÖÀÏ ³ÑÀº ±Û »èÁ¦;; - mysql_query("delete from $get_memo_table where (".time()." - reg_date) >= ".$_zbDefaultSetup[memo_limit_time]) or error(mysql_error()); +// ÁöÁ¤ ³ÑÀº ±Û »èÁ¦;; + mysql_query("delete from $get_memo_table where member_no='$member[no]' and (".time()." - reg_date) >= ".$_zbDefaultSetup[memo_limit_time]) or error(mysql_error()); // ¼±ÅÃµÈ ¸Þ¸ð »èÁ¦;;; if($exec=="del_all") { for($i=0;$i$total_page) $page=$total_page; // ÆäÀÌÁö°¡ Àüü ÆäÀÌÁöº¸´Ù Å©¸é ÆäÀÌÁö ¹øÈ£ ¹Ù²Þ // µ¥ÀÌŸ »Ì¾Æ¿À´Â ºÎºÐ... - $que="select a.no as no, a.subject as subject, a.reg_date as reg_date, a.readed as readed, b.name as name, a.member_from as member_from from $get_memo_table a ,$member_table b where a.member_no='$member[no]' and a.member_from=b.no order by a.no desc limit $start_num,$page_num"; + $que="select a.no as no, a.subject as subject, a.reg_date as reg_date, a.readed as readed, b.name as name, b.user_id as user_id, a.member_from as member_from from $get_memo_table a ,$member_table b where a.member_no='$member[no]' and a.member_from=b.no order by a.no desc limit $start_num,$page_num"; $result=mysql_query($que) or Error(mysql_error()); // MySQL ´Ý±â @@ -136,7 +135,7 @@ "; @@ -159,7 +158,7 @@
- ','view_info','width=400,height=500,toolbar=no,scrollbars=yes'))> + ','view_info','width=400,height=500,toolbar=no,scrollbars=yes'))> (ID : ) @@ -167,7 +166,7 @@
- + @@ -244,7 +243,7 @@ $temp_name = get_private_icon($data[member_from], "1"); if($temp_name) $data[name]=" ".$data[name]; - $data[subject]=stripslashes($data[subject]); + $data[subject]=stripslashes(del_html($data[subject])); $reg_date=date("Y/m/d H:i",$data[reg_date]); if($data[readed]==0) $readed=""; else $readed="" ?> @@ -259,7 +258,7 @@ ">
>
- ','view_info','width=400,height=510,toolbar=no,scrollbars=yes'))> + ','view_info','width=400,height=510,toolbar=no,scrollbars=yes'))>
() - +