當前位置: 首頁>>代碼示例>>PHP>>正文


PHP print_successful_redirect函數代碼示例

本文整理匯總了PHP中print_successful_redirect函數的典型用法代碼示例。如果您正苦於以下問題:PHP print_successful_redirect函數的具體用法?PHP print_successful_redirect怎麽用?PHP print_successful_redirect使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了print_successful_redirect函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: reset_plugin

 /**
  * Reset all plugin-related data
  *
  * - config entries
  * - database entities
  */
 public function reset_plugin()
 {
     $query = "DROP TABLE mantis_plugin_SpecManagement_src_table";
     $this->mysqli->query($query);
     $query = "DROP TABLE mantis_plugin_SpecManagement_type_table";
     $this->mysqli->query($query);
     $query = "DROP TABLE mantis_plugin_SpecManagement_ptime_table";
     $this->mysqli->query($query);
     $query = "DROP TABLE mantis_plugin_SpecManagement_vers_table";
     $this->mysqli->query($query);
     $query = "DELETE FROM mantis_config_table\n          WHERE config_id LIKE 'plugin_SpecManagement%'";
     $this->mysqli->query($query);
     print_successful_redirect('manage_plugin_page.php');
 }
開發者ID:Cre-ator,項目名稱:Whiteboard.SpecificationManagement-Plugin,代碼行數:20,代碼來源:specmanagement_database_api.php

示例2: form_security_validate

form_security_validate('plugin_manage_usergroups_edit');
auth_reauthenticate();
access_ensure_global_level(config_get('manage_plugin_threshold'));
$t_group_prefix = gpc_get_string('group_prefix', '');
$t_assign_group_threshold = gpc_get_int('assign_group_threshold', '');
if (isset($_POST['assign_to_groups'])) {
    $t_assign_to_groups = $_POST['assign_to_groups'];
} else {
    $t_assign_to_groups = 0;
}
if (isset($_POST['nested_groups'])) {
    $t_nested_groups = $_POST['nested_groups'];
} else {
    $t_nested_groups = 0;
}
if (plugin_config_get('group_prefix', '') != $t_group_prefix) {
    plugin_config_set('group_prefix', $t_group_prefix);
}
if (plugin_config_get('assign_group_threshold', '') != $t_assign_group_threshold) {
    plugin_config_set('assign_group_threshold', $t_assign_group_threshold);
}
if (plugin_config_get('assign_to_groups', '') != $t_assign_to_groups) {
    plugin_config_set('assign_to_groups', $t_assign_to_groups);
}
if (plugin_config_get('nested_groups', '') != $t_nested_groups) {
    plugin_config_set('nested_groups', $t_nested_groups);
}
form_security_purge('plugin_manage_usergroups_edit');
print_successful_redirect(plugin_page('manage_usergroups', true));
開發者ID:svgaman,項目名稱:ManageUsergroups,代碼行數:29,代碼來源:manage_usergroups_edit.php

示例3: print_successful_redirect_to_bug

function print_successful_redirect_to_bug($p_bug_id)
{
    $t_url = string_get_bug_view_url($p_bug_id, auth_get_current_user_id());
    print_successful_redirect($t_url);
}
開發者ID:nextgens,項目名稱:mantisbt,代碼行數:5,代碼來源:print_api.php

示例4: form_security_validate

 * You should have received a copy of the GNU General Public License
 * along with Slack Integration; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 * or see http://www.gnu.org/licenses/.
 */
form_security_validate('plugin_Slack_config_edit');
auth_reauthenticate();
access_ensure_global_level(config_get('manage_plugin_threshold'));
$f_url_webhook = gpc_get_string('url_webhook');
$f_bot_name = gpc_get_string('bot_name');
$f_bot_icon = gpc_get_string('bot_icon');
$f_skip_bulk = gpc_get_bool('skip_bulk');
$f_default_channel = gpc_get_string('default_channel');
if (plugin_config_get('url_webhook') != $f_url_webhook) {
    plugin_config_set('url_webhook', $f_url_webhook);
}
if (plugin_config_get('bot_name') != $f_bot_name) {
    plugin_config_set('bot_name', $f_bot_name);
}
if (plugin_config_get('bot_icon') != $f_bot_icon) {
    plugin_config_set('bot_icon', $f_bot_icon);
}
if (plugin_config_get('skip_bulk') != $f_skip_bulk) {
    plugin_config_set('skip_bulk', $f_skip_bulk);
}
if (plugin_config_get('default_channel') != $f_default_channel) {
    plugin_config_set('default_channel', $f_default_channel);
}
form_security_purge('plugin_Slack_config_edit');
print_successful_redirect(plugin_page('config', true));
開發者ID:bitwombat,項目名稱:MantisBT-Slack,代碼行數:30,代碼來源:config_edit.php

