1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-20 19:52:09 +00:00

symfony is there

This commit is contained in:
Nicolas Lœuillet 2015-01-22 08:30:07 +01:00
parent 0440249631
commit 93fd4692f6
291 changed files with 11356 additions and 1696 deletions

View file

@ -1,14 +1,14 @@
#!/usr/bin/php
<?php
require_once __DIR__. '/../vendor/autoload.php';
use Symfony\Component\Yaml\Yaml;
$parameters = Yaml::parse(file_get_contents('app/config/parameters.yml'));
echo 'Okay, you want to install wallabag, let\'s go!';
echo "\r\n";
function generateSalt() {
mt_srand(microtime(true)*100000 + memory_get_usage(true));
return md5(uniqid(mt_rand(), true));
}
function executeQuery($handle, $sql, $params) {
try
{
@ -26,7 +26,7 @@ $configFile = 'app/config/config.inc.php';
$dbFile = 'app/db/poche.sqlite';
$username = 'wallabag';
$password = 'wallabag';
$salt = generateSalt();
$salt = $parameters['parameters']['secret'];
$defaultLanguage = 'en_EN.UTF8';
if (!copy('app/config/config.inc.default.php', $configFile)) {