/** * @desc Busca la posición exacta de una etiqueta */ function browsePic() { global $usr, $mc, $xoopsModuleConfig, $xoopsConfig, $xoopsUser, $pag, $set, $browse; $mc =& $xoopsModuleConfig; $user = new GSUser($usr); if ($user->isNew()) { redirect_header(XOOPS_URL . '/modules/galleries', 0, _MS_GS_ERRUSR); die; } $image = new GSImage($browse); if ($image->isNew()) { redirect_header(XOOPS_URL . '/modules/galleries', 0, _MS_GS_ERRIMG); die; } if (isset($set)) { $set = new GSSet($set); if ($set->isNew()) { redirect_header(XOOPS_URL . '/modules/galleries', 0, _MS_GS_ERRSET); die; } } $page = GSFunctions::pageFromPic($image, $user, $set > 0 ? $set : 0); header('location: ' . $user->userURL() . 'pag/' . $page); }