text-align:center; border-bottom:2px solid #78ab00; } a:hover{ color:#fff; } </style> </head> <body> <img src="/application/assets/img/logo.png" height="32" style="margin:20px auto; height:32px; width:auto; display:block" /> <h4>Hello Video Installation</h4> <div id="system_requirements"> <?php require __DIR__ . '/application/bootstrap/autoload.php'; run_checks(); import_db(); function new_line() { echo '<br />'; } function run_checks() { if (version_compare(PHP_VERSION, "5.4", ">=")) { echo '<span class="success">PHP 5.4 or greater installed (<i class="fa fa-check-square-o"></i> PASS)</span>'; } else { echo '<span class="failed">Minumum version of PHP 5.4 is required (<i class="fa fa-times"></i> FAIL)</span>'; } new_line(); if (!ini_get('safe_mode')) { echo '<span class="success">Safe mode is not enabled (<i class="fa fa-check-square-o"></i> PASS)</span>';
</head> <body> <h1 class="animated fadeInDown"><i class="fa fa-download"></i> Ninja Media Script Installer</h1> <ol class="progtrckr" data-progtrckr-steps="3"> <li class="progress-requirements progtrckr-todo">System Requirements</li> <li class="progress-creds progtrckr-todo">Configuration Setup</li> <li class="progress-install progtrckr-todo">Installation</li> </ol> <div id="requirements" class="install-form animated fadeInUp"> <?php $writable_files = getcwd() . '/config.php'; $passed = run_checks($writable_files); function new_line() { echo '<br />'; } function run_checks($writable_files) { $passed = true; if (is_writable($writable_files)) { echo '<p>Files and Folders are Writable <i class="fa fa-check-circle-o"></i></p>'; $config_string = "<?php return array (\n 'db_host' => '',\n 'db_name' => '',\n 'db_user' => '',\n 'db_password' => '',\n);"; file_put_contents('./config.php', $config_string); } else { echo '<p>Files not writable! <i class="fa fa-times-circle-o"></i></p>'; $passed = false; }