3 * Check if all is setup correctly
6 header('HTTP/1.0 500 Internal Server Error');
8 $reqWritePermissions = false;
9 require_once 'www-header.php';
11 if (!$GLOBALS['phorkie']['cfg']['setupcheck']) {
12 header('HTTP/1.0 403 Forbidden');
13 header('Content-type: text/plain');
14 echo "Setup check is disabled\n";
18 $messages = SetupCheck::run();
20 foreach ($messages as $arMessage) {
21 list($type, $message) = $arMessage;
22 $type == 'error' && ++$errors;
25 header('HTTP/1.0 200 OK');
27 header('Content-type: text/html');
30 $messages[] = array('ok', 'All fine');
34 <?xml version="1.0" encoding="utf-8"?>
35 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
36 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
38 <title>phorkie setup check</title>
39 <link rel="stylesheet" href="css/bootstrap.min.css"/>
40 <link rel="stylesheet" href="css/font-awesome.css"/>
41 <link rel="stylesheet" href="css/phorkie.css"/>
42 <meta name="viewport" content="width=device-width, initial-scale=1"/>
43 <style type="text/css">
47 display: inline-block;
52 li.list-group-item-success:before {
56 li.list-group-item-danger:before {
59 background-color: red;
61 li.list-group-item-info:before {
70 <div class="container">
74 <div class="page-header">
75 <h1>phorkie setup check</h1>
78 <ul class="list-group">
85 foreach ($messages as $arMessage) {
86 list($type, $message) = $arMessage;
87 $out .= '<li class="list-group-item list-group-item-'
88 . $stateMap[$type] . '">';
89 $out .= htmlspecialchars($message);
90 $out .= '</li>' . "\n";
95 <a href="./">back</a> to the index
101 <div class="container footer">
102 <a href="//sf.net/p/phorkie/">phorkie</a>,
103 the self-hosted, git-based pastebin software is available under the
104 <a href="http://www.gnu.org/licenses/agpl-3.0.html">
105 <abbr title="GNU Affero General Public License">AGPL</abbr></a>.