mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 13:24:01 -07:00
R594
+ Добавлена дата создания группы Signed-off-by: Dark Nightmare <gtdarknightmare@gmail.com>
This commit is contained in:
parent
d3b9b0ca2b
commit
5c355fd027
5 changed files with 9 additions and 7 deletions
|
@ -789,7 +789,8 @@ INSERT INTO `bb_forums` VALUES (1, 1, 'Ваш первый форум', 'Опи
|
||||||
CREATE TABLE IF NOT EXISTS `bb_groups` (
|
CREATE TABLE IF NOT EXISTS `bb_groups` (
|
||||||
`group_id` mediumint(8) NOT NULL AUTO_INCREMENT,
|
`group_id` mediumint(8) NOT NULL AUTO_INCREMENT,
|
||||||
`avatar_ext_id` int(15) NOT NULL DEFAULT '0',
|
`avatar_ext_id` int(15) NOT NULL DEFAULT '0',
|
||||||
`group_time` int(11) NOT NULL DEFAULT '0',
|
`group_time` INT(11) NOT NULL DEFAULT '0',
|
||||||
|
`mod_time` INT(11) NOT NULL DEFAULT '0',
|
||||||
`group_type` tinyint(4) NOT NULL DEFAULT '1',
|
`group_type` tinyint(4) NOT NULL DEFAULT '1',
|
||||||
`release_group` tinyint(4) NOT NULL DEFAULT '0',
|
`release_group` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
`group_name` varchar(40) NOT NULL DEFAULT '',
|
`group_name` varchar(40) NOT NULL DEFAULT '',
|
||||||
|
|
|
@ -133,7 +133,7 @@ else if (!empty($_POST['group_update']))
|
||||||
{
|
{
|
||||||
// Create user_group for new group's moderator
|
// Create user_group for new group's moderator
|
||||||
add_user_into_group($group_id, $group_moderator);
|
add_user_into_group($group_id, $group_moderator);
|
||||||
$sql_ary['group_time'] = TIMENOW;
|
$sql_ary['mod_time'] = TIMENOW;
|
||||||
|
|
||||||
// Delete old moderator's user_group
|
// Delete old moderator's user_group
|
||||||
if (isset($_POST['delete_old_moderator']))
|
if (isset($_POST['delete_old_moderator']))
|
||||||
|
@ -155,7 +155,7 @@ else if (!empty($_POST['group_update']))
|
||||||
}
|
}
|
||||||
else if ($mode == 'newgroup')
|
else if ($mode == 'newgroup')
|
||||||
{
|
{
|
||||||
$sql_ary['group_time'] = TIMENOW;
|
$sql_ary['group_time'] = $sql_ary['mod_time'] = TIMENOW;
|
||||||
$sql_args = DB()->build_array('INSERT', $sql_ary);
|
$sql_args = DB()->build_array('INSERT', $sql_ary);
|
||||||
|
|
||||||
// Create new group
|
// Create new group
|
||||||
|
|
|
@ -33,7 +33,7 @@ if ($group_id)
|
||||||
if ($is_moderator)
|
if ($is_moderator)
|
||||||
{
|
{
|
||||||
|
|
||||||
// TODO Creation Date, Admin panel, Some tasty features
|
// TODO Admin panel, Some tasty features
|
||||||
|
|
||||||
// Avatar
|
// Avatar
|
||||||
if ($submit)
|
if ($submit)
|
||||||
|
|
|
@ -515,6 +515,7 @@ else
|
||||||
'GROUP_DESCRIPTION' => bbcode2html($group_info['group_description']),
|
'GROUP_DESCRIPTION' => bbcode2html($group_info['group_description']),
|
||||||
'GROUP_AVATAR' => get_avatar(GROUP_AVATAR_MASK . $group_id, $group_info['avatar_ext_id'], true),
|
'GROUP_AVATAR' => get_avatar(GROUP_AVATAR_MASK . $group_id, $group_info['avatar_ext_id'], true),
|
||||||
'GROUP_DETAILS' => $group_details,
|
'GROUP_DETAILS' => $group_details,
|
||||||
|
'GROUP_TIME' => (!empty($group_info['group_time'])) ? sprintf('%s <span class="posted_since">(%s)</span>', bb_date($group_info['group_time']), delta_time($group_info['group_time'])) : $lang['NONE'],
|
||||||
'MOD_USER' => profile_url($group_moderator),
|
'MOD_USER' => profile_url($group_moderator),
|
||||||
'MOD_AVATAR' => $avatar,
|
'MOD_AVATAR' => $avatar,
|
||||||
'MOD_FROM' => $from,
|
'MOD_FROM' => $from,
|
||||||
|
@ -523,7 +524,7 @@ else
|
||||||
'MOD_PM' => $pm,
|
'MOD_PM' => $pm,
|
||||||
'MOD_EMAIL' => $email,
|
'MOD_EMAIL' => $email,
|
||||||
'MOD_WWW' => $www,
|
'MOD_WWW' => $www,
|
||||||
'MOD_TIME' => (!empty($group_info['group_time'])) ? bb_date($group_info['group_time']) : $lang['NONE'],
|
'MOD_TIME' => (!empty($group_info['mod_time'])) ? bb_date($group_info['mod_time']) : $lang['NONE'],
|
||||||
'U_SEARCH_USER' => "search.php?mode=searchuser",
|
'U_SEARCH_USER' => "search.php?mode=searchuser",
|
||||||
|
|
||||||
'U_GROUP_CONFIG' => "group_config.php?g=$group_id",
|
'U_GROUP_CONFIG' => "group_config.php?g=$group_id",
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<tr>
|
<tr>
|
||||||
<td>{L_GROUP_TIME}</td>
|
<td>{L_GROUP_TIME}</td>
|
||||||
<td>{MOD_TIME}</td>
|
<td>{GROUP_TIME}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{L_GROUP_MEMBERSHIP}:</td>
|
<td>{L_GROUP_MEMBERSHIP}:</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue