case 'tag': if (isset($pathInfos[5]) && $pathInfos[5] === 'list') { $output = isset($_GET['output']) ? $_GET['output'] : ''; if ($output !== 'json') { notImplemented(); } tagList($_GET['output']); } break; case 'subscription': if (isset($pathInfos[5]) && $pathInfos[5] === 'list') { $output = isset($_GET['output']) ? $_GET['output'] : ''; if ($output !== 'json') { notImplemented(); } subscriptionList($_GET['output']); } break; case 'unread-count': $output = isset($_GET['output']) ? $_GET['output'] : ''; if ($output !== 'json') { notImplemented(); } $all = isset($_GET['all']) ? $_GET['all'] : ''; unreadCount($all); break; case 'edit-tag': //http://blog.martindoms.com/2010/01/20/using-the-google-reader-api-part-3/ $token = isset($_POST['T']) ? trim($_POST['T']) : ''; checkToken($conf, $token); $a = isset($_POST['a']) ? $_POST['a'] : '';
<?php require_once dirname(dirname(dirname(__FILE__))) . '/core/system/ajax.php'; require_once dirname(dirname(dirname(__FILE__))) . "/common/php/class/class.website_subscription.php"; require_once dirname(dirname(dirname(__FILE__))) . "/common/php/class/class.website.php"; if (session_status() == PHP_SESSION_NONE) { session_start(); } if (isset($_POST['action']) && !empty($_POST['action'])) { $action = $_POST['action']; switch ($action) { case 'subscriptionList': echo subscriptionList(); break; case 'subscription': $website_id = isset($_POST['website_id']) ? $_POST['website_id'] : null; echo subscription($website_id); break; case 'unsubscription': $website_id = isset($_POST['website_id']) ? $_POST['website_id'] : null; echo unsubscription($website_id); break; } } function subscriptionList() { global $bdd; global $_TABLES; $content = ""; $view = new Template(dirname(dirname(__FILE__)) . '/html/media.html'); if (!is_null($bdd) && !is_null($_TABLES)) {