$show = $_zp_gallery->getUser(); } if (empty($hash) && GALLERY_SECURITY == 'private' || !empty($hash) && zp_getCookie($authType) != $hash) { require_once dirname(__FILE__) . "/template-functions.php"; $parms = ''; if (isset($_GET['wmk'])) { $parms = '&wmk=' . $_GET['wmk']; } if (isset($_GET['q'])) { $parms .= '&q=' . sanitize_numeric($_GET['q']); } if (isset($_GET['dsp'])) { $parms .= '&dsp=' . sanitize_numeric($_GET['dsp']); } $action = WEBPATH . '/' . ZENFOLDER . '/full-image.php?userlog=1&a=' . pathurlencode($album8) . '&i=' . urlencode($image8) . $parms; printPasswordForm($hint, true, $_zp_gallery->getUserLogonField() || $show, $action); exit; } exit; } $image_path = ALBUM_FOLDER_SERVERPATH . $album . '/' . $image; $suffix = getSuffix($image_path); $cache_file = $album . "/" . substr($image, 0, -strlen($suffix) - 1) . '_FULL.' . $suffix; switch ($suffix) { case 'bmp': $suffix = 'wbmp'; break; case 'jpg': $suffix = 'jpeg'; break; case 'png':
<?php if (GALLERY_SECURITY == 'public') { $disable = $gallery->getUser() || getOption('search_user') || getOption('protected_image_user'); ?> <p class="public_gallery"<?php if (GALLERY_SECURITY == 'private') { echo ' style="display:none"'; } ?> > <label> <?php if ($disable) { ?> <input type="hidden" name="login_user_field" value="<?php echo $gallery->getUserLogonField(); ?> " /> <input type="checkbox" name="login_user_field_disabled" id="login_user_field" value="1" checked="checked" disabled="disabled" /> <?php } else { ?> <input type="checkbox" name="login_user_field" id="login_user_field" value="1" <?php echo checked('1', $gallery->getUserLogonField()); ?> /> <?php } echo gettext("enable user name login field");