Installation check

PDO database interface: %s'."

\n"; $failure = ! in_array('PDO', $ext); $res = $failure ? ['red', 'Error'] : ['green', 'OK']; echo vsprintf($msg, $res); // config file if (! $failure) { $conffile = '../config.php'; $perms = fileperms($conffile); if ($perms & 0x07) { echo '

Config file world readable: Error', "

\n"; } if ($perms & 0x10) { echo '

Config file writeable by webserver: Error', "

\n"; } $msg = '

Read config file: %s'."

\n"; $failure = (! include($conffile)); $res = $failure ? ['red', 'Error'] : ['green', 'OK']; echo vsprintf($msg, $res); } else { echo "

Configfile correct?

"; } // Database connection if (! $failure) { try { $dbh = new PDO("mysql:host=$config_mysql_host", $config_mysql_username, $config_mysql_password); $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { $details = "
" . $e->getMessage() . "
\n"; $failure = true; } $msg = '

Database connection: %s'."

\n"; $res = $failure ? ['red', 'Error'] : ['green', 'OK']; echo vsprintf($msg, $res); if ($failure) { echo $details; } } else { echo "

Database connection available?

\n"; } // Ipreg database exists if (! $failure) { $sql = "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME=?"; $sth = $dbh->prepare($sql); $sth->execute([$config_mysql_dbname]); $failure = ! $sth->fetchColumn(); $msg = '

Database exists: %s'."

\n"; $res = $failure ? ['red', 'Error'] : ['green', 'OK']; echo vsprintf($msg, $res); $dbh->query("USE $config_mysql_dbname"); } else { echo "

Database available?

\n"; } ?>

Rights

0"; $sth = $dbh->query($sql); $adminlist = $sth->fetchAll(PDO::FETCH_ASSOC); $admincount = count($adminlist); if ($admincount == 0) { echo '

No admin user exists: Error'."

\n"; } // Default admin $sql = "SELECT user_pass FROM user WHERE user_name='admin' AND FIND_IN_SET('admin',user_role)>0"; $sth = $dbh->query($sql); if ($rec = $sth->fetchColumn()) { // Check default password if ($rec == '$2y$10$HTs0lSaFrfr.q4Gmy5zWfeDg3jhYZkqEGZEnDkMiHZ641nso38mt6') { echo '

Password for default admin has not been changed: Warning'."

\n"; } else { echo '

Default admin exists: OK'."

\n"; } } else { echo "

Default admin does not exist.

\n"; if ($admincount > 0) { echo '

There are more admin accounts: OK', "

\n"; } } } else { echo "

Administrative user available?

\n"; } // Smarty $compiledir = '../tpl_c'; $failure = ! is_writeable($compiledir); $msg = '

Smarty compile directory writable: %s'."

\n"; $res = $failure ? ['red', 'Error'] : ['green', 'OK']; echo vsprintf($msg, $res); ?>

Summary

If everything here checks ok the installation directory install should be removed.