Exemple #1
0
logThis('Starting database permissions check...');
$dbOut = "\n\t<a href='javascript:void(0); toggleNwFiles(\"dbPerms\");'>{$mod_strings['LBL_UW_SHOW_DB_PERMS']}</a>\n\t<div id='dbPerms' style='display:none;'>\n\t<table cellpadding='3' cellspacing='0' border='0'>\n\t<tr>\n\t\t<th align='left'>{$mod_strings['LBL_UW_DB_PERMS']}</th>\n\t</tr>";
$db =& DBManagerFactory::getInstance();
$outs = array();
$outs['skip'] = false;
$outs['db'] = array();
$outs['dbOut'] = $dbOut;
$outs = testPermsCreate($db->dbType, $outs);
$outs = testPermsInsert($db->dbType, $outs, $outs['skip']);
$outs = testPermsUpdate($db->dbType, $outs, $outs['skip']);
$outs = testPermsSelect($db->dbType, $outs, $outs['skip']);
$outs = testPermsDelete($db->dbType, $outs, $outs['skip']);
$outs = testPermsAlterTableAdd($db->dbType, $outs, $outs['skip']);
$outs = testPermsAlterTableChange($db->dbType, $outs, $outs['skip']);
$outs = testPermsAlterTableDrop($db->dbType, $outs, $outs['skip']);
$outs = testPermsDropTable($db->dbType, $outs, $outs['skip']);
$outs['dbOut'] .= '</table>';
if (count($outs['db']) < 1) {
    logThis('No permissions errors found!');
    $outs['dbOut'] = "<b>" . $mod_strings['LBL_UW_DB_NO_ERRORS'] . "</b>";
}
logThis('Finished database permissions check.');
$dbOut = $outs['dbOut'];
////	END DATABASE CHECKS
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
////	INSTALLER TYPE CHECKS
$result = checkSystemCompliance();
$checks = array('phpVersion' => $mod_strings['LBL_UW_COMPLIANCE_PHP_VERSION'], 'mysqlVersion' => $mod_strings['LBL_UW_COMPLIANCE_MYSQL'], 'mssqlStatus' => $mod_strings['LBL_UW_COMPLIANCE_MSSQL_MAGIC_QUOTES'], 'xmlStatus' => $mod_strings['LBL_UW_COMPLIANCE_XML'], 'curlStatus' => $mod_strings['LBL_UW_COMPLIANCE_CURL'], 'imapStatus' => $mod_strings['LBL_UW_COMPLIANCE_IMAP'], 'mbstringStatus' => $mod_strings['LBL_UW_COMPLIANCE_MBSTRING'], 'safeModeStatus' => $mod_strings['LBL_UW_COMPLIANCE_SAFEMODE'], 'callTimeStatus' => $mod_strings['LBL_UW_COMPLIANCE_CALLTIME'], 'memory_msg' => $mod_strings['LBL_UW_COMPLIANCE_MEMORY']);
if ($result['error_found'] == true) {
    $stop = true;
Exemple #2
0
logThis('Starting database permissions check...');
$dbOut = "\n\t<a href='javascript:void(0); toggleNwFiles(\"dbPerms\");'>{$mod_strings['LBL_UW_SHOW_DB_PERMS']}</a>\n\t<div id='dbPerms' style='display:none;'>\n\t<table cellpadding='3' cellspacing='0' border='0'>\n\t<tr>\n\t\t<th align='left'>{$mod_strings['LBL_UW_DB_PERMS']}</th>\n\t</tr>";
$db = DBManagerFactory::getInstance();
$outs = array();
$outs['skip'] = false;
$outs['db'] = array();
$outs['dbOut'] = $dbOut;
$outs = testPermsCreate($db, $outs);
$outs = testPermsInsert($db, $outs, $outs['skip']);
$outs = testPermsUpdate($db, $outs, $outs['skip']);
$outs = testPermsSelect($db, $outs, $outs['skip']);
$outs = testPermsDelete($db, $outs, $outs['skip']);
$outs = testPermsAlterTableAdd($db, $outs, $outs['skip']);
$outs = testPermsAlterTableChange($db, $outs, $outs['skip']);
$outs = testPermsAlterTableDrop($db, $outs, $outs['skip']);
$outs = testPermsDropTable($db, $outs, $outs['skip']);
$outs['dbOut'] .= '</table>';
if (count($outs['db']) < 1) {
    logThis('No permissions errors found!');
    $outs['dbOut'] = "<b>" . $mod_strings['LBL_UW_DB_NO_ERRORS'] . "</b>";
}
logThis('Finished database permissions check.');
$dbOut = $outs['dbOut'];
////	END DATABASE CHECKS
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
////	INSTALLER TYPE CHECKS
$result = checkSystemCompliance();
$checks = array('phpVersion' => $mod_strings['LBL_UW_COMPLIANCE_PHP_VERSION'], 'dbVersion' => $mod_strings['LBL_UW_COMPLIANCE_DB'], 'xmlStatus' => $mod_strings['LBL_UW_COMPLIANCE_XML'], 'curlStatus' => $mod_strings['LBL_UW_COMPLIANCE_CURL'], 'imapStatus' => $mod_strings['LBL_UW_COMPLIANCE_IMAP'], 'mbstringStatus' => $mod_strings['LBL_UW_COMPLIANCE_MBSTRING'], 'safeModeStatus' => $mod_strings['LBL_UW_COMPLIANCE_SAFEMODE'], 'callTimeStatus' => $mod_strings['LBL_UW_COMPLIANCE_CALLTIME'], 'memory_msg' => $mod_strings['LBL_UW_COMPLIANCE_MEMORY'], 'stream_msg' => $mod_strings['LBL_UW_COMPLIANCE_STREAM'], 'ZipStatus' => $mod_strings['LBL_UW_COMPLIANCE_ZIPARCHIVE']);
if ($result['error_found'] == true) {
    $stop = true;