¸ÇÀ§·Î ¸Ç¾Æ·¡ ³×À̹öÅåÅå ±¸¸Å»ó´ã
°í°´´ÔÀÇ ¼Ò¸®¸¦
±Í±â¿ï¿© µè°Ú½À´Ï´Ù.
°í°´Áö¿ø ¸¶¹ý»ç 16±¸¸ÅÇýÅà Ŀ½ºÅ͸¶ÀÌ¡À̶õ?

°øÁö»çÇ×

[°øÁö] ¾÷ü°è¿­ÀÇ ¼Ö·ç¼Ç ½Ç½Ã°£¿¹¾à ¹ö±× ÆÐÄ¡
BY kwak17 2011-08-09 (10:47:38) from 115.93.87.166
°ü·Ã±Û: 1 Á¶È¸¼ö : 3958


¾È³çÇϼ¼¿ä. ÇØÇÇCGI ÀÔ´Ï´Ù.


Á¤º¸¼Ò°³ ¼Ö·ç¼ÇÀÇ ½Ç½Ã°£¿¹¾à¿¡ ¹ö±×°¡ ¹ß°ßµÇ¾î ÀÌ·¸°Ô °øÁö¸¦ ¶ç¿ó´Ï´Ù.

°´½ÇÀ» µî·Ï½Ã "½Ã°£"À» ±âÁØÀ¸·Î ¿¹¾àÀ» ¹Þ°Ô µÉ °æ¿ì
¿¹¾àÇöȲ¿¡¼­ ÃÑ°´½Ç¼ö°¡ À߸ø Ç¥±â°¡ µÇ´Â Çö»óÀÌ ¹ß°ß µÇ¾ú½À´Ï´Ù.

À̸¦ ¼öÁ¤À» ¹Þ±â¸¦ ¿øÇϽô ºÐµéÀº ÀúÈñ ±â¼úÁö¿ø °Ô½ÃÆÇÀ¸·Î µµ¸ÞÀΰú FTPÁ¤º¸¸¦ °°ÀÌ Àû¾î ±ÛÀ» ¿Ã·ÁÁֽøé,
È®ÀÎÈÄ ¼öÁ¤À» Çص帮°Ú½À´Ï´Ù.


Á÷Á¢ ¼öÁ¤À» ¿øÇϽô ºÐµéÀº schedule/include/lib.php ÆÄÀÏ¿¡¼­
¾Æ·¡ ¼Ò½º·Î °Ë»öÀ» Çغ¸½Ã¸é µ¿ÀÏÇÑ ¼Ò½º°¡ 2°÷¿¡¼­ ³ª¿À°Ô µË´Ï´Ù.
floor($tmp / $roomData['reservation_time']);

ÀÌ ¼Ò½º ¾Æ·§ÁÙ¿¡ º¸½Ã¸é ¾Æ·¡¿Í °°Àº ¼Ò½º°¡ Àִµ¥,
$CheckCount = $CheckCount * $tmp;

À§ ¼Ò½º¸¦ ¾Æ·¡Ã³·³ º¯°æ ÇØÁÖ½Ã¸é µË´Ï´Ù.
$CheckCount = $CheckCount * ($tmp+1);


¼öÁ¤ÇÒ°÷ÀÌ 2°÷ÀÌ ÀÖÀ¸´Ï 2°÷¸ðµÎ À§¿Í°°ÀÌ º¯°æÀ» ÇØÁÖ½Ã¸é µÇ°Ú½À´Ï´Ù.

¼öÁ¤Àü ¼Ò½º¿Í ¼öÁ¤ÈÄ ¼Ò½º¸¦ º¸¿© µå¸®°Ú½À´Ï´Ù.

¼öÁ¤Àü ¼Ò½º
									$tmp	= $roomData['reservation_time_end'] - $roomData['reservation_time_start'];
									$tmp	= floor($tmp / $roomData['reservation_time']);
									$CheckCount	= $CheckCount * $tmp;


¼öÁ¤ÈÄ ¼Ò½º
									$tmp	= $roomData['reservation_time_end'] - $roomData['reservation_time_start'];
									$tmp	= floor($tmp / $roomData['reservation_time']);
									$CheckCount	= $CheckCount * ($tmp+1);




±×¸®°í ¾Æ·¡ ¼Ò½ºµµ Ãß°¡ÀûÀ¸·Î ¼öÁ¤À» ÇØÁÖ¼Å¾ß ÇÕ´Ï´Ù.

¼öÁ¤Àü ¼Ò½º
						#ÇöÀç ¿¹¾àµÈ ¹æ°¹¼ö üũ
						$Sql	= "
									SELECT
											sum(room_count)
									FROM
											$happy_schedule_room
									WHERE
											links_number	= '$happy_schedule_links_number'
											$AddWhere
						";

						$Tmp	= mysql_fetch_array(query($Sql));
						$CheckCount	= $Tmp[0];

						$Sql	= "
									SELECT
											*
									FROM
											$happy_schedule_room
									WHERE
											links_number	= '$happy_schedule_links_number'
											$AddWhere
									ORDER BY
											number
						";

						$Record	= query($Sql);
						$roomData = mysql_fetch_array($Record);
						if ( $roomData['reservation_time'] < 24 )
						{
							$tmp	= $roomData['reservation_time_end'] - $roomData['reservation_time_start'];
							$tmp	= @floor($tmp / $roomData['reservation_time']);
							$CheckCount	= $CheckCount * ($tmp+1);
						}



¼öÁ¤ÈÄ ¼Ò½º
						# ÇØ´ç ÀÏÀÚ ¸¶°¨³¯Â¥ üũ ·çƾ ¼öÁ¤ #
						$Sql	= "
									SELECT
											*
									FROM
											$happy_schedule_room
									WHERE
											links_number	= '$happy_schedule_links_number'
											$AddWhere
									ORDER BY
											number
						";

						$Record	= query($Sql);

						$CheckCount	= 0;
						while ( $roomData = mysql_fetch_array($Record) )
						{
							if ( $roomData['reservation_time'] < 24 )
							{
								$tmp	= $roomData['reservation_time_end'] - $roomData['reservation_time_start'];
								$tmp	= @floor($tmp / $roomData['reservation_time']);
								$CheckCount	= $CheckCount + ( $roomData['room_count'] * ($tmp+1) );
							}
							else
							{
								$CheckCount	= $CheckCount + $roomData['room_count'];
							}
						}





½Ç½Ã°£¿¹¾à ½Ã½ºÅÛÀ» ÀÌ¿ëÁßÀ̽Š°í°´´Ôµé²² ºÒÆíµå·Á Á˼ÛÇÕ´Ï´Ù.
¾ÕÀ¸·Î ´õ ÁÁÀº ¼Ö·ç¼ÇÀ¸·Î º¸´ä ÇÏ°Ú½À´Ï´Ù.

°¨»çÇÕ´Ï´Ù.
°ü·Ã °Ô½Ã±Û
ÀÚ·á Á¦¸ñ µî·ÏÀÏ Á¶È¸
[°øÁö] ¾÷ü°è¿­ÀÇ ¼Ö·ç¼Ç ½Ç½Ã°£¿¹¾à ¹ö±× ÆÐÄ¡ kwak17 2011-08-09 3958