/**
  * action to display the page
  * @param jTpl $tpl the template container
  */
 function show($tpl)
 {
     $this->tpl = $tpl;
     $check = new jInstallCheck($this);
     if (isset($this->config['verbose'])) {
         $check->verbose = !!$this->config['verbose'];
     }
     if (isset($this->config['databases'])) {
         $db = explode(',', trim($this->config['databases']));
         $check->addDatabaseCheck($db, true);
     }
     if (isset($this->config['pathcheck'])) {
         if (is_string($this->config['pathcheck'])) {
             $files = explode(',', trim($this->config['pathcheck']));
         } else {
             $files = $this->config['pathcheck'];
         }
         $check->addWritablePathCheck($files);
     }
     $check->checkForInstallation = true;
     $check->run();
     return $check->nbError == 0;
 }
                if ($nbNotice) {
                    echo '<p>' . $this->messageProvider->get($nbNotice > 1 ? 'conclusion.notices' : 'conclusion.notice') . '</p>';
                } else {
                    echo '<p>' . $this->messageProvider->get('conclusion.ok') . '</p>';
                }
            }
        }
        echo "</div>";
    }
}
$reporter = new jHtmlInstallChecker();
$check = new jInstallCheck($reporter);
if (isset($_GET['verbose'])) {
    $check->verbose = true;
}
$check->addDatabaseCheck(array('mysqli', 'sqlite3', 'pgsql', 'oci', 'mssql'), false);
$reporter->messageProvider = $check->messages;
header("Content-type:text/html;charset=UTF-8");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php 
echo $check->messages->getLang();
?>
" lang="<?php 
echo $check->messages->getLang();
?>
">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
    <title><?php 
Esempio n. 3
0
            if ($nbWarning) {
                echo '<p>' . $this->messageProvider->get($nbWarning > 1 ? 'conclusion.warnings' : 'conclusion.warning') . '</p>';
            } else {
                if ($nbNotice) {
                    echo '<p>' . $this->messageProvider->get($nbNotice > 1 ? 'conclusion.notices' : 'conclusion.notice') . '</p>';
                } else {
                    echo '<p>' . $this->messageProvider->get('conclusion.ok') . '</p>';
                }
            }
        }
        echo "</div>";
    }
}
$reporter = new jHtmlInstallChecker();
$check = new jInstallCheck($reporter);
$check->addDatabaseCheck(array('mysql', 'sqlite', 'pgsql'), false);
$reporter->messageProvider = $check->messages;
header("Content-type:text/html;charset=UTF-8");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php 
echo $check->messages->getLang();
?>
" lang="<?php 
echo $check->messages->getLang();
?>
">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
    <title><?php