Skip to content

Commit 5a60993

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into implementing_link
2 parents 5c878f8 + b1b88e3 commit 5a60993

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ composer.phar
3030

3131
/vendor/
3232
/_site/
33+
/servers/
File renamed without changes.

src/JSONDB/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function addUser($server, $username, $password)
6565
public function getConfig($filename)
6666
{
6767
if ($this->_exists($filename)) {
68-
return json_decode(file_get_contents(realpath( dirname(__DIR__) . "/config/{$filename}.json")), TRUE);
68+
return json_decode(file_get_contents(realpath(dirname(dirname(__DIR__)) . "/config/{$filename}.json")), TRUE);
6969
} else {
7070
$this->_writeConfig($filename, array());
7171
return array();
@@ -80,7 +80,7 @@ public function getConfig($filename)
8080
*/
8181
private function _writeConfig($filename, array $config)
8282
{
83-
return (bool)file_put_contents(realpath( dirname(__DIR__) . "/config/{$filename}.json"), json_encode($config));
83+
return (bool)file_put_contents(realpath(dirname(dirname(__DIR__)) . "/config/{$filename}.json"), json_encode($config));
8484
}
8585

8686
/**
@@ -90,6 +90,6 @@ private function _writeConfig($filename, array $config)
9090
*/
9191
private function _exists($filename)
9292
{
93-
return file_exists(realpath( dirname(__DIR__) . "/config/{$filename}.json"));
93+
return file_exists(realpath(dirname(dirname(__DIR__)) . "/config/{$filename}.json"));
9494
}
9595
}

src/JSONDB/Util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ class Util
5959
*/
6060
public static function crypt($string)
6161
{
62-
return crypt(sha1($string), self::$cryptSalt);
62+
return sha1($string . self::$cryptSalt);
6363
}
6464
}

src/config/.htpasswd

Whitespace-only changes.

0 commit comments

Comments
 (0)