require_once(dirname(__FILE__)."/../classes/services/ArticleServices.php"); $scielodef = parse_ini_file(dirname(__FILE__) . '/../scielo.def', true); $_data['PID'] = $_REQUEST['pid']; $shelf = new Shelf(); $shelf->setUserID($_COOKIE['userID']); $shelf->setPID($_data['PID']); $shelf->getShelfItem(); $cited_stat = intval($shelf->getCitedStat()); $access_stat = intval($shelf->getAccessStat()); $visible = $shelf->getVisible(); if($visible || $access_stat) { $shelf->setCitedStat(0); $shelf->UpdateArticleInShelf(); }else{ $shelf->removeArticleFromShelf(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head>
$scielodef = parse_ini_file(dirname(__FILE__) . '/../scielo.def', true); $_data['PID'] = $_REQUEST['pid']; $_data['url'] = $scielodef['scielo_org_urls']['home']."/users/myAlerts.php"; $shelf = new Shelf(); $shelf->setUserID($_COOKIE['userID']); $shelf->setPID($_data['PID']); $shelf->getShelfItem(); $cited_stat = $shelf->getCitedStat(); $access_stat = intval($shelf->getAccessStat()); $visible = intval($shelf->getVisible()); if($visible || $cited_stat) { $shelf->setAccessStat(0); $shelf->UpdateArticleInShelf(); }else{ $shelf->removeArticleFromShelf(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head>