示例5: require_api

require_api('event_api.php');
require_api('form_api.php');
require_api('gpc_api.php');
require_api('print_api.php');
require_api('string_api.php');
form_security_validate('bugnote_update');
$f_bugnote_id = gpc_get_int('bugnote_id');
$f_bugnote_text = gpc_get_string('bugnote_text', '');
$f_time_tracking = gpc_get_string('time_tracking', '0:00');
# Check if the current user is allowed to edit the bugnote
$t_user_id = auth_get_current_user_id();
$t_reporter_id = bugnote_get_field($f_bugnote_id, 'reporter_id');
if ($t_user_id == $t_reporter_id) {
    access_ensure_bugnote_level(config_get('bugnote_user_edit_threshold'), $f_bugnote_id);
} else {
    access_ensure_bugnote_level(config_get('update_bugnote_threshold'), $f_bugnote_id);
}
# Check if the bug is readonly
$t_bug_id = bugnote_get_field($f_bugnote_id, 'bug_id');
if (bug_is_readonly($t_bug_id)) {
    error_parameters($t_bug_id);
    trigger_error(ERROR_BUG_READ_ONLY_ACTION_DENIED, ERROR);
}
$f_bugnote_text = trim($f_bugnote_text) . "\n\n";
bugnote_set_text($f_bugnote_id, $f_bugnote_text);
bugnote_set_time_tracking($f_bugnote_id, $f_time_tracking);
# Plugin integration
event_signal('EVENT_BUGNOTE_EDIT', array($t_bug_id, $f_bugnote_id));
form_security_purge('bugnote_update');
print_successful_redirect(string_get_bug_view_url($t_bug_id) . '#bugnotes');
開發者ID:kaos,項目名稱:mantisbt,代碼行數:30,代碼來源:bugnote_update.php

示例6: Copyright

# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2002 - 2007  Mantis Team   - mantisbt-dev@lists.sourceforge.net
# Mantis is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# Mantis is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Mantis.  If not, see <http://www.gnu.org/licenses/>.
# --------------------------------------------------------
# $Id: tag_delete.php,v 1.1.2.1 2007-10-13 22:34:44 giallu Exp $
# --------------------------------------------------------
require_once 'core.php';
$t_core_path = config_get('core_path');
require_once $t_core_path . 'tag_api.php';
form_security_validate('tag_delete');
access_ensure_global_level(config_get('tag_edit_threshold'));
$f_tag_id = gpc_get_int('tag_id');
$t_tag_row = tag_get($f_tag_id);
helper_ensure_confirmed(lang_get('tag_delete_message'), lang_get('tag_delete_button'));
tag_delete($f_tag_id);
form_security_purge('tag_delete');
print_successful_redirect(config_get('default_home_page'));
開發者ID:renemilk,項目名稱:spring-website,代碼行數:29,代碼來源:tag_delete.php

示例7: require_once

/**
 * MantisBT Core API's
 */
require_once( 'core.php' );
require_api( 'access_api.php' );
require_api( 'authentication_api.php' );
require_api( 'config_api.php' );
require_api( 'current_user_api.php' );
require_api( 'form_api.php' );
require_api( 'gpc_api.php' );
require_api( 'print_api.php' );
require_api( 'project_hierarchy_api.php' );

form_security_validate( 'manage_proj_update_children' );

auth_reauthenticate();

$f_project_id = gpc_get_int( 'project_id' );

access_ensure_project_level( config_get( 'manage_project_threshold' ), $f_project_id );

$t_subproject_ids = current_user_get_accessible_subprojects( $f_project_id, true );
foreach ( $t_subproject_ids as $t_subproject_id ) {
	$f_inherit_child = gpc_get_bool( 'inherit_child_' . $t_subproject_id, false );
	project_hierarchy_update( $t_subproject_id, $f_project_id, $f_inherit_child );
}

form_security_purge( 'manage_proj_update_children' );

print_successful_redirect( 'manage_proj_edit_page.php?project_id=' . $f_project_id );
開發者ID:rombert,項目名稱:mantisbt,代碼行數:30,代碼來源:manage_proj_update_children.php

示例8: gpc_get_string

$user_id = gpc_get_string('user_id', '');
// Get user login
$user_table = db_get_table('mantis_user_table');
$query_rep_user_name = "SELECT username FROM {$user_table} WHERE id = {$user_id};";
$res_user_name = db_query($query_rep_user_name);
while ($row_user_name = db_fetch_array($res_user_name)) {
    $user_name = $row_user_name['username'];
}
// Add xmpp login
if ($xmpp_login != '') {
    $xmpp_table = plugin_table('xmpp_login', 'JabberNotifierSystem');
    $query_xmpp_login = "SELECT xmpp_login FROM {$xmpp_table} WHERE user_id = {$user_id};";
    $res_xmpp_login = db_query($query_xmpp_login);
    if (db_num_rows($res_xmpp_login) == 0) {
        if ($xmpp_login != $user_name) {
            $add_user_query = "INSERT INTO {$xmpp_table} (user_id, xmpp_login, chng_login) VALUES ({$user_id}, \"{$xmpp_login}\", 0);";
            db_query($add_user_query);
            print_successful_redirect('account_page.php');
        } else {
            print_successful_redirect('account_page.php');
            exit;
        }
    } else {
        $add_user_query = "UPDATE {$xmpp_table} SET xmpp_login = \"{$xmpp_login}\" WHERE user_id = {$user_id};";
        db_query_bound($add_user_query);
        print_successful_redirect('account_page.php');
    }
} else {
    print_successful_redirect('account_page.php');
    exit;
}
開發者ID:JeromyK,項目名稱:jabber-notify,代碼行數:31,代碼來源:change_xmpp_login.php

示例9: Artem

   Copyright 2012 Nikitin Artem (AcanthiS)

	E-Mail : acanthis@ya.ru
	ICQ    : 411746920

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/
auth_reauthenticate();
access_ensure_global_level(config_get('manage_plugin_threshold'));
$f_user_id = gpc_get_int_array('user_id', array());
$f_proj_id = gpc_get_int_array('project_id', array());
$proj_table = plugin_table('user_proj', 'JabberNotifierSystem');
foreach ($f_user_id as $t_user_id) {
    if (count($f_proj_id) != 0) {
        $proj_id = implode(',', $f_proj_id);
        $add_user_query = "INSERT INTO {$proj_table} (user_id, proj_id) VALUES ({$t_user_id}, \"{$proj_id}\");";
        db_query($add_user_query);
    }
}
print_successful_redirect(plugin_page('config_custom_proj_user', true));
開發者ID:JeromyK,項目名稱:jabber-notify,代碼行數:30,代碼來源:add_proj_user.php

示例10: html_page_top

        html_page_top(plugin_lang_get('plugin_title'));
        ?>
<br /><div class="center">
<?php 
        echo plugin_lang_get($t_is_custom_error || PEAR::isError($t_result) ? 'test_failure' : 'test_success') . '<br /><br />';
        echo plugin_lang_get('description') . ': ' . $t_mailbox_api->_mailbox['description'] . '<br />';
        echo plugin_lang_get('mailbox_type') . ': ' . $t_mailbox_api->_mailbox['mailbox_type'] . '<br />';
        echo plugin_lang_get('hostname') . ': ', $t_mailbox_api->_mailbox['hostname'] . '<br />';
        echo plugin_lang_get('port') . ': ', $t_mailbox_api->_mailbox['port'] . '<br />';
        echo plugin_lang_get('encryption') . ': ' . $t_mailbox_api->_mailbox['encryption'] . '<br />';
        echo plugin_lang_get('ssl_cert_verify') . ': ' . $t_mailbox_api->_mailbox['ssl_cert_verify'] . '<br />';
        echo plugin_lang_get('erp_username') . ': ' . $t_mailbox_api->_mailbox['erp_username'] . '<br />';
        echo plugin_lang_get('erp_password') . ': ******' . '<br />';
        echo plugin_lang_get('auth_method') . ': ' . $t_mailbox_api->_mailbox['auth_method'] . '<br />';
        if ($t_mailbox_api->_mailbox['mailbox_type'] === 'IMAP') {
            echo plugin_lang_get('imap_basefolder') . ': ' . $t_mailbox_api->_mailbox['imap_basefolder'] . '<br />';
        }
        echo '<br />' . ($t_is_custom_error ? nl2br($t_result['ERROR_MESSAGE']) : (PEAR::isError($t_result) ? $t_result->toString() : NULL)) . '<br /><br />';
        print_bracket_link(plugin_page('manage_mailbox', TRUE), lang_get('proceed'));
        ?>
