• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP plugin_get_current函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中plugin_get_current函数的典型用法代码示例。如果您正苦于以下问题:PHP plugin_get_current函数的具体用法?PHP plugin_get_current怎么用?PHP plugin_get_current使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了plugin_get_current函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: init

 function init()
 {
     //mantisgraph_autoload();
     spl_autoload_register(array('MantisGraphPlugin', 'autoload'));
     $t_path = config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR;
     set_include_path(get_include_path() . PATH_SEPARATOR . $t_path);
 }
开发者ID:Kirill,项目名称:mantisbt,代码行数:7,代码来源:MantisGraph.php


示例2: init

 function init()
 {
     // Get path to core folder
     $t_core_path = config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR;
     // Include constants
     require_once $t_core_path . 'constant_api.php';
 }
开发者ID:QuestorX,项目名称:MantisBT-Plugin.BackgroundImageView,代码行数:7,代码来源:BackgroundImageView.php


示例3: init

 function init()
 {
     spl_autoload_register(array('MantisKanbanPlugin', 'autoload'));
     $t_path = config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR;
     set_include_path(get_include_path() . PATH_SEPARATOR . $t_path);
     // register our custom tables
     #$GLOBALS['g_db_table']['mantis_team_user_table']    = '%db_table_prefix%_team_user%db_table_suffix%';
     #$GLOBALS['g_db_table']['mantis_team_table']         = '%db_table_prefix%_team%db_table_suffix%';
 }
开发者ID:aberad,项目名称:MantisKanban,代码行数:9,代码来源:MantisKanban.php


示例4: init

 function init()
 {
     $this->plugin_path = 'plugins' . DIRECTORY_SEPARATOR . plugin_get_current() . DIRECTORY_SEPARATOR;
     // plugin events - view the README.txt file to know where these
     // events have to be called
     event_declare('EVENT_GROUP_ACCESS_HAS_BUG_LEVEL', EVENT_TYPE_CHAIN);
     plugin_event_hook('EVENT_GROUP_ACCESS_HAS_BUG_LEVEL', 'group_access_has_bug_level');
     event_declare('EVENT_GROUP_PROJECT_GET_ALL_USER_ROWS', EVENT_TYPE_CHAIN);
     plugin_event_hook('EVENT_GROUP_PROJECT_GET_ALL_USER_ROWS', 'group_project_get_all_user_rows');
 }
开发者ID:svgaman,项目名称:ManageUsergroups,代码行数:10,代码来源:ManageUsergroups.php


示例5: resources

 /**
  * Create the resource link to load the chosen library.
  */
 function resources($p_event)
 {
     $markup = '';
     $plugin_path = config_get_global('path') . 'plugins/' . plugin_get_current();
     $style = $plugin_path . '/lib/chosen.min.css';
     $script = $plugin_path . '/js/chosen_for_mantisbt.js';
     $chosen_script = $plugin_path . '/lib/chosen.jquery.min.js';
     $markup .= '<link rel="stylesheet" type="text/css" href="' . $style . '" />';
     $markup .= '<script type="text/javascript" src="' . $chosen_script . '"></script>';
     $markup .= '<script type="text/javascript" src="' . $script . '"></script>';
     return $markup;
 }
开发者ID:bueltge,项目名称:Chosen-for-MantisBT,代码行数:15,代码来源:chosen.php


