Exemplo n.º 1
0
    echo "An error occurred while executing a query: " . mysql_error();
} else {
    $row = mysql_fetch_assoc($ds);
    $pluginid = $row["id"];
}
// setup plugin as module dependency
$ds = mysql_query("SELECT module FROM `" . $sqlParser->prefix . "site_module_depobj` WHERE module='{$moduleid}' AND resource='{$pluginid}' AND type='30' LIMIT 1");
if (!$ds) {
    echo "An error occurred while executing a query: " . mysql_error();
} elseif (mysql_num_rows($ds) == 0) {
    mysql_query("INSERT INTO `" . $sqlParser->prefix . "site_module_depobj` (module, resource, type) VALUES('{$moduleid}','{$pluginid}',30)");
}
// remove any locks on the manager functions so initial manager login is not blocked
mysql_query("TRUNCATE TABLE `" . $table_prefix . "active_users`");
// close db connection
$sqlParser->close();
// andrazk 20070416 - release manager access
if (file_exists('../assets/cache/installProc.inc.php')) {
    @chmod('../assets/cache/installProc.inc.php', 0755);
    unlink('../assets/cache/installProc.inc.php');
}
// setup completed!
echo "<p><b>" . $_lang['installation_successful'] . "</b></p>";
echo "<p>" . $_lang['to_log_into_content_manager'] . "</p>";
if ($installMode == 0) {
    echo "<p><img src=\"img/ico_info.png\" width=\"40\" height=\"42\" align=\"left\" style=\"margin-right:10px;\" />" . $_lang['installation_note'] . "</p>";
} else {
    echo "<p><img src=\"img/ico_info.png\" width=\"40\" height=\"42\" align=\"left\" style=\"margin-right:10px;\" />" . $_lang['upgrade_note'] . "</p>";
}
// Property Update function
function propUpdate($new, $old)