</div>
<?php 
        html_page_bottom(__FILE__);
    }
}
if (plugin_config_get('mailboxes') !== $t_mailboxes && ($f_mailbox_action === 'add' || $f_mailbox_action === 'copy' || ($f_mailbox_action === 'edit' || $f_mailbox_action === 'delete') && $f_select_mailbox >= 0)) {
    plugin_config_set('mailboxes', $t_mailboxes);
}
if (!isset($t_no_redirect)) {
    print_successful_redirect(plugin_page('manage_mailbox', TRUE));
}
開發者ID:mikemol,項目名稱:EmailReporting,代碼行數:31,代碼來源:manage_mailbox_edit.php

示例11: gpc_get_string

$f_send_mes_up_category = gpc_get_string('send_mes_up_category');
$f_send_mes_up_view = gpc_get_string('send_mes_up_view');
$f_send_mes_add_note = gpc_get_string('send_mes_add_note');
plugin_config_set('jbr_server', $f_jbr_server);
plugin_config_set('jbr_port', $f_jbr_port);
plugin_config_set('jbr_timeout', $f_jbr_timeout);
plugin_config_set('jbr_login', $f_jbr_login);
plugin_config_set('jbr_pwd', $f_jbr_pwd);
plugin_config_set('add_send_quick_msg', $f_add_send_quick_msg);
plugin_config_set('change_xmpp_login', $f_change_xmpp_login);
plugin_config_set('send_mes_new_assign', $f_send_mes_new_assing);
plugin_config_set('send_mes_move_bug', $f_send_mes_move_bug);
plugin_config_set('send_mes_new_bug', $f_send_mes_new_bug);
plugin_config_set('send_mes_new_bugnote', $f_send_mes_new_bugnote);
plugin_config_set('send_mes_edit_bugnote', $f_send_mes_edit_bugnote);
plugin_config_set('send_mes_del_bugnote', $f_send_mes_del_bugnote);
plugin_config_set('send_mes_del_bug', $f_send_mes_del_bug);
plugin_config_set('send_mes_new_state_10', $f_send_mes_new_state_10);
plugin_config_set('send_mes_new_state_20', $f_send_mes_new_state_20);
plugin_config_set('send_mes_new_state_30', $f_send_mes_new_state_30);
plugin_config_set('send_mes_new_state_40', $f_send_mes_new_state_40);
plugin_config_set('send_mes_new_state_50', $f_send_mes_new_state_50);
plugin_config_set('send_mes_new_state_80', $f_send_mes_new_state_80);
plugin_config_set('send_mes_new_state_90', $f_send_mes_new_state_90);
plugin_config_set('send_mes_up_prior', $f_send_mes_up_prior);
plugin_config_set('send_mes_up_status', $f_send_mes_up_status);
plugin_config_set('send_mes_up_category', $f_send_mes_up_category);
plugin_config_set('send_mes_up_view', $f_send_mes_up_view);
plugin_config_set('send_mes_add_note', $f_send_mes_add_note);
print_successful_redirect(plugin_page('config_main'));
開發者ID:Edarksid,項目名稱:jabber-notify,代碼行數:30,代碼來源:config_update.php

示例12: plugin_config_delete

    plugin_config_delete('buglink_regex_2');
}
if (!$f_bugfix_reset_1) {
    maybe_set_option('bugfix_regex_1', $f_bugfix_regex_1);
} else {
    plugin_config_delete('bugfix_regex_1');
}
if (!$f_bugfix_reset_2) {
    maybe_set_option('bugfix_regex_2', $f_bugfix_regex_2);
} else {
    plugin_config_delete('bugfix_regex_2');
}
maybe_set_option('bugfix_status', $f_bugfix_status);
maybe_set_option('bugfix_resolution', $f_bugfix_resolution);
maybe_set_option('bugfix_status_pvm', $f_bugfix_status_pvm);
maybe_set_option('bugfix_handler', $f_bugfix_handler);
maybe_set_option('bugfix_message', $f_bugfix_message);
maybe_set_option('bugfix_message_view_status', $f_bugfix_message_view_status);
maybe_set_option('remote_checkin', $f_remote_checkin);
maybe_set_option('checkin_urls', serialize($t_checkin_urls));
maybe_set_option('remote_imports', $f_remote_imports);
maybe_set_option('import_urls', serialize($t_import_urls));
maybe_set_option('api_key', $f_api_key);
foreach (SourceVCS::all() as $t_type => $t_vcs) {
    if ($t_vcs->configuration) {
        $t_vcs->update_config();
    }
}
form_security_purge('plugin_Source_manage_config');
print_successful_redirect(plugin_page('manage_config_page', true));
開發者ID:Sansumaki,項目名稱:source-integration,代碼行數:30,代碼來源:manage_config.php