示例6: define

} else {
    define("AGILEMANTIS_END_FIELD", 'end');
    define("AGILEMANTIS_COMMIT_FIELD", 'commit');
}
// URL to agileMantis plugin
define("AGILEMANTIS_PLUGIN_URL", config_get_global('path') . 'plugins/' . plugin_get_current() . '/');
// Path to agileMantis plugin folder
define("AGILEMANTIS_PLUGIN_URI", config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR);
// Path to agileMantis core folder
define("AGILEMANTIS_CORE_URI", AGILEMANTIS_PLUGIN_URI . 'core' . DIRECTORY_SEPARATOR);
// Path to agileMantis libs folder
define("AGILEMANTIS_PLUGIN_CLASS_URI", AGILEMANTIS_PLUGIN_URI . 'libs' . DIRECTORY_SEPARATOR);
// Path to agileMantisExpert license
define("AGILEMANTIS_LICENSE_PATH", config_get_global('plugin_path') . 'agileMantisExpert' . DIRECTORY_SEPARATOR . 'license' . DIRECTORY_SEPARATOR . 'license.txt');
// URL to agileMantis remote interface
define("AGILEMANTIS_SCHNITTSTELLEN_URL", 'plugins/' . plugin_get_current() . '/core/schnittstelle.php');
// URL to agileMantis Source Forge website
define("AGILEMANTIS_DEMO_VERSION_HOST", 'agilemantis.sourceforge.net');
// URL to agileMantisExpert order website
define("AGILEMANTIS_ORDER_PAGE_URL", 'http://wp12122798.server-he.de/');
// URL to agileMantisExpert plugin download
define("AGILEMANTIS_EXPERT_DOWNLOAD_LINK", 'http://www.gadiv.de/media/content/produkte/open_source/agilemantis/agileMantisExpert.zip');
// Load agileMantis common Functions
require_once AGILEMANTIS_PLUGIN_CLASS_URI . 'class_commonlib.php';
global $agilemantis_commonlib;
$agilemantis_commonlib = new gadiv_commonlib();
// Load agileMantis User Functions
require_once AGILEMANTIS_PLUGIN_CLASS_URI . 'class_agileuser.php';
global $agilemantis_au;
$agilemantis_au = new gadiv_agileuser();
// Load agileMantis Team Functions
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:31,代码来源:config_api.php


示例7: plugin_require_api

/**
 * Allows a plugin page to require a plugin-specific API
 * @param string $p_file     The API to be included.
 * @param string $p_basename Plugin's basename (defaults to current plugin).
 * @return void
 */
function plugin_require_api($p_file, $p_basename = null)
{
    if (is_null($p_basename)) {
        $t_current = plugin_get_current();
    } else {
        $t_current = $p_basename;
    }
    $t_path = config_get_global('plugin_path') . $t_current . '/';
    require_once $t_path . $p_file;
}
开发者ID:spring,项目名称:spring-website,代码行数:16,代码来源:plugin_api.php


示例8: define

<?php

define('STORYBOARD_PLUGIN_URL', config_get_global('path') . 'plugins/' . plugin_get_current() . '/');
define('STORYBOARD_PLUGIN_URI', config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR);
define('STORYBOARD_CORE_URI', STORYBOARD_PLUGIN_URI . 'core/');
define('STORYBOARD_FILES_URI', STORYBOARD_PLUGIN_URL . 'files/');
define('PLUGINS_STORYBOARD_THRESHOLD_LEVEL_DEFAULT', ADMINISTRATOR);
define('PLUGINS_STORYBOARD_MAX_TOOLTIP_CONTENT_LENGTH', 250);
开发者ID:Cre-ator,项目名称:Whiteboard.StoryBoard-Plugin,代码行数:8,代码来源:storyboard_constant_api.php


示例9: init

 /**
  * EmailReporting initialization function.
  */
 function init()
 {
     $t_path = config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR . 'core_pear' . DIRECTORY_SEPARATOR;
     if (is_dir($t_path)) {
         set_include_path(get_include_path() . PATH_SEPARATOR . $t_path);
     }
 }
开发者ID:mikemol,项目名称:EmailReporting,代码行数:10,代码来源:EmailReporting.php


示例10: plugin_lang_get

echo plugin_lang_get('show_graph');
?>
"/>
					</td>
				</tr>
			</table>
		</form>
