<?php
$backgrounds = [
/*1 => [
'author' => 'Brian Ralphs',
'link' => 'http://www.flickr.com/photos/birdbrian/3226013858/',
],*/
2 => [
'author' => 'João Pacheco (MOVEAST)',
'link' => 'http://picjumbo.com/sunset-snorkeling-in-dubai/'
],
3 => [
'author' => 'Viktor Hanacek',
'link' => 'http://picjumbo.com/taste-that-strawberry/'
],
4 => [
'author' => 'Viktor Hanacek',
'link' => 'http://picjumbo.com/style-sunglasses-with-macbook/'
],
5 => [
'author' => 'Viktor Hanacek',
'link' => 'http://picjumbo.com/austria-windmill-in-retro-colors/'
],
6 => [
'author' => 'Dannie',
'link' => 'http://picjumbo.com/girl-with-heart/'
]
];
if(!$_SESSION['covers']) {
$_SESSION['covers'] = $backgrounds;
$fresh = true;
} else {
unset($_SESSION['covers'][$_SESSION['cover_used']]);
}
$cover = key($_SESSION['covers']);
$_SESSION['cover_used'] = $cover;
?>