Location: PHPKode > projects > Kwalbum > kwalbum/ajax/editTags.php
<?php
/*
 * AJAX page to change tags for the item based on POST values for 'id'
 * and 'tags'
 * @package kwalbum
 * @version 2.1.1
 * @since 2.0
 */

require_once pathinfo(__FILE__, PATHINFO_DIRNAME).'/../include/DBConnection.php';
$DB = new DBConnection();
require_once pathinfo(__FILE__, PATHINFO_DIRNAME).'/../include/verifyLogin.php';
require_once pathinfo(__FILE__, PATHINFO_DIRNAME).'/../include/funcChangeTags.php';

$id = (int)$P['id'];
$errorMsg = $P['tags'];//'<p class="error">Change Not Saved!</p>';

if (USER_CAN_ADD)
	ChangeTags($id, $P['tags'], true, $errorMsg);
else
	if (TEST_MODE)
		echo '<p class="error">Invalid Permissions.</p>';
	else
		echo $errorMsg;

Return current item: Kwalbum