<?php 
# build the graphs if both an interval and graph type are selected
if (0 != $f_type && $f_interval > 0 && gpc_get('show', '') != '') {
    $t_width = plugin_config_get('window_width');
    $t_summary = $f_type % 2 != 0;
    $t_body = (int) ($f_type / 2);
    $f_start = $t_period->get_start_formatted();
    $f_end = $t_period->get_end_formatted();
    if ($t_body == 1 || $t_body == 3) {
        if ($f_show_as_table) {
            include config_get_global('plugin_path') . plugin_get_current() . '/pages/bug_graph_bystatus.php';
        } else {
            echo '<br /><img src="' . plugin_page('bug_graph_bystatus.php') . '&amp;width=600&amp;interval=' . $f_interval . '&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end . '&amp;summary=' . $t_summary . '&amp;show_table=0" alt="Bug Graph" />';
        }
    }
    if ($t_body == 2 || $t_body == 3) {
        if ($f_show_as_table) {
            include config_get_global('plugin_path') . plugin_get_current() . '/pages/bug_graph_bycategory.php';
        } else {
            echo '<br /><img src="' . plugin_page('bug_graph_bycategory.php') . '&amp;width=600&amp;interval=' . $f_interval . '&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end . '&amp;summary=' . $t_summary . '&amp;show_table=0" alt="Bug Graph" />';
        }
    }
}
html_page_bottom();
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:31,代码来源:bug_graph_page.php


示例11: plugin_lang_get

                    <label v-bind:class="{'finished': task.finished}">
                        <input v-on:change="toggleFinished(task)" v-model="task.finished" v-bind:disabled="readOnly" type="checkbox">
                        <span>{{ task.description }}</span>
                    </label>
                    <a v-on:click="changeDescription(task, $event)" v-if="!readOnly" href="#"><img alt="Edit" title="<?php 
echo plugin_lang_get('edit_task');
?>
" class="edit-icon" src="images/update.png"></a>
                    <a v-on:click="deleteTask(task, $event)" v-if="!readOnly" href="#"><img alt="X" title="<?php 
echo plugin_lang_get('delete_task');
?>
" class="delete-icon" src="images/delete.png"></a>
                </li>
            </ul>
            <input v-on:keydown.enter="insertTask" v-model="newTask.description" v-if="!readOnly" type="text" class="<?php 
echo plugin_get_current();
?>
-add-new" placeholder="<?php 
echo plugin_lang_get('add_new_task');
?>
" size="40" maxlength="120" />
        </form>
        <script type="text/javascript" src="<?php 
echo plugin_file('todolists.js');
?>
"></script>
        <script type="text/javascript">
        ToDoList.$set('readOnly', <?php 
echo !access_has_global_level(plugin_config_get('manage_threshold')) ? 'true' : 'false';
?>
);
开发者ID:andrzejkupczyk,项目名称:mantisbt-todolists,代码行数:31,代码来源:todolist.php


示例12: auth_reauthenticate

