Questa è la MOD
Codice: Seleziona tutto
#
#-----[ OPEN ]------------------------------------------------
#
cal_lite.php
#
#-----[ FIND ]------------------------------------------------
#
include_once($phpbb_root_path . 'common.'.$phpEx);
#
#-----[ AFTER ADD ]------------------------------------------------
#
include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
#
#-----[ FIND ]------------------------------------------------
#
if ($cal_config['show_birthdays'] == 1)
{
$username = array();
$user_id = array();
$birthday = array();
$birthmonth = array();
$useryear = array();
$ii = 0;
$sql = "SELECT username, user_id, user_birthday
FROM " . USERS_TABLE . "
WHERE user_birthday < '999999'
ORDER BY username";
if( ($result = $db->sql_query($sql)) )
{
while( $row = $db->sql_fetchrow($result))
{
$ii++;
$username[$ii] = $row['username'];
$user_id[$ii] = $row['user_id'];
$birthday[$ii] = realdate('j', $row['user_birthday']);
$birthmonth[$ii] = realdate('m', $row['user_birthday']);
$useryear[$ii] = realdate('Y', $row['user_birthday']);
}
}
}
#
#-----[ REPLACE WITH ]------------------------------------------------
#
if ($cal_config['show_birthdays'] == 1)
{
$username = array();
$user_id = array();
$birthday = array();
$birthmonth = array();
$useryear = array();
$ii = 0;
$sql = "SELECT username, user_id, user_birthday
FROM " . USERS_TABLE . "
WHERE user_birthday < '999999'
ORDER BY username";
if( ($result = $db->sql_query($sql)) )
{
while( $row = $db->sql_fetchrow($result))
{
$ii++;
$username[$ii] = color_group_colorize_name($row['user_id']);
$user_id[$ii] = $row['user_id'];
$birthday[$ii] = realdate('j', $row['user_birthday']);
$birthmonth[$ii] = realdate('m', $row['user_birthday']);
$useryear[$ii] = realdate('Y', $row['user_birthday']);
}
}
}
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM