<?php
$sub_menu = "920300";
define('G5_IS_ADMIN', true);
include_once ('../../../common.php');
include_once(G5_ADMIN_PATH.'/admin.lib.php');
auth_check($auth[$sub_menu], "w");
if($action == 'install')
{
// 테이블 생성 ------------------------------------
$file = implode('', file('./install.sql'));
eval("\$file = \"$file\";");
$file = preg_replace('/^--.*$/m', '', $file);
$file = preg_replace('/`g5_([^`]+`)/', '`'.$table_prefix.'$1', $file);
$f = explode(';', $file);
for ($i=0; $i<count($f); $i++) {
if (trim($f[$i]) == '') continue;
sql_query($f[$i], true);
}
// 테이블 생성 ------------------------------------
@set_session('install','success');
alert('메뉴클리수통게플러그인 설치성공.','../index.php');
}
$g5['title'] = "메뉴클리수통게플러그인 - 설치";
include_once(G5_ADMIN_PATH.'/admin.head.php');
add_stylesheet('<link rel="stylesheet" href="../css/style.css" />');
?>
<form id="install" name="install" method="post">
<!--
<div class="tbl_frm01 tbl_wrap">
<table>
<colgroup>
<col class="grid_4">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="username">고객아이디</label></th>
<td>
<input type="text" name="username" class="frm_input required" style="width:150px;" placeholder="고객아이디" value="" autofocus="autofocos" />
</td>
</tr>
<tr>
<th scope="row"><label for="code">프로그램코드</label></th>
<td>
<input type="text" name="code" class="frm_input required" style="width:280px;" placeholder="프로그램코드" value="" />
</td>
</tr>
</tbody>
</table>
</div>
-->
<div class="btn_confirm01 btn_confirm">
<input type="hidden" name="id" value="0">
<input type="hidden" id="action" name="action" value="install">
<input type="submit" value="설치하기" class="btn_submit" accesskey="s">
</div>
</form>
<?php
include_once(G5_ADMIN_PATH.'/admin.tail.php');
?>
여기의 어딘가가 에러라는 것 같은뎅..