<?php
/// Copyright (c) 2004-2016, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array(
	'POST' => array(
		'visibility' => array('int', 0,3)
	)
);
require ROOT . '/library/preprocessor.php';
requireModel("blog.link");
requireStrictRoute();
$respond = array();
list($result,$visibility) = toggleLinkVisibility($blogid, $suri['id'],$_POST['visibility']);
Respond::PrintResult( array( 'error' => $result ? 0 : 1, 'visibility' => $visibility ), false );
?>
