Location: PHPKode > projects > Dev's CMS > devscms/admin/modules/gallery/get.php
<?php

if (!isset($_GET['t'])) {
	die;
}

$type = $_GET['t'];

switch ($type) {
	
	// Pictures
	case 'pn':
		$id = $_GET['id'];
		$picture = $galleryPictures->get($id);
		echo $picture['name'];
		break;
	
	case 'pt':
		$id = $_GET['id'];
		$picture = $galleryPictures->get($id);
		echo implode(', ', $picture['tags']);
		break;
}

exit();
Return current item: Dev's CMS