1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-25 17:00:44 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Mikael Roos
2b76fb689c updated versions for single scripts 2015-02-10 22:50:15 +01:00
Mikael Roos
fb9b89a65f updated versions for single scripts 2015-02-10 22:49:17 +01:00
5 changed files with 44 additions and 8 deletions

View File

@@ -2,7 +2,7 @@ Revision history
=====================================
v0.7.0-rc.1 (2015-02-10)
v0.7.0-rc.2 (2015-02-10)
-------------------------------------
* Always use password, setting in img_config.php, fix #78.

View File

@@ -8,7 +8,7 @@
*
*/
$version = "v0.7.0-rc.1 (2015-02-10)";
$version = "v0.7.0-rc.2 (2015-02-10)";

View File

@@ -3011,6 +3011,8 @@ EOD;
*
*/
$version = "v0.7.0-rc.2 (2015-02-10)";
/**
@@ -3146,6 +3148,7 @@ if (is_file($configFile)) {
* verbose, v - do a verbose dump of what happens
*/
$verbose = getDefined(array('verbose', 'v'), true, false);
verbose("img.php version = $version");
@@ -3211,12 +3214,21 @@ if ($defaultTimezone) {
* Options decide themself if they require passwords to be used.
*/
$pwdConfig = getConfig('password', false);
$pwdAlways = getConfig('password_always', false);
$pwd = get(array('password', 'pwd'), null);
// Check if passwords match, if configured to use passwords
$passwordMatch = null;
if ($pwdConfig && $pwd) {
$passwordMatch = ($pwdConfig == $pwd);
if ($pwdAlways) {
$passwordMatch = ($pwdConfig === $pwd);
if (!$passwordMatch) {
errorPage("Password required and does not match or exists.");
}
} elseif ($pwdConfig && $pwd) {
$passwordMatch = ($pwdConfig === $pwd);
}
verbose("password match = $passwordMatch");

View File

@@ -3011,6 +3011,8 @@ EOD;
*
*/
$version = "v0.7.0-rc.2 (2015-02-10)";
/**
@@ -3146,6 +3148,7 @@ if (is_file($configFile)) {
* verbose, v - do a verbose dump of what happens
*/
$verbose = getDefined(array('verbose', 'v'), true, false);
verbose("img.php version = $version");
@@ -3211,12 +3214,21 @@ if ($defaultTimezone) {
* Options decide themself if they require passwords to be used.
*/
$pwdConfig = getConfig('password', false);
$pwdAlways = getConfig('password_always', false);
$pwd = get(array('password', 'pwd'), null);
// Check if passwords match, if configured to use passwords
$passwordMatch = null;
if ($pwdConfig && $pwd) {
$passwordMatch = ($pwdConfig == $pwd);
if ($pwdAlways) {
$passwordMatch = ($pwdConfig === $pwd);
if (!$passwordMatch) {
errorPage("Password required and does not match or exists.");
}
} elseif ($pwdConfig && $pwd) {
$passwordMatch = ($pwdConfig === $pwd);
}
verbose("password match = $passwordMatch");

View File

@@ -3011,6 +3011,8 @@ EOD;
*
*/
$version = "v0.7.0-rc.2 (2015-02-10)";
/**
@@ -3146,6 +3148,7 @@ if (is_file($configFile)) {
* verbose, v - do a verbose dump of what happens
*/
$verbose = getDefined(array('verbose', 'v'), true, false);
verbose("img.php version = $version");
@@ -3211,12 +3214,21 @@ if ($defaultTimezone) {
* Options decide themself if they require passwords to be used.
*/
$pwdConfig = getConfig('password', false);
$pwdAlways = getConfig('password_always', false);
$pwd = get(array('password', 'pwd'), null);
// Check if passwords match, if configured to use passwords
$passwordMatch = null;
if ($pwdConfig && $pwd) {
$passwordMatch = ($pwdConfig == $pwd);
if ($pwdAlways) {
$passwordMatch = ($pwdConfig === $pwd);
if (!$passwordMatch) {
errorPage("Password required and does not match or exists.");
}
} elseif ($pwdConfig && $pwd) {
$passwordMatch = ($pwdConfig === $pwd);
}
verbose("password match = $passwordMatch");