โดย M004 » 22/04/2013 7:16 pm
เปิดไฟล์ includes/functions_user.php
ค้นหา
โค้ด: เลือกทั้งหมด
function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reason, $ban_give_reason = '')
{
global $db, $user, $auth, $cache;
เติมหลังคำที่หา
โค้ด: เลือกทั้งหมด
global $config, $phpbb_root_path, $phpEx; //Needed by Reputation System
ค้นหา
โค้ด: เลือกทั้งหมด
$db->sql_multi_insert(BANLIST_TABLE, $sql_ary);
เติมหลังคำที่หา
โค้ด: เลือกทั้งหมด
//Reputation System
if ($mode == 'user' && !$ban_exclude && $config['rs_max_power_ban'])
{
$ban_id = $db->sql_nextid();
$ban_time = round(($ban_end - $current_time) / 3600);
$ban_point = round($config['rs_max_power_ban'] * $ban_time / 672);
$ban_points = ($ban_end == 0) ? -$config['rs_max_power_ban'] : -min($config['rs_max_power_ban'],($ban_point == 0 ? 1 : $ban_point));
if (!class_exists('reputation'))
{
include($phpbb_root_path . '/includes/functions_reputation.' . $phpEx);
}
reputation::give_point($ban_entry, 0, $ban_give_reason, false, $ban_points, 'ban');
}
//Reputation System
เปิดไฟล์ includes/acp/acp_forums.php
ค้นหา
โค้ด: เลือกทั้งหมด
'forum_password_unset' => request_var('forum_password_unset', false),
เติมหลังคำที่หา
โค้ด: เลือกทั้งหมด
'enable_reputation' => request_var('enable_reputation', 0),
ค้นหา
เติมหลังคำที่หา
ค้นหา
โค้ด: เลือกทั้งหมด
'S_CAN_COPY_PERMISSIONS' => ($action != 'edit' || empty($forum_id) || ($auth->acl_get('a_fauth') && $auth->acl_get('a_authusers') && $auth->acl_get('a_authgroups') && $auth->acl_get('a_mauth'))) ? true : false,
เติมหลังคำที่หา
โค้ด: เลือกทั้งหมด
'S_ENABLE_REPUTATION' => $forum_data['enable_reputation'],
เปิดไฟล์ includes/acp/acp_groups.php
ค้นหา
โค้ด: เลือกทั้งหมด
$submit_ary['founder_manage'] = isset($_REQUEST['group_founder_manage']) ? 1 : 0;
}
เติมหลังคำที่หา
โค้ด: เลือกทั้งหมด
// Reputation System
$submit_ary['reputation_power'] = request_var('group_reputation_power', 0);
// Reputation System
ค้นหา
เติมหลังคำที่หา
โค้ด: เลือกทั้งหมด
// Reputation System
$test_variables[] = 'reputation_power';
$test_variables['reputation_power'] = 'int';
// Reputation System
ค้นหา
โค้ด: เลือกทั้งหมด
'L_AVATAR_EXPLAIN' => sprintf($user->lang['AVATAR_EXPLAIN'], $config['avatar_max_width'], $config['avatar_max_height'], round($config['avatar_filesize'] / 1024)),
));
เติมหลังคำที่หา
โค้ด: เลือกทั้งหมด
// Reputation System
$template->assign_vars(array(
'GROUP_REPUTATION_POWER' => (isset($group_row['group_reputation_power'])) ? $group_row['group_reputation_power'] : 0,
));
// Reputation System
เปิดไฟล์ includes/acp/acp_styles.php
ค้นหา
โค้ด: เลือกทั้งหมด
'icon_back_top', 'icon_contact_aim', 'icon_contact_email', 'icon_contact_icq', 'icon_contact_jabber', 'icon_contact_msnm', 'icon_contact_pm', 'icon_contact_yahoo', 'icon_contact_www', 'icon_post_delete', 'icon_post_edit', 'icon_post_info', 'icon_post_quote', 'icon_post_report', 'icon_user_online', 'icon_user_offline', 'icon_user_profile', 'icon_user_search', 'icon_user_warn', 'button_pm_forward', 'button_pm_new', 'button_pm_reply', 'button_topic_locked', 'button_topic_new', 'button_topic_reply',
หาในบรรทัด
เติมหลังหา
เปิดไฟล์ includes/mcp/mcp_warn.php
ค้นหา
โค้ด: เลือกทั้งหมด
$warning = utf8_normalize_nfc(request_var('warning', '', true));
เติมหลังคำที่หา
โค้ด: เลือกทั้งหมด
$rep_point = (isset($_REQUEST['rep_point'])) ? true : false;
$rep_power = request_var('rep_power', '');
ค้นหา
เติมหลังคำที่หา
โค้ด: เลือกทั้งหมด
}
$rp_power = '';
for($i = 1; $i <= $config['rs_max_power_warning']; ++$i)
{
$rp_power = '<option value="-' . $i . '"> (-' . $i . ') </option>';
$template->assign_block_vars('reputation', array(
'REPUTATION_POWER' => $rp_power)
);
ค้นหา
โค้ด: เลือกทั้งหมด
add_warning($user_row, $warning, $notify, $post_id);
หาในบรรทัด
โค้ด: เลือกทั้งหมด
add_warning($user_row, $warning, $notify, $post_id
เติมหลังคำที่หา
ค้นหา
โค้ด: เลือกทั้งหมด
'L_WARNING_POST_DEFAULT' => sprintf($user->lang['WARNING_POST_DEFAULT'], generate_board_url() . "/viewtopic.$phpEx?f=$forum_id&p=$post_id#p$post_id"),
เติมหลังที่หา
โค้ด: เลือกทั้งหมด
'S_RS_WARNING' => ($config['rs_warning'] && $config['rs_max_power_warning']) ? true : false,
ค้นหา
โค้ด: เลือกทั้งหมด
$warning = utf8_normalize_nfc(request_var('warning', '', true));
เปิดไฟล์ includes/functions_user.php
ค้นหา
[code=php]function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reason, $ban_give_reason = '')
{
global $db, $user, $auth, $cache; [/code]
เติมหลังคำที่หา
[code=php] global $config, $phpbb_root_path, $phpEx; //Needed by Reputation System [/code]
ค้นหา
[code=php] $db->sql_multi_insert(BANLIST_TABLE, $sql_ary); [/code]
เติมหลังคำที่หา
[code=php] //Reputation System
if ($mode == 'user' && !$ban_exclude && $config['rs_max_power_ban'])
{
$ban_id = $db->sql_nextid();
$ban_time = round(($ban_end - $current_time) / 3600);
$ban_point = round($config['rs_max_power_ban'] * $ban_time / 672);
$ban_points = ($ban_end == 0) ? -$config['rs_max_power_ban'] : -min($config['rs_max_power_ban'],($ban_point == 0 ? 1 : $ban_point));
if (!class_exists('reputation'))
{
include($phpbb_root_path . '/includes/functions_reputation.' . $phpEx);
}
reputation::give_point($ban_entry, 0, $ban_give_reason, false, $ban_points, 'ban');
}
//Reputation System [/code]
เปิดไฟล์ includes/acp/acp_forums.php
ค้นหา
[code=php] 'forum_password_unset' => request_var('forum_password_unset', false), [/code]
เติมหลังคำที่หา
[code=php] 'enable_reputation' => request_var('enable_reputation', 0), [/code]
ค้นหา
[code=php] 'forum_password_confirm'=> '', [/code]
เติมหลังคำที่หา
[code=php] 'enable_reputation' => false, [/code]
ค้นหา
[code=php] 'S_CAN_COPY_PERMISSIONS' => ($action != 'edit' || empty($forum_id) || ($auth->acl_get('a_fauth') && $auth->acl_get('a_authusers') && $auth->acl_get('a_authgroups') && $auth->acl_get('a_mauth'))) ? true : false, [/code]
เติมหลังคำที่หา
[code=php] 'S_ENABLE_REPUTATION' => $forum_data['enable_reputation'], [/code]
เปิดไฟล์ includes/acp/acp_groups.php
ค้นหา
[code=php] $submit_ary['founder_manage'] = isset($_REQUEST['group_founder_manage']) ? 1 : 0;
} [/code]
เติมหลังคำที่หา
[code=php] // Reputation System
$submit_ary['reputation_power'] = request_var('group_reputation_power', 0);
// Reputation System [/code]
ค้นหา
[code=php] 'skip_auth' => 'int',
); [/code]
เติมหลังคำที่หา
[code=php] // Reputation System
$test_variables[] = 'reputation_power';
$test_variables['reputation_power'] = 'int';
// Reputation System [/code]
ค้นหา
[code=php] 'L_AVATAR_EXPLAIN' => sprintf($user->lang['AVATAR_EXPLAIN'], $config['avatar_max_width'], $config['avatar_max_height'], round($config['avatar_filesize'] / 1024)),
)); [/code]
เติมหลังคำที่หา
[code=php] // Reputation System
$template->assign_vars(array(
'GROUP_REPUTATION_POWER' => (isset($group_row['group_reputation_power'])) ? $group_row['group_reputation_power'] : 0,
));
// Reputation System [/code]
เปิดไฟล์ includes/acp/acp_styles.php
ค้นหา
[code=php] 'icon_back_top', 'icon_contact_aim', 'icon_contact_email', 'icon_contact_icq', 'icon_contact_jabber', 'icon_contact_msnm', 'icon_contact_pm', 'icon_contact_yahoo', 'icon_contact_www', 'icon_post_delete', 'icon_post_edit', 'icon_post_info', 'icon_post_quote', 'icon_post_report', 'icon_user_online', 'icon_user_offline', 'icon_user_profile', 'icon_user_search', 'icon_user_warn', 'button_pm_forward', 'button_pm_new', 'button_pm_reply', 'button_topic_locked', 'button_topic_new', 'button_topic_reply', [/code]
หาในบรรทัด
[code]'button_topic_new', 'button_topic_reply',[/code]
เติมหลังหา
[code] 'icon_rate_good', 'icon_rate_bad',[/code]
เปิดไฟล์ includes/mcp/mcp_warn.php
ค้นหา
[code=php] $warning = utf8_normalize_nfc(request_var('warning', '', true)); [/code]
เติมหลังคำที่หา
[code=php] $rep_point = (isset($_REQUEST['rep_point'])) ? true : false;
$rep_power = request_var('rep_power', ''); [/code]
ค้นหา
[code=php] $notify = false; [/code]
เติมหลังคำที่หา
[code=php] }
$rp_power = '';
for($i = 1; $i <= $config['rs_max_power_warning']; ++$i)
{
$rp_power = '<option value="-' . $i . '"> (-' . $i . ') </option>';
$template->assign_block_vars('reputation', array(
'REPUTATION_POWER' => $rp_power)
); [/code]
ค้นหา
[code=php] add_warning($user_row, $warning, $notify, $post_id); [/code]
หาในบรรทัด
[code=php] add_warning($user_row, $warning, $notify, $post_id[/code]
เติมหลังคำที่หา
[code=php], $rep_point, $rep_power[/code]
ค้นหา
[code=php] 'L_WARNING_POST_DEFAULT' => sprintf($user->lang['WARNING_POST_DEFAULT'], generate_board_url() . "/viewtopic.$phpEx?f=$forum_id&p=$post_id#p$post_id"), [/code]
เติมหลังที่หา
[code=php] 'S_RS_WARNING' => ($config['rs_warning'] && $config['rs_max_power_warning']) ? true : false, [/code]
ค้นหา
[code=php] $warning = utf8_normalize_nfc(request_var('warning', '', true)); [/code]