Махнули чужие зодиаки на опенсорс.
@ -2758,8 +2758,8 @@ function addlog($id, $log)
|
|||||||
|
|
||||||
function star_sign($month, $day)
|
function star_sign($month, $day)
|
||||||
{
|
{
|
||||||
$signs = ["10", "11", "12", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
$signs = ["10", "11", "12", "01", "02", "03", "04", "05", "06", "07", "08", "09"];
|
||||||
$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];
|
$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];
|
return $day < $signsstart[$month + 1] ? $signs[$month - 1] : $signs[$month % 12];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
i/zodiac/01.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
i/zodiac/02.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
i/zodiac/03.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
i/zodiac/04.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
i/zodiac/05.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
i/zodiac/06.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
i/zodiac/07.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
i/zodiac/08.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
i/zodiac/09.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
i/zodiac/10.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
i/zodiac/11.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
i/zodiac/12.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
3
inf.php
@ -44,8 +44,7 @@ if (empty($user['id'])): ?>
|
|||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td style="vertical-align: top; width: 100px; text-align: center;">
|
<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"
|
<img src="i/sh/zodiac/<?= star_sign(substr($user['borndate'], 3, 2), substr($user['borndate'], 0, 2)); ?>.png">
|
||||||
width="100"/>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|