#######
auth_reauthenticate();
html_page_top1(lang_get('plugin_mite_title'));
html_page_top2();
# build config arrays for convenient access to necessary elements
#################################################################
$a_configParams['api_key'] = array('name' => Mantis2mitePlugin::DB_FIELD_API_KEY, 'value' => current_user_get_field(Mantis2mitePlugin::DB_FIELD_API_KEY), 'label' => lang_get('plugin_mite_api_key'), 'type' => 'text', 'readonly' => '', 'cssClass' => '', 'help' => '');
if ($a_configParams['api_key']['value']) {
    $a_configParams['api_key']['value'] = Mantis2mitePlugin::decodeValue($a_configParams['api_key']['value']);
}
$a_configParams['account_name'] = array('name' => Mantis2mitePlugin::DB_FIELD_ACCOUNT_NAME, 'value' => current_user_get_field(Mantis2mitePlugin::DB_FIELD_ACCOUNT_NAME), 'label' => lang_get('plugin_mite_account_name'), 'type' => 'text', 'readonly' => '', 'cssClass' => '', 'help' => '');
if ($a_configParams['account_name']['value']) {
    $a_configParams['account_name']['value'] = Mantis2mitePlugin::decodeValue($a_configParams['account_name']['value']);
}
# get the path to this plugin
$s_pluginDirPath = helper_mantis_url("plugins/" . plugin_get_current() . "/");
# get connection status
$b_miteConnectionVerified = current_user_get_field(Mantis2mitePlugin::DB_FIELD_CONNECT_VERIFIED);
# add options if the connection was verified
############################################
if ($b_miteConnectionVerified) {
    $s_miteConnectionStatus = sprintf(lang_get('plugin_mite_connection_verified'), current_user_get_field(Mantis2mitePlugin::DB_FIELD_CONNECT_LAST_UPDATED));
    $s_connectionStatusCssClass = 'plugin_mite_positive_connection_status';
    $a_configParams['account_name']['readonly'] = $a_configParams['api_key']['readonly'] = " readonly='readonly'";
    $a_configParams['account_name']['cssClass'] = $a_configParams['api_key']['cssClass'] = " class='readonly'";
    $a_configParams['api_key']['type'] = "password";
    $b_visibleBtnUnbindConnection = $b_visibleLinkChangeApiKey = $b_visibleLinkChangeAccountName = true;
    $s_bgUserAccountDataCssClass = 'mite_user_account_active';
} else {
    $s_miteConnectionStatus = lang_get('plugin_mite_connection_unverified');
    $s_connectionStatusCssClass = 'plugin_mite_negative_connection_status';
开发者ID:01-Scripts,项目名称:Mantis2mite,代码行数:31,代码来源:user_account.php


示例13: define

<?php

define('SPECMANAGEMENT_PLUGIN_URL', config_get_global('path') . 'plugins/' . plugin_get_current() . '/');
define('SPECMANAGEMENT_PLUGIN_URI', config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR);
define('SPECMANAGEMENT_CORE_URI', SPECMANAGEMENT_PLUGIN_URI . 'core/');
define('SPECMANAGEMENT_FILES_URI', SPECMANAGEMENT_PLUGIN_URI . 'files/');
define('PLUGINS_SPECMANAGEMENT_THRESHOLD_LEVEL_DEFAULT', ADMINISTRATOR);
define('PLUGINS_SPECMANAGEMENT_READ_LEVEL_DEFAULT', REPORTER);
define('PLUGINS_SPECMANAGEMENT_WRITE_LEVEL_DEFAULT', DEVELOPER);
define('PLUGINS_SPECMANAGEMENT_COLUMN_AMOUNT', 1);
define('PLUGINS_SPECMANAGEMENT_MAX_COLUMNS', 10);
define('PLUGINS_SPECMANAGEMENT_COLUMN_STAT_DEFAULT', 50);
define('PLUGINS_SPECMANAGEMENT_RES_OPEN', 10);
define('PLUGINS_SPECMANAGEMENT_RES_FIXED', 20);
define('PLUGINS_SPECMANAGEMENT_RES_REOPENED', 30);
define('PLUGINS_SPECMANAGEMENT_RES_UNABLETOREPRODUCE', 40);
define('PLUGINS_SPECMANAGEMENT_RES_NOTFIXABLE', 50);
define('PLUGINS_SPECMANAGEMENT_RES_DUPLICATE', 60);
define('PLUGINS_SPECMANAGEMENT_RES_NOCHANGEREQUIRED', 70);
define('PLUGINS_SPECMANAGEMENT_RES_SUSPENDED', 80);
define('PLUGINS_SPECMANAGEMENT_RES_WONTFIX', 90);
define('PLUGINS_SPECMANAGEMENT_STAT_NEW', 10);
define('PLUGINS_SPECMANAGEMENT_STAT_FEEDBACK', 20);
define('PLUGINS_SPECMANAGEMENT_STAT_ACHKNOWLEDGED', 30);
define('PLUGINS_SPECMANAGEMENT_STAT_CONFIRMED', 40);
define('PLUGINS_SPECMANAGEMENT_STAT_ASSIGNED', 50);
define('PLUGINS_SPECMANAGEMENT_STAT_RESOLVED', 80);
define('PLUGINS_SPECMANAGEMENT_STAT_CLOSED', 90);
开发者ID:Cre-ator,项目名称:Whiteboard.SpecificationManagement-Plugin,代码行数:28,代码来源:specmanagement_constant_api.php


示例14: access_denied

if (user_get_access_level($t_current_user_id) < plugin_config_get('upload_threshold_level', PLUGINS_RELEASEMGT_UPLOAD_THRESHOLD_LEVEL_DEFAULT)) {
    access_denied();
}
for ($i = 0; $i < $t_file_count; $i++) {
    $t_file_error[$i] = isset($t_file[$i]['error']) ? $t_file[$i]['error'] : 0;
    $t_file_id[$i] = plugins_releasemgt_file_add($t_file[$i]['tmp_name'], $t_file[$i]['name'], $t_file[$i]['type'], $t_project_id, $t_version, $t_description[$i], $t_file_error[$i]);
}
$t_redirect_url = plugin_page('releases', true);
if (plugin_config_get('notification_enable', PLUGINS_RELEASEMGT_NOTIFICATION_ENABLE_DEFAULT) == ON) {
    $t_subject = plugin_config_get('email_subject', PLUGINS_RELEASEMGT_EMAIL_SUBJECT_DEFAULT);
    $t_subject_replace = array('*P' => '*p', '*C' => '*c', '*V' => '*v', '*p' => project_get_name($t_project_id), '*v' => version_get_field($t_version, 'version'), '*c' => $t_file_count, '**' => '*');
    foreach ($t_subject_replace as $t_key => $t_value) {
        $t_subject = str_replace($t_key, $t_value, $t_subject);
    }
    $t_selected = plugin_config_get('email_template', PLUGINS_RELEASEMGT_EMAIL_TEMPLATE_DEFAULT);
    $t_template_dir = config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . $t_selected . DIRECTORY_SEPARATOR;
    $t_template = array();
    $t_template['files'] = array();
    $t_template['files_count'] = $t_file_count;
    for ($i = 0; $i < $t_file_count; $i++) {
        $t_template['files'][$i] = array();
        $t_template['files'][$i]['file_name'] = $t_file[$i]['name'];
        $t_template['files'][$i]['file_description'] = $t_description;
        $t_template['files'][$i]['file_html_description'] = string_display_links($t_description);
        $t_template['files'][$i]['file_url'] = config_get('path') . plugin_page('download', true) . '&id=' . $t_file_id[$i];
        $t_template['files'][$i]['file_size'] = number_format($t_file[$i]['size']);
        $t_template['files'][$i]['file_date'] = date(config_get('normal_date_format'), plugins_releasemgt_file_get_field($t_file_id[$i], 'date_added'));
    }
    $t_template['project_id'] = $t_project_id;
    $t_template['project_name'] = project_get_name($t_project_id);
    $t_template['version_id'] = $t_version;
开发者ID:jhron,项目名称:mantis-releasemgt,代码行数:31,代码来源:upload.php


示例15: spl_autoload_register

<?php

/**
 * @param  string $class
 * @return void
 */
spl_autoload_register(function ($class) {
    // project-specific namespace prefix
    $prefix = plugin_get_current() . '\\';
    // base directory for the namespace prefix
    $base_dir = __DIR__ . '/src/';
    // does the class use the namespace prefix?
    $len = strlen($prefix);
    if (strncmp($prefix, $class, $len) !== 0) {
        // no, move to the next registered autoloader
        return;
    }
    // get the relative class name
    $relative_class = substr($class, $len);
    // replace the namespace prefix with the base directory, replace namespace
    // separators with directory separators in the relative class name, append
    // with .php
    $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
    // if the file exists, require it
    if (file_exists($file)) {
        require $file;
    }
});
开发者ID:andrzejkupczyk,项目名称:mantisbt-todolists,代码行数:28,代码来源:autoload.php


示例16: define

<?php

// URL to RelationshipColumnView plugin
define('BACKGROUNDIMAGEVIEW_PLUGIN_URL', config_get_global('path') . 'plugins/' . plugin_get_current() . '/');
// Path to RelationshipColumnView plugin folder
define('BACKGROUNDIMAGEVIEW_PLUGIN_URI', config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR);
// Path to RelationshipColumnView core folder
define('BACKGROUNDIMAGEVIEW_CORE_URI', BACKGROUNDIMAGEVIEW_PLUGIN_URI . 'core' . DIRECTORY_SEPARATOR);
// Default treshold level
define('PLUGINS_BACKGROUNDIMAGEVIEW_THRESHOLD_LEVEL_DEFAULT', ADMINISTRATOR);
开发者ID:QuestorX,项目名称:MantisBT-Plugin.BackgroundImageView,代码行数:10,代码来源:constant_api.php


示例17: install

 /**
  * Will be executed, if the user hits the install link on the plugin
  * overview page and before schema()
  */
 function install()
 {
     $t_plugin_path = config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR;
     // Install site key
     plugin_config_set('gadiv_sitekey', md5(uniqid(rand(), true)));
     $this->installConfigurationParams();
     // Create custom fields
     $this->create_custom_field('ProductBacklog', array('possible_values' => '', 'type' => '6'));
     // List
     $this->create_custom_field('Sprint', array('possible_values' => '', 'type' => '6'));
     // List
     $this->create_custom_field('Storypoints', array('possible_values' => '', 'type' => '1'));
     // Number
     $this->create_custom_field('BusinessValue', array('possible_values' => '', 'type' => '0'));
     // Text
     $this->create_custom_field('RankingOrder', array('possible_values' => '', 'type' => '1'));
     // Number
     $this->create_custom_field('Presentable', array('possible_values' => '1|2|3', 'type' => '6'));
     // List
     $this->create_custom_field('Technical', array('possible_values' => 'Ja', 'type' => '5'));
     // Checkbox
     $this->create_custom_field('InReleaseDocu', array('possible_values' => 'Ja', 'type' => '5'));
     // Checkbox
     $this->create_custom_field('PlannedWork', array('possible_values' => '', 'type' => '1'));
     // Number
     $this->create_custom_field('PlannedWorkUnit', array('possible_values' => '0|1|2|3', 'type' => '0', 'filter_by' => '0'));
     // Text
     // If old tables exists, that where not created by ADODB, the setting 'plugin_agileMantis_schema'
     // needs to be set to the last block of the schema that was created without ADODB.
     // e.g. if the last table created without ADODB was 'gadiv_teams', the plugin_agileMantis_schema
     // needs to be set to the corresponding schema block. Only the blocks after that will be executed.
     if (plugin_config_get('schema', -1) == -1) {
         if (db_is_mysql()) {
             if ($this->getDBVersion() == '2.0.0') {
                 // Version 2.0. is installed, set block to #21
                 plugin_config_set('schema', 21);
             } else {
                 if (db_field_exists('expert', 'gadiv_additional_user_fields')) {
                     // Version 1.3 is installed, set block to #14
                     plugin_config_set('schema', 14);
                 } else {
                     if (db_table_exists('gadiv_sprints')) {
                         // Version < 1.3 is installed, set block to #13
                         plugin_config_set('schema', 13);
                     }
                 }
             }
         } else {
             if (db_is_mssql()) {
                 plugin_config_set('schema', -1);
             }
         }
     }
     return TRUE;
 }
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:59,代码来源:agileMantis.php


示例18: addTimeEntryRow_bugDetail

 public function addTimeEntryRow_bugDetail($c_eventName, $i_bugId)
 {
     # don't add the time entry row, if
     # - the user can't see time entries of others AND
     # - has no verified connection to a MITE account
     # if the user has no verified connection to a MITE account but
     # is able to see time entries of other users, he should see them
     ##################################################
     if (current_user_get_field('access_level') < plugin_config_get('mite_timetracks_visible_threshold_level') && !current_user_get_field(Mantis2mitePlugin::DB_FIELD_CONNECT_VERIFIED)) {
         return;
     }
     /*
      * @local
      */
     $s_output = "\n  \t\t\t<tr " . helper_alternate_class() . ">\n\t  \t\t\t<td class='category'>\n\t  \t\t<!-- NO SCRIPT MESSAGE -->\t\n\t  \t\t\t<noscript>\n\t  \t\t\t\t<div class='plugin_mite_text_if_no_javascript'>" . lang_get('plugin_mite_no_javascript_enabled') . "\n  \t\t\t\t\t</div>\n  \t\t\t\t</noscript>\n\t  \t\t\t<div class='plugin_mite_hide_if_no_javascript'>" . lang_get('plugin_mite_time_entries') . "\n  \t\t\t\t\t<span class='plugin_mite_link_to_settings'>\n  \t\t\t\t\t\t[ <a href='" . helper_mantis_url("plugin.php?page=" . plugin_get_current() . "/user_account") . "'>" . lang_get('plugin_mite_link_to_settings') . "</a> ]\n  \t\t\t\t\t</span>\n  \t\t\t\t</div><!-- plugin_mite_text_hide_if_no_javascript -->\t\n  \t\t\t\t</td>\n\t  \t\t\t<td colspan='5' class='plugin_mite_time_entries'>\n\t  \t\t\t<div class='plugin_mite_hide_if_no_javascript'>";
     if (current_user_get_field(Mantis2mitePlugin::DB_FIELD_CONNECT_VERIFIED)) {
         $s_output .= "\t\t\n  \t\t\t\t\t<form id='plugin_mite_frm_new_time_entry'>\n  \t\t\t\t\t\t<div id='plugin_mite_show_new_time_entry_form'>\n\t  \t\t\t\t\t\t<a name='addTimeEntry' href='#addTimeEntry' title='[ctrl-t]' accesskey='t' class='addTimeEntry'>" . lang_get('plugin_mite_show_new_time_entry_form') . "\t\n\t  \t\t\t\t\t\t</a>\n\t  \t\t\t\t\t</div>\n  \t\t\t\t\t\t<div id='plugin_mite_new_time_entry'>\n\t  \t\t\t\t\t</div><!-- plugin_mite_new_time_entry -->\n\t  \t\t\t\t\t<input type='hidden' name='plugin_mite_current_bug' value='" . $i_bugId . "' />\n  \t\t\t\t\t\t<input type='hidden' name='plugin_mite_current_project' \n  \t\t\t\t\t\t   \t   value='" . bug_get_field($i_bugId, 'project_id') . "' />\n  \t\t\t\t\t</form>";
     }
     $s_output .= "\n\t  \t\t<div id='plugin_mite_time_entries'></div>\n\t\n  \t\t\t<input type='hidden' id='plugin_mite_current_bug' value='" . $i_bugId . "' />\n\t  \t\t<input type='hidden' id='plugin_mite_current_project' \n\t  \t\t\t   value='" . bug_get_field($i_bugId, 'project_id') . "' />\n  \t\t\n\t\t\t<div id='plugin_mite_messages'>\n\t\t\t\t<div>\n\t\t\t\t\t<a class='closeBtn' href='#'>" . lang_get('plugin_mite_msg_close_message') . "</a>\n\t\t\t\t\t<p></p>\n\t\t\t\t</div>\n  \t\t\t\t<input type='hidden' \n  \t\t\t\t\t   value='" . helper_mantis_url("plugins/" . plugin_get_current() . "/") . "' \n  \t\t\t\t\t   id='plugin_mite_path' />\n  \t\t\t\t<input type='hidden' id='plugin_mite_msg_error_adding_time_entry_fnf' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_msg_error_adding_time_entry_fnf') . "' />\n  \t\t\t\t<input type='hidden' id='plugin_mite_msg_error_adding_time_entry' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_msg_error_adding_time_entry') . "' />\n  \t\t\t\t<input type='hidden' id='plugin_mite_msg_success_adding_time_entry' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_msg_success_adding_time_entry') . "' />\t   \n  \t\t\t\t<input type='hidden' id='plugin_mite_msg_error_loading_time_entries_fnf' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_msg_error_loading_time_entries_fnf') . "' />\n  \t\t\t\t<input type='hidden' id='plugin_mite_msg_missing_time_entry_hours' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_msg_missing_time_entry_hours') . "' />\n  \t\t\t\t<input type='hidden' id='plugin_mite_msg_adding_new_time_entry' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_msg_adding_new_time_entry') . "' />\n\t\t\t\t<input type='hidden' id='plugin_mite_loading_time_entries' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_loading_time_entries') . "' />\n\t\t\t\t<input type='hidden' id='plugin_mite_show_new_time_entry_form' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_show_new_time_entry_form') . "' />\n  \t\t\t\t<input type='hidden' id='plugin_mite_confirm_deleting_time_entry' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_confirm_deleting_time_entry') . "' />\n  \t\t\t\t<input type='hidden' id='plugin_mite_msg_error_deleting_time_entry_fnf' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_msg_error_deleting_time_entry_fnf') . "' />\n  \t\t\t\t<input type='hidden' id='plugin_mite_msg_success_deleting_time_entry' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_msg_success_deleting_time_entry') . "' />\n\t\t\t\t<input type='hidden' id='plugin_mite_msg_error_invalid_date' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_msg_error_invalid_date') . "' />\n  \t\t\t\t<input type='hidden' id='plugin_mite_deleting_time_entry' \n  \t\t\t\t\t   value='" . lang_get('plugin_mite_deleting_time_entry') . "' />  \t\t\t\t\t\t   \n  \t\t\t\t\t   \n  \t\t\t</div><!-- plugin_mite_messages -->\n  \t\t\t</div><!-- plugin_mite_hide_if_no_javascript -->\n  \t\t</td>\n  \t\t</tr>";
     echo $s_output;
 }
