mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
r347
Настройка модификаций INSERT INTO `bb_config` VALUES ('reports_enabled', '1'); INSERT INTO `bb_config` VALUES ('gold_silver_enabled', '1'); INSERT INTO `bb_config` VALUES ('gallery_enabled', '1'); INSERT INTO `bb_config` VALUES ('pic_dir', 'pictures/'); INSERT INTO `bb_config` VALUES ('pic_max_size', '3*1024*1024'); INSERT INTO `bb_config` VALUES ('auto_delete_posted_pics', '1'); INSERT INTO `bb_config` VALUES ('magnet_links_enabled', '1'); INSERT INTO `bb_config` VALUES ('no_avatar', 'images/avatars/gallery/noavatar.png'); INSERT INTO `bb_config` VALUES ('gender', '1'); INSERT INTO `bb_config` VALUES ('callseed', '0'); INSERT INTO `bb_config` VALUES ('tor_stats', '1'); INSERT INTO `bb_config` VALUES ('show_latest_news', '1'); INSERT INTO `bb_config` VALUES ('max_news_title', '50'); INSERT INTO `bb_config` VALUES ('latest_news_count', '5'); INSERT INTO `bb_config` VALUES ('latest_news_forum_id', '1'); INSERT INTO `bb_config` VALUES ('show_network_news', '1'); INSERT INTO `bb_config` VALUES ('max_net_title', '50'); INSERT INTO `bb_config` VALUES ('network_news_count', '5'); INSERT INTO `bb_config` VALUES ('network_news_forum_id', '2'); INSERT INTO `bb_config` VALUES ('whois_info', 'http://ip-whois.net/ip_geo.php?ip='); git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@347 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
eb3dd5ebe9
commit
54a3b4913b
12 changed files with 305 additions and 149 deletions
|
@ -3,7 +3,8 @@
|
|||
// ACP Header - START
|
||||
if (!empty($setmodules))
|
||||
{
|
||||
$module['General']['Configuration'] = basename(__FILE__);
|
||||
$module['General']['Configuration'] = basename(__FILE__) .'?mode=config';;
|
||||
$module['Mods']['Configuration'] = basename(__FILE__) .'?mode=config_mods';;
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
@ -11,6 +12,14 @@ require('./pagestart.php');
|
|||
|
||||
require(INC_DIR .'functions_selects.php');
|
||||
|
||||
$mode = isset($_GET['mode']) ? $_GET['mode'] : '';
|
||||
|
||||
$return_links = array(
|
||||
'index' => '<br /><br />'. sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '<a href="'. append_sid('index.php?pane=right') . '">', '</a>'),
|
||||
'config' => '<br /><br />'. sprintf($lang['CLICK_RETURN_CONFIG'], '<a href="' . append_sid('admin_board.php?mode=config') . '">', '</a>'),
|
||||
'config_mods' => '<br /><br />'. sprintf($lang['CLICK_RETURN_CONFIG_MODS'], '<a href="'. append_sid('admin_board.php?mode=config_mods') . '">', '</a>')
|
||||
);
|
||||
|
||||
//
|
||||
// Pull all config data
|
||||
//
|
||||
|
@ -44,76 +53,112 @@ else
|
|||
bb_update_config(array($config_name => $new[$config_name]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( isset($_POST['submit']) )
|
||||
{
|
||||
$message = $lang['CONFIG_UPDATED'] . "<br /><br />" . sprintf($lang['CLICK_RETURN_CONFIG'], "<a href=\"" . append_sid("admin_board.php") . "\">", "</a>") . "<br /><br />" . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], "<a href=\"" . append_sid("index.php?pane=right") . "\">", "</a>");
|
||||
|
||||
message_die(GENERAL_MESSAGE, $message);
|
||||
}
|
||||
if ($mode == 'config')
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, $lang['CONFIG_UPDATED'] . $return_links['config'] . $return_links['index']);
|
||||
}
|
||||
elseif ($mode == 'config_mods')
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, $lang['CONFIG_UPDATED'] . $return_links['config_mods'] . $return_links['index']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Escape any quotes in the site description for proper display in the text
|
||||
// box on the admin page
|
||||
//
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_CONFIG_ACTION' => append_sid('admin_board.php'),
|
||||
|
||||
'SITENAME' => htmlCHR($new['sitename']),
|
||||
'CONFIG_SITE_DESCRIPTION' => htmlCHR($new['site_desc']),
|
||||
'DISABLE_BOARD' => ($new['board_disable']) ? true : false,
|
||||
switch($mode)
|
||||
{
|
||||
case 'config_mods':
|
||||
$template->assign_vars(array(
|
||||
'S_CONFIG_ACTION' => append_sid('admin_board.php?mode=config_mods'),
|
||||
'CONFIG_MODS' => true,
|
||||
|
||||
'REPORTS_ENABLED' => $new['reports_enabled'],
|
||||
'GOLD_SILVER_ENABLED' => $new['gold_silver_enabled'],
|
||||
'GALLERY_ENABLED' => $new['gallery_enabled'],
|
||||
'PIC_DIR' => $new['pic_dir'],
|
||||
'PIC_MAX_SIZE' => $new['pic_max_size'],
|
||||
'AUTO_DELETE_POSTED_PICS' => $new['auto_delete_posted_pics'],
|
||||
'MAGNET_LINKS_ENABLED' => $new['magnet_links_enabled'],
|
||||
'GENDER' => $new['gender'],
|
||||
'CALLSEED' => $new['callseed'],
|
||||
'TOR_STATS' => $new['tor_stats'],
|
||||
'SHOW_LATEST_NEWS' => $new['show_latest_news'],
|
||||
'MAX_NEWS_TITLE' => $new['max_news_title'],
|
||||
'LATEST_NEWS_COUNT' => $new['latest_news_count'],
|
||||
'LATEST_NEWS_FORUM_ID' => $new['latest_news_forum_id'],
|
||||
'SHOW_NETWORK_NEWS' => $new['show_network_news'],
|
||||
'MAX_NET_TITLE' => $new['max_net_title'],
|
||||
'NETWORK_NEWS_COUNT' => $new['network_news_count'],
|
||||
'NETWORK_NEWS_FORUM_ID' => $new['network_news_forum_id'],
|
||||
'WHOIS_INFO' => $new['whois_info'],
|
||||
));
|
||||
break;
|
||||
|
||||
'ACTIVATION_NONE' => USER_ACTIVATION_NONE,
|
||||
'ACTIVATION_NONE_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_NONE) ? 'checked="checked"' : '',
|
||||
'ACTIVATION_USER' => USER_ACTIVATION_SELF,
|
||||
'ACTIVATION_USER_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_SELF) ? 'checked="checked"' : '',
|
||||
'ACTIVATION_ADMIN' => USER_ACTIVATION_ADMIN,
|
||||
'ACTIVATION_ADMIN_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_ADMIN) ? 'checked="checked"' : '',
|
||||
default:
|
||||
//case 'config':
|
||||
$template->assign_vars(array(
|
||||
'S_CONFIG_ACTION' => append_sid('admin_board.php?mode=config'),
|
||||
'CONFIG' => true,
|
||||
|
||||
'SITENAME' => htmlCHR($new['sitename']),
|
||||
'CONFIG_SITE_DESCRIPTION' => htmlCHR($new['site_desc']),
|
||||
'DISABLE_BOARD' => ($new['board_disable']) ? true : false,
|
||||
|
||||
'VISUAL_CONFIRM' => ($new['enable_confirm']) ? true : false,
|
||||
'ALLOW_AUTOLOGIN' => ($new['allow_autologin']) ? true : false,
|
||||
'AUTOLOGIN_TIME' => (int) $new['max_autologin_time'],
|
||||
'BOARD_EMAIL_FORM' => ($new['board_email_form']) ? true : false,
|
||||
'MAX_POLL_OPTIONS' => $new['max_poll_options'],
|
||||
'FLOOD_INTERVAL' => $new['flood_interval'],
|
||||
'TOPICS_PER_PAGE' => $new['topics_per_page'],
|
||||
'POSTS_PER_PAGE' => $new['posts_per_page'],
|
||||
'HOT_TOPIC' => $new['hot_threshold'],
|
||||
'LANG_SELECT' => language_select($new['default_lang'], 'default_lang', 'language'),
|
||||
'DEFAULT_DATEFORMAT' => $new['default_dateformat'],
|
||||
'TIMEZONE_SELECT' => tz_select($new['board_timezone'], 'board_timezone'),
|
||||
'PRIVMSG_DISABLE' => ($new['privmsg_disable']) ? false : true,
|
||||
'INBOX_LIMIT' => $new['max_inbox_privmsgs'],
|
||||
'SENTBOX_LIMIT' => $new['max_sentbox_privmsgs'],
|
||||
'SAVEBOX_LIMIT' => $new['max_savebox_privmsgs'],
|
||||
'MAX_LOGIN_ATTEMPTS' => $new['max_login_attempts'],
|
||||
'LOGIN_RESET_TIME' => $new['login_reset_time'],
|
||||
'PRUNE_ENABLE' => ($new['prune_enable']) ? true : false,
|
||||
'ALLOW_BBCODE' => ($new['allow_bbcode']) ? true : false,
|
||||
'ALLOW_SMILIES' => ($new['allow_smilies']) ? true : false,
|
||||
'ALLOW_SIG' => ($new['allow_sig']) ? true : false,
|
||||
'SIG_SIZE' => $new['max_sig_chars'],
|
||||
'ALLOW_NAMECHANGE' => ($new['allow_namechange']) ? true : false,
|
||||
'ALLOW_AVATARS_LOCAL' => ($new['allow_avatar_local']) ? true : false,
|
||||
'ALLOW_AVATAR_REMOTE' => ($new['allow_avatar_remote']) ? true : false,
|
||||
'ALLOW_AVATAR_UPLOAD' => ($new['allow_avatar_upload']) ? true : false,
|
||||
'AVATAR_FILESIZE' => $new['avatar_filesize'],
|
||||
'AVATAR_MAX_HEIGHT' => $new['avatar_max_height'],
|
||||
'AVATAR_MAX_WIDTH' => $new['avatar_max_width'],
|
||||
'AVATAR_PATH' => $new['avatar_path'],
|
||||
'AVATAR_GALLERY_PATH' => $new['avatar_gallery_path'],
|
||||
'SMILIES_PATH' => $new['smilies_path'],
|
||||
'INBOX_PRIVMSGS' => $new['max_inbox_privmsgs'],
|
||||
'SENTBOX_PRIVMSGS' => $new['max_sentbox_privmsgs'],
|
||||
'SAVEBOX_PRIVMSGS' => $new['max_savebox_privmsgs'],
|
||||
'EMAIL_FROM' => $new['board_email'],
|
||||
'EMAIL_SIG' => $new['board_email_sig'],
|
||||
'SMTP_DELIVERY' => ($new['smtp_delivery']) ? true : false,
|
||||
'SMTP_HOST' => $new['smtp_host'],
|
||||
'SMTP_USERNAME' => $new['smtp_username'],
|
||||
'SMTP_PASSWORD' => $new['smtp_password'],
|
||||
));
|
||||
|
||||
print_page('admin_board.tpl', 'admin');
|
||||
'ACTIVATION_NONE' => USER_ACTIVATION_NONE,
|
||||
'ACTIVATION_NONE_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_NONE) ? 'checked="checked"' : '',
|
||||
'ACTIVATION_USER' => USER_ACTIVATION_SELF,
|
||||
'ACTIVATION_USER_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_SELF) ? 'checked="checked"' : '',
|
||||
'ACTIVATION_ADMIN' => USER_ACTIVATION_ADMIN,
|
||||
'ACTIVATION_ADMIN_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_ADMIN) ? 'checked="checked"' : '',
|
||||
|
||||
'VISUAL_CONFIRM' => ($new['enable_confirm']) ? true : false,
|
||||
'ALLOW_AUTOLOGIN' => ($new['allow_autologin']) ? true : false,
|
||||
'AUTOLOGIN_TIME' => (int) $new['max_autologin_time'],
|
||||
'BOARD_EMAIL_FORM' => ($new['board_email_form']) ? true : false,
|
||||
'MAX_POLL_OPTIONS' => $new['max_poll_options'],
|
||||
'FLOOD_INTERVAL' => $new['flood_interval'],
|
||||
'TOPICS_PER_PAGE' => $new['topics_per_page'],
|
||||
'POSTS_PER_PAGE' => $new['posts_per_page'],
|
||||
'HOT_TOPIC' => $new['hot_threshold'],
|
||||
'LANG_SELECT' => language_select($new['default_lang'], 'default_lang', 'language'),
|
||||
'DEFAULT_DATEFORMAT' => $new['default_dateformat'],
|
||||
'TIMEZONE_SELECT' => tz_select($new['board_timezone'], 'board_timezone'),
|
||||
'PRIVMSG_DISABLE' => ($new['privmsg_disable']) ? false : true,
|
||||
'INBOX_LIMIT' => $new['max_inbox_privmsgs'],
|
||||
'SENTBOX_LIMIT' => $new['max_sentbox_privmsgs'],
|
||||
'SAVEBOX_LIMIT' => $new['max_savebox_privmsgs'],
|
||||
'MAX_LOGIN_ATTEMPTS' => $new['max_login_attempts'],
|
||||
'LOGIN_RESET_TIME' => $new['login_reset_time'],
|
||||
'PRUNE_ENABLE' => ($new['prune_enable']) ? true : false,
|
||||
'ALLOW_BBCODE' => ($new['allow_bbcode']) ? true : false,
|
||||
'ALLOW_SMILIES' => ($new['allow_smilies']) ? true : false,
|
||||
'ALLOW_SIG' => ($new['allow_sig']) ? true : false,
|
||||
'SIG_SIZE' => $new['max_sig_chars'],
|
||||
'ALLOW_NAMECHANGE' => ($new['allow_namechange']) ? true : false,
|
||||
'ALLOW_AVATARS_LOCAL' => ($new['allow_avatar_local']) ? true : false,
|
||||
'ALLOW_AVATAR_REMOTE' => ($new['allow_avatar_remote']) ? true : false,
|
||||
'ALLOW_AVATAR_UPLOAD' => ($new['allow_avatar_upload']) ? true : false,
|
||||
'AVATAR_FILESIZE' => $new['avatar_filesize'],
|
||||
'AVATAR_MAX_HEIGHT' => $new['avatar_max_height'],
|
||||
'AVATAR_MAX_WIDTH' => $new['avatar_max_width'],
|
||||
'AVATAR_PATH' => $new['avatar_path'],
|
||||
'AVATAR_GALLERY_PATH' => $new['avatar_gallery_path'],
|
||||
'NO_AVATAR' => $new['no_avatar'],
|
||||
'SMILIES_PATH' => $new['smilies_path'],
|
||||
'INBOX_PRIVMSGS' => $new['max_inbox_privmsgs'],
|
||||
'SENTBOX_PRIVMSGS' => $new['max_sentbox_privmsgs'],
|
||||
'SAVEBOX_PRIVMSGS' => $new['max_savebox_privmsgs'],
|
||||
'EMAIL_FROM' => $new['board_email'],
|
||||
'EMAIL_SIG' => $new['board_email_sig'],
|
||||
'SMTP_DELIVERY' => ($new['smtp_delivery']) ? true : false,
|
||||
'SMTP_HOST' => $new['smtp_host'],
|
||||
'SMTP_USERNAME' => $new['smtp_username'],
|
||||
'SMTP_PASSWORD' => $new['smtp_password'],
|
||||
));
|
||||
break;
|
||||
}
|
||||
|
||||
print_page('admin_board.tpl', 'admin');
|
||||
|
|
@ -2,26 +2,25 @@
|
|||
|
||||
if (!empty($setmodules))
|
||||
{
|
||||
$file = basename(__FILE__);
|
||||
if($bb_cfg['reports_enabled']){
|
||||
$module['Reports']['Modules_reasons'] = $file;
|
||||
$module['Reports']['Configuration'] = "$file?mode=config";}
|
||||
$module['Mods']['REPORTS'] = basename(__FILE__) .'?mode=config';}
|
||||
return;
|
||||
}
|
||||
|
||||
require("./pagestart.php");
|
||||
require(INC_DIR . "functions_report.php");
|
||||
require(INC_DIR . "functions_report_admin.php");
|
||||
require('./pagestart.php');
|
||||
|
||||
require(INC_DIR . 'functions_report.php');
|
||||
require(INC_DIR . 'functions_report_admin.php');
|
||||
|
||||
$return_links = array(
|
||||
'index' => '<br /><br />' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '<a href="' . append_sid("index.php?pane=right") . '">', '</a>'),
|
||||
'config' => '<br /><br />' . sprintf($lang['CLICK_RETURN_REPORT_CONFIG'], '<a href="' . append_sid("admin_reports.php?mode=config") . '">', '</a>'),
|
||||
'admin' => '<br /><br />' . sprintf($lang['CLICK_RETURN_REPORT_ADMIN'], '<a href="' . append_sid("admin_reports.php") . '">', '</a>')
|
||||
'index' => '<br /><br />'. sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '<a href="'. append_sid('index.php?pane=right') . '">', '</a>'),
|
||||
'config' => '<br /><br />'. sprintf($lang['CLICK_RETURN_REPORT_CONFIG'], '<a href="' . append_sid('admin_reports.php?mode=config') . '">', '</a>'),
|
||||
'admin' => '<br /><br />'. sprintf($lang['CLICK_RETURN_REPORT_ADMIN'], '<a href="'. append_sid('admin_reports.php') . '">', '</a>')
|
||||
);
|
||||
|
||||
$redirect_url = append_sid("admin/admin_reports.php", true);
|
||||
$redirect_url = append_sid('admin/admin_reports.php', true);
|
||||
|
||||
$template->assign_var('S_REPORT_ACTION', append_sid("admin_reports.php"));
|
||||
$template->assign_var('S_REPORT_ACTION', append_sid('admin_reports.php'));
|
||||
|
||||
if (isset($_POST['mode']) || isset($_GET['mode']))
|
||||
{
|
||||
|
@ -80,7 +79,7 @@ if ($mode == 'config')
|
|||
'L_CONFIGURATION_TITLE' => $lang['REPORTS'] . ': ' . $lang['CONFIGURATION'])
|
||||
);
|
||||
|
||||
print_page('report_config_body.tpl');
|
||||
print_page('report_config_body.tpl', 'admin');
|
||||
}
|
||||
}
|
||||
else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
|
||||
|
@ -138,7 +137,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
|
|||
report_auth_select('auth_notify', $report_module->data['auth_notify']);
|
||||
report_auth_select('auth_delete', $report_module->data['auth_delete'], array(REPORT_AUTH_MOD, REPORT_AUTH_CONFIRM, REPORT_AUTH_ADMIN));
|
||||
|
||||
print_page('report_module_edit_body.tpl');
|
||||
print_page('report_module_edit_body.tpl', 'admin');
|
||||
break;
|
||||
|
||||
//
|
||||
|
@ -150,7 +149,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
|
|||
$temp_url = append_sid("admin_reports.php?mode=reasons&" . POST_CAT_URL . "=$module_id");
|
||||
$return_links['reasons'] = '<br /><br />' . sprintf($lang['CLICK_RETURN_REPORT_REASONS'], '<a href="' . $temp_url . '">', '</a>');
|
||||
|
||||
$redirect_url = append_sid("admin/admin_reports.php?mode=reasons&" . POST_CAT_URL . "=$module_id", true);
|
||||
$redirect_url = append_sid('admin/admin_reports.php?mode=reasons&' . POST_CAT_URL . "=$module_id", true);
|
||||
|
||||
if (isset($_POST[POST_REPORT_REASON_URL]) || isset($_GET[POST_REPORT_REASON_URL]))
|
||||
{
|
||||
|
@ -222,7 +221,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
|
|||
'REASON_DESC' => $report_reason['report_reason_desc'])
|
||||
);
|
||||
|
||||
print_page('report_reason_edit_body.tpl');
|
||||
print_page('report_reason_edit_body.tpl', 'admin');
|
||||
break;
|
||||
|
||||
//
|
||||
|
@ -324,7 +323,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
|
|||
'REASON_DESC' => (isset($reason_desc)) ? stripslashes($reason_desc) : '')
|
||||
);
|
||||
|
||||
print_page('report_reason_edit_body.tpl');
|
||||
print_page('report_reason_edit_body.tpl', 'admin');
|
||||
break;
|
||||
|
||||
case '':
|
||||
|
@ -336,10 +335,10 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
|
|||
$template->assign_block_vars('report_reasons', array(
|
||||
'DESC' => $reason_desc,
|
||||
|
||||
'U_EDIT' => append_sid("admin_reports.php?mode[]=reasons&" . POST_CAT_URL . "=$module_id&mode[]=edit&" . POST_REPORT_REASON_URL . "=$reason_id"),
|
||||
'U_MOVE_UP' => append_sid("admin_reports.php?mode[]=reasons&" . POST_CAT_URL . "=$module_id&mode[]=up&" . POST_REPORT_REASON_URL . "=$reason_id"),
|
||||
'U_MOVE_DOWN' => append_sid("admin_reports.php?mode[]=reasons&" . POST_CAT_URL . "=$module_id&mode[]=down&" . POST_REPORT_REASON_URL . "=$reason_id"),
|
||||
'U_DELETE' => append_sid("admin_reports.php?mode[]=reasons&" . POST_CAT_URL . "=$module_id&mode[]=delete&" . POST_REPORT_REASON_URL . "=$reason_id"))
|
||||
'U_EDIT' => append_sid('admin_reports.php?mode[]=reasons&' . POST_CAT_URL . "=$module_id&mode[]=edit&" . POST_REPORT_REASON_URL . "=$reason_id"),
|
||||
'U_MOVE_UP' => append_sid('admin_reports.php?mode[]=reasons&' . POST_CAT_URL . "=$module_id&mode[]=up&" . POST_REPORT_REASON_URL . "=$reason_id"),
|
||||
'U_MOVE_DOWN' => append_sid('admin_reports.php?mode[]=reasons&' . POST_CAT_URL . "=$module_id&mode[]=down&" . POST_REPORT_REASON_URL . "=$reason_id"),
|
||||
'U_DELETE' => append_sid('admin_reports.php?mode[]=reasons&' . POST_CAT_URL . "=$module_id&mode[]=delete&" . POST_REPORT_REASON_URL . "=$reason_id"))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -349,11 +348,11 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
|
|||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'U_ADD_REASON' => append_sid("admin_reports.php?mode[]=reasons&" . POST_CAT_URL . "=$module_id&mode[]=add"),
|
||||
'U_MODULES' => append_sid("admin_reports.php"))
|
||||
);
|
||||
'U_ADD_REASON' => append_sid('admin_reports.php?mode[]=reasons&' . POST_CAT_URL . "=$module_id&mode[]=add"),
|
||||
'U_MODULES' => append_sid('admin_reports.php')
|
||||
));
|
||||
|
||||
print_page('report_module_reasons_body.tpl');
|
||||
print_page('report_module_reasons_body.tpl', 'admin');
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -407,7 +406,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
|
|||
print_confirmation(array(
|
||||
'CONFIRM_TITLE' => $lang['UNINSTALL_REPORT_MODULE'],
|
||||
'QUESTION' => $lang['UNINSTALL_REPORT_MODULE_EXPLAIN'],
|
||||
'FORM_ACTION' => "admin_reports.php",
|
||||
'FORM_ACTION' => 'admin_reports.php',
|
||||
'HIDDEN_FIELDS' => $hidden_fields,
|
||||
));
|
||||
break;
|
||||
|
@ -473,7 +472,7 @@ else if (isset($_POST['module']) || isset($_GET['module']))
|
|||
report_auth_select('auth_notify', REPORT_AUTH_MOD);
|
||||
report_auth_select('auth_delete', REPORT_AUTH_CONFIRM, array(REPORT_AUTH_MOD, REPORT_AUTH_CONFIRM, REPORT_AUTH_ADMIN));
|
||||
|
||||
print_page('report_module_edit_body.tpl');
|
||||
print_page('report_module_edit_body.tpl', 'admin');
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -511,12 +510,12 @@ else
|
|||
'MODULE_EXPLAIN' => $module_info['explain'],
|
||||
'REPORT_COUNT' => $report_counts[$report_module->id],
|
||||
|
||||
'U_EDIT' => append_sid("admin_reports.php?mode=edit&" . POST_CAT_URL . '=' . $report_module->id),
|
||||
'U_REASONS' => append_sid("admin_reports.php?mode=reasons&" . POST_CAT_URL . '=' . $report_module->id),
|
||||
'U_MOVE_UP' => append_sid("admin_reports.php?mode=up&" . POST_CAT_URL . '=' . $report_module->id),
|
||||
'U_MOVE_DOWN' => append_sid("admin_reports.php?mode=down&" . POST_CAT_URL . '=' . $report_module->id),
|
||||
'U_SYNC' => append_sid("admin_reports.php?mode=sync&" . POST_CAT_URL . '=' . $report_module->id),
|
||||
'U_UNINSTALL' => append_sid("admin_reports.php?mode=uninstall&" . POST_CAT_URL . '=' . $report_module->id))
|
||||
'U_EDIT' => append_sid('admin_reports.php?mode=edit&' . POST_CAT_URL . '=' . $report_module->id),
|
||||
'U_REASONS' => append_sid('admin_reports.php?mode=reasons&' . POST_CAT_URL . '=' . $report_module->id),
|
||||
'U_MOVE_UP' => append_sid('admin_reports.php?mode=up&' . POST_CAT_URL . '=' . $report_module->id),
|
||||
'U_MOVE_DOWN' => append_sid('admin_reports.php?mode=down&' . POST_CAT_URL . '=' . $report_module->id),
|
||||
'U_SYNC' => append_sid('admin_reports.php?mode=sync&' . POST_CAT_URL . '=' . $report_module->id),
|
||||
'U_UNINSTALL' => append_sid('admin_reports.php?mode=uninstall&' . POST_CAT_URL . '=' . $report_module->id))
|
||||
);
|
||||
|
||||
//
|
||||
|
@ -549,7 +548,7 @@ else
|
|||
'MODULE_EXPLAIN' => $module_info['explain'],
|
||||
'REPORT_COUNT' => '-',
|
||||
|
||||
'U_INSTALL' => append_sid("admin_reports.php?mode=install&module=" . $report_module->data['module_name']))
|
||||
'U_INSTALL' => append_sid('admin_reports.php?mode=install&module=' . $report_module->data['module_name']))
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -558,7 +557,7 @@ else
|
|||
$template->assign_block_vars('inactive_modules.switch_no_modules', array());
|
||||
}
|
||||
|
||||
print_page('report_modules_body.tpl');
|
||||
print_page('report_modules_body.tpl', 'admin');
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// ACP Header - START
|
||||
if (!empty($setmodules))
|
||||
{
|
||||
$module['TorrentPier']['Release_Templates'] = basename(__FILE__);
|
||||
$module['Mods']['Release_Templates'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
|
|
@ -63,8 +63,8 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.4 (beta)';
|
||||
$bb_cfg['tp_release_state'] = 'R346';
|
||||
$bb_cfg['tp_release_date'] = '01-02-2012';
|
||||
$bb_cfg['tp_release_state'] = 'R347';
|
||||
$bb_cfg['tp_release_date'] = '02-02-2012';
|
||||
|
||||
// Database
|
||||
$charset = 'utf8';
|
||||
|
@ -537,49 +537,8 @@ $bb_cfg['captcha'] = array(
|
|||
'img_path' => BB_PATH .'/images/captcha/', # without '/'
|
||||
);
|
||||
|
||||
// Advanced Report Hack
|
||||
$bb_cfg['reports_enabled'] = true;
|
||||
|
||||
// Gold/Silver releases
|
||||
$bb_cfg['gold_silver_enabled'] = true;
|
||||
|
||||
// Gallery
|
||||
$bb_cfg['gallery_enabled'] = true;
|
||||
$bb_cfg['pic_dir'] = 'pictures/';
|
||||
$bb_cfg['pic_max_size'] = 3*1024*1024; // 3 MB
|
||||
$bb_cfg['auto_delete_posted_pics'] = true; // Delete pictures while delete post?
|
||||
|
||||
// Magnet links
|
||||
$bb_cfg['magnet_links_enabled'] = true;
|
||||
|
||||
// No avatar
|
||||
$bb_cfg['no_avatar'] = 'images/avatars/gallery/noavatar.png';
|
||||
|
||||
// Birthday
|
||||
$bb_cfg['birthday']['enabled'] = true;
|
||||
$bb_cfg['birthday']['max_user_age'] = 99;
|
||||
$bb_cfg['birthday']['min_user_age'] = 10;
|
||||
$bb_cfg['birthday']['check_day'] = 7;
|
||||
|
||||
// Gender
|
||||
$bb_cfg['gender'] = true;
|
||||
|
||||
// CallSeed
|
||||
$bb_cfg['callseed'] = false;
|
||||
|
||||
// Tracker stats
|
||||
$bb_cfg['tor_stats'] = true;
|
||||
|
||||
// News
|
||||
$bb_cfg['show_latest_news'] = true;
|
||||
$bb_cfg['max_news_title'] = 50;
|
||||
$bb_cfg['latest_news_count'] = 5;
|
||||
$bb_cfg['latest_news_forum_id'] = '1'; // (string) 1,2,3...
|
||||
|
||||
// Network News
|
||||
$bb_cfg['show_network_news'] = true;
|
||||
$bb_cfg['max_net_title'] = 50;
|
||||
$bb_cfg['network_news_count'] = 5;
|
||||
$bb_cfg['network_news_forum_id'] = '2'; // (string) 1,2,3...
|
||||
|
||||
$bb_cfg['whois_info'] = 'http://ip-whois.net/ip_geo.php?ip=';
|
|
@ -4,6 +4,8 @@ $lang['GENERAL'] = 'General Admin';
|
|||
$lang['USERS'] = 'User Admin';
|
||||
$lang['GROUPS'] = 'Group Admin';
|
||||
$lang['FORUMS'] = 'Forum Admin';
|
||||
$lang['MODS'] = 'Modifications';
|
||||
$lang['TORRENTPIER'] = 'Product configuration';
|
||||
|
||||
$lang['CONFIGURATION'] = 'Configuration';
|
||||
$lang['PERMISSIONS'] = 'Permissions';
|
||||
|
@ -213,7 +215,11 @@ $lang['CLICK_RETURN_BANADMIN'] = 'Click %sHere%s to return to Ban Control';
|
|||
$lang['GENERAL_CONFIG'] = 'General Configuration';
|
||||
$lang['CONFIG_EXPLAIN'] = 'The form below will allow you to customize all the general board options. For User and Forum configurations use the related links on the left hand side.';
|
||||
|
||||
$lang['CLICK_RETURN_CONFIG'] = 'Click %sHere%s to return to General Configuration';
|
||||
$lang['CONFIG_MODS'] = 'Configuration modifications';
|
||||
$lang['MODS_EXPLAIN'] = 'This form allows you to adjust the modifications';
|
||||
|
||||
$lang['CLICK_RETURN_CONFIG'] = '%sClick Here to return to General Configuration%s';
|
||||
$lang['CLICK_RETURN_CONFIG_MODS'] = '%sBack to the settings modifications%s';
|
||||
|
||||
$lang['GENERAL_SETTINGS'] = 'General Board Settings';
|
||||
$lang['SITE_NAME'] = 'Site name';
|
||||
|
@ -580,6 +586,7 @@ $lang['TEMPLATE'] = 'Template';
|
|||
//
|
||||
// Reports (need to translate!)
|
||||
//
|
||||
$lang['REPORT'] = 'Reports';
|
||||
$lang['REPORT_CONFIG_EXPLAIN'] = 'On this page you can change the general configuration of the report feature.';
|
||||
$lang['REPORT_SUBJECT_AUTH'] = 'Individual permissions';
|
||||
$lang['REPORT_SUBJECT_AUTH_EXPLAIN'] = 'If this setting is enabled, moderators can only view reports they can edit. For example a post report will be hidden if the user isn\'t a moderator of the forum the post belongs to.';
|
||||
|
@ -649,3 +656,11 @@ $lang['REPORTS'] = 'Reports';
|
|||
// Reports [END]
|
||||
//
|
||||
|
||||
//
|
||||
// Mods
|
||||
//
|
||||
$lang['MAX_NEWS_TITLE'] = 'Max. length of the news';
|
||||
$lang['NEWS_COUNT'] = 'How many news show';
|
||||
$lang['NEWS_FORUM_ID'] = 'From what forums to display <br /> <h6>Of the several forums raises, separated by commas. Example 1,2,3</h6>';
|
||||
$lang['NOAVATAR'] = 'No avatar';
|
||||
$lang['WHOIS_INFO'] = 'Information about IP address';
|
||||
|
|
|
@ -4,6 +4,8 @@ $lang['GENERAL'] = 'Общие настройки';
|
|||
$lang['USERS'] = 'Пользователи';
|
||||
$lang['GROUPS'] = 'Группы';
|
||||
$lang['FORUMS'] = 'Форумы';
|
||||
$lang['MODS'] = 'Модификации';
|
||||
$lang['TORRENTPIER'] = 'Технические настройки';
|
||||
|
||||
$lang['CONFIGURATION'] = 'Конфигурация';
|
||||
$lang['PERMISSIONS'] = 'Права доступа';
|
||||
|
@ -214,7 +216,11 @@ $lang['CLICK_RETURN_BANADMIN'] = '%sВернуться к чёрным спис
|
|||
$lang['GENERAL_CONFIG'] = 'Общие настройки';
|
||||
$lang['CONFIG_EXPLAIN'] = 'Эта форма позволит вам изменить общие настройки форумов. Для управления пользователями и отдельными форумами используйте соответствующие ссылки слева.';
|
||||
|
||||
$lang['CONFIG_MODS'] = 'Настройки модификаций';
|
||||
$lang['MODS_EXPLAIN'] = 'Эта форма позволит вам изменить настройки модификаций.';
|
||||
|
||||
$lang['CLICK_RETURN_CONFIG'] = '%sВернуться к общим настройкам%s';
|
||||
$lang['CLICK_RETURN_CONFIG_MODS'] = '%sВернуться к настройкам модификаций%s';
|
||||
|
||||
$lang['GENERAL_SETTINGS'] = 'Общие настройки форумов';
|
||||
$lang['SITE_NAME'] = 'Название сайта';
|
||||
|
@ -605,7 +611,7 @@ $lang['INSTALL2'] = 'Установить';
|
|||
$lang['INACTIVE_MODULES'] = 'Неактивные модули';
|
||||
$lang['NO_MODULES_INACTIVE'] = 'Нет неактивных модулей';
|
||||
$lang['REPORT_MODULE_NOT_EXISTS'] = 'Выбранный модель не существует.';
|
||||
$lang['CLICK_RETURN_REPORT_ADMIN'] = '%sНажмите%s для возврата к настройкам Модулей & Причин.';
|
||||
$lang['CLICK_RETURN_REPORT_ADMIN'] = '%sНажмите%s для возврата к настройкам Модулей и Причин.';
|
||||
|
||||
$lang['BACK_MODULES'] = 'Назад к модулям';
|
||||
$lang['REPORT_REASON'] = 'Причина написания сообщения';
|
||||
|
@ -647,3 +653,12 @@ $lang['REPORTS'] = 'Нарушения';
|
|||
//
|
||||
// Reports [END]
|
||||
//
|
||||
|
||||
//
|
||||
// Mods
|
||||
//
|
||||
$lang['MAX_NEWS_TITLE'] = 'Макс. длинна новости';
|
||||
$lang['NEWS_COUNT'] = 'Сколько показывать новостей';
|
||||
$lang['NEWS_FORUM_ID'] = 'Из каких форумов выводить <br /> <h6>Из нескольких форумов выводите, через запятую. Например 1,2,3</h6>';
|
||||
$lang['NOAVATAR'] = 'Нет аватара';
|
||||
$lang['WHOIS_INFO'] = 'Информация о IP адресе';
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
|
||||
<!-- IF CONFIG -->
|
||||
<h1>{L_GENERAL_CONFIG}</h1>
|
||||
|
||||
<p>{L_CONFIG_EXPLAIN}</p>
|
||||
<br />
|
||||
|
||||
<a href="admin_board.php?mode=config" class="bold">{L_GENERAL_CONFIG}</a> ·
|
||||
<a href="admin_board.php?mode=config_mods">{L_CONFIG_MODS}</a>
|
||||
<br /><br />
|
||||
|
||||
<form action="{S_CONFIG_ACTION}" method="post">
|
||||
{S_HIDDEN_FIELDS}
|
||||
|
||||
|
@ -223,6 +227,10 @@
|
|||
<td><h4>{L_AVATAR_GALLERY_PATH}</h4><h6>{L_AVATAR_GALLERY_PATH_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="text" size="20" maxlength="255" name="avatar_gallery_path" value="{AVATAR_GALLERY_PATH}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_NOAVATAR}</h4></td>
|
||||
<td><input class="post" type="text" size="35" maxlength="255" name="no_avatar" value="{NO_AVATAR}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2">{L_EMAIL_SETTINGS}</th>
|
||||
</tr>
|
||||
|
@ -253,6 +261,121 @@
|
|||
<td><h4>{L_SMTP_PASSWORD}</h4><h6>{L_SMTP_PASSWORD_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="password" name="smtp_password" value="{SMTP_PASSWORD}" size="25" maxlength="255" /></td>
|
||||
</tr>
|
||||
|
||||
<!-- ENDIF / CONFIG -->
|
||||
|
||||
<!-- IF CONFIG_MODS -->
|
||||
<h1>{L_CONFIG_MODS}</h1>
|
||||
|
||||
<p>{L_MODS_EXPLAIN}</p>
|
||||
<br />
|
||||
|
||||
<a href="admin_board.php?mode=config">{L_GENERAL_CONFIG}</a> ·
|
||||
<a href="admin_board.php?mode=config_mods" class="bold">{L_CONFIG_MODS}</a>
|
||||
<br /><br />
|
||||
|
||||
<form action="{S_CONFIG_ACTION}" method="post">
|
||||
{S_HIDDEN_FIELDS}
|
||||
|
||||
<table class="forumline">
|
||||
<col class="row1">
|
||||
<col class="row2">
|
||||
<tr>
|
||||
<th colspan="2">{L_CONFIG_MODS}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_REPORT_MODULE}</h4></td>
|
||||
<td>
|
||||
<label><input type="radio" name="reports_enabled" value="1" <!-- IF REPORTS_ENABLED -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="reports_enabled" value="0" <!-- IF not REPORTS_ENABLED -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_GOLD} / {L_SILVER}</h4></td>
|
||||
<td>
|
||||
<label><input type="radio" name="gold_silver_enabled" value="1" <!-- IF GOLD_SILVER_ENABLED -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="gold_silver_enabled" value="0" <!-- IF not GOLD_SILVER_ENABLED -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_MAGNET}</h4></td>
|
||||
<td>
|
||||
<label><input type="radio" name="magnet_links_enabled" value="1" <!-- IF MAGNET_LINKS_ENABLED -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="magnet_links_enabled" value="0" <!-- IF not MAGNET_LINKS_ENABLED -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_GENDER}</h4></td>
|
||||
<td>
|
||||
<label><input type="radio" name="gender" value="1" <!-- IF GENDER -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="gender" value="0" <!-- IF not GENDER -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_CALLSEED}</h4></td>
|
||||
<td>
|
||||
<label><input type="radio" name="callseed" value="1" <!-- IF CALLSEED -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="callseed" value="0" <!-- IF not CALLSEED -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_SPMODE_FULL}</h4></td>
|
||||
<td>
|
||||
<label><input type="radio" name="tor_stats" value="1" <!-- IF TOR_STATS -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="tor_stats" value="0" <!-- IF not TOR_STATS -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_WHOIS_INFO}</h4></td>
|
||||
<td><input class="post" type="text" size="28" maxlength="100" name="whois_info" value="{WHOIS_INFO}" /></td>
|
||||
</tr>
|
||||
|
||||
<tr class="row3 med">
|
||||
<td class="bold tCenter" colspan="2">{L_LATEST_NEWS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_LATEST_NEWS}</h4></td>
|
||||
<td>
|
||||
<label><input type="radio" name="show_latest_news" value="1" <!-- IF SHOW_LATEST_NEWS -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="show_latest_news" value="0" <!-- IF not SHOW_LATEST_NEWS -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_MAX_NEWS_TITLE}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="max_news_title" value="{MAX_NEWS_TITLE}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_NEWS_COUNT}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="latest_news_count" value="{LATEST_NEWS_COUNT}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_NEWS_FORUM_ID}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="LATEST_NEWS_FORUM_ID" value="{LATEST_NEWS_FORUM_ID}" /></td>
|
||||
</tr>
|
||||
|
||||
<tr class="row3 med">
|
||||
<td class="bold tCenter" colspan="2">{L_NETWORK_NEWS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_NETWORK_NEWS}</h4></td>
|
||||
<td>
|
||||
<label><input type="radio" name="show_network_news" value="1" <!-- IF SHOW_NETWORK_NEWS -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="show_network_news" value="0" <!-- IF not SHOW_NETWORK_NEWS -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_MAX_NEWS_TITLE}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="max_net_title" value="{MAX_NET_TITLE}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_NEWS_COUNT}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="network_news_count" value="{NETWORK_NEWS_COUNT}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_NEWS_FORUM_ID}</h4></td>
|
||||
<td><input class="post" type="text" size="25" maxlength="100" name="NETWORK_NEWS_FORUM_ID" value="{NETWORK_NEWS_FORUM_ID}" /></td>
|
||||
</tr>
|
||||
<!-- ENDIF / CONFIG_MODS -->
|
||||
<tr>
|
||||
<td class="catBottom" colspan="2">
|
||||
<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue