mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
r64
Ссылка на редактирование данных пользователя git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@64 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
6ce7d0c2f4
commit
ff3f0ee1f7
9 changed files with 28 additions and 52 deletions
|
@ -1335,7 +1335,7 @@ else
|
|||
|
||||
'U_VIEWPROFILE' => append_sid("../profile.php?mode=viewprofile&".POST_USERS_URL."=".$rowset[$i]['user_id']),
|
||||
'U_VIEWPOSTS' => append_sid("../search.php?search_author=1&uid={$rowset[$i]['user_id']}"),
|
||||
'U_MANAGE' => append_sid("admin_users.php?mode=edit&".POST_USERS_URL."=".$rowset[$i]['user_id']),
|
||||
'U_MANAGE' => append_sid("profile.php?mode=editprofile&".POST_USERS_URL."=".$rowset[$i]['user_id']),
|
||||
'U_PERMISSIONS' => append_sid("admin_ug_auth.php?mode=user&".POST_USERS_URL."=".$rowset[$i]['user_id']),
|
||||
));
|
||||
}
|
||||
|
|
|
@ -315,7 +315,7 @@ else if( isset($_GET['pane']) && $_GET['pane'] == 'right' )
|
|||
"IP_ADDRESS" => $reg_ip,
|
||||
|
||||
"U_WHOIS_IP" => "http://www.dnsstuff.com/tools/whois/?ip=$reg_ip",
|
||||
"U_USER_PROFILE" => append_sid("admin_users.php?mode=edit&" . POST_USERS_URL . "=" . $onlinerow_reg[$i]['user_id']),
|
||||
"U_USER_PROFILE" => append_sid("profile.php?mode=editprofile&" . POST_USERS_URL . "=" . $onlinerow_reg[$i]['user_id']),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1241,12 +1241,6 @@ else if (defined('IN_TRACKER'))
|
|||
header('Content-Type: text/plain');
|
||||
header('Pragma: no-cache');
|
||||
|
||||
if (STRIP_SLASHES)
|
||||
{
|
||||
array_deep($_GET, 'stripslashes');
|
||||
array_deep($_POST, 'stripslashes');
|
||||
}
|
||||
|
||||
if (!defined('IN_ADMIN'))
|
||||
{
|
||||
// Exit if tracker is disabled via ON/OFF trigger
|
||||
|
|
|
@ -287,7 +287,6 @@ $bb_cfg['gzip_force'] = false; // always compress (don't che
|
|||
|
||||
// Sessions
|
||||
$bb_cfg['session_update_intrv'] = 180; // sec
|
||||
|
||||
$bb_cfg['user_session_duration'] = 1800; // sec
|
||||
$bb_cfg['admin_session_duration'] = 6*3600; // sec
|
||||
$bb_cfg['user_session_gc_ttl'] = 1800; // number of seconds that a staled session entry may remain in sessions table
|
||||
|
@ -302,7 +301,6 @@ $bb_cfg['unique_ip'] = false; // Deny registration of sever
|
|||
$bb_cfg['new_user_reg_restricted'] = false;
|
||||
$bb_cfg['reg_email_activation'] = false;
|
||||
|
||||
|
||||
// Email
|
||||
$bb_cfg['emailer_disabled'] = false;
|
||||
|
||||
|
@ -313,7 +311,6 @@ $bb_cfg['email_change_disabled'] = false; // disable changing email by
|
|||
|
||||
$bb_cfg['tech_admin_email'] = 'admin@' . $bb_cfg['server_name']; // email for sending error reports
|
||||
$bb_cfg['abuse_email'] = 'abuse@' . $bb_cfg['server_name'];
|
||||
$bb_cfg['email_default_charset'] = 'UTF-8';
|
||||
|
||||
// AJAX
|
||||
define('AJAX_HTML_DIR', BB_ROOT .'ajax/html/');
|
||||
|
@ -351,11 +348,6 @@ $bb_cfg['super_admins'] = array(
|
|||
2 => 'admin',
|
||||
);
|
||||
|
||||
$bb_cfg['no_form_token_users'] = array(
|
||||
# user_id => 'name',
|
||||
2 => 'admin',
|
||||
);
|
||||
|
||||
// Log options
|
||||
define('LOG_EXT', 'log');
|
||||
define('LOG_SEPR', ' | ');
|
||||
|
@ -393,11 +385,8 @@ else
|
|||
}
|
||||
ini_set('error_log', LOG_DIR .'php_err.log');
|
||||
|
||||
// Disable magic_quotes_runtime
|
||||
@set_magic_quotes_runtime(0);
|
||||
ini_set("magic_quotes_runtime", 0);
|
||||
define('STRIP_SLASHES', get_magic_quotes_gpc());
|
||||
if (STRIP_SLASHES) die('set magic_quotes off');
|
||||
// magic quotes
|
||||
if (get_magic_quotes_gpc()) die('set magic_quotes off');
|
||||
|
||||
// Triggers
|
||||
define('BB_ENABLED', TRIGGERS_DIR .'$on');
|
||||
|
|
|
@ -161,7 +161,7 @@ class emailer
|
|||
}
|
||||
else
|
||||
{
|
||||
$this->encoding = !empty($lang['CONTENT_ENCODING']) ? trim($lang['CONTENT_ENCODING']) : $bb_cfg['email_default_charset'];
|
||||
$this->encoding = trim($lang['CONTENT_ENCODING']);
|
||||
}
|
||||
$this->subject = $this->encode($this->subject);
|
||||
|
||||
|
|
|
@ -544,22 +544,6 @@ function make_url ($path)
|
|||
return FULL_URL . preg_replace('#^\/?(.*?)\/?$#', '\1', $path);
|
||||
}
|
||||
|
||||
if (STRIP_SLASHES)
|
||||
{
|
||||
array_deep($_GET, 'stripslashes');
|
||||
array_deep($_POST, 'stripslashes');
|
||||
array_deep($_COOKIE, 'stripslashes');
|
||||
array_deep($_REQUEST, 'stripslashes');
|
||||
array_deep($_SERVER, 'stripslashes');
|
||||
array_deep($_ENV, 'stripslashes');
|
||||
array_deep($_FILES, 'stripslashes');
|
||||
}
|
||||
elseif (!defined('IN_AJAX'))
|
||||
{
|
||||
array_deep($_GET, 'addslashes');
|
||||
array_deep($_POST, 'addslashes');
|
||||
}
|
||||
|
||||
require(INC_DIR .'functions.php');
|
||||
require(INC_DIR .'sessions.php');
|
||||
require(INC_DIR .'template.php');
|
||||
|
|
|
@ -234,7 +234,7 @@ if (IS_ADMIN)
|
|||
$template->assign_vars(array(
|
||||
'EDITABLE_TPLS' => true,
|
||||
|
||||
'U_MANAGE' => "admin/admin_users.php?mode=edit&u={$profiledata['user_id']}",
|
||||
'U_MANAGE' => "profile.php?mode=editprofile&u={$profiledata['user_id']}",
|
||||
'U_PERMISSIONS' => "admin/admin_ug_auth.php?mode=user&u={$profiledata['user_id']}",
|
||||
));
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ if ($submit || $refresh)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!IS_GUEST && $mode != 'newtopic' && bf($userdata['user_opt'], 'user_opt', 'user_notify'))
|
||||
if (!IS_GUEST && $mode != 'newtopic' && bf($userdata['user_opt'], 'user_opt', 'notify'))
|
||||
{
|
||||
$notify_user = (int) DB()->fetch_row("
|
||||
SELECT topic_id
|
||||
|
|
|
@ -186,20 +186,29 @@ $(document).ready(function(){
|
|||
<!-- ENDIF -->
|
||||
</script>
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(ie6_make_clickable_labels);
|
||||
<!--[if lte IE 6]><script type="text/javascript">
|
||||
$(ie6_make_clickable_labels);
|
||||
|
||||
$(document).ready(function(){
|
||||
$(function(){
|
||||
$('div.menu-sub').prepend('<iframe class="ie-fix-select-overlap"></iframe>'); // iframe for IE select box z-index issue
|
||||
Menu.iframeFix = true;
|
||||
});
|
||||
</script>
|
||||
<![endif]-->
|
||||
</script><![endif]-->
|
||||
|
||||
<!--[if gte IE 7]><style type="text/css">input[type="checkbox"] { margin-bottom: -1px; }</style><![endif]-->
|
||||
<!--[if lte IE 6]><style type="text/css">.forumline th { height: 24px; padding: 2px 4px; }</style><![endif]-->
|
||||
<!--[if IE]><style type="text/css">.code-copy { display: block; }.post-hr { margin: 2px auto; }</style><![endif]-->
|
||||
|
||||
<!--[if gte IE 7]><style type="text/css">
|
||||
input[type="checkbox"] { margin-bottom: -1px; }
|
||||
</style><![endif]-->
|
||||
|
||||
<!--[if lte IE 6]><style type="text/css">
|
||||
.forumline th { height: 24px; padding: 2px 4px; }
|
||||
.menu-sub iframe.ie-fix-select-overlap { display: none; display/**/: block; position: absolute; z-index: -1; filter: mask(); }
|
||||
</style><![endif]-->
|
||||
|
||||
<!--[if IE]><style type="text/css">
|
||||
.post-hr { margin: 2px auto; }
|
||||
.fieldsets div > p { margin-bottom: 0; }
|
||||
</style><![endif]-->
|
||||
|
||||
<!-- IF INCLUDE_DEVELOP_JS -->
|
||||
<script type="text/javascript" src="{#BB_ROOT}misc/js/develop.js"></script>
|
||||
|
@ -217,7 +226,7 @@ function OpenInEditor ($file, $line)
|
|||
</script>
|
||||
<!-- ENDIF / INCLUDE_DEVELOP_JS -->
|
||||
<style type="text/css">
|
||||
.menu-sub, #ajax-loading, #ajax-error, var.ajax-params { display: none; }
|
||||
.menu-sub, #ajax-loading, #ajax-error, var.ajax-params, .sp-title { display: none; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue