uid) die('Forbidden');
$PB->init($Login);
// the id is encoded in the HTML id of the inplace edit thingy
list($do,$id) = explode('_',$_REQUEST['id']);
$id = (int) $id;
switch($do){
case 'prevgeo':
$next = $PB->recentPrev($id);
if($next){
$PB->gui_geothumb($next);
}else{
$PB->gui_geothumb($PB->exact($id));
echo '';
}
break;
case 'nextgeo':
$next = $PB->recentNext($id);
if($next){
$PB->gui_geothumb($next);
}else{
$PB->gui_geothumb($PB->exact($id));
echo '';
}
break;
default:
die('unknown action');
}