Махнули чужие зодиаки на опенсорс.

This commit is contained in:
Igor Barkov [iwork] 2018-12-13 20:07:03 +02:00
parent 6ffa2c4eae
commit 8be98a2c3b
26 changed files with 3 additions and 4 deletions

View File

@ -2758,8 +2758,8 @@ function addlog($id, $log)
function star_sign($month, $day)
{
$signs = ["10", "11", "12", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
$signsstart = [1 => 21, 2 => 20, 3 => 20, 4 => 20, 5 => 20, 6 => 20, 7 => 21, 8 => 22, 9 => 23, 10 => 23, 11 => 23, 12 => 23];
$signs = ["10", "11", "12", "01", "02", "03", "04", "05", "06", "07", "08", "09"];
$signsstart = [01 => 21, 02 => 20, 03 => 20, 04 => 20, 05 => 20, 06 => 20, 07 => 21, 08 => 22, 09 => 23, 10 => 23, 11 => 23, 12 => 23];
return $day < $signsstart[$month + 1] ? $signs[$month - 1] : $signs[$month % 12];
}

BIN
i/1.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
i/10.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
i/11.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
i/12.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
i/2.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
i/3.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
i/4.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
i/5.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
i/6.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
i/7.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
i/8.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
i/9.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
i/zodiac/01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
i/zodiac/02.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
i/zodiac/03.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
i/zodiac/04.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
i/zodiac/05.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
i/zodiac/06.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
i/zodiac/07.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
i/zodiac/08.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
i/zodiac/09.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
i/zodiac/10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
i/zodiac/11.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
i/zodiac/12.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -44,8 +44,7 @@ if (empty($user['id'])): ?>
?>
</td>
<td style="vertical-align: top; width: 100px; text-align: center;">
<img src="i/<?= star_sign(substr($user['borndate'], 3, 2), substr($user['borndate'], 0, 2)); ?>.gif"
width="100"/>
<img src="i/sh/zodiac/<?= star_sign(substr($user['borndate'], 3, 2), substr($user['borndate'], 0, 2)); ?>.png">
</td>
</tr>
</table>