echo "ok";
killme();
}
+
+ // We overwrite current theme css, because during install we could not have a working mod_rewrite
+ // so we could not have a css at all. Here we set a static css file for the install procedure pages
+ $a->config['system']['theme'] = "../install";
+ $a->theme['stylesheet'] = $a->get_baseurl()."/view/install/style.css";
+
+
+
global $install_wizard_pass;
if (x($_POST,'pass'))
$install_wizard_pass = intval($_POST['pass']);
--- /dev/null
+/***\r
+ * Friendica Communcation Server\r
+ *\r
+ * This is the static css for the install procedure\r
+ */\r
+\r
+body {\r
+ background-color: #FFF;\r
+ max-width: 750px;\r
+ margin: 0 auto;\r
+}\r
+\r
+section {\r
+ background-color: rgb(252, 252, 252);\r
+ padding: 0.5em 2em;\r
+}\r
+\r
+h1 img {\r
+ vertical-align: sub;\r
+}\r
+\r
+td {\r
+ padding: 0.2em;\r
+ border-bottom: 1px solid rgb(238, 238, 238);\r
+}\r
+td.help {\r
+ border-width: 0px 0px 2px 2px;\r
+ border-style: solid;\r
+ border-color: #000;\r
+ background: transparent url("/friendica/view/install/info.png") no-repeat scroll 5px 5px;\r
+}\r
+td.help blockquote {\r
+ margin-left: 60px;\r
+}\r
+input[type="submit"] {\r
+ margin: 2em 0;\r
+}\r
+\r
+tt {\r
+ background-color: rgb(238, 238, 238);\r
+ padding: 0.1em 0.2em;\r
+}\r
+\r
+.field {\r
+ margin-bottom: 0.5em;\r
+}\r
+.field label,\r
+.field input, .field select, .field textarea {\r
+ width: 100%;\r
+ display: block;\r
+}\r
+.field .field_help {\r
+ color: #999;\r
+ text-align: right;\r
+ width: 100%;\r
+ display: block;\r
+ font-size: 0.8em;\r
+}\r
-<h1>{{$title}}</h1>
+<h1><img src="{{$baseurl}}/images/friendica-32.png"> {{$title}}</h1>
<h2>{{$pass}}</h2>
-<h1>{{$title}}</h1>
+<h1><img src="{{$baseurl}}/images/friendica-32.png"> {{$title}}</h1>
<h2>{{$pass}}</h2>
<form action="{{$baseurl}}/index.php?q=install" method="post">
<table>
{{foreach $checks as $check}}
- <tr><td>{{$check.title}} </td><td><span class="icon s22 {{if $check.status}}on{{else}}{{if $check.required}}off{{else}}yellow{{/if}}{{/if}}"></td><td>{{if $check.required}}(required){{/if}}</td></tr>
+ <tr><td>{{$check.title}} </td><td>
+ {{if $check.status}}
+ <img src="{{$baseurl}}/view/install/green.png" alt="Ok">
+ {{else}}
+ {{if $check.required}}
+ <img src="{{$baseurl}}/view/install/red.png" alt="Requirement not satisfied">
+ {{else}}
+ <img src="{{$baseurl}}/view/install/yellow.png" alt="Optional requirement not satisfied">
+ {{/if}}
+ {{/if}}
+ </td><td>{{if $check.required}}(required){{/if}}</td></tr>
{{if $check.help}}
- <tr><td colspan="3"><blockquote>{{$check.help}}</blockquote></td></tr>
+ <tr><td class="help" colspan="3"><blockquote>{{$check.help}}</blockquote></td></tr>
{{/if}}
{{/foreach}}
</table>
-<h1>{{$title}}</h1>
+<h1><img src="{{$baseurl}}/images/friendica-32.png"> {{$title}}</h1>
<h2>{{$pass}}</h2>
-<h1>{{$title}}</h1>
+<h1><img src="{{$baseurl}}/images/friendica-32.png"> {{$title}}</h1>
<h2>{{$pass}}</h2>