document.location.replace('${url}') "); exit; } function error($msg){ echo(" "); exit; } function istable(){ global $istable,$dbname,$dbcon; $result=mysql_list_tables("$dbname",$dbcon); $count=mysql_num_rows($result); for($i=0;$i<$count;$i++){ $tablename=mysql_tablename($result,$i); if(!strcmp($tablename,boardsetup)){ $istable=1; break; } } } function temp_pass(){ istable(); global $istable,$adminpass,$temppass,$board,$dbcon; if(!$istable){ $adminpass=$temppass; } if($istable){ if($board){ $pass=mysql_query("select pass from boardsetup where tname='$board'",$dbcon); $passrow=mysql_fetch_row($pass); $adminpass=$passrow[0]; } else{ $adminpass=$temppass; } } } temp_pass(); if($login){ if(!ereg("[[:alnum:]+]",$userpass)){ error("¶È¹Ù·Î ³Ö¾îÁà¿ä!!!"); } if(!strcmp($adminpass,$userpass)){ $cookieid=md5(uniqid(rand())); setcookie("master",$cookieid,0); echo(""); exit; } else{ error("´©±¸Áö ÁÖÀÎÀå¸Â³ª??"); } } #########################################·Î±×ÀÎ ÆûÃâ·Â################################## if($board){ include "header.inc"; $bigstr=strtoupper($board); } else{ $table_align='center'; $table_width='600'; $table_line_color='gray'; } echo("

¡¡

¡¡

[$bigstr °Ô½ÃÆÇ]
°ü¸®ÀÚ ·Î±×ÀÎ
ºñ¹Ð¹øÈ£

"); include "bottom.inc"; ?>