本文整理汇总了PHP中comcode_lang_string函数的典型用法代码示例。如果您正苦于以下问题:PHP comcode_lang_string函数的具体用法?PHP comcode_lang_string怎么用?PHP comcode_lang_string使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了comcode_lang_string函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
/**
* Standard modular run function.
*
* @return tempcode The result of execution.
*/
function run()
{
require_lang('bulkupload');
$GLOBALS['HELPER_PANEL_PIC'] = 'pagepics/bulkuploadassistant';
$GLOBALS['HELPER_PANEL_TUTORIAL'] = 'tut_adv_comcode';
$GLOBALS['HELPER_PANEL_TEXT'] = comcode_lang_string('DOC_BULK_UPLOAD');
$title = get_page_title('BULK_UPLOAD');
$parameter = post_param('parameter', '');
require_code('form_templates');
if ($parameter == '') {
$post_url = build_url(array('page' => '_SELF'), '_SELF');
$text = paragraph(do_lang_tempcode('BULK_UPLOAD_HELP'));
$submit_name = do_lang_tempcode('BULK_UPLOAD');
$fields = form_input_line(do_lang_tempcode('DIRECTORY'), do_lang_tempcode('DIRECTORY_BULK'), 'parameter', 'uploads/attachments/' . date('Y-m-d', utctime_to_usertime()), true);
return do_template('FORM_SCREEN', array('_GUID' => '77a2ca460745145d8a1d18cf24971fea', 'SKIP_VALIDATION' => true, 'HIDDEN' => '', 'FIELDS' => $fields, 'URL' => $post_url, 'TITLE' => $title, 'TEXT' => $text, 'SUBMIT_NAME' => $submit_name));
} else {
breadcrumb_set_parents(array(array('_SELF:_SELF:misc', do_lang_tempcode('BULK_UPLOAD'))));
breadcrumb_set_self(do_lang_tempcode('_RESULTS'));
$out = $this->do_dir(get_custom_file_base() . '/' . filter_naughty($parameter, true));
if ($out->is_empty()) {
inform_exit(do_lang_tempcode('NO_FILES'));
}
return do_template('BULK_HELPER_RESULTS_SCREEN', array('_GUID' => '5d373553cf21a58f15006bd4e600a9ee', 'TITLE' => $title, 'RESULTS' => $out));
}
}
示例2: booking_do_next
/**
* Get a do-next manager for bookings.
*
* @return tempcode Booking do-next manager.
*/
function booking_do_next()
{
require_lang('calendar');
require_code('templates_donext');
require_code('fields');
return do_next_manager(get_page_title('BOOKINGS'), comcode_lang_string('DOC_BOOKING'), array(has_specific_permission(get_member(), 'submit_cat_highrange_content', 'cms_booking') ? array('bookable', array('_SELF', array('type' => 'ad'), '_SELF'), do_lang('ADD_BOOKABLE')) : NULL, has_specific_permission(get_member(), 'edit_cat_highrange_content', 'cms_booking') ? array('bookable', array('_SELF', array('type' => 'ed'), '_SELF'), do_lang('EDIT_BOOKABLE')) : NULL, has_specific_permission(get_member(), 'submit_cat_highrange_content', 'cms_booking') ? array('supplement', array('_SELF', array('type' => 'av'), '_SELF'), do_lang('ADD_BOOKABLE_SUPPLEMENT')) : NULL, has_specific_permission(get_member(), 'edit_cat_highrange_content', 'cms_booking') ? array('supplement', array('_SELF', array('type' => 'ev'), '_SELF'), do_lang('EDIT_BOOKABLE_SUPPLEMENT')) : NULL, has_specific_permission(get_member(), 'submit_cat_highrange_content', 'cms_booking') ? array('blacked', array('_SELF', array('type' => 'ac'), '_SELF'), do_lang('ADD_BOOKABLE_BLACKED')) : NULL, has_specific_permission(get_member(), 'edit_cat_highrange_content', 'cms_booking') ? array('blacked', array('_SELF', array('type' => 'ec'), '_SELF'), do_lang('EDIT_BOOKABLE_BLACKED')) : NULL, has_specific_permission(get_member(), 'submit_highrange_content', 'cms_booking') ? array('booking', array('_SELF', array('type' => 'ab'), '_SELF'), do_lang('ADD_BOOKING')) : NULL, has_specific_permission(get_member(), 'edit_highrange_content', 'cms_booking') ? array('booking', array('_SELF', array('type' => 'eb'), '_SELF'), do_lang('EDIT_BOOKING')) : NULL, has_actual_page_access(get_member(), 'calendar') ? array('calendar', array('calendar', array('type' => 'misc', 'view' => 'month'), '_SEARCH'), do_lang('CALENDAR')) : NULL), do_lang('BOOKINGS'));
}
示例3: run
/**
* Standard modular run function.
*
* @return tempcode The result of execution.
*/
function run()
{
require_lang('themes');
require_code('themes2');
require_code('themewizard');
$GLOBALS['HELPER_PANEL_PIC'] = 'pagepics/themewizard';
$GLOBALS['HELPER_PANEL_TUTORIAL'] = 'tut_themes';
$GLOBALS['HELPER_PANEL_TEXT'] = comcode_lang_string('DOC_THEMEWIZARD');
$type = get_param('type', 'misc');
if ($type == 'misc') {
return $this->step1();
}
if ($type == 'step2') {
return $this->step2();
}
if ($type == 'step3') {
return $this->step3();
}
if ($type == 'step4') {
return $this->step4();
}
if ($type == 'make_logo') {
return $this->make_logo();
}
if ($type == '_make_logo') {
return $this->_make_logo();
}
if ($type == '__make_logo') {
return $this->__make_logo();
}
return new ocp_tempcode();
}
示例4: misc
/**
* The do-next manager for before content management.
*
* @return tempcode The UI
*/
function misc()
{
require_lang('menus');
$also_url = build_url(array('page' => 'cms_chat'), get_module_zone('cms_chat'));
attach_message(do_lang_tempcode('ALSO_SEE_CMS', escape_html($also_url->evaluate())), 'inform');
$this->add_one_label = do_lang_tempcode('ADD_CHATROOM');
$this->edit_this_label = do_lang_tempcode('EDIT_THIS_CHATROOM');
$this->edit_one_label = do_lang_tempcode('EDIT_CHATROOM');
require_code('templates_donext');
return do_next_manager(get_page_title('MANAGE_CHATROOMS'), comcode_lang_string('DOC_CHAT'), array(array('add_one', array('_SELF', array('type' => 'ad'), '_SELF'), do_lang('ADD_CHATROOM')), array('edit_one', array('_SELF', array('type' => 'ed'), '_SELF'), do_lang('EDIT_CHATROOM')), array('delete', array('_SELF', array('type' => 'delete_all'), '_SELF'), do_lang('DELETE_ALL_ROOMS'))), do_lang('MANAGE_CHATROOMS'));
}
示例5: run
/**
* Standard modular run function.
*
* @return tempcode The result of execution.
*/
function run()
{
$GLOBALS['HELPER_PANEL_PIC'] = 'pagepics/trackbacks';
$GLOBALS['HELPER_PANEL_TEXT'] = comcode_lang_string('DOC_TRACKBACKS');
require_lang('trackbacks');
$type = get_param('type', 'misc');
if ($type == 'misc') {
return $this->choose();
}
if ($type == 'delete') {
return $this->delete_trackbacks();
}
return new ocp_tempcode();
}
示例6: run
/**
* Standard modular run function.
*
* @return tempcode The result of execution.
*/
function run()
{
require_lang('debrand');
require_lang('config');
$GLOBALS['HELPER_PANEL_PIC'] = 'pagepics/debrand';
$GLOBALS['HELPER_PANEL_TEXT'] = comcode_lang_string('DOC_SUPERDEBRAND');
$type = get_param('type', 'misc');
if ($type == 'misc') {
return $this->misc();
}
if ($type == 'actual') {
return $this->actual();
}
return new ocp_tempcode();
}
示例7: run
/**
* Standard modular run function.
*
* @return tempcode The result of execution.
*/
function run()
{
$type = get_param('type', 'misc');
require_code('xml_storage');
require_lang('xml_storage');
$GLOBALS['HELPER_PANEL_PIC'] = 'pagepics/xml';
$GLOBALS['HELPER_PANEL_TEXT'] = comcode_lang_string('DOC_XML_DATA_MANAGEMENT');
switch ($type) {
case 'misc':
return $this->ui();
case '_import':
return $this->_import();
case '_export':
return $this->_export();
}
return new ocp_tempcode();
}
示例8: run
/**
* Standard modular run function.
*
* @return tempcode The result of execution.
*/
function run()
{
if (get_file_base() != get_custom_file_base()) {
warn_exit(do_lang_tempcode('SHARED_INSTALL_PROHIBIT'));
}
require_lang('menus');
get_page_title('PHP_INFO');
$GLOBALS['SCREEN_TEMPLATE_CALLED'] = '';
$GLOBALS['TITLE_CALLED'] = true;
require_lang('menus');
$GLOBALS['HELPER_PANEL_TEXT'] = comcode_lang_string('DOC_PHP_INFO');
ob_start();
phpinfo();
require_code('xhtml');
$out = xhtmlise_html(ob_get_contents());
ob_end_clean();
$out = preg_replace('#<!DOCTYPE[^>]*>#s', '', preg_replace('#</body[^>]*>#', '', preg_replace('#<body[^>]*>#', '', preg_replace('#</html[^>]*>#', '', preg_replace('#<html[^>]*>#', '', $out)))));
$matches = array();
if (preg_match('#<style[^>]*>#', $out, $matches) != 0) {
$offset = strpos($out, $matches[0]) + strlen($matches[0]);
$end = strpos($out, '</style>', $offset);
if ($end !== false) {
$style = substr($out, $offset - strlen($matches[0]), $end - $offset + strlen('</style>') + strlen($matches[0]));
//$GLOBALS['EXTRA_HEAD']=make_string_tempcode($style);
$out = substr($out, 0, $offset) . substr($out, $end);
}
}
$out = preg_replace('#<head[^>]*>.*</head[^>]*>#s', '', $out);
$out = str_replace(' width="600"', ' width="100%"', $out);
$out = preg_replace('#([^\\s<>"\']{65}&[^;]+;)#', '${1}<br />', $out);
$out = preg_replace('#([^\\s<>"\']{95})#', '${1}<br />', $out);
$url_parts = parse_url(get_base_url());
$out = str_replace('<img border="0" src="/', '<img border="0" style="padding-top: 20px" src="http://' . escape_html($url_parts['host']) . '/', $out);
require_css('phpinfo');
require_code('xhtml');
$ret = make_string_tempcode(xhtmlise_html($out));
return $ret;
}
示例9: interface_code
/**
* The UI to translate code.
*
* @return tempcode The UI
*/
function interface_code()
{
$lang = filter_naughty_harsh(get_param('lang', ''));
$lang_new = get_param('lang_new', $lang);
if ($lang_new != '') {
require_code('type_validation');
if (!is_alphanumeric($lang_new, true)) {
warn_exit(do_lang_tempcode('BAD_CODENAME'));
}
if (strlen($lang_new) > 5) {
warn_exit(do_lang_tempcode('INVALID_LANG_CODE'));
}
$lang = $lang_new;
}
if ($lang == '') {
$title = get_page_title('TRANSLATE_CODE');
$GLOBALS['HELPER_PANEL_TEXT'] = comcode_lang_string('DOC_FIND_LANG_STRING_TIP');
return $this->choose_lang($title, true, true, do_lang_tempcode('CHOOSE_EDIT_LIST_LANG_FILE'));
}
breadcrumb_set_parents(array(array('_SELF:_SELF:misc', do_lang_tempcode('CHOOSE'))));
breadcrumb_set_self(do_lang_tempcode('TRANSLATE_CODE'));
$base_lang = fallback_lang();
$map_a = get_file_base() . '/lang/langs.ini';
$map_b = get_custom_file_base() . '/lang_custom/langs.ini';
$search = get_param('search', '', true);
if ($search != '') {
$title = get_page_title('TRANSLATE_CODE');
require_code('form_templates');
$fields = new ocp_tempcode();
global $LANGUAGE;
foreach ($LANGUAGE[user_lang()] as $key => $value) {
if (strpos(strtolower($value), strtolower($search)) !== false) {
$fields->attach(form_input_text($key, '', 'l_' . $key, str_replace('\\n', chr(10), $value), false));
}
}
if ($fields->is_empty()) {
inform_exit(do_lang_tempcode('NO_ENTRIES'));
}
$post_url = build_url(array('page' => '_SELF', 'type' => '_code2'), '_SELF');
$hidden = new ocp_tempcode();
$hidden->attach(form_input_hidden('redirect', get_self_url(true)));
$hidden->attach(form_input_hidden('lang', $lang));
return do_template('FORM_SCREEN', array('_GUID' => '2d7356fd2c4497ceb19450e65331c9c5', 'TITLE' => $title, 'HIDDEN' => $hidden, 'FIELDS' => $fields, 'URL' => $post_url, 'TEXT' => '', 'SUBMIT_NAME' => do_lang('TRANSLATE_CODE')));
}
$lang_file = get_param('lang_file');
if (!file_exists($map_b)) {
$map_b = $map_a;
}
$map = better_parse_ini_file($map_b);
$title = get_page_title('_TRANSLATE_CODE', true, array(escape_html($lang_file), escape_html(array_key_exists($lang, $map) ? $map[$lang] : $lang)));
// Upgrade to custom if not there yet (or maybe we are creating a new lang - same difference)
$custom_dir = get_custom_file_base() . '/lang_custom/' . $lang;
if (!file_exists($custom_dir)) {
require_code('abstract_file_manager');
force_have_afm_details();
afm_make_directory('lang_custom/' . $lang, true);
$cached_dir = get_custom_file_base() . '/lang_cached/' . $lang;
if (!file_exists($cached_dir)) {
afm_make_directory('lang_cached/' . $lang, true);
}
// Make comcode page dirs
$zones = find_all_zones();
foreach ($zones as $zone) {
$_special_dir = get_custom_file_base() . '/' . $zone . '/pages/comcode_custom/' . $lang;
if (!file_exists($_special_dir)) {
afm_make_directory($zone . ($zone == '' ? '' : '/') . 'pages/comcode_custom/' . $lang, true);
}
$_special_dir = get_custom_file_base() . '/' . $zone . '/pages/html_custom/' . $lang;
if (!file_exists($_special_dir)) {
afm_make_directory($zone . ($zone == '' ? '' : '/') . 'pages/html_custom/' . $lang, true);
}
}
// Make templates_cached dirs
require_code('themes2');
$themes = find_all_themes();
foreach (array_keys($themes) as $theme) {
$_special_dir = get_custom_file_base() . '/themes/' . $theme . '/templates_cached/' . $lang;
if (!file_exists($_special_dir)) {
afm_make_directory('themes/' . $theme . '/templates_cached/' . $lang, true);
}
}
}
// Get some stuff
$for_lang = get_lang_file_map($lang, $lang_file);
$for_base_lang = get_lang_file_map($base_lang, $lang_file, true);
$descriptions = get_lang_file_descriptions($base_lang, $lang_file);
// Make our translation page
$lines = '';
$intertrans = $this->get_intertran_conv($lang);
$actions = new ocp_tempcode();
$next = 0;
$trans_lot = '';
$delimit = chr(10) . '=-=-=-=-=-=-=-=-' . chr(10);
foreach ($for_base_lang as $name => $old) {
if (array_key_exists($name, $for_lang)) {
//.........这里部分代码省略.........
示例10: misc
/**
* The do-next manager for before content management.
*
* @return tempcode The UI
*/
function misc()
{
require_code('templates_donext');
require_lang('ocdeadpeople');
return do_next_manager(get_page_title('OCDEADPEOPLE_TITLE'), comcode_lang_string('DOC_OCDEADPEOPLE'), array(array('add_one', array('_SELF', array('type' => 'ad'), '_SELF'), do_lang('ADD_DISEASE')), array('edit_one', array('_SELF', array('type' => 'ed'), '_SELF'), do_lang('EDIT_DISEASE'))), do_lang('OCDEADPEOPLE_TITLE'));
}
示例11: misc
/**
* The do-next manager for before content management.
*
* @return tempcode The UI
*/
function misc()
{
require_code('templates_donext');
return do_next_manager(get_page_title('MANAGE_NEWSLETTER'), comcode_lang_string('DOC_NEWSLETTER'), array_merge(array(array('add_one', array('_SELF', array('type' => 'ad'), '_SELF'), do_lang('ADD_NEWSLETTER')), array('edit_one', array('_SELF', array('type' => 'ed'), '_SELF'), do_lang('EDIT_NEWSLETTER'))), $this->extra_donext_entries), do_lang('MANAGE_NEWSLETTER'));
}
示例12: misc
/**
* The do-next manager for before content management.
*
* @return tempcode The UI
*/
function misc()
{
require_code('templates_donext');
return do_next_manager(get_page_title('MANAGE_AWARDS'), comcode_lang_string('DOC_AWARDS'), array(array('add_one', array('_SELF', array('type' => 'ad'), '_SELF'), do_lang('ADD_AWARD_TYPE')), array('edit_one', array('_SELF', array('type' => 'ed'), '_SELF'), do_lang('EDIT_AWARD_TYPE'))), do_lang('MANAGE_AWARDS'));
}
示例13: xml_breadcrumbs
/**
* The UI to edit the breadcrumbs XML file.
*
* @return tempcode The UI
*/
function xml_breadcrumbs()
{
$GLOBALS['HELPER_PANEL_TUTORIAL'] = 'tut_structure';
$GLOBALS['HELPER_PANEL_TEXT'] = comcode_lang_string('DOC_BREADCRUMB_OVERRIDES');
$title = get_page_title('BREADCRUMB_OVERRIDES');
$post_url = build_url(array('page' => '_SELF', 'type' => '_xml_breadcrumbs'), '_SELF');
return do_template('XML_CONFIG_SCREEN', array('TITLE' => $title, 'POST_URL' => $post_url, 'XML' => file_exists(get_custom_file_base() . '/data_custom/breadcrumbs.xml') ? file_get_contents(get_custom_file_base() . '/data_custom/breadcrumbs.xml') : ''));
}
示例14: misc
/**
* The do-next manager for before invoice management.
*
* @return tempcode The UI
*/
function misc()
{
breadcrumb_set_self(do_lang_tempcode('INVOICES'));
breadcrumb_set_parents(array(array('_SEARCH:admin_ecommerce:ecom_usage', do_lang_tempcode('ECOMMERCE'))));
require_code('templates_donext');
return do_next_manager(get_page_title('INVOICES'), comcode_lang_string('DOC_ECOMMERCE'), array(array('add_one', array('_SELF', array('type' => 'ad'), '_SELF'), do_lang('CREATE_INVOICE')), array('securitylog', array('_SELF', array('type' => 'outstanding'), '_SELF'), do_lang('OUTSTANDING_INVOICES')), array('edit_one', array('_SELF', array('type' => 'undelivered'), '_SELF'), do_lang('UNDELIVERED_INVOICES'))), do_lang('INVOICES'));
}
示例15: misc
/**
* The do-next manager for before content management. This is intended for exceptional users who cannot use the site-tree editor
*
* @return tempcode The UI
*/
function misc()
{
$GLOBALS['HELPER_PANEL_PIC'] = 'pagepics/sitetreeeditor';
$GLOBALS['HELPER_PANEL_TUTORIAL'] = 'tut_structure';
require_code('templates_donext');
return do_next_manager(get_page_title('PAGES'), comcode_lang_string('DOC_PAGES'), array(array('comcode_page_edit', array('_SELF', array('type' => 'ed'), '_SELF'), do_lang('COMCODE_PAGE_EDIT')), array('delete', array('_SELF', array('type' => 'delete'), '_SELF'), do_lang('DELETE_PAGES')), array('move', array('_SELF', array('type' => 'move'), '_SELF'), do_lang('MOVE_PAGES'))), do_lang('PAGES'));
}