开发者ID:01-Scripts,项目名称:Mantis2mite,代码行数:21,代码来源:Mantis2mite.php


示例19: lang_get

/**
 * Retrieves an internationalized string
 * This function will return one of (in order of preference):
 *  1. The string in the current user's preferred language (if defined)
 *  2. The string in English
 * @param string $p_string
 * @param string $p_lang
 * @return string
 */
function lang_get($p_string, $p_lang = null)
{
    global $g_lang_strings;
    # If no specific language is requested, we'll
    #  try to determine the language from the users
    #  preferences
    $t_lang = $p_lang;
    if (null === $t_lang) {
        $t_lang = lang_get_current();
    }
    // Now we'll make sure that the requested language is loaded
    lang_ensure_loaded($t_lang);
    if (lang_exists($p_string, $t_lang)) {
        return $g_lang_strings[$t_lang][$p_string];
    } else {
        $t_plugin_current = plugin_get_current();
        if (!is_null($t_plugin_current)) {
            lang_load($t_lang, config_get('plugin_path') . $t_plugin_current . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR);
            if (lang_exists($p_string, $t_lang)) {
                return $g_lang_strings[$t_lang][$p_string];
            }
        }
        if ($t_lang == 'english') {
            error_parameters($p_string);
            trigger_error(ERROR_LANG_STRING_NOT_FOUND, WARNING);
            return '';
        } else {
            # if string is not found in a language other than english, then retry using the english language.
            return lang_get($p_string, 'english');
        }
    }
}
开发者ID:Tarendai,项目名称:spring-website,代码行数:41,代码来源:lang_api.php


