mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-24 07:05:47 -07:00
r287
ALTER TABLE `bb_user_group` ADD `user_time` INT( 11 ) NOT NULL; P.S. Спасибо druid за предоставленные ранее фиксы git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@287 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
7f5443a08c
commit
9e6d5ff9cc
4 changed files with 8 additions and 8 deletions
|
@ -53,7 +53,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
|
||||||
|
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.1 Stable';
|
$bb_cfg['tp_version'] = '2.1 Stable';
|
||||||
$bb_cfg['tp_release_state'] = 'R286';
|
$bb_cfg['tp_release_state'] = 'R287';
|
||||||
$bb_cfg['tp_release_date'] = '05-09-2011';
|
$bb_cfg['tp_release_date'] = '05-09-2011';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
|
|
|
@ -2830,7 +2830,7 @@ function profile_url($data)
|
||||||
{
$title = $ranks[$user_rank]['rank_title'];
$style = $ranks[$user_rank]['rank_style'];
|
{
$title = $ranks[$user_rank]['rank_title'];
$style = $ranks[$user_rank]['rank_style'];
|
||||||
}
|
}
|
||||||
if(empty($title)) $title = '';
|
if(empty($title)) $title = '';
|
||||||
if(empty($style)) $style = '';
|
if(empty($style)) $style = 'colorUser';
|
||||||
|
|
||||||
if(!$bb_cfg['color_nick']) $style = '';
|
if(!$bb_cfg['color_nick']) $style = '';
|
||||||
|
|
||||||
|
|
|
@ -103,14 +103,14 @@ function delete_user_group ($group_id, $user_id)
|
||||||
|
|
||||||
function create_user_group ($user_id)
|
function create_user_group ($user_id)
|
||||||
{
|
{
|
||||||
DB()->query("INSERT INTO ". BB_GROUPS ." (group_single_user) VALUES (1)");
|
DB()->query("INSERT INTO ". BB_GROUPS ." (group_single_user) VALUES (1)");
|
||||||
|
|
||||||
$group_id = (int) DB()->sql_nextid();
|
$group_id = (int) DB()->sql_nextid();
|
||||||
$user_id = (int) $user_id;
|
$user_id = (int) $user_id;
|
||||||
|
|
||||||
DB()->query("INSERT INTO ". BB_USER_GROUP ." (user_id, group_id) VALUES ($user_id, $group_id)");
|
DB()->query("INSERT INTO ". BB_USER_GROUP ." (user_id, group_id, user_time) VALUES ($user_id, $group_id, ". TIMENOW .")");
|
||||||
|
|
||||||
return $group_id;
|
return $group_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_group_data ($group_id)
|
function get_group_data ($group_id)
|
||||||
|
|
|
@ -464,7 +464,7 @@ foreach ($profile_fields as $field => $can_edit)
|
||||||
{
|
{
|
||||||
$sig = prepare_message($sig);
|
$sig = prepare_message($sig);
|
||||||
|
|
||||||
if (mb_strlen($sig) > $bb_cfg['max_sig_chars'])
|
if (mb_strlen($sig, "UTF-8") > $bb_cfg['max_sig_chars'])
|
||||||
{
|
{
|
||||||
$errors[] = $lang['SIGNATURE_TOO_LONG'];
|
$errors[] = $lang['SIGNATURE_TOO_LONG'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue