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

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

$type = $_GET['t'];

switch ($type) {
	
	// Pictures
	case 'pn':
		$id = $_GET['id'];
		$galleryPictures->editName($id, $_POST['data']);
		break;
	
	case 'pt':
		$id = $_GET['id'];
		$galleryTags->edit($id, galleryTags::explodeTags($_POST['data']));
		break;
	
	// Albums
	case 'an':
		$id = $_GET['id'];
		$galleryAlbums->editName($id, $_POST['data']);
		break;
	
	case 'ad':
		$id = $_GET['id'];
		$galleryAlbums->editDescription($id, $_POST['data']);
		break;
	
	case 'at':
		$id = $_GET['id'];
		$galleryAlbums->editTags($id, galleryTags::explodeTags($_POST['data']));
		break;
}

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