|
@@ -5,7 +5,7 @@
|
|
|
// Web interface plugin
|
|
|
class YellowWebinterface
|
|
|
{
|
|
|
- const Version = "0.6.1";
|
|
|
+ const Version = "0.6.2";
|
|
|
var $yellow; //access to API
|
|
|
var $active; //web interface is active? (boolean)
|
|
|
var $userLoginFailed; //web interface login failed? (boolean)
|
|
@@ -22,7 +22,7 @@ class YellowWebinterface
|
|
|
$this->users = new YellowUsers($yellow);
|
|
|
$this->merge = new YellowMerge($yellow);
|
|
|
$this->yellow->config->setDefault("webinterfaceLocation", "/edit/");
|
|
|
- $this->yellow->config->setDefault("webinterfaceServerScheme", "http");
|
|
|
+ $this->yellow->config->setDefault("webinterfaceServerScheme", $this->yellow->config->get("serverScheme"));
|
|
|
$this->yellow->config->setDefault("webinterfaceServerName", $this->yellow->config->get("serverName"));
|
|
|
$this->yellow->config->setDefault("webinterfaceUserHashAlgorithm", "bcrypt");
|
|
|
$this->yellow->config->setDefault("webinterfaceUserHashCost", "10");
|
|
@@ -618,8 +618,9 @@ class YellowUsers
|
|
|
{
|
|
|
foreach($fileData as $line)
|
|
|
{
|
|
|
- preg_match("/^(.*?)\s*:\s*(.*?),\s*(.*?),\s*(.*?),\s*(.*?)\s*$/", $line, $matches);
|
|
|
- if(!empty($matches[1]) && !empty($matches[2]) && !empty($matches[3]) && !empty($matches[4]))
|
|
|
+ preg_match("/^(.*?)\s*:\s*(.*?),\s*(.*?),\s*(.*?),\s*(.*?),\s*(.*?)\s*$/", $line, $matches);
|
|
|
+ if(!empty($matches[1]) && !empty($matches[2]) && !empty($matches[3]) && !empty($matches[4]) &&
|
|
|
+ !empty($matches[5]) && !empty($matches[6]))
|
|
|
{
|
|
|
if($matches[1] == $email)
|
|
|
{
|