$results[$idx]['delete'] = TestResults('ignored', 'Unable to perform this test due to previous failures'); } } else { $results[$idx]['write'] = TestResults('ignored', 'Unable to perform this test due to previous failures'); $results[$idx]['delete'] = TestResults('ignored', 'Unable to perform this test due to previous failures'); } // If any test failed, do not continue if ($results[$idx]['folder']['state'] == 'failed' || $results[$idx]['read']['state'] == 'failed' || $results[$idx]['write']['state'] == 'failed' || $results[$idx]['delete']['state'] == 'failed') { $ioable = false; } $idx++; } if ($ioable) { $page->SuccessBox('The Installer has sufficient file permissions on this server.'); } else { $page->InfoBox('All tests have to be successful inorder to continue'); } // THIS TABLE USES THE SAME TABLE-CSS AS "USER ACCESS TEST" STEP! $page->StartTable(4, array('class' => 'dbtests', 'cellspacing' => '0', 'cellpadding' => '0')); foreach ($results as $testTypes) { foreach ($testTypes as $test => $result) { if ($result['state'] == 'success') { $page->AddTableData('', array('class' => 'okayico')); $page->AddTableData($test, array('class' => 'operation')); $page->AddTableData('Success!', array('class' => 'okay')); $page->AddTableData($result['msg'], array('class' => 'normalmsg')); } else { if ($result['state'] == 'failed') { $page->AddTableData('', array('class' => 'failico')); $page->AddTableData($test, array('class' => 'operation')); $page->AddTableData('Failed!', array('class' => 'fail'));
// Make sure this mask file exists! if (isset($sett['maskname'])) { if ($mask->DoesMaskExistAndIsReadable($sett['maskname'])) { $page->SuccessBox('The mask file <b>' . $sett['maskname'] . '</b> exists and is readable'); // The mask is checked for few things $maskContent = $mask->GetMask($sett['maskname'], false); // Get if ANY keyword is found in the mask $counts = $mask->GetReplaceKeywordCount($maskContent); if (is_array($counts) && count($counts) > 0) { $str = ''; foreach ($counts as $word => $count) { $str .= "\n" . '<br /><tt><b>' . $keywords['open_bracket'] . $word . $keywords['close_bracket'] . '</b></tt> = <b>' . $count . '</b>'; } $page->SuccessBox('The mask file contains the following keywords:' . $str); } else { $page->InfoBox('This mask file does not contain any keywords to replace.'); } // Check if there is SEPARATOR KEYWORD in the sql file $ext = $mask->GetMaskExtension($sett['maskname'], true); if ($ext == 'sql') { $counts = $mask->GetSqlSeparatorCount($maskContent); if ($counts > 0) { $page->SuccessBox('The SQL mask has <b>' . $counts . '</b> occurences of the <i>SQL Query Separator</i>'); } else { $page->WarningBox('There is no occurence of the <i>SQL Query Separator</i>! If your "Installation SQL Script" contains ' . 'more than one query, <b>the installation will fail!</b> <br /> <br />' . 'PHP does not support multiple queries, unless <tt>mysqli</tt> is used. Because we cannot be certain ' . 'that <tt>mysqli</tt> will be installed, the Installer does not support that extension, but rather ' . 'requires that the <tt>' . $keywords['next_query'] . '</tt> separator is placed in between all queries.'); } } } else { $page->WarningBox('The mask file <b>' . $sett['maskname'] . '</b> does not exists, make sure filenames are correct!'); } }
if($steps[STEP_TERMSOFUSE]['enabled'] && (!$approved || $step == STEP_TERMSOFUSE)) { $page->MainTitle($steps[STEP_TERMSOFUSE]['title'], 'agreement'); // Notify the user that he must approve the terms of agreement, and if he // has - notfify him that he has done so and make the box "checked" so user // can simply press "next to continue" $checked = array(); if($approved) { $page->SuccessBox('You have approved the terms of use agreement!'); $checked = array('checked'); } else if($step != STEP_TERMSOFUSE) { $page->InfoBox('You must approve the terms of use agreement if you want to continue!'); } $page->Textarea( $mask->GetTermsOfAgreement() ); $page->FormStart(array('step'=>GetNextStep(STEP_TERMSOFUSE))); $page->FormRadiobox('approved', 'agreement', 'I <b>accept</b> this terms of use', $checked); $page->FormRadiobox('denied', 'agreement', 'I <b>do not accept</b> this terms of use'); $prev = GetPrevStep(STEP_TERMSOFUSE); if($prev) $page->FormButton('Back', array('step'=>$prev)); $page->FormSubmit('Next'); $page->FormClose(); $page->ShowPage(STEP_TERMSOFUSE); }