From: Nicolas Lœuillet Date: Fri, 23 Aug 2013 21:18:36 +0000 (+0200) Subject: resolve conflicts X-Git-Tag: 1.0-beta4~15 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=38b418b7d63783fa0c7b920b7de6a1f6930fc7cb;hp=fa5f9764ae370d6eb5efd6b05bf8e257aae9899d;p=github%2Fwallabag%2Fwallabag.git resolve conflicts --- diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9d6ba132..00000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: php - -php: - - 5.4 - -branches: - only: - - dev - -before_script: - - composer install - -notifications: - email: - - nicolas.loeuillet@gmail.com \ No newline at end of file diff --git a/COPYING b/COPYING.md similarity index 100% rename from COPYING rename to COPYING.md diff --git a/CREDITS b/CREDITS.md similarity index 100% rename from CREDITS rename to CREDITS.md diff --git a/TODO.md b/TODO.md index ac3c0e98..fdba2a51 100644 --- a/TODO.md +++ b/TODO.md @@ -1,11 +1,9 @@ # TODO -pouvoir annuler la suppression -conventions codage ? phing ? vérifier error_log qui trainent -phpDocumentor -minifier css -revoir tous les css -barre fixe d'admin sur la page d'un billet ? -revoir export (export vers pocket &cie ? ) -raccourcis clavier -date d'ajout d'un lien \ No newline at end of file +* pouvoir annuler la suppression +* conventions codage ? phing ? vérifier error_log qui trainent +* phpDocumentor +* minifier css +* barre fixe d'admin sur la page d'un billet ? +* revoir export (export vers pocket &cie ? ) +* raccourcis clavier \ No newline at end of file diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index e0dc0d20..4832f816 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -47,16 +47,16 @@ class Poche die('You don\'t have write access on cache directory.'); } else if (file_exists('./install/update.php') && !DEBUG_POCHE) { - $msg = 'A poche update is needed. Please execute this update by clicking here. If you have already do the update, please delete /install folder.'; + $msg = '

setup

It\'s your first time here? Please copy /install/poche.sqlite in db folder. Then, delete install folder.
If you have already installed poche, an update is needed by clicking here.

'; $allIsGood = FALSE; } else if (file_exists('./install') && !DEBUG_POCHE) { - $msg = 'If you want to update your poche, you just have to delete /install folder.
To install your poche with sqlite, copy /install/poche.sqlite in /db and delete the folder /install. you have to delete the /install folder before using poche.'; + $msg = '

setup

If you want to update your poche, you just have to delete /install folder.
To install your poche with sqlite, copy /install/poche.sqlite in /db and delete the folder /install. you have to delete the /install folder before using poche.

'; $allIsGood = FALSE; } else if (STORAGE == 'sqlite' && !is_writable(STORAGE_SQLITE)) { Tools::logm('you don\'t have write access on sqlite file'); - $msg = 'You don\'t have write access on sqlite file.'; + $msg = '

error

You don\'t have write access on sqlite file.

'; $allIsGood = FALSE; } diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 52d0f2d5..8661ab6e 100644 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -238,7 +238,7 @@ class Tools public static function createMyConfig() { $myconfig_file = './inc/poche/myconfig.inc.php'; - + if (!is_writable('./inc/poche/')) { self::logm('you don\'t have write access to create ./inc/poche/myconfig.inc.php'); die('You don\'t have write access to create ./inc/poche/myconfig.inc.php.'); @@ -248,7 +248,7 @@ class Tools { $fp = fopen($myconfig_file, 'w'); fwrite($fp, ' @@ -16,25 +16,23 @@ $old_salt = '464v54gLLw928uz4zUBqkRJeiPY68zCX'; updating poche -

update poche to 1.0-beta3

+

update poche to 1.0-beta4

Changelog

-

-

-

+

To update your poche, please fill the following fields.

@@ -46,26 +44,20 @@ $old_salt = '464v54gLLw928uz4zUBqkRJeiPY68zCX'; login($_POST['login'], sha1($_POST['password'] . $_POST['login'] . $old_salt)); + $user = $store->login($_POST['login'], sha1($_POST['password'] . $_POST['login'] . SALT)); if ($user != array()) { - $new_salt = md5(time() . $_SERVER['SCRIPT_FILENAME'] . rand()); $myconfig_file = '../inc/poche/myconfig.inc.php'; - if (!is_writable('../inc/poche/')) { - die('You don\'t have write access to create ./inc/poche/myconfig.inc.php.'); + # just change version number in config file + + if (!is_writable('../inc/poche/myconfig.inc.php')) { + die('You don\'t have write access to open ./inc/poche/myconfig.inc.php.'); } - if (!file_exists($myconfig_file)) + if (file_exists($myconfig_file)) { - $fp = fopen($myconfig_file, 'w'); - - fwrite($fp, 'updatePassword($user['id'], sha1($_POST['password'] . $_POST['login'] . $new_salt)); ?>

your poche is up to date!

don't forget to delete ./install/ folder after the update.

diff --git a/install/update_to_1beta3.php b/install/update_to_1beta3.php new file mode 100644 index 00000000..8c93af6d --- /dev/null +++ b/install/update_to_1beta3.php @@ -0,0 +1,79 @@ + + + + + + + + + + updating poche + + +

update poche to 1.0-beta3

+ +

Changelog

+

+

+

+

To update your poche, please fill the following fields.

+

+ +

+
+
+
+

+login($_POST['login'], sha1($_POST['password'] . $_POST['login'] . $old_salt)); + if ($user != array()) { + $new_salt = md5(time() . $_SERVER['SCRIPT_FILENAME'] . rand()); + $myconfig_file = '../inc/poche/myconfig.inc.php'; + if (!is_writable('../inc/poche/')) { + die('You don\'t have write access to create ./inc/poche/myconfig.inc.php.'); + } + + if (!file_exists($myconfig_file)) + { + $fp = fopen($myconfig_file, 'w'); + + fwrite($fp, 'updatePassword($user['id'], sha1($_POST['password'] . $_POST['login'] . $new_salt)); +?> +

your poche is up to date!

+

don't forget to delete ./install/ folder after the update.

+

go back to your poche

+ + + \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist deleted file mode 100644 index e69de29b..00000000 diff --git a/tpl/config.twig b/tpl/config.twig index 0b231187..e8563721 100644 --- a/tpl/config.twig +++ b/tpl/config.twig @@ -13,12 +13,12 @@ {% block content %}

{% trans "Poching a link" %}

You can poche a link by several methods: (?)

- +

{% trans "Updating poche" %}