Location: PHPKode > projects > Kwalbum > kwalbum/ajax/editTime.php
<?php
/*
 * Created on Aug 28, 2008
 *
 */
require_once pathinfo(__FILE__, PATHINFO_DIRNAME).'/../include/verifyLogin.php';
require_once pathinfo(__FILE__, PATHINFO_DIRNAME).'/../include/DBConnection.php';
require_once pathinfo(__FILE__, PATHINFO_DIRNAME).'/../include/funcChangeTime.php';
$DB = new DBConnection();
$errorMsg = '<p class="error">Change Not Saved!</p>';

$id = (int)$P['id'];
if (empty($P['time']))
	$chars = '';
else
	$chars = $P['time'];

if (USER_CAN_ADD)
	ChangeTime($id, $chars);
else
	if (TEST_MODE)
		echo '<p class="error">Invalid Permissions.</p>';
	else
		echo $errorMsg;

Return current item: Kwalbum