本文整理汇总了PHP中cpg_display_help函数的典型用法代码示例。如果您正苦于以下问题:PHP cpg_display_help函数的具体用法?PHP cpg_display_help怎么用?PHP cpg_display_help使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了cpg_display_help函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: list_users
//.........这里部分代码省略.........
case "reset_password":
document.editForm.new_password.style.display = "inline";
document.editForm.go.style.display = "inline";
break;
case "change_group":
document.editForm.new_password.value = '';
document.editForm.group.style.display = "inline";
if (document.editForm.group.value != '') {
document.editForm.submit();
}
break;
case "add_group":
document.editForm.new_password.value = '';
document.editForm.group.style.display = "inline";
if (document.editForm.group.value != '') {
document.editForm.submit();
}
break;
default:
document.editForm.new_password.value = '';
document.editForm.submit();
break;
}
}
-->
</script>
EOT;
starttable('100%');
if (isset($_POST['username'])) {
$search_filter = '<td class="tableh1" align="center">' . $lang_usermgr_php['search_result'] . '«' . $_POST['username'] . '»</td>';
} else {
$search_filter = '';
}
$help = ' ' . cpg_display_help('f=users.htm&as=user_cp&ae=user_cp_end&top=1', '650', '500');
echo <<<EOT
<tr>
<td colspan="{$number_of_columns}" class="tableh1">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="tableh1">
EOT;
if (!$lim_user) {
echo '<h2>' . $lang_usermgr_php['user_manager'] . $help . '</h2>';
} else {
echo '<h2>' . $lang_usermgr_php['memberlist'] . '</h2>';
}
echo <<<EOT
</td>
{$search_filter}
<td class="tableh1" align="right"><b>{$lang_usermgr_php['sort_by']}</b>:
{$lb}</td>
</tr>
</table>
</td>
</tr>
EOT;
// Accept header addons
echo CPGPluginAPI::filter('usermgr_header', '');
print '<form method="get" action="delete.php" name="editForm" id="cpgform">' . "\n";
print '<input type="hidden" name="id" value="" />';
if (!$lim_user) {
echo <<<EOT
<tr>
<td class="tableh1" align="center"><input type="checkbox" {$makereadonly}name="checkAll" onClick="selectAll(this,'u');" class="checkbox" title="{$lang_common['check_uncheck_all']}" /></td>
<td class="tableh1" colspan="2"><b><span class="statlink">{$lang_usermgr_php['name']}</span></b>
示例2: display_cat_list
display_cat_list();
endtable();
$op = $current_category['cid'] ? 'updatecat' : 'createcat';
echo <<<EOT
</td>
</tr>
<tr>
<td class="tableb">
<form method="post" action="catmgr.php?op={$op}">
EOT;
$help_update_create = ' ' . cpg_display_help('f=categories.htm&as=cat_cp_page_controls_create&ae=cat_cp_page_controls_create_end&top=1', '800', '600');
starttable('100%', $lang_catmgr_php['update_create'] . $help_update_create, 2);
$lb = cat_list_box($current_category['cid'], $current_category['parent'], false);
$ug_lb = usergroup_list_box($current_category['cid']);
$description_help = ' ' . cpg_display_help('f=categories.htm&as=cat_album_create&ae=cat_album_create_end&top=1', '600', '250');
$albumCreateHelp = ' ' . cpg_display_help('f=categories.htm&as=cat_album_create&ae=cat_album_create_end&top=1', '600', '250');
echo <<<EOT
<tr>
<td width="40%" class="tableb">
{$lang_catmgr_php['parent_cat']}
</td>
<td width="60%" class="tableb" valign="top">
{$lb}
</td>
</tr>
<tr>
<td width="40%" class="tableb">
{$lang_catmgr_php['group_create_alb']}{$albumCreateHelp}
</td>
<td width="60%" class="tableb" valign="top">
示例3: edit_user
//.........这里部分代码省略.........
<td class="{$row_style_class}" valign="top">
<input type="radio" id="yes" name="{$element[1]}" value="YES" {$yes_selected} /><label for="yes" class="clickable_option">{$lang_common['yes']}</label>
<input type="radio" id="no" name="{$element[1]}" value="NO" {$no_selected} /><label for="no" class="clickable_option">{$lang_common['no']}</label>
</td>
</tr>
EOT;
break;
case 'group_list':
$sql = "SELECT group_id, group_name FROM {$CONFIG['TABLE_USERGROUPS']} ORDER BY group_name";
$result = cpg_db_query($sql);
$group_list = cpg_db_fetch_rowset($result);
mysql_free_result($result);
$sel_group = $user_data[$element[1]];
$user_group_list = $user_data['user_group_list'] == '' ? ',' . $sel_group . ',' : ',' . $user_data['user_group_list'] . ',' . $sel_group . ',';
echo <<<EOT
<tr>
<td class="{$row_style_class}" valign="top">
{$element[2]}
</td>
<td class="{$row_style_class}" valign="top">
<select name="{$element[1]}" class="listbox">
EOT;
$group_cb = '';
foreach ($group_list as $group) {
echo ' <option value="' . $group['group_id'] . '"' . ($group['group_id'] == $sel_group || $op == 'new_user' && $group['group_id'] == 2 ? ' selected="selected"' : '') . '>' . $group['group_name'] . '</option>' . $LINEBREAK;
if ($group['group_id'] != 3) {
$checked = strpos(' ' . $user_group_list, ',' . $group['group_id'] . ',') ? 'checked="checked"' : '';
$group_cb .= '<input name="group_list[]" type="checkbox" value="' . $group['group_id'] . '" ' . $checked . ' />' . $group['group_name'] . '<br />' . $LINEBREAK;
}
}
$assignedGroupsHelp = cpg_display_help('f=users.htm&as=user_cp_edit_permission_by_group&ae=user_cp_edit_permission_by_group_end', '450', '300');
echo <<<EOT
</select><br />
{$group_cb}
<br />
<a href="usermgr.php?op=groups_alb_access&form_token={$form_token}&timestamp={$timestamp}" class="admin_menu">{$lang_usermgr_php['groups_alb_access']}</a>
{$assignedGroupsHelp}
</td>
</tr>
EOT;
break;
case 'checkbox':
echo <<<EOT
<tr>
<td class="{$row_style_class}" valign="top">
<label for="send_login_data">{$element[2]}</label>
</td>
<td class="{$row_style_class} valign="top"">
<input type="checkbox" id="send_login_data" name="{$element[1]}" value="YES" />
</td>
</tr>
EOT;
break;
default:
cpg_die(CRITICAL_ERROR, 'Invalid action for form creation ' . $element[0], __FILE__, __LINE__);
}
}
if ($op == 'new_user') {
echo <<<EOT
<tr>
示例4: mysql_fetch_array
$ALBUM_DATA = mysql_fetch_array($results);
$CLEAN['album'] = $ALBUM_DATA['aid'];
} else {
//$album = (int)$_GET['album'];
$results = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid='{$CLEAN['album']}'");
if (!mysql_num_rows($results)) {
cpg_die(CRITICAL_ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);
}
$ALBUM_DATA = mysql_fetch_array($results);
}
$cat = $ALBUM_DATA['category'];
$actual_cat = $cat;
//////////// main code start ///////////////////
pageheader(sprintf($lang_modifyalb_php['upd_alb_n'], $ALBUM_DATA['title']));
$album_lb = alb_list_box();
$help = ' ' . cpg_display_help('f=albums.htm&as=album_prop&ae=album_prop_end&top=1', '600', '400');
starttable("100%", $lang_modifyalb_php['update'] . $help, 2);
echo <<<EOT
<tr>
<td class="tableh2" align="center">
<a href="editpics.php?album={$CLEAN['album']}" class="admin_menu">{$lang_modifyalb_php['edit_files']}</a>
-
<a href="index.php?cat={$ALBUM_DATA['category']}" class="admin_menu">{$lang_modifyalb_php['parent_category']}</a>
-
<a href="thumbnails.php?album={$CLEAN['album']}" class="admin_menu">{$lang_modifyalb_php['thumbnail_view']}</a>
</td>
<td class="tableh2" align="right">
{$album_lb}
</td>
</tr>
<form method="post" name="modifyalbum" id="cpgform" action="db_input.php">
示例5: cpgVersioncheckConnectRepository
}
if ($superCage->get->getInt('no_modification_check') == '1') {
$displayOption_array['no_modification_check'] = 1;
$optionDisplayOutput_array['no_modification_check'] = 'checked="checked"';
} else {
$displayOption_array['no_modification_check'] = 0;
}
// Sanitize the GET vars and populate the optionsArray --- end
// Connect to the repository
if ($displayOption_array['output'] != 'options') {
$file_data_array = cpgVersioncheckConnectRepository();
$file_data_array = cpg_versioncheckPopulateArray($file_data_array);
$file_data_count = count($file_data_array);
}
// main code starts here
$title_help = ' ' . cpg_display_help('f=upgrading.htm&as=versioncheck&ae=versioncheck_end', '600', '400');
pageheader($lang_versioncheck_php['title']);
starttable('100%', cpg_fetch_icon('check_versions', 2) . $lang_versioncheck_php['title'] . $title_help, 1);
//print '<h1>' . cpg_fetch_icon('check_versions', 2) . $lang_versioncheck_php['title']. $title_help . '</h1>';
// Print options if applicable
if ($displayOption_array['output'] == 'options' || $displayOption_array['output'] == 'screen' || $displayOption_array['output'] == 'textarea') {
print <<<EOT
<tr>
<td class="tableb">
EOT;
cpg_versioncheckDisplayOptions();
print <<<EOT
</td>
</tr>
EOT;
}
示例6: theme_html_comments
//.........这里部分代码省略.........
$comment_buttons = $tmpl_comments_buttons;
$comment_edit_box = $tmpl_comment_edit_box;
} else {
$comment_buttons = '';
$comment_edit_box = '';
}
$comment_ipinfo = $row['msg_raw_ip'] && GALLERY_ADMIN_MODE ? $tmpl_comments_ipinfo : '';
$hide_comment = 0;
// comment approval
$pending_approval = '';
if (USER_IS_ADMIN) {
//display the selector approve/disapprove
if ($row['approval'] == 'NO') {
$pending_approval = '<a href="reviewcom.php?pos=-{PID}&msg_id={MSG_ID}&what=approve" title="' . $lang_display_comments['approve'] . '"><img src="images/approve.gif" border="0" alt="" align="middle" /></a>';
} else {
$pending_approval = '<a href="reviewcom.php?pos=-{PID}&msg_id={MSG_ID}&what=disapprove" title="' . $lang_display_comments['disapprove'] . '"><img src="images/disapprove.gif" border="0" alt="" align="middle" /></a>';
}
} else {
// user or guest is logged in - start
if ($row['approval'] == 'NO') {
// the comment is not approved - start
if ($user_can_edit) {
// the comment comes from the current visitor, display it with a warning that it needs admin approval
$pending_approval = '<img src="images/approve.gif" border="0" alt="" title="' . $lang_display_comments['pending_approval'] . '" align="middle" />';
} else {
// the comment comes from someone else - don't display it at all
if ($CONFIG['comment_placeholder'] == 0) {
$hide_comment = 1;
} else {
$row['msg_author'] = $lang_display_comments['unapproved_comment'];
$row['msg_body'] = $lang_display_comments['pending_approval_message'];
$row['author_id'] = 0;
}
}
}
// the comment is not approved - end
}
// user or guest is logged in - end
if ($CONFIG['enable_smilies']) {
$comment_body = process_smilies(make_clickable($row['msg_body']));
$smilies = generate_smilies("f{$row['msg_id']}", 'msg_body');
} else {
$comment_body = make_clickable($row['msg_body']);
$smilies = '';
}
// wrap the comment into italics if it isn't approved
if ($row['approval'] == 'NO') {
$comment_body = '<em>' . $comment_body . '</em>';
$row['msg_author'] = $row['msg_author'];
}
$ip = $row['msg_hdr_ip'];
if ($row['msg_hdr_ip'] != $row['msg_raw_ip']) {
$ip .= ' [' . $row['msg_raw_ip'] . ']';
}
$params = array('{EDIT}' => &$comment_edit_box, '{BUTTONS}' => &$comment_buttons, '{IPINFO}' => &$comment_ipinfo, '{PENDING_APPROVAL}' => &$pending_approval);
$template = template_eval($template_image_comments, $params);
if ($row['author_id'] == 0) {
$profile_lnk = stripslashes($row['msg_author']);
} else {
$profile_lnk = '<a href="profile.php?uid=' . $row['author_id'] . '">' . stripslashes($row['msg_author']) . '</a>';
}
$params = array('{MSG_AUTHOR_LNK}' => $profile_lnk, '{MSG_AUTHOR}' => $row['msg_author'], '{MSG_ID}' => $row['msg_id'], '{PID}' => $row['pid'], '{EDIT_TITLE}' => &$lang_display_comments['edit_title'], '{DELETE_TITLE}' => &$lang_display_comments['delete_title'], '{CONFIRM_DELETE}' => &$lang_display_comments['confirm_delete'], '{MSG_DATE}' => localised_date($row['msg_date'], $comment_date_fmt), '{MSG_BODY}' => bb_decode($comment_body), '{MSG_BODY_RAW}' => $row['msg_body'], '{OK}' => &$lang_display_comments['OK'], '{SMILIES}' => $smilies, '{IP}' => $ip, '{REPORT_COMMENT_TITLE}' => &$lang_display_comments['report_comment_title'], '{WIDTH}' => $CONFIG['picture_table_width']);
if ($hide_comment != 1) {
$html .= template_eval($template, $params);
}
}
// while-loop end
if (USER_CAN_POST_COMMENTS && $CURRENT_ALBUM_DATA['comments'] == 'YES') {
if (USER_ID) {
$user_name_input = '<tr><td><input type="hidden" name="msg_author" value="' . stripslashes(USER_NAME) . '" /></td>';
template_extract_block($template_add_your_comment, 'user_name_input', $user_name_input);
$user_name = '';
} else {
$user_name = isset($USER['name']) ? '"' . strtr($USER['name'], $HTML_SUBST) . '"' : $lang_display_comments['your_name'] . '" onclick="javascript:this.value=\'\';';
}
if ($CONFIG['comment_captcha'] == 0 || $CONFIG['comment_captcha'] == 1 && USER_ID) {
template_extract_block($template_add_your_comment, 'comment_captcha');
}
$params = array('{ADD_YOUR_COMMENT}' => $lang_display_comments['add_your_comment'], '{NAME}' => $lang_display_comments['name'], '{COMMENT}' => $lang_display_comments['comment'], '{CONFIRM}' => $lang_common['confirm'] . ' ' . cpg_display_help('f=empty.htm&base=64&h=' . urlencode(base64_encode(serialize($lang_common['captcha_help_title']))) . '&t=' . urlencode(base64_encode(serialize($lang_common['captcha_help']))), 470, 245), '{PIC_ID}' => $pid, '{USER_NAME}' => $user_name, '{MAX_COM_LENGTH}' => $CONFIG['max_com_size'], '{OK}' => $lang_display_comments['OK'], '{SMILIES}' => '', '{WIDTH}' => $CONFIG['picture_table_width']);
if ($CONFIG['enable_smilies']) {
$params['{SMILIES}'] = generate_smilies();
} else {
template_extract_block($template_add_your_comment, 'smilies');
}
template_extract_block($template_add_your_comment, 'login_to_comment');
$html .= template_eval($template_add_your_comment, $params);
} else {
// user can not post comments
if ($CONFIG['comment_promote_registration'] == 1 && $CURRENT_ALBUM_DATA['comments'] == 'YES') {
template_extract_block($template_add_your_comment, 'user_name_input');
template_extract_block($template_add_your_comment, 'input_box_smilies');
template_extract_block($template_add_your_comment, 'comment_captcha');
template_extract_block($template_add_your_comment, 'smilies');
template_extract_block($template_add_your_comment, 'submit');
$params = array('{ADD_YOUR_COMMENT}' => $lang_display_comments['add_your_comment'], '{WIDTH}' => $CONFIG['picture_table_width'], '{LOGIN_TO_COMMENT}' => sprintf($lang_display_comments['log_in_to_comment'], '<a href="login.php?referer=' . $REFERER . '">', '</a>'));
$html .= template_eval($template_add_your_comment, $params);
}
}
return $html;
}
示例7: form_number_dropdown
function form_number_dropdown($text, $name, $help = '')
{
global $MINICMS, $lang_admin_php;
$help = cpg_display_help($help);
//left this one in as an example
echo <<<EOT
<tr>
<td class="tableb" width="60%">
{$text}
</td>
<td class="tableb" valign="top" width="50%">
<select name="{$name}" class="listbox">
EOT;
for ($i = 5; $i <= 25; $i++) {
echo "<option value=\"" . $i . "\"";
if ($i == $MINICMS[$name]) {
echo " selected=\"selected\"";
}
echo ">" . $i . "</option>\n";
}
echo <<<EOT
</select>
</td>
\t\t\t\t\t<!-- td class="tableb" width="10%">
{$help}
\t\t\t\t\t</td -->
</tr>
EOT;
}
示例8: display_dir_tree
echo ' <iframe src="minibrowser.php?startfolder=' . $iframe_startfolder . '&parentform=choosefolder&formelementname=startdir&no_popup=1&limitfolder=' . $iframe_startfolder . '&linktarget=' . $CPG_PHP_SELF . '&searchnew_php=1&radio=0" width="95%" height="400" name="popup_in_a_box"></iframe>' . $LINEBREAK;
} else {
echo '<table width="100%">';
display_dir_tree('', '');
echo '</table>';
}
echo ' </td>' . $LINEBREAK;
echo ' </tr>' . $LINEBREAK;
// configure batch-add interface (classic or browsable)
$yes_selected = $CONFIG['browse_batch_add'] ? 'checked="checked"' : '';
$no_selected = !$CONFIG['browse_batch_add'] ? 'checked="checked"' : '';
$help = cpg_display_help('f=configuration.htm&as=admin_general_browsable_batch_add&ae=admin_general_browsable_batch_add_end', '500', '300');
// configure preview thumbnail interface (enabled or disabled)
$thumb_yes_selected = $CONFIG['display_thumbs_batch_add'] ? 'checked="checked"' : '';
$thumb_no_selected = !$CONFIG['display_thumbs_batch_add'] ? 'checked="checked"' : '';
$help_thumb = cpg_display_help('f=configuration.htm&as=admin_general_display_thumbs_batch_add&ae=admin_general_display_thumbs_batch_add_end', '600', '250');
echo <<<EOT
<tr>
<td class="tableb">
<strong>{$lang_search_new_php['select_dir_msg']}</strong>
</td>
</tr>
<tr>
<td class="tablef" colspan="6">
{$lang_search_new_php['browse_batch_add']}
{$help}
<input type="radio" id="browse_batch_add1" name="browse_batch_add" value="1" onclick="document.interfaceconfig.submit();" {$yes_selected} /><label for="browse_batch_add1" class="clickable_option">{$lang_common['yes']}</label>
<input type="radio" id="browse_batch_add0" name="browse_batch_add" value="0" onclick="document.interfaceconfig.submit();" {$no_selected} /><label for="browse_batch_add0" class="clickable_option">{$lang_common['no']}</label>
示例9: adminmessages
function adminmessages()
{
global $register_globals_flag, $lang_errors;
// If user is not admin (and in admin mode), then return
if (!GALLERY_ADMIN_MODE) {
return;
}
// If register_globals is On, then show the warning message.
if ($register_globals_flag == true) {
msg_box($lang_errors['register_globals_title'], $lang_errors['register_globals_warning'] . ' ' . cpg_display_help('f=install.htm&as=install_server_config_register_globals&ae=install_server_config_register_globals_end&top=1', '800', '600'), '', '', 'warning');
}
}
示例10: cpg_display_help
</td>
</tr>
<tr>
<td class="tableb" colspan="3" valign="top"><br />
<textarea name="message" class="textinput" rows="8" cols="40" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" style="width: 100%;">{$message}</textarea><br /><br />
</td>
</tr>
<tr>
<td class="tableb" colspan="3" valign="top">
{$smilies}
</td>
</tr>
EOT;
// captcha code
if ($CONFIG['ecard_captcha'] == 1 || $CONFIG['ecard_captcha'] == 2 && !USER_ID) {
$help = cpg_display_help('f=empty.htm&h=lang_common[captcha_help_title]&t=lang_common[captcha_help]', 470, 245);
$captcha_print = <<<EOT
<tr>
<td class="tableb">
{$lang_common['confirm']} {$help}
</td>
<td class="tableb" colspan="2">
<input type="text" name="confirmCode" id="confirmCode" size="5" maxlength="5" class="textinput" />
<img src="captcha.php" align="middle" border="0" alt="" />
</td>
</tr>
EOT;
$captcha_print = CPGPluginAPI::filter('captcha_ecard_print', $captcha_print);
echo $captcha_print;
}
echo <<<EOT
示例11: cpg_display_help
$help['choose_album'] = ' ' . cpg_display_help('f=albums.htm&as=album_prop_controls_album_dropdown&ae=album_prop_controls_album_dropdown_end', '500', '250');
$help['album_title'] = ' ' . cpg_display_help('f=albums.htm&as=album_prop_controls_album_title&ae=album_prop_controls_album_title_end', '500', '250');
$help['album_category'] = ' ' . cpg_display_help('f=albums.htm&as=album_prop_controls_album_category&ae=album_prop_controls_album_category_end', '500', '250');
$help['album_keywords'] = ' ' . cpg_display_help('f=albums.htm&as=album_prop_controls_album_keyword&ae=album_prop_controls_album_keyword_end', '500', '250');
$help['album_thumbnail'] = ' ' . cpg_display_help('f=albums.htm&as=album_prop_controls_album_thumbnail&ae=album_prop_controls_album_thumbnail_end', '500', '250');
$help['album_can_be_viewed_by'] = ' ' . cpg_display_help('f=albums.htm&as=album_prop_controls_album_can_be_viewed_by&ae=album_prop_controls_album_can_be_viewed_by_end', '500', '250');
$help['album_password'] = ' ' . cpg_display_help('f=albums.htm&as=album_prop_controls_password_protection&ae=album_prop_controls_password_protection_end&', '500', '250');
$help['can_upload'] = ' ' . cpg_display_help('f=albums.htm&as=album_prop_controls_visitor_upload&ae=album_prop_controls_visitor_upload_end&', '400', '200');
$help['can_post_comments'] = ' ' . cpg_display_help('f=albums.htm&as=album_prop_controls_can_post_comment&ae=album_prop_controls_can_post_comment_end&', '400', '200');
$help['can_rate'] = ' ' . cpg_display_help('f=albums.htm&as=album_prop_controls_can_rate_files&ae=album_prop_controls_can_rate_files_end&', '400', '200');
$help['can_moderate'] = ' ' . cpg_display_help('f=albums.htm&as=album_prop_controls_album_moderation&ae=album_prop_controls_album_moderation_end&', '400', '200');
// Define the icons
$icon_array = array('album_properties' => cpg_fetch_icon('modifyalb', 2), 'thumbnail' => cpg_fetch_icon('thumbnails', 1), 'album_thumbnail' => cpg_fetch_icon('thumbnails', 2), 'password' => cpg_fetch_icon('key_enter', 2), 'album' => cpg_fetch_icon('alb_mgr', 2), 'upload' => cpg_fetch_icon('upload', 2), 'move' => cpg_fetch_icon('move', 1), 'title' => cpg_fetch_icon('title', 2), 'view' => cpg_fetch_icon('groups_mgr', 2), 'description' => cpg_fetch_icon('text_left', 2), 'keyword' => cpg_fetch_icon('keyword_mgr', 2), 'views' => cpg_fetch_icon('stats', 2), 'ok' => cpg_fetch_icon('ok', 1), 'category' => cpg_fetch_icon('category', 1), 'album_category' => cpg_fetch_icon('category', 2), 'file' => cpg_fetch_icon('file', 2), 'comment' => cpg_fetch_icon('comment', 2), 'rate' => cpg_fetch_icon('top_rated', 2), 'blank' => cpg_fetch_icon('blank', 2), 'edit_files' => cpg_fetch_icon('edit', 1), 'stop' => cpg_fetch_icon('stop', 0, '', '', 'png', 1));
$captionLabel = $lang_modifyalb_php['alb_desc'];
if ($CONFIG['show_bbcode_help']) {
$captionLabel .= ' ' . cpg_display_help('f=empty.htm&h=lang_bbcode_help_title&t=lang_bbcode_help', 470, 245);
}
$data = array($lang_modifyalb_php['general_settings'], array($icon_array['title'] . $lang_modifyalb_php['alb_title'] . $help['album_title'], 'title', 0), array($icon_array['album_category'] . $lang_modifyalb_php['alb_cat'] . $help['album_category'], 'category', 2), array($icon_array['description'] . $captionLabel, 'description', 3), array($icon_array['keyword'] . $lang_modifyalb_php['alb_keyword'] . $help['album_keywords'], 'keyword', 0), array($lang_modifyalb_php['alb_thumb'], 'thumb', 4), $lang_modifyalb_php['alb_perm'], array($icon_array['view'] . $lang_modifyalb_php['can_view'] . $help['album_can_be_viewed_by'], 'visibility', 5), array($icon_array['password'] . $lang_modifyalb_php['password_protect'] . $help['album_password'], 'password_protect', 9), array($icon_array['blank'] . $lang_modifyalb_php['alb_password'], 'alb_password', 6), array($icon_array['blank'] . $lang_modifyalb_php['alb_password_hint'], 'alb_password_hint', 7), array($icon_array['upload'] . $lang_modifyalb_php['can_upload'] . $notice1 . $help['can_upload'], 'uploads', 1), array($icon_array['comment'] . $lang_modifyalb_php['can_post_comments'] . $notice1 . $help['can_post_comments'], 'comments', 1), array($icon_array['rate'] . $lang_modifyalb_php['can_rate'] . $notice1 . $help['can_rate'], 'votes', 1));
/* TODO: re-enable and test feature when it's clear how it should work (see http://forum.coppermine-gallery.net/index.php/topic,64408.0.html)
if (GALLERY_ADMIN_MODE) {
$data[] = array($lang_modifyalb_php['can_moderate'].$help['can_moderate'], 'moderator_group', 8);
}
*/
function form_label($text)
{
echo <<<EOT
<tr>
<td class="tableh2" colspan="2">
<strong>{$text}</strong>
</td>
</tr>
示例12: cpg_display_help
} else {
$currentPage = $page;
$currentStart = ($page - 1) * $countTo + 1;
$currentEnd = $currentStart + $countTo - 1;
if ($currentEnd > $totalEcards) {
$currentEnd = $totalEcards;
}
}
$tabOutput .= $page;
if ($page != $startFrom / $countTo + 1) {
$tabOutput .= '</a>';
}
$tabOutput .= ' ';
}
$maxPage = $page - 1;
$help = ' ' . cpg_display_help('f=admin_menu.htm&as=ecard_log&ae=ecard_log_end&top=1', '830', '400');
$tableHeader1 = $lang_db_ecard_php['title'] . " (" . $lang_db_ecard_php['ecard_sorted'] . " " . $sortText . ", " . $sortDirectionText . ")" . $help;
starttable('100%', cpg_fetch_icon('ecard_review', 2) . $tableHeader1, 3);
print '<tr><td class="tableb">';
printf($lang_db_ecard_php['ecard_number'], $currentStart, $currentEnd, $totalEcards);
print '</td><td class="tableb">';
if ($maxPage > 1) {
print $lang_db_ecard_php['ecard_goto_page'] . ' ';
print $tabOutput;
}
print '</td><td align="right" class="tableb">';
print $lang_db_ecard_php['ecard_records_per_page'];
print ' <select onchange="if(this.options[this.selectedIndex].value) window.location.href=\'' . $formTarget . 'count=\'+this.options[this.selectedIndex].value;" name="count" class="listbox">';
foreach ($selectOptions as $key) {
print ' <option value="' . $key . '" ';
if ($key == $countTo) {
示例13: set_js_var
$cat = $result->result(0, 0, true);
}
}
// only list the albums owned by the user
$user_id = USER_ID;
}
// set the cat value
set_js_var('category', $cat);
pageheader($lang_albmgr_php['title']);
echo <<<EOT
<form name="album_menu" id="cpg_form_album" method="post" action="delete.php?what=albmgr">
<input type="hidden" name="form_token" value="{$form_token}" />
<input type="hidden" name="timestamp" value="{$timestamp}" />
EOT;
starttable('100%', cpg_fetch_icon('alb_mgr', 2) . $lang_albmgr_php['title'] . ' ' . cpg_display_help('f=albums.htm&as=albmgr&ae=albmgr_end&top=1', '600', '400'), 1, '');
echo <<<EOT
<tr class="noscript">
<td class="tableh2">
<noscript>
{$lang_common['javascript_needed']}
</noscript>
</td>
</tr>
<tr>
<td>
EOT;
if (GALLERY_ADMIN_MODE) {
$result = cpg_db_query("SELECT aid, title FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = {$cat} ORDER BY pos ASC");
} elseif (USER_ADMIN_MODE) {
// $cat and $user_id set above
示例14: endtable
print ' <tr>' . $LINEBREAK;
print ' <td class="tableb">' . $LINEBREAK;
print ' </td>' . $LINEBREAK;
print ' <td class="tableb">' . $LINEBREAK;
print $options;
print ' </td>' . $LINEBREAK;
print ' </tr>' . $LINEBREAK;
print ' ' . $LINEBREAK;
endtable();
print ' </div>' . $LINEBREAK;
print ' </td>' . $LINEBREAK;
print ' </tr>' . $LINEBREAK;
$loopCounter++;
}
endtable();
$help_select = ' ' . cpg_display_help('f=admin-tools.htm&as=admin_tools_usage&ae=admin_tools_usage_end&top=1', '600', '400');
starttable('100%', $lang_common['select_album'] . $help_select);
echo '<tr><td class="tablef"><br />';
$cpg_udb->util_filloptions();
echo '<br /></td></tr>';
endtable();
list($timestamp, $form_token) = getFormToken();
echo <<<EOT
<input type="hidden" name="form_token" value="{$form_token}" />
<input type="hidden" name="timestamp" value="{$timestamp}" />
</form>
EOT;
}
function del_titles()
{
global $CONFIG, $lang_util_php;
示例15: array
require_once 'include/functions.inc.php';
// The default values
$errors = '';
$notes = '';
$DFLT = array('cfg_d' => 'include', 'cfg_f' => 'include/config.inc.php', 'alb_d' => 'albums', 'upl_d' => 'userpics');
$superCage = Inspekt::makeSuperCage();
// If including includes/init.inc.php has worked as expected, the constants should be populated, so let's check that first
if (!defined('SKIP_AUTHENTICATION') && defined('COPPERMINE_VERSION') && GALLERY_ADMIN_MODE) {
$_SESSION['auth'] = true;
} else {
// we need to populate the language array "manually"
$lang_common['ok'] = 'OK';
$lang_update_php = array('title' => 'Updater', 'welcome_updater' => 'Welcome to Coppermine update', 'could_not_authenticate' => 'Could not authenticate you', 'provide_admin_account' => 'Please provide your coppermine admin account details or your mySQL account data', 'try_again' => 'Try again', 'mysql_connect_error' => 'Could not create a mySQL connection', 'mysql_database_error' => 'mySQL could not locate a database called %s', 'mysql_said' => 'MySQL said', 'check_config_file' => 'Please check the SQL values in %s', 'performing_database_updates' => 'Performing Database Updates', 'already_done' => 'Already Done', 'password_encryption' => 'Encryption of passwords', 'alb_password_encryption' => 'Encryption of album passwords', 'category_tree' => 'Category tree', 'authentication_needed' => 'Authentication needed', 'username' => 'Username', 'password' => 'Password', 'update_completed' => 'Update completed', 'check_versions' => 'It\'s recommended to %scheck your file versions%s if you just upgraded from an older version of coppermine', 'start_page' => 'If you didn\'t (or you don\'t want to check), you can go to %syour gallery\'s start page%s', 'errors_encountered' => 'The following errors were encountered and need to be corrected first', 'delete_file' => 'Delete %s', 'could_not_delete' => 'Could not delete due to missing permissions. Delete the file manually!');
}
if (!function_exists('cpg_display_help')) {
$help = ' ' . cpg_display_help('f=upgrading.htm&as=updater&ae=updater_end&top=1', '650', '500');
} else {
$help = ' <a href="docs/en/upgrading.htm?hide_nav=1#updater" class="greybox"><img src="images/help.gif" border="0" width="13" height="11" alt="" /></a>';
}
// ---------------------------- AUTHENTICATION --------------------------- //
// SKIP_AUTHENTICATION is a constant that can be defined for users who can't retrieve any kind of password
if (!defined('SKIP_AUTHENTICATION') && !$_SESSION['auth']) {
html_header($lang_update_php['title']);
if (!$superCage->post->keyExists('method')) {
//first try to connect to the db to see if we can authenticate the admin
test_sql_connection();
if ($errors != '') {
//we could not establish an sql connection, so update can't be done (and user can't be autenticated)
html_error($errors);
} else {
//echo a box for admin autentication