本文整理匯總了PHP中Gallery::getUserLogonField方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gallery::getUserLogonField方法的具體用法?PHP Gallery::getUserLogonField怎麽用?PHP Gallery::getUserLogonField使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Gallery
的用法示例。
在下文中一共展示了Gallery::getUserLogonField方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: dirname
$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':
示例2: getOption
<?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");