Professional Documents
Culture Documents
php
// return new notifications
@ini_set("display_errors","1");
// don't read permissions from the database, use version saved in session
$gReadPermissions = false;
require_once( "include/dbcommon.php" );
require_once( getabspath( "classes/notifications.php" ) );
$lastId = postvalue_number("lastId");
$lastRead = postvalue_number("lastRead");
if( $lastRead ) {
$noti->updateLastRead( $lastRead );
}