<link rel="stylesheet" href="styles/default/css/installation.css" />

<table id="maintable">
    <tr>
        <td valign="top" class="mainleft">
            <ul>
                <li class="active">pre-installation check</li>
                <li>Step 1</li>
                <li>Step 2</li>
                <li>Step 3</li>
                <li>Step 4</li>
                <li>Step 5</li>
            </ul>
        </td>
        <td valign="top" class="mainright">


            <table class="settings">
                <tr>
                    <td colspan="2">
                        <div style="float:right;">
                            <a href="index.php?module=installation&event=db" class="button">next &gt;</a><br />
                            <a href="index.php" class="button">Check again</a>
                        </div>
                        <h1>pre-installation check</h1>
                    </td>
                </tr>
                <tr>
                    <th colspan="2">Pre-installation check for: HEINZELM<span style="color:red;">A</span>NN</th>
                </tr>
                <tr><td colspan="2" class="spacer"></td></tr>
                <tr>
                    <td valign="top">
If any of these items are<br />
highlighted in red then please take<br />
actions to correct them. Failure to<br />
do so could lead to your <b>HEINZELM<span style="color:red;">A</span>NN</b><br />
installation not functioning<br />
correctly.
                    </td>
                    <td valign="top" class="boxed">

                        <table>
                            <tr>
                                <td>PHP version >= 5.2</td>
                                <td>
                                    [% if $phpversion %]
                                        <span class="okay">Yes</span>
                                    [% else %]
                                        <span class="error">No</span>
                                    [% /if %]
                                </td>
                            </tr>
                            <tr>
                                <td>- PEAR support</td>
                                <td>
                                    [% if $pear %]
                                        <span class="okay">Available</span>
                                    [% else %]
                                        <span class="error">Unavailable<span>
                                    [% /if %]
                                </td>
                            </tr>
                            <tr>
                                <td>- PEAR Modules</td>
                                <td>
                                    [% if $pearmod %]
                                        <span class="okay">Available</span>
                                    [% else %]
                                        <span class="error">Unavailable<span>
                                    [% /if %]
                                </td>
                            </tr>
                            <tr>
                                <td>- MSSQL support</td>
                                <td>
                                    [% if $sqlsrv %]
                                        <span class="okay">Available</span>
                                    [% else %]
                                        <span class="orange">Unavailable<span>
                                    [% /if %]
                                </td>
                            </tr>
                            <tr>
                                <td>- UniqID()</td>
                                <td>
                                    [% if $uniqid %]
                                        <span class="okay">Available</span>
                                    [% else %]
                                        <span class="error">Unavailable<span>
                                    [% /if %]
                                </td>
                            </tr>
                            <tr>
                                <td>- Multibyte String funktions</td>
                                <td>
                                    [% if $mbstring %]
                                        <span class="okay">Available</span>
                                    [% else %]
                                        <span class="error">Unavailable<span>
                                    [% /if %]
                                </td>
                            </tr>

                            
                            <tr>
                                <td>configuration.php</td>
                                <td>
                                    [% if $conf %]
                                        <span class="okay">Writeable</span>
                                    [% else %]
                                        <span class="error">Unwriteable<span>
                                    [% /if %]
                                </td>
                            </tr>
                            <tr>
                                <td>Session save path</td>
                                <td>
                                    [% $session_path %]<br />
                                    [% if $session %]
                                        <span class="okay">Writeable</span>
                                    [% else %]
                                        <span class="error">Unwriteable<span>
                                    [% /if %]
                                </td>
                            </tr>
                        </table>

                    </td>
                </tr>
                <tr>
                    <th colspan="2">Recommended settings:</th>
                </tr>
                <tr><td colspan="2" class="spacer"></td></tr>
                <tr>
                    <td valign="top">