示例13: form_security_validate

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
form_security_validate('plugin_Dashboard_config_update');
$f_width = gpc_get_int('width', 4);
$f_reset_width = gpc_get_bool('reset-width', false);
if ($f_reset_width) {
    plugin_config_delete('width');
} else {
    plugin_config_set('width', $f_width);
}
$f_filter = gpc_get_int_array('filter', array());
$f_reset_boxes = gpc_get_bool('reset-boxes', false);
if ($f_reset_boxes) {
    plugin_config_delete('boxes');
} else {
    $f_boxes = array();
    foreach ($f_filter as $t_filter_id => $t_filter_pos) {
        if ($t_filter_pos != 0) {
            $f_boxes[$t_filter_id] = $t_filter_pos;
        }
    }
    plugin_config_set('boxes', $f_boxes);
}
form_security_purge('plugin_Dashboard_config_update');
print_successful_redirect(plugin_page('dashboard', true));
開發者ID:rolfkleef,項目名稱:mantisbt-dashboard,代碼行數:30,代碼來源:config_update.php

示例14: Artem

<?php

/*
   Copyright 2012 Nikitin Artem (AcanthiS)

	E-Mail : acanthis@ya.ru
	ICQ    : 411746920

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/
auth_reauthenticate();
access_ensure_global_level(config_get('manage_plugin_threshold'));
$user_id = gpc_get_string('user_id', '');
$xmpp_login = gpc_get_string('xmpp_login', '');
$table = plugin_table('xmpp_login', 'JabberNotifierSystem');
$query = "UPDATE {$table} SET xmpp_login = \"{$xmpp_login}\" WHERE user_id = {$user_id};";
db_query($query);
print_successful_redirect(plugin_page('config_xmpp_login', true));
開發者ID:JeromyK,項目名稱:jabber-notify,代碼行數:28,代碼來源:edit_xmpp_login.php

示例15: html_page_top2

    echo '<link rel="stylesheet" href="' . SPECMANAGEMENT_PLUGIN_URL . 'files/specmanagement.css">';
    if (!$print_flag) {
        html_page_top2();
        //      if ( plugin_is_installed( 'WhiteboardMenu' ) && file_exists ( config_get_global ( 'plugin_path' ) . 'WhiteboardMenu' ) )
        //      {
        //         require_once WHITEBOARDMENU_CORE_URI . 'whiteboard_print_api.php';
        //         $whiteboard_print_api = new whiteboard_print_api();
        //         $whiteboard_print_api->printWhiteboardMenu();
        //      }
    }
    calculate_page_content($print_flag);
    if (!$print_flag) {
        html_page_bottom1();
    }
} else {
    print_successful_redirect('plugin.php?page=SpecManagement/choose_document');
}
/**
 * @param $print_flag
 */
function calculate_page_content($print_flag)
{
    $specmanagement_database_api = new specmanagement_database_api();
    $specmanagement_print_api = new specmanagement_print_api();
    $specmanagement_editor_api = new specmanagement_editor_api();
    $version_id = $_POST['version_id'];
    $version_spec_bug_ids = $specmanagement_database_api->get_version_spec_bugs(version_get_field($version_id, 'version'));
    if (!is_null($version_spec_bug_ids)) {
        /** get bug and work package data */
        $plugin_version_obj = $specmanagement_database_api->get_plugin_version_row_by_version_id($version_id);
        $p_version_id = $plugin_version_obj[0];
開發者ID:Cre-ator,項目名稱:Whiteboard.SpecificationManagement-Plugin,代碼行數:31,代碼來源:editor.php


注:本文中的print_successful_redirect函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。