mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-23 08:06:33 +00:00
e46efced1b
mise en page de la grille, type Masonry (méthode full css). cf ici : http://designshack.net/articles/css/masonry/ réorganisation des fichiers avec un fichier dédié pour le traitement des actions (process.php) utilisation de pictos à la place des codes héxas
38 lines
No EOL
927 B
PHP
38 lines
No EOL
927 B
PHP
<?php
|
|
/**
|
|
* poche, a read it later open source system
|
|
*
|
|
* @category poche
|
|
* @author Nicolas Lœuillet <nicolas@loeuillet.org>
|
|
* @copyright 2013
|
|
* @license http://www.wtfpl.net/ see COPYING file
|
|
*/
|
|
|
|
include dirname(__FILE__).'/inc/config.php';
|
|
$db = new db(DB_PATH);
|
|
|
|
$action = (isset ($_GET['action'])) ? htmlspecialchars($_GET['action']) : '';
|
|
$id = (isset ($_GET['id'])) ? htmlspecialchars($_GET['id']) : '';
|
|
|
|
|
|
switch ($action)
|
|
{
|
|
case 'toggle_fav' :
|
|
$sql_action = "UPDATE entries SET is_fav=~is_fav WHERE id=?";
|
|
$params_action = array($id);
|
|
break;
|
|
case 'toggle_archive' :
|
|
$sql_action = "UPDATE entries SET is_read=~is_read WHERE id=?";
|
|
$params_action = array($id);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
# action query
|
|
if (isset($sql_action))
|
|
{
|
|
$query = $db->getHandle()->prepare($sql_action);
|
|
$query->execute($params_action);
|
|
}
|
|
?>
|