summaryrefslogtreecommitdiff
path: root/setup/templates/pre_install.tpl
blob: 3c65e43f1fc44c3571fcf2cd7f48915ed09abfdc (plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<div>
	<?php echo Filters::noXSS($message); ?>

	<h1><?php echo Filters::noXSS(L('preinstallcheck')); ?></h1>
	<h2><?php echo Filters::noXSS(L('libcheck')); ?></h2>
	<div class="installBlock">
	<p><?php echo L('libchecktext'); ?></p>
	<table class="formBlock">
	<tr>
		<td class="heading"><?php echo Filters::noXSS(L('library')); ?></td>
		<td class="heading"><?php echo Filters::noXSS(L('status')); ?></td>
		<td class="heading">&nbsp;</td>
	</tr>
	<tr>
		<td>PHP <?php echo PHP_VERSION; ?> >= <?php echo Filters::noXSS($required_php); ?></td>
		<td align="left"><b><?php echo $php_output; ?></b></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>XML Extension</td>
		<td align="left"><b><?php echo Setup::ReturnStatus($xmlStatus); ?></b></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>cURL Library</td>
		<td align="left"><b><?php echo Setup::ReturnStatus(extension_loaded('curl'), 'yes'); ?></b></td>
		<td>required if you want allow Oauth2 authentications</td>
	</tr>
	<tr>
		<td>GD Library</td>
		<td align="left"><b><?php echo Setup::ReturnStatus(extension_loaded('gd'), 'yes'); ?></b></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>Exif Library</td>
		<td align="left"><b><?php echo Setup::ReturnStatus(extension_loaded('exif'), 'yes'); ?></b></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>SAPI (<?php echo Filters::noXSS(php_sapi_name()); ?>)</td>
		<td align="left"><b><?php echo Setup::ReturnStatus($sapiStatus, 'support'); ?></b></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td class="heading"><?php echo Filters::noXSS(L('database')); ?></td>
		<td class="heading"><?php echo Filters::noXSS(L('inphp')); ?></td>
		<td class="heading" style="text-align:center"><?php echo Filters::noXSS($product_name); ?></td>
	</tr>
	<?php echo $database_output; ?>
	</table>

	<?php if (!$sapiStatus): ?>
		<p><strong>CGI server API is not supported</strong>. Consider upgrading to FastCGI, otherwise you have to add
		<code>force_baseurl = "http://yourflyspray/"</code> manually to flyspray.conf.php after setup.
		</p>
	<?php endif; ?>
	</div>

	<h2><?php echo Filters::noXSS(L('recsettings')); ?></h2>
	<div class="installBlock">
		<p><?php echo Filters::noXSS(L('recsettingstext1')); ?></p>
		<p><?php echo Filters::noXSS(L('recsettingstext2')); ?></p>
		<table class="formBlock">
		<tr>
			<td class="heading"><?php echo Filters::noXSS(L('directive')); ?></td>
			<td class="heading"><?php echo Filters::noXSS(L('recommended')); ?></td>
			<td class="heading"><?php echo Filters::noXSS(L('actual')); ?></td>
		</tr>
		<?php echo $php_settings; ?>
		</table>
	</div>

	<h2><?php echo Filters::noXSS(L('dirandfileperms')); ?></h2>
	<div class="installBlock">
		<p><?php echo Filters::noXSS(L('dirandfilepermstext')); ?></p>
		<table class="formBlock">
		<tr>
			<td valign="top">../flyspray.conf.php</td>
			<td align="left"><b><?php echo $config_output; ?></b></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td valign="top">../cache</td>
			<td align="left"><b><?php echo $cache_output; ?></b></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td valign="top">../attachments</td>
			<td align="left"><b><?php echo $att_output; ?></b></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td valign="top">../avatars</td>
			<td align="left"><b><?php echo $ava_output; ?></b></td>
			<td>&nbsp;</td>
		</tr>
		</table>
		
		<?php if (!$config_status): ?>
		<p>
		The installer has detected that the <strong>flyspray.conf.php</strong> file is not
		writeable. Please make it writeable by the web-server user or world writeable to
		proceed with the setup. Alternatively if you wish to proceed, the installer will
		make available the contents of the configuration file at the end of the setup. You
		will then have to manually copy and paste the contents into the configuration file
		located at <strong><?php echo APPLICATION_PATH . DIRECTORY_SEPARATOR . 'flyspray.conf.php'; ?></strong>.
		</p>
		<?php endif; ?>

		<?php if (!$status) { ?>
			<p>
			You seem to have problems with the Pre-install configuration. Once you have fixed the
			problem, please refresh the page to be able to proceed to the next stage of
			<?php echo Filters::noXSS($product_name); ?> setup.
			</p>
		<?php }else { ?>
			<p><?php echo Filters::noXSS(L('proceedtodbsetuptext')); ?></p>
		<?php } ?>
		<form action="index.php" method="post" name="adminForm">
			<input type="hidden" name="action" value="database" />
			<button name="next" type="submit" class="button" value="next" <?php echo Filters::noXSS(tpl_disableif(!$status)); ?> ><?php echo Filters::noXSS(L('proceedtodbsetup')); ?></button>
		</form>
	</div>
</div>