±¸Àα¸Á÷ ÇÁ·Î±×·¥ÀÎ »õº½·Î¸¦ ¼³Ä¡ÇÏ·Á ¸îÀÏÀ» °í»ýÇÏ°í ÀÖ½À´Ï´Ù.
´Ù¸¥°Ç ´Ù Á¤»óÀûÀ¸·Î ½ÇÇàÀÌ µÇ´Âµ¥¿ä..
admin_main.phtml ·Î Á¢±ÙÇϸé (http://www.yellowpage.org/job/admin_main.phtml)
Parse error: syntax error, unexpected T_STRING in /home1/myalba/public_html/job/admin_main.phtml on line 13
ÀÇ ¿¡·¯ ȸéÀÌ ³ª¿É´Ï´Ù.
13¹ø쨰 ÁÙÀ̸é cfunction authenticate(){ °¡ ÀÛ¼ºµÈ ºÎºÐÀεí Çѵ¥¿ä,. ¹«¾ùÀ» ¾î¶»°Ô ¼öÁ¤ÇØ ÁÖ¾î¾ß ¿¡·¯°¡ ³ªÁö ¾ÊÀ»±î¿ä?
°í»ýÇÏ°í ÀÖ´Â Ãʺ¸ÀÚ¸¦ À§ÇØ Çѹø¸¸ µµ¿ÍÁֽñ⠹ٶø´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
<?
/*
ÇÁ·Î±×·¥¸í »õº½·Î(Sb-Road)
Á¦ÀÛ ¿À°æÅÃ
¸ÞÀÏ clock934@naver.com
ÀÌÇÁ·Î±×·¥Àº http://www.jobs21.net ¿¡¼ Á¦À۵ǾúÀ¸¸ç Á¦ÀÛÀÚÀÇ ÇùÀǾøÀÌ ÀçÆǸŸ¦ ÇÒ ¼ö ¾ø´Ù.
*/
//admin_main.phtml (¿î¿µÀÚ¸ðµå·Î±×ÀÎ)
include("inc_initarray.phtml");
cfunction authenticate(){
Header("WWW-authenticate: basic realm=\"¿î¿µÀھƵð¿Í¾ÏÈ£ÀÔ·Â!\" ");
Header("HTTP/1.0 401 Unauthorized");
$title="Invaild Login";
echo("
<CENTER>
<fonr size=2>Á¢±ÙºÒ°¡(¾ÆÀ̵ð/¾ÏȣȮÀÎ)</font>
</CENTER>
");
exit;
}
if(!isset($PHP_AUTH_USER)){
authenticate();
} else{ //isset =>Á¸Àç¿©ºÎ //Åë°úµÇ¸é g_input_formÀ» º¸ÀδÙ.
if($PHP_AUTH_USER!=$ADMINID || $PHP_AUTH_PW!=$ADMINPASSWORD)authenticate();
setcookie("jsadmincookieval","$ADMINID$ADMINPASSWORD");
echo("<META http-equiv='refresh' content='0;url=$sfile[admin_menu]'>"); //·Î±×ÀÎÀ» ¸¶Ä¡¸é °ü¸®ÀÚ¸Þ´º·Î À̵¿
}
?>