示例20: plugin_lang_get

echo plugin_lang_get('show_graph');
?>
"/>
					</td>
				</tr>
			</table>
		</form>
<?php 
// build the graphs if both an interval and graph type are selected
if (0 != $f_type && $f_interval > 0 && gpc_get('show', '') != '') {
    $t_width = plugin_config_get('window_width');
    $t_summary = $f_type % 2 != 0;
    $t_body = (int) ($f_type / 2);
    $f_start = $t_period->get_start_formatted();
    $f_end = $t_period->get_end_formatted();
    if ($t_body == 1 || $t_body == 3) {
        if ($f_show_as_table) {
            include config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR . 'pages' . DIRECTORY_SEPARATOR . 'bug_graph_bystatus.php';
        } else {
            echo '<br /><img src="' . plugin_page('bug_graph_bystatus.php') . '&amp;width=600&amp;interval=' . $f_interval . '&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end . '&amp;summary=' . $t_summary . '&amp;show_table=0" alt="Bug Graph" />';
        }
    }
    if ($t_body == 2 || $t_body == 3) {
        if ($f_show_as_table) {
            include config_get_global('plugin_path') . plugin_get_current() . DIRECTORY_SEPARATOR . 'pages' . DIRECTORY_SEPARATOR . 'bug_graph_bycategory.php';
        } else {
            echo '<br /><img src="' . plugin_page('bug_graph_bycategory.php') . '&amp;width=600&amp;interval=' . $f_interval . '&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end . '&amp;summary=' . $t_summary . '&amp;show_table=0" alt="Bug Graph" />';
        }
    }
}
html_page_bottom();
开发者ID:Kirill,项目名称:mantisbt,代码行数:31,代码来源:bug_graph_page.php



注:本文中的plugin_get_current函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP plugin_hook函数代码示例发布时间:2022-05-15
下一篇:
PHP plugin_find_id函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap