short open tag off

This commit is contained in:
gnuboard
2013-04-25 14:29:42 +09:00
parent e53639b07d
commit 67881a5d6f
253 changed files with 3188 additions and 3194 deletions

View File

@ -1,10 +1,10 @@
<?
<?php
$title = "그누보드4s 설치 3단계 중 1단계 라이센스 확인";
include_once ('../config.php');
include_once ('./install.inc.php');
?>
<?
<?php
if ($exists_data_dir && $write_data_dir) {
?>
<p>
@ -12,7 +12,7 @@ if ($exists_data_dir && $write_data_dir) {
라이센스에 동의하시는 경우에만 설치가 진행됩니다.
</p>
<textarea name="textarea" id="idx_license" readonly><?=implode('', file('../LICENSE.txt'));?></textarea>
<textarea name="textarea" id="idx_license" readonly><?php echo implode('', file('../LICENSE.txt')); ?></textarea>
<form action="./install_config.php" method="post" onsubmit="return frm_submit(this);">
<div id="idx_agree">
@ -36,7 +36,7 @@ function frm_submit(f)
return true;
}
</script>
<?
<?php
} // if
?>

View File

@ -1,15 +1,14 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
$data_path = '../'.G4_DATA_DIR;
if (!$title) $title = "그누보드4s 설치";
?>
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title><?=$title?></title>
<title><?php echo $title ?></title>
<style>
body {margin:0;padding:0;background:#f7f7f7}
h1 {margin:50px auto 30px;width:540px;font-size:1.4em}
@ -34,51 +33,51 @@ td span {display:block;margin:0 0 5px;color:#666;font-size:0.9em}
</head>
<body>
<h1><?=$title?></h1>
<h1><?php echo $title ?></h1>
<div id="wrapper">
<?
<?php
// 파일이 존재한다면 설치할 수 없다.
$dbconfig_file = $data_path.'/'.G4_DBCONFIG_FILE;
if (file_exists($dbconfig_file)) {
?>
<p>프로그램이 이미 설치되어 있습니다.<br />새로 설치하시려면 다음 파일을 삭제 하신 후 새로고침 하십시오.</p>
<ul>
<li><?=$dbconfig_file?></li>
<li><?php echo $dbconfig_file ?></li>
</ul>
<?
<?php
exit;
}
?>
<?
<?php
$exists_data_dir = true;
// data 디렉토리가 있는가?
if (!is_dir($data_path))
{
?>
<p>루트 디렉토리에 아래로 <?=G4_DATA_DIR?> 디렉토리를 생성하여 주십시오.<br />
<p>루트 디렉토리에 아래로 <?php echo G4_DATA_DIR ?> 디렉토리를 생성하여 주십시오.<br />
(common.php 파일이 있는곳이 루트 디렉토리 입니다.)<br /><br />
$> mkdir <?=G4_DATA_DIR?><br /><br />
$> mkdir <?php echo G4_DATA_DIR ?><br /><br />
윈도우의 경우 data 폴더를 하나 생성해 주시기 바랍니다.<br /><br />
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
<?
<?php
$exists_data_dir = false;
}
?>
<?
<?php
$write_data_dir = true;
// data 디렉토리에 파일 생성 가능한지 검사.
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
if (!(is_readable($data_path) && is_writeable($data_path) && is_executable($data_path)))
{
?>
<p><?=G4_DATA_DIR?> 디렉토리의 퍼미션을 707로 변경하여 주십시오.<br /><br />
$> chmod 707 <?=G4_DATA_DIR?> 또는 chmod uo+rwx <?=G4_DATA_DIR?><br /><br />
<p><?php echo G4_DATA_DIR ?> 디렉토리의 퍼미션을 707로 변경하여 주십시오.<br /><br />
$> chmod 707 <?php echo G4_DATA_DIR ?> 또는 chmod uo+rwx <?php echo G4_DATA_DIR ?><br /><br />
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
<?
<?php
$write_data_dir = false;
}
}

View File

@ -1,4 +1,4 @@
<?
<?php
$gmnow = gmdate('D, d M Y H:i:s').' GMT';
header('Expires: 0'); // rfc2616 - Section 14.21
header('Last-Modified: ' . $gmnow);

View File

@ -1,4 +1,4 @@
<?
<?php
set_time_limit(0);
$gmnow = gmdate('D, d M Y H:i:s') . ' GMT';
header('Expires: 0'); // rfc2616 - Section 14.21
@ -45,7 +45,7 @@ if (!$select_db) {
<h2>그누보드4s 설치가 시작되었습니다.</h2>
<ol>
<?
<?php
// 테이블 생성 ------------------------------------
$file = implode('', file('./gnuboard4s.sql'));
eval("\$file = \"$file\";");
@ -62,7 +62,7 @@ for ($i=0; $i<count($f); $i++) {
<li>전체 테이블 생성 완료</li>
<?
<?php
$read_point = 0;
$write_point = 0;
$comment_point = 0;
@ -149,7 +149,7 @@ $sql = " insert into `{$table_prefix}member`
<li>DB설정 완료</li>
<?
<?php
//-------------------------------------------------------------------------------------------------
// 디렉토리 생성
@ -170,7 +170,7 @@ for ($i=0; $i<count($dir_arr); $i++) {
<li>데이터 디렉토리 생성 완료</li>
<?
<?php
//-------------------------------------------------------------------------------------------------
// DB 설정 파일 생성
@ -206,15 +206,15 @@ fwrite($f, "\$g4['visit_table'] = G4_TABLE_PREFIX.'visit'; // 방문자 테이
fwrite($f, "\$g4['visit_sum_table'] = G4_TABLE_PREFIX.'visit_sum'; // 방문자 합계 테이블\n");
fwrite($f, "\$g4['uniqid_table'] = G4_TABLE_PREFIX.'uniqid'; // 유니크한 값을 만드는 테이블\n");
fwrite($f, "\$g4['syndi_log_table'] = G4_TABLE_PREFIX.'syndi_log'; // 네이버 신디케이션 컨텐츠 삭제 로그 테이블\n");
fwrite($f, "?>");
fwrite($f, " ?>");
fclose($f);
@chmod($file, 0606);
?>
<li>DB설정 파일 생성 완료 (<?=$file?>)</li>
<li>DB설정 파일 생성 완료 (<?php echo $file ?>)</li>
<?
<?php
// data 디렉토리 및 하위 디렉토리에서는 .htaccess .htpasswd .php .phtml .html .htm .inc .cgi .pl 파일을 실행할수 없게함.
$f = fopen($data_path.'/.htaccess', 'w');
$str = <<<EOD