These settings are recommended<br />
for PHP in order to ensure full<br />
compatibility with <b>HEINZELM<span style="color:red;">A</span>NN</b>.<br />
However, <b>HEINZELM<span style="color:red;">A</span>NN</b> will still operate<br />
if your settings do not quite match<br />
the recommended.
                    </td>
                    <td valign="top" class="boxed">
                        <table>
                            <tr>
                                <th>Directive</th>
                                <th>Recommended</th>
                                <th>Actual</th>
                            </tr>
                            <tr>
                                <td>Safe Mode:</td>
                                <td><span class="okay">OFF</span></td>
                                <td>
                                    [% if !$safe_mode %]
                                        <span class="okay">OFF</span>
                                    [% else %]
                                        <span class="error">ON<span>
                                    [% /if %]
                                </td>
                            </tr>
                            [%*
                            <tr>
                                <td>Display Errors:</td>
                                <td><span class="okay">OFF</span></td>
                                <td>
                                    [% if $display_errors %]
                                        <span class="okay">OFF</span>
                                    [% else %]
                                        <span class="error">ON<span>
                                    [% /if %]
                                </td>
                            </tr> 
                            *%]
                            <tr>
                                <td>File Uploads:</td>
                                <td><span class="okay">ON</span></td>
                                <td>
                                    [% if $file_uploads %]
                                        <span class="okay">ON</span>
                                    [% else %]
                                        <span class="error">OFF<span>
                                    [% /if %]
                                </td>
                            </tr>
                            <tr>
                                <td>Magic Quote GPC:</td>
                                <td><span class="okay">OFF</span></td>
                                <td>
                                    <span class="error">ON<span>
                                </td>
                            </tr>
                            <tr>
                                <td>Magic Quotes Runtime:</td>
                                <td><span class="okay">OFF</span></td>
                                <td>
                                    <span class="error">ON<span>
                                </td>
                            </tr>
                            <tr>
                                <td>Register Globals:</td>
                                <td><span class="okay">OFF</span></td>
                                <td>
                                    [% if !$register_globals %]
                                        <span class="okay">OFF</span>
                                    [% else %]
                                        <span class="error">ON<span>
                                    [% /if %]
                                </td>
                            </tr>
                            <tr>
                                <td>Output Buffering:</td>
                                <td><span class="okay">OFF</span></td>
                                <td>
                                    [% if !$output_buffering %]
                                        <span class="okay">OFF</span>
                                    [% else %]
                                        <span class="error">ON<span>
                                    [% /if %]
                                </td>
                            </tr>
                            <tr>
                                <td>cURL (just needed for Ticket type and PushNotifications):<br/></td>
                                <td><span class="okay">ON</span></td>
                                <td>
                                    [% if !$curl %]
                                        <span class="error">OFF</span>
                                    [% else %]
                                        <span class="okay">ON<span>
                                    [% /if %]
                                </td>
                            </tr>                            
                            <tr>
                                <td>Session auto start</td>
                                <td><span class="okay">OFF</span></td>
                                <td>
                                    [% if !$session_auto_start %]
                                        <span class="okay">OFF</span>
                                    [% else %]
                                        <span class="error">ON<span>
                                    [% /if %]
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <th colspan="2">Directory and File Permissions:</th>
                </tr>
                <tr><td colspan="2" class="spacer"></td></tr>
                <tr>
                    <td valign="top">
In order for <b>HEINZELM<span style="color:red;">A</span>NN</b> to function<br />
correctly it needs to be able to<br />
access or write to certain files or<br />
directories. If you see<br />
"Unwriteable" you need to change<br />
the permissions on the file or<br />
directory to allow <b>HEINZELM<span style="color:red;">A</span>NN</b><br />
to write to it.
                    </td>
                    <td valign="top" class="boxed">

                        <table>
                            <tr>
                                <td>tpl/default/templates_c/</td>
                                <td><span class="okay">Writeable</span></td>
                            </tr>
                            <tr>
                                <td>modules/</td>
                                <td><span class="okay">Writeable</span></td>
                            </tr>
                            <tr>
                                <td>upload/</td>
                                <td><span class="okay">Writeable</span></td>
                            </tr>
                            <tr>
                                <td>log/</td>
                                <td><span class="okay">Writeable</span></td>
                            </tr>
                        </table>

                    </td>
                </tr>
                <tr>
                    <td colspan="2">&nbsp;</td>
                </tr>
            </table>

        </td>
    </tr>
</table>
