forked from netcommons/NetCommons2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallerror.php
More file actions
76 lines (75 loc) · 2.09 KB
/
installerror.php
File metadata and controls
76 lines (75 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* DB接続のエラー表示用(まだ、インストール前の可能性があるため、テンプレートは固定)
* @package NetCommons
* @author Noriko Arai,Ryuji Masukawa
* @copyright 2006-2007 NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @project NetCommons Project, supported by National Institute of Informatics
* @access public
*/
$content =
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="" lang="">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title></title>
<style type="text/css">
img {border:0px;}
form {margin:0px;}
body {
margin:0px;
padding:0px;
text-decoration:none;
color:#6e6e6e;
margin:0px;
padding:0px;
text-decoration:none;
font-size:80%;
font-family:Arial, sans-serif;
}
table {
border-width:0px;
padding:0px;
border-collapse:collapse;
font-size: small;
}
.redirect_body {
background-color:#e0dcfc;
}
.redirect_body .redirect_main{
margin: 120px 150px 80px;
text-align:left;
}
.redirect_body .redirect_text{
padding-left:8px;
font-size:210%;
border: 1px solid #ff0000;
background-color:#ffffff;
}
</style>
</head>
<body class="redirect_body">
<table class="redirect_main" summary="">
<tr>
<td class="redirect_text">';
if(defined("INSTALL_PERMISSION_ERROR")) {
$content .= INSTALL_PERMISSION_ERROR;
} else if(defined("_INSTALL_INI_FAILURE_IS_WRITEABLE_MES")) {
$content .= _INSTALL_INI_FAILURE_IS_WRITEABLE_MES;
} else {
/* TODO:英語の文章も表示するべき */
$content .= 'DB接続に失敗しました。<br />
インストールしていないか、正常にインストールされていない<br />
可能性があります。<br />
webapp/config/install.inc.phpに書き込み権限を設定し、<br />
再度、読み込んでください。';
}
$content .= '
</td>
</tr>
</table>
</body>
</html>
';
?>