그누보드 설치시 문제.....T.T 답변 부탁 정보
그누보드 설치시 문제.....T.T 답변 부탁본문
|
-----------------------------------<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 >
환경설정의 최신글 스킨경로를 기본 스킨으로 합니다. // 사용방법 // latest(스킨, 게시판아이디, 출력라인, 글자수); echo latest("scroll", $row['bo_table'], 12, 70, "4,25"); echo "
\n"; } ?> |
-----------------------------------------------글자만 뜹니다.
또한 http://aiin.co.kr/web/gnuboard4/install/ 입력하면
아래와 같이 글자만 나오는데요..
설치하려면 어떻게 해야 하나요?-----------707로 바꿔도 안됩니다... 웅웅~~
<?
include_once ("../config.php");
// 퍼미션을 다음과 같은 형식으로 얻는다. drwxrwxrwx
function get_perms($mode)
{
/* Determine Type */
if( $mode & 0x1000 )
$perms["type"] = 'p'; /* FIFO pipe */
else if( $mode & 0x2000 )
$perms["type"] = 'c'; /* Character special */
else if( $mode & 0x4000 )
$perms["type"] = 'd'; /* Directory */
else if( $mode & 0x6000 )
$perms["type"] = 'b'; /* Block special */
else if( $mode & 0x8000 )
$perms["type"] = '-'; /* Regular */
else if( $mode & 0xA000 )
$perms["type"] = 'l'; /* Symbolic Link */
else if( $mode & 0xC000 )
$perms["type"] = 's'; /* Socket */
else
$perms["type"] = 'u'; /* UNKNOWN */
/* Determine permissions */
$perms["owner_read"] = ($mode & 00400) ? 'r' : '-';
$perms["owner_write"] = ($mode & 00200) ? 'w' : '-';
$perms["owner_execute"] = ($mode & 00100) ? 'x' : '-';
$perms["group_read"] = ($mode & 00040) ? 'r' : '-';
$perms["group_write"] = ($mode & 00020) ? 'w' : '-';
$perms["group_execute"] = ($mode & 00010) ? 'x' : '-';
$perms["world_read"] = ($mode & 00004) ? 'r' : '-';
$perms["world_write"] = ($mode & 00002) ? 'w' : '-';
$perms["world_execute"] = ($mode & 00001) ? 'x' : '-';
/* Adjust for SUID, SGID and sticky bit */
if( $mode & 0x800 )
$perms["owner_execute"] = ($perms["owner_execute"]=='x') ? 's' : 'S';
if( $mode & 0x400 )
$perms["group_execute"] = ($perms["group_execute"]=='x') ? 's' : 'S';
if( $mode & 0x200 )
$perms["world_execute"] = ($perms["world_execute"]=='x') ? 't' : 'T';
return $perms;
}
// 파일이 존재한다면 설치할 수 없다.
if (file_exists("../dbconfig.php")) {
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
echo <<<HEREDOC
<script language="JavaScript">
alert("설치하실 수 없습니다.");
location.href="../";
</script>
HEREDOC;
exit;
}
/*
// 루트 디렉토리에 파일, 디렉토리 생성 가능한지 검사.
$perms = get_perms(fileperms("../"));
if ($perms["world_read"].$perms["world_write"].$perms["world_execute"] != "rwx") {
echo <<<HEREDOC
<script language="JavaScript">
alert("루트 디렉토리의 퍼미션을 707로 변경하여 주십시오.\\n\\ncommon.php 파일이 있는곳이 루트 디렉토리 입니다.\\n\\n$> chmod 707 . \\n\\n그 다음 설치하여 주십시오.");
</script>
HEREDOC;
exit;
}
*/
// 루트 디렉토리에 파일 생성 가능한지 검사.
if (!is_writeable(".."))
{
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
echo "<script language='JavaScript'>alert('루트 디렉토리의 퍼미션을 707로 변경하여 주십시오.\\n\\ncommon.php 파일이 있는곳이 루트 디렉토리 입니다.\\n\\n$> chmod 707 . \\n\\n그 다음 설치하여 주십시오.');</script>";
exit;
}
/*
$perms = get_perms(fileperms("../common.php"));
if ($perms["world_read"].$perms["world_write"] != "rw") {
echo <<<HEREDOC
<script language="JavaScript">
alert("루트 디렉토리에 있는 common.php 파일의 퍼미션을 606 또는 707로 변경하여 주십시오.\\n\\n$> chmod 606 common.php \\n\\n그 다음 설치하여 주십시오.");
</script>
HEREDOC;
exit;
}
*/
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4[charset]?>">
<title>그누보드4 설치 (1/3) - 라이센스(License)</title>
<style type="text/css">
<!--
.body {
font-size: 12px;
}
.box {
background-color: #D6D3CE;
font-size: 12px;
}
-->
</style>
</head>
<body background="img/all_bg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table width="587" border="0" cellspacing="0" cellpadding="0" align=center>
<tr>
<td colspan="3"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="587" height="22">
<param name="movie" value="img/top.swf">
<param name="quality" value="high">
<embed src="img/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="587" height="22"></embed></object></td>
</tr>
<tr>
<td width="3"><img src="img/box_left.gif" width="3" height="340"></td>
<td width="581" valign="top" bgcolor="#FCFCFC">
<table width="581" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="img/box_title.gif" width="581" height="56"></td>
</tr>
</table>
<table width="541" border="0" align="center" cellpadding="0" cellspacing="0" class="body">
<tr>
<td height="10"></td>
</tr>
<tr>
<td>라이센스(License) 내용을 반드시 확인하십시오.</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td align="center">
<textarea name="textarea" style='width:99%' rows="9" class="box" readonly>
<?=implode("", file("../LICENSE"));?>
</textarea>
</td>
</tr>
<tr>
<td height=10></td>
</tr>
<tr>
<td>설치를 원하시면 위 내용에 동의하셔야 합니다.<br>
동의를 원하시면 <예, 동의합니다> 버튼을 클릭해 주세요.</td>
</tr>
</table>
<table width="562" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height=20><img src="img/box_line.gif" width="562" height="2"></td>
</tr>
</table>
<table width="551" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="right">
<form name=frm method=post action="javascript:frm_submit(document.frm);">
<input type="hidden" name="agree" value="동의함">
<input type="submit" name="btn_submit" value="예, 동의합니다 ">
</form>
</td>
</tr>
</table>
</td>
<td width="3"><img src="img/box_right.gif" width="3" height="340"></td>
</tr>
<tr>
<td colspan="3"><img src="img/box_bottom.gif" width="587" height="3"></td>
</tr>
</table>
<script language="JavaScript">
function frm_submit(f)
{
f.action = "./install_config.php";
f.submit();
}
document.frm.btn_submit.focus();
</script>
</body>
</html>
댓글 전체
php를 인식하지 못하는 서버인가 보네요.