Просмотр файла admin/module_pointscp.php

Размер файла: 2.12Kb
<?php
/***************************************************************************
 *                           ©  KaspeR
 *                            -------------------
 ***************************************************************************/

define('IN_PHPBB', 1);

$points_config['points_name'] = isset($points_config['points_name']) ? $points_config['points_name'] : 'Points';

//
// First we do the setmodules stuff for the admin cp.
//
if( !empty($setmodules) )
{
	$filename = basename(__FILE__);
	$module['Points_sys_settings']['Points_cp'] = $filename;
	return;
}

//
// Load default header
//
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);

//
// Output the authorisation details
//
$template->set_filenames(array(
	'body' => 'admin/admin_pointscp.tpl'
	)
);

$location = '';
$s_hidden_fields = '<input type="hidden" name="location" value="' . $location . '">';

$template->assign_vars(array(
		'L_USERNAME' => $lang['Username'],
		'L_FIND_USERNAME' => $lang['Find_username'],
		'L_ADD' => $lang['Add'],
		'L_SUBTRACT' => $lang['Subtract'],
		'L_SUBMIT' => $lang['Submit'],
		'L_RESET' => $lang['Reset'],
		'L_POINTS_TITLE' => $lang['Points_cp'],
		'L_AMOUNT' => $lang['Points_amount'],
		'L_AMOUNT_GIVE_TAKE' => sprintf($lang['Points_give_take'], $points_config['points_name']),
		'L_METHOD' => $lang['Points_method'],
		'L_ADD_SUBTRACT' => sprintf($lang['Points_add_subtract'], $points_config['points_name']),
		'L_MASS_EDIT' => $lang['Points_mass_edit'],
		'L_MASS_EDIT_EXPLAIN' => $lang['Points_mass_edit_explain'] . $lang['Points_mass_edit_explain1'],
		'L_POINTS_RESET' => sprintf($lang['Points_reset'], $points_config['points_name']),
		'L_POINTS_RESET_EXPLAIN' => sprintf($lang['Points_reset_explain'], $points_config['points_name']),
	 
		'USERNAME' => '',
		'S_AMOUNT' => $points_config['points_topic'],
		'S_HIDDEN_FIELDS' => $s_hidden_fields,
		'S_POST_ACTION' => append_sid($phpbb_root_path . "pointscp.$phpEx", true),
		'U_SEARCH_USER' => append_sid($phpbb_root_path . "search.$phpEx?mode=searchuser"))
);

$template->pparse('body');

include('./page_footer_admin.'.$phpEx);

?>