summaryrefslogtreecommitdiff
path: root/backend/php
authorGiulio Cesare Solaroli <giulio.cesare@clipperz.com>2012-02-08 23:08:46 (UTC)
committer Giulio Cesare Solaroli <giulio.cesare@clipperz.com>2012-02-08 23:08:46 (UTC)
commit17efce23d9f205f56f5ebbe8e4f4ca581ea47bcb (patch) (side-by-side diff)
tree4117988aa276fd20d624c60a37f3e05e2fa2c19b /backend/php
parent67455b069c4c9ec493f9cef76017e172a430a7d4 (diff)
parent96d01919d3ff42c3fdd7f6186a0500caccd3c140 (diff)
downloadclipperz-17efce23d9f205f56f5ebbe8e4f4ca581ea47bcb.zip
clipperz-17efce23d9f205f56f5ebbe8e4f4ca581ea47bcb.tar.gz
clipperz-17efce23d9f205f56f5ebbe8e4f4ca581ea47bcb.tar.bz2
Merge branch 'master' of github.com:gcsolaroli/password-manager into php+gamma
Diffstat (limited to 'backend/php') (more/less context) (show whitespace changes)
-rw-r--r--backend/php/src/setup/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/php/src/setup/index.php b/backend/php/src/setup/index.php
index 4087961..93dea6f 100644
--- a/backend/php/src/setup/index.php
+++ b/backend/php/src/setup/index.php
@@ -143,49 +143,49 @@ if(count($_POST) > 0 && $_SESSION['diagnosticsSuccessful']==false)
if(file_exists($GLOBALS['configuration']['plugins_path']."/IPlugin.php"))
{
include_once($GLOBALS['configuration']['plugins_path']."/IPlugin.php");
}
if(strlen($file) > 4 && substr(strtolower($file), strlen($file) - 4) === '.php' && !is_dir($file) && strtolower(substr($file, 0, 6)) == 'plugin')
{
include_once($GLOBALS['configuration']['plugins_path']."/{$file}");
$pluginName = GetPluginName($file);
if ($pluginName != '')
{
$plugins[] = $file;
}
}
}
closedir($dir);
}
/**
* verify configuration info
*/
if ($errors == 0)
{
AddTrace('File Structure....OK!');
- if (!@mysql_connect ($GLOBALS['configuration']['host'].":".$GLOBALS['configuration']['port'], $GLOBALS['configuration']['user'], $GLOBALS['configuration']['pass']))
+ if (!mysql_connect ($GLOBALS['configuration']['host'].":".$GLOBALS['configuration']['port'], $GLOBALS['configuration']['user'], $GLOBALS['configuration']['pass']))
{
$errors++;
AddError('Cannot connect to the specified database server. Edit configuration.php');
}
if (isset($GLOBALS['configuration']['db_encoding']) && $GLOBALS['configuration']['db_encoding'] == 1 && !Base64::IsBase64FunctionInstalled())
{
$errors++;
AddError('$configuration[db_encoding] needs to be set to 0 until you install the base64 plugin. Set db_encoding to 0 by editing configuration.php, run setup again and go to the "Manage Plugins" tab. Install the base64 plugin. Then you can set db_encoding = 1');
}
if ($errors == 0)
{
if (!@mysql_select_db ($GLOBALS['configuration']['db']))
{
$errors++;
AddError('Cannot find the specified database "'.$GLOBALS['configuration']['db'].'". Edit configuration.php');
}
}
}
/**
* verify storage status
*/
if ($errors == 0)