本文整理汇总了PHP中print_cp_message函数的典型用法代码示例。如果您正苦于以下问题:PHP print_cp_message函数的具体用法?PHP print_cp_message怎么用?PHP print_cp_message使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_cp_message函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
//I'm not sure how much we need this, but the old branch logic checks some
//actions against REQUEST and some against POST. This should maintain
//equivilent behavior (error instead of explicit fallthrough;
$post_only_actions = array('taginsert', 'tagclear', 'tagkill', 'tagmerge', 'tagdomerge');
if (in_array($action, $post_only_actions) and empty($_POST['do'])) {
exit;
}
$dispatch = array('taginsert' => 'taginsert', 'tagclear' => 'tagclear', 'tagmerge' => 'tagmerge', 'tagdomerge' => 'tagdomerge', 'tagdopromote' => 'tagdopromote', 'tagkill' => 'tagkill', 'tags' => 'displaytags', 'modify' => 'displaytags');
if (array_key_exists($action, $dispatch)) {
print_cp_header($vbphrase['tag_manager']);
tagcp_init_tag_action();
call_user_func($dispatch["{$action}"]);
print_cp_footer();
} else {
print_cp_message(construct_phrase($vbphrase['action_x_not_defined'], $action));
}
// ########################################################################
// some utility function for the actions
function tagcp_init_tag_action()
{
global $vbulletin;
$vbulletin->input->clean_array_gpc('r', array('pagenumber' => TYPE_UINT, 'sort' => TYPE_NOHTML));
define('CP_REDIRECT', 'tag.php?do=tags&page=' . $vbulletin->GPC['pagenumber'] . '&sort=' . $vbulletin->GPC['sort']);
}
function tagcp_fetch_tag_list()
{
global $vbulletin;
$vbulletin->input->clean_array_gpc('p', array('tag' => TYPE_ARRAY_KEYS_INT));
$vbulletin->input->clean_array_gpc('c', array('vbulletin_inlinetag' => TYPE_STR));
$taglist = $vbulletin->GPC['tag'];
示例2: array
</div>
</div>
</div>
<?php
// this is a small hack to prevent the shutdown function from causing database errors
$vbulletin->db->shutdownqueries = array();
$vbulletin->session = null;
}
// #############################################################################
if ($_POST['do'] == 'confirm') {
$vbulletin->input->clean_array_gpc('p', array('newprefix' => TYPE_STR, 'rename' => TYPE_ARRAY));
if (array_sum($vbulletin->GPC['rename']) == 0) {
print_stop_message('sorry_no_tables_were_submitted_to_be_renamed');
} else {
if ($vbulletin->GPC['newprefix'] == TABLE_PREFIX) {
print_cp_message(construct_phrase($vbphrase['new_prefix_same_as_old'], TABLE_PREFIX, $vbulletin->GPC['newprefix']));
}
$prefixlength = strlen(TABLE_PREFIX);
$dorename = array();
$warn = array();
$dotables = '';
$warntables = '';
print_form_header('tableprefix', 'rename');
print_table_header(construct_phrase($vbphrase['confirm_prefix_change_x_to_y'], TABLE_PREFIX, $vbulletin->GPC['newprefix']));
construct_hidden_code('newprefix', $vbulletin->GPC['newprefix']);
foreach ($vbulletin->GPC['rename'] as $table => $yesno) {
if ($yesno) {
construct_hidden_code("rename[{$table}]", 1);
$dorename[] = $table;
$tablename = fetch_renamed_table_name($table, TABLE_PREFIX, $vbulletin->GPC['newprefix'], true);
$dotables .= "<tr class=\"alt2\"><td class=\"smallfont\">{$tablename['old']}</td><td class=\"smallfont\">{$tablename['new']}</td></tr>";
示例3: moveCategory
private function moveCategory()
{
//Here's the approach
//
// verify and set the new values;
// call fixCategoryLR()
global $vbulletin;
//First let's make sure that we actually need to do a move. Pull the current values
//from the database
if (!$record = $vbulletin->db->query_first("SELECT parentnode, parentcat, catleft, catright FROM "
. TABLE_PREFIX . "cms_category where categoryid = " . $vbulletin->GPC['categoryid']))
{
print_cp_message($vbphrase['invalid_data_submitted']);
return false;
}
$fromleft = intval($record['catleft']);
$fromright = intval($record['catright']);
$space = $fromright - $fromleft + 1 ;
//See what we need to change. Check categoryid first, because if we have one
// we'll use that in preference to the sectionid.
if (intval($vbulletin->GPC['target_categoryid'] > 0)
and intval($vbulletin->GPC['target_categoryid']) != intval($record['parentcat']))
{
$newparentcat = intval($vbulletin->GPC['target_categoryid']);
if (! $newparent = $vbulletin->db->query_first("SELECT parentnode, parentcat, catleft, catright FROM "
. TABLE_PREFIX . "cms_category where categoryid = $newparentcat" ))
{
print_cp_message($vbphrase['invalid_data_submitted']);
return false;
}
//Check to make sure we aren't trying to move a parent to it's own child. That would
// cause an explosion.
if (intval($newparent['catleft']) > intval($record['catleft'])
and intval($newparent['catleft']) < intval($record['catright']) )
{
return false;
}
$newparentnode = $newparent['parentnode'];
}
else if (intval($vbulletin->GPC['sectionid'])
and intval($vbulletin->GPC['sectionid']) != intval($record['parentnode']))
{
$newparentnode = intval($vbulletin->GPC['sectionid']);
$newparentcat = 'NULL' ;
}
else if (-1 == $vbulletin->GPC['target_categoryid'])
{
if ($vbulletin->GPC_exists['sectionid'] AND intval($vbulletin->GPC['sectionid']) > 0)
{
$newparentnode = $vbulletin->GPC['sectionid'];
}
else
{
$newparentnode = $record['parentnode'];
}
$newparentcat = 'NULL' ;
}
if (!isset($newparentcat) AND ! isset($newparentnode))
{
//nothing to change
return true;
}
//If we got here, we have valid data and we're ready to move.
//If we have a new parentnode, let's set it.
$sql = "UPDATE ". TABLE_PREFIX . "cms_category SET parentnode = $newparentnode, parentcat = $newparentcat
WHERE categoryid = " . $vbulletin->GPC['categoryid'];
$vbulletin->db->query_write($sql);
self::fixCategoryLR();
}
示例4: array
}
$text .= $chunk_text;
}
}
return $text;
}
$vbulletin->input->clean_array_gpc('r', array('group' => vB_Cleaner::TYPE_STR, 'searchstring' => vB_Cleaner::TYPE_STR, 'expandset' => vB_Cleaner::TYPE_STR, 'showmerge' => vB_Cleaner::TYPE_BOOL));
$template = vB::getDbAssertor()->getRow('fetchTemplateWithStyle', array(vB_dB_Query::TYPE_KEY => vB_dB_Query::QUERY_STORED, 'templateid' => $vbulletin->GPC['templateid']));
if ($template['styleid'] == -1) {
$template['style'] = $vbphrase['master_style'];
}
if ($vbulletin->GPC['showmerge']) {
try {
$text = edit_get_merged_text($vbulletin->GPC['templateid']);
} catch (Exception $e) {
print_cp_message($e->getMessage());
}
print_table_start();
print_description_row(construct_phrase($vbphrase['edting_merged_version_view_highlighted'], "template.php?do=docompare3&templateid={$template['templateid']}"));
print_table_footer();
} else {
if ($template['mergestatus'] == 'conflicted') {
print_table_start();
print_description_row(construct_phrase($vbphrase['default_version_newer_merging_failed'], "template.php?do=docompare3&templateid={$template['templateid']}", $vbulletin->scriptpath . '&showmerge=1'));
print_table_footer();
} else {
if ($template['mergestatus'] == 'merged') {
$merge_info = vB::getDbAssertor()->getRow('templatemerge', array(vB_dB_Query::TYPE_KEY => vB_dB_Query::QUERY_SELECT, 'templateid' => $template[templateid]));
print_table_start();
print_description_row(construct_phrase($vbphrase['changes_made_default_merged_customized'], "template.php?do=docompare3&templateid={$template['templateid']}", "template.php?do=viewversion&id={$merge_info['savedtemplateid']}&type=historical"));
print_table_footer();
示例5: array
*/
}
// #############################################################################
// rebuilds all parent lists and id cache lists
if ($_REQUEST['do'] == 'rebuild') {
$vbulletin->input->clean_array_gpc('r', array('renumber' => TYPE_INT, 'install' => TYPE_INT));
echo "<p> </p>";
build_all_styles($vbulletin->GPC['renumber'], $vbulletin->GPC['install'], "template.php?" . $vbulletin->session->vars['sessionurl']);
}
// #############################################################################
// create template files
if ($_REQUEST['do'] == 'createfiles' and $vbulletin->debug) {
// this action requires that a web-server writable folder called
// 'template_dump' exists in the root of the vbulletin directory
if (is_demo_mode()) {
print_cp_message('This function is disabled within demo mode');
}
if (function_exists('set_time_limit') and !SAFEMODE) {
@set_time_limit(1200);
}
chdir(DIR . '/template_dump');
$templates = $db->query_read("\n\t\tSELECT title, templatetype, username, dateline, template_un AS template\n\t\tFROM " . TABLE_PREFIX . "template\n\t\tWHERE styleid = " . $vbulletin->GPC['dostyleid'] . "\n\t\t\tAND templatetype = 'template'\n\t\t\t" . iif($vbulletin->GPC['mode'] == 1, "AND templateid IN({$templateids})") . "\n\t\tORDER BY title\n\t");
echo "<ol>\n";
while ($template = $db->fetch_array($templates)) {
echo "<li><b class=\"col-c\">{$template['title']}</b>: Parsing... ";
$text = str_replace("\r\n", "\n", $template['template']);
$text = str_replace("\n", "\r\n", $text);
echo 'Writing... ';
$fp = fopen("./{$template['title']}.htm", 'w+');
fwrite($fp, $text);
fclose($fp);
示例6: error
/**
* Shows an error message and halts execution - use this in the same way as print_stop_message();
*
* @param string Phrase name for error message
*/
function error($errorphrase)
{
$args = func_get_args();
if (is_array($errorphrase)) {
$error = fetch_error($errorphrase);
} else {
$error = call_user_func_array('fetch_error', $args);
}
$this->errors[] = $error;
if ($this->failure_callback and is_callable($this->failure_callback)) {
call_user_func_array($this->failure_callback, array(&$this, $errorphrase));
}
switch ($this->error_handler) {
case ERRTYPE_ARRAY:
case ERRTYPE_SILENT:
// do nothing
break;
case ERRTYPE_STANDARD:
eval(standard_error($error));
break;
case ERRTYPE_CP:
print_cp_message($error);
break;
}
}
示例7: print_form_header
print_form_header('socialgroups', '');
print_table_header($vbphrase['deleting_groups']);
$groups = $vbulletin->db->query_read("\n\t\t\tSELECT * FROM " . TABLE_PREFIX . "socialgroup\n\t\t\tWHERE groupid IN (" . implode(',', $ids) . ")\n\t\t");
if ($vbulletin->db->num_rows($groups) == 0) {
print_description_row($vbphrase['no_groups_found']);
}
while ($group = $vbulletin->db->fetch_array($groups)) {
$socialgroupdm = datamanager_init('SocialGroup', $vbulletin);
print_description_row(construct_phrase($vbphrase['deleting_x'], $group['name']));
$socialgroupdm->set_existing($group);
$socialgroupdm->delete();
unset($socialgroupdm);
}
} else {
// This should never happen without playing with the URLs
print_cp_message($vbphrase['no_groups_selected_or_invalid_input']);
}
print_table_footer();
print_cp_redirect('socialgroups.php', 5);
}
// #######################################################################
if ($_POST['do'] == 'updatecategory') {
$vbulletin->input->clean_array_gpc('p', array('socialgroupcategoryid' => TYPE_UINT, 'title' => TYPE_STR, 'description' => TYPE_STR));
$sgcatdata = datamanager_init('SocialGroupCategory', $vbulletin);
if ($vbulletin->GPC['socialgroupcategoryid'] and $category = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "socialgroupcategory WHERE socialgroupcategoryid = " . $vbulletin->GPC['socialgroupcategoryid'])) {
// update
$sgcatdata->set_existing($category);
} else {
if ($vbulletin->GPC['socialgroupcategoryid']) {
// error
print_stop_message('invalid_social_group_category_specified');
示例8: array
// ############## ADD/EDIT GROUP SETTINGS ################################
if ($do == 'set_group_settings') {
$vbulletin->input->clean_array_gpc('r', array('group_name' => TYPE_STR, 'is_active' => TYPE_INT, 'map_id' => TYPE_INT));
$nntp_group->set_group_id($vbulletin->GPC['group_id']);
$nntp_group->set_group_name($vbulletin->GPC['group_name']);
$nntp_group->set_plugin_id($vbulletin->GPC['plugin']);
$nntp_group->set_is_active($vbulletin->GPC['is_active']);
$nntp_group->set_map_id($vbulletin->GPC['map_id']);
if ($vbulletin->GPC['group_id']) {
define('CP_REDIRECT', $this_script . '.php' . '?do=group_settings' . '&group_id=' . $vbulletin->GPC['group_id'] . '&plugin=' . $vbulletin->GPC['plugin']);
} else {
define('CP_REDIRECT', $this_script . '.php' . '?do=group_settings' . '&plugin=' . $vbulletin->GPC['plugin']);
}
// save settings
if ($nntp_group->save_group()) {
print_cp_message($vbphrase['saved_nntp_group_settings_successfully'], $this_script . '.php?do=list');
} else {
print_stop_message('saved_nntp_group_settings_defeated', $vbulletin->GPC['group_name']);
}
}
// ############## ADD/EDIT GROUP SETTINGS FORM ###########################
if ($do == 'group_settings') {
// check for existing plugin
if (!array_key_exists($vbulletin->GPC['plugin'], $plugins)) {
define('CP_REDIRECT', $this_script . '.php?do=list');
print_stop_message('invalid_nntp_plugin_specified');
}
// load existing group
$group_id = $vbulletin->GPC['group_id'];
$nntp_group->get_group($group_id);
print_form_header($this_script, 'set_group_settings');
示例9: print_cp_footer
vBCms_ContentManager::updateCategories();
echo vBCms_ContentManager::showNodes($per_page, 'category');
print_cp_footer();
} else {
if ($vbulletin->GPC_exists['sentfrom'] and $vbulletin->GPC['sentfrom'] == 'nodes') {
print_cp_header($vbphrase['content_manager']);
vBCms_ContentManager::updateSections();
echo vBCms_ContentManager::showNodes($per_page);
print_cp_footer();
}
}
}
case 'fix_nodes':
print_cp_header($vbphrase['vbcms']);
echo vBCms_ContentManager::fixNodeLR();
print_cp_message($vbphrase['nodetable_repaired']);
print_cp_footer();
break;
case 'list':
//This is our default action. We need to display a list of items.
//This is our default action. We need to display a list of items.
default:
$vbulletin->input->clean_array_gpc('r', array('sortby' => TYPE_STR, 'sortdir' => TYPE_STR, 'title_filter' => TYPE_STR, 'submit' => TYPE_STR, 'state_filter' => TYPE_INT, 'author_filter' => TYPE_UINT, 'filter_section' => TYPE_UINT, 'contenttypeid' => TYPE_INT));
print_cp_header($vbphrase['content_manager']);
echo vBCms_ContentManager::showNodes($per_page);
print_cp_footer();
break;
}
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 03:13, Sat Sep 7th 2013
示例10: catch
} catch (Exception $e) {
print_cp_message('Something wrong when saving block: ' . $e->getMessage());
exit;
}
print_cp_message($vbphrase['block_saved'], "block.php?" . $vbulletin->session->vars['sessionurl'] . "do=modify");
}
// #############################################################################
if ($_REQUEST['do'] == 'deleteblock') {
$vbulletin->input->clean_array_gpc('r', array('blockid' => TYPE_INT));
print_delete_confirmation('block', $vbulletin->GPC['blockid'], 'block', 'killblock', 'block', array('blockid' => $vbulletin->GPC['blockid']));
}
// #############################################################################
if ($_REQUEST['do'] == 'killblock') {
$vbulletin->input->clean_array_gpc('r', array('blockid' => TYPE_INT));
$blockmanager->deleteBlock($vbulletin->GPC['blockid']);
print_cp_message($vbphrase['block_deleted'], "block.php?" . $vbulletin->session->vars['sessionurl'] . "do=modify");
}
// ###################### Start do order #######################
if ($_POST['do'] == 'doorder') {
$vbulletin->input->clean_array_gpc('p', array('order' => TYPE_ARRAY));
if (is_array($vbulletin->GPC['order'])) {
$blocks = $blockmanager->getBlocks(false);
foreach ($blocks as $block) {
if (!isset($vbulletin->GPC['order']["{$block['blockid']}"])) {
continue;
}
$displayorder = intval($vbulletin->GPC['order']["{$block['blockid']}"]);
if ($block['displayorder'] != $displayorder) {
$blockmanager->updateBlockOrder($block['blockid'], $displayorder);
}
}
示例11: print_input_row
print_input_row('[New] Per Reply Value', 'perreply', -1);
print_input_row('[New] Per Char Value', 'perchar', -1);
print_submit_row("Reset Policy", 0);
print_table_footer();
print_cp_footer();
}
if ($_GET['do'] == "do_resetpolicy") {
$processed = true;
$vbulletin->input->clean_array_gpc('p', array('forum' => TYPE_ARRAY_UINT, 'perthread' => TYPE_INT, 'perreply' => TYPE_INT, 'perchar' => TYPE_INT));
$forumids =& $vbulletin->GPC['forum'];
if (count($forumids) > 0) {
$vbulletin->db->query("\n\t\t\tUPDATE `" . TABLE_PREFIX . "forum`\n\t\t\tSET \n\t\t\t\tkbank_perthread = {$vbulletin->GPC['perthread']}\n\t\t\t\t,kbank_perreply = {$vbulletin->GPC['perreply']}\n\t\t\t\t,kbank_perchar = {$vbulletin->GPC['perchar']}\n\t\t\tWHERE forumid IN (" . implode(',', $forumids) . ")\n\t\t");
build_forum_permissions();
print_cp_message('Reset Forums Point Policy Operation Completed!', 'kbankadmin.php?do=policy_man');
} else {
print_cp_message('You haven\'t selected any forum to Reset Forums Point Policy');
}
}
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
// ###################### Do Donate To All Members ########################
if ($_POST['do'] == "do_donate_all") {
$processed = true;
$vbulletin->input->clean_array_gpc('p', array('amount' => TYPE_INT, 'usergroup' => TYPE_STR));
print_cp_header("Donate To Members");
if ($vbulletin->GPC['amount'] == 0) {
print_stop_message('kbank_sendmsomthing');
}
if ($vbulletin->GPC['usergroup'] != "All") {
if (!$db->query_first("SELECT * FROM " . TABLE_PREFIX . "usergroup where usergroupid='" . $vbulletin->GPC['usergroup'] . "'")) {
示例12: print_table_start
// Clear the login log.
if (!empty($vbulletin->GPC['do'])) {
// Confirm the purge.
if ($vbulletin->GPC['do'] == "purge") {
print_table_start();
print_table_header('Login Log');
print_form_header('loginlog', 'purgenow');
print_description_row('Are you sure you want to purge the login log? This action can not be reverted.');
print_submit_row('Purge Log');
print_table_footer();
exit;
// This actually truncates the table.
} elseif ($vbulletin->GPC['do'] == "purgenow") {
print_cp_header('Clear Login Log');
$vbulletin->db->execute_query("TRUNCATE TABLE " . TABLE_PREFIX . "loginlog");
print_cp_message('The login log has been purged.', 'loginlog.php');
exit;
}
}
// Filter table
print_table_start();
print_table_header('Login Log Filter');
print_form_header('loginlog', '', false, true, 'cpform', '90%', '', true, 'get', 0, false, '');
print_input_select_row('Search', 'value', isset($vbulletin->GPC['value']) ? htmlentities($vbulletin->GPC['value'], ENT_QUOTES) : '', 'type', array(0 => 'Username', 1 => 'UserID', 2 => 'Loginstamp', 3 => 'IP', 4 => 'ISP', 5 => 'Country', 6 => 'User Agent'), isset($vbulletin->GPC['type']) ? $vbulletin->GPC['type'] : '');
print_submit_row('Filter');
print_table_footer();
// Pagination table
print_table_start();
print_description_row('<a href="loginlog.php?page=' . (isset($vbulletin->GPC['page']) && $vbulletin->GPC['page'] > 0 ? $vbulletin->GPC['page'] - 1 : 0) . (isset($vbulletin->GPC['type']) && isset($vbulletin->GPC['value']) ? '&type=' . $vbulletin->GPC['type'] . '&value=' . $vbulletin->GPC['value'] : '') . '">Previous Page</a> - <a href="loginlog.php?page=' . (isset($vbulletin->GPC['page']) && $vbulletin->GPC['page'] != 0 ? $vbulletin->GPC['page'] + 1 : 1) . (isset($vbulletin->GPC['type']) && isset($vbulletin->GPC['value']) ? '&type=' . $vbulletin->GPC['type'] . '&value=' . $vbulletin->GPC['value'] : '') . '">Next Page</a> - Currently on page: ' . (isset($vbulletin->GPC['page']) ? htmlentities($vbulletin->GPC['page'], ENT_QUOTES) : 0));
print_table_footer();
// Output table
示例13: print_stop_message2
function print_stop_message2($phrase, $file = NULL, $extra = array(), $backurl = NULL, $continue = false, $redirect_route = 'admincp')
{
//handle phrase as a string
if (!is_array($phrase)) {
$phrase = array($phrase);
}
$phraseAux = vB_Api::instanceInternal('phrase')->fetch(array($phrase[0]));
if (isset($phraseAux[$phrase[0]])) {
$message = $phraseAux[$phrase[0]];
} else {
$message = $phrase[0];
// phrase doesn't exist or wasn't found, display the varname
}
if (sizeof($phrase) > 1) {
$phrase[0] = $message;
$message = call_user_func_array('construct_phrase', $phrase);
}
//todo -- figure out where this is needed and remove.
global $vbulletin;
if ($vbulletin->GPC['ajax']) {
require_once DIR . '/includes/class_xml.php';
$xml = new vB_XML_Builder_Ajax('text/xml');
$xml->add_tag('error', $message);
$xml->print_xml();
}
//todo -- figure out where this is needed and remove.
if (VB_AREA == 'Upgrade') {
echo $message;
exit;
}
$hash = '';
if ($file) {
if (!empty($extra['#'])) {
$hash = '#' . $extra['#'];
unset($extra['#']);
}
$redirect = get_redirect_url($file, $extra, $redirect_route);
}
print_cp_message($message, $redirect . $hash, 1, $backurl, $continue);
}
示例14: print_cp_message
break;
case 'padding':
$allowedlist = $allowedpaddings;
break;
}
if (isset($allowedlist)) {
if (!in_array($value, $allowedlist) and $value != '') {
$usercss->invalid["{$selectorname}"]["{$property}"] = ' usercsserror ';
continue;
}
}
$usercss->parse($selectorname, $property, $value);
}
}
if (!empty($usercss->error)) {
print_cp_message(implode("<br />", $usercss->error));
} else {
if (!empty($usercss->invalid)) {
print_stop_message2('invalid_values_customize_profile');
}
}
$usercss->save();
print_stop_message2('saved_profile_customizations_successfully', 'user', array('do' => 'edit', 'u' => $userinfo['userid']));
}
// ########################################################################
if ($_REQUEST['do'] == 'usercss') {
require_once DIR . '/includes/adminfunctions_template.php';
?>
<script type="text/javascript" src="<?php
echo $vbulletin->options['bburl'];
?>
示例15: print_cp_message
print_cp_message($vbphrase['hqthffs_item_exist'], 'hqth_ffs.php?' . $vbulletin->session->vars['sessionurl'] . 'do=' . $_REQUEST['do']);
} else {
print_form_header('hqth_ffs', $_REQUEST['do']);
print_table_header($vbphrase['edit'] . ' ' . $vbphrase['hqthffs_' . $_REQUEST['do']], 0);
construct_hidden_code('act', 'update');
construct_hidden_code('actionid', $_REQUEST['id']);
print_input_row($vbphrase['hqthffs_actionname'], 'actionname', $checkexits['actionname']);
print_input_row($vbphrase['hqthffs_actiondelay'], 'actiondelay', $checkexits['actiondelay']);
print_input_row($vbphrase['hqthffs_moneymaster'], 'money_master', $checkexits['money_pet']);
print_input_row($vbphrase['hqthffs_moneypet'], 'money_pet', $checkexits['money_master']);
print_submit_row();
print_table_footer();
}
} elseif ($_REQUEST['act'] == "del") {
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "hqth_ffs_action WHERE actioncat='" . $_REQUEST['do'] . "' AND actionid=" . $_REQUEST['id']);
print_cp_message($vbphrase['hqthffs_item_del_success'], 'hqth_ffs.php?' . $vbulletin->session->vars['sessionurl'] . 'do=' . $_REQUEST['do']);
} else {
$catlist = $db->query_read("SELECT *\n\t\t\t\t\t FROM " . TABLE_PREFIX . "hqth_ffs_action\n\t\t\t\t\t WHERE actioncat='" . $_REQUEST['do'] . "'\n\t\t\t\t\t ORDER BY actionname");
print_form_header();
print_table_header($vbphrase['hqthffs_' . $_REQUEST['do']], 5);
$header = array();
$header[] = $vbphrase['hqthffs_actionname'];
$header[] = $vbphrase['hqthffs_actiondelay'];
$header[] = $vbphrase['hqthffs_moneymaster'];
$header[] = $vbphrase['hqthffs_moneypet'];
$header[] = $vbphrase['option'];
print_cells_row($header, 1, 0, 1);
$cell = array();
while ($last = $db->fetch_array($catlist)) {
$cell[] = $last['actionname'];
$cell[] = $last['actiondelay'];