<?php
if ($_GET['id'] == 'photos') {
$_SESSION['filterContent'] = 'photosOnly';
} elseif ($_GET['id'] == 'videos') {
$_SESSION['filterContent'] = 'videosOnly';
} else {
unset($_SESSION['filterContent']);
}
if ($_GET['home']) {
header("Location: $basehttp");exit();
} else {
$url = preg_replace('/\?.*/', '', $_SERVER['HTTP_REFERER']);
header("Location: {$url}");exit();
}
?>