function main($argv) { global $IS_WIN, $FIX; $opts = getopt("m::"); $minimal_run = isset($opts['m']); $msg1 = <<<EOF Welcome to the Sausage installer! --------------------------------- EOF; out("\n"); $msg2 = <<<EOF ( \\ / ) \\ \\.-------------./ / \\( hot dog! )/ `.___________.' --------------------------------- EOF; out($msg1, 'info'); if (!$minimal_run) { out($msg2, 'info'); } checkPHP(); checkInitialRequirements(); startComposer(); installPackages($minimal_run); if (!$minimal_run) { configureSauce(); downloadDemo(); if (!$FIX) { out("- You're all set!"); } else { out("- Oops! Found an issue...please fix the issue and try again!"); } if (!$IS_WIN) { out("Try running 'vendor/bin/paraunit --processes=8 --path=WebDriverDemo.php'", 'success'); out(" (change to: --path=SeleniumRCDemo.php for Selenium 1)", 'success'); out("Then load https://saucelabs.com/account to see your tests running in parallel", 'success'); out("Get the most out of Sausage: https://github.com/jlipps/sausage/blob/master/README.md", 'info'); } } else { out("Sausage successfuly set up!", 'success'); } out(''); }
<div class="status {$_GET['notice']}"><h3>{$_GET['message']}</h3></div> <div> </div> HTML; } ?> <div class="diag_header"><h1>Diagnostics</h1></div> <div class="content_wrap"> <table class="content_table" cellpadding='0' cellspacing='0'> <tr> <td class="content_key top c"><strong>PHP</strong></td> <td class="content_value top c"><strong>Version</strong></td> <td class="content_desc top r" colspan="2"><strong>Summary</strong></td> </tr> <?php checkPHP(); ?> <tr> <td class="content_key top c"><strong>Database</strong></td> <td class="content_value top c"><strong>Version</strong></td> <td class="content_desc top r" colspan="2"><strong>Summary</strong></td> </tr> <?php // Database Checks checkSQLite3(); checkMySQL(); checkPostgreSQL(); ?> </table> </div> <div class="spacer"></div>
* * Xibo is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * Xibo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Xibo. If not, see <http://www.gnu.org/licenses/>. */ DEFINE('XIBO', true); if (!checkPHP()) { die('Xibo requires PHP 5.2.4 or later'); } error_reporting(0); ini_set('display_errors', 0); include 'lib/app/kit.class.php'; include 'install/header.inc'; include 'config/config.class.php'; include 'config/db_config.php'; // Setup for the Translations using Gettext. // There is normally a class that will do this for us - but it requires a DB object (which we do not have at install time) // Would be nice to include a method on the TranslationEngine that did this for us - but without the debugging // The actual translation function __() is included later in this file. $langs = Kit::GetParam('HTTP_ACCEPT_LANGUAGE', $_SERVER, _STRING); $lang = 'en-gb'; // Default language