Переключение на новую функцию star_sign() и её новый вызов, удаление старой.

This commit is contained in:
Igor Barkov (iwork) 2020-07-03 19:15:52 +03:00
parent f668940a9f
commit 092ebe8320
2 changed files with 1 additions and 12 deletions

View File

@ -1987,17 +1987,6 @@ function addlog($id, $log)
unset($id, $log); unset($id, $log);
} }
//function star_sign($month, $day)
//{
// if (empty($month) || empty($day)) {
// $month = (int)sprintf("%02d", mt_rand(1, 12));
// $day = (int)sprintf("%02d", mt_rand(1, 29));
// }
// $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];
//}
function star_sign($date) function star_sign($date)
{ {
/* /*

View File

@ -64,7 +64,7 @@ if (empty($user->id)): ?>
<?php endif; ?> <?php endif; ?>
</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/zodiac/<?php /*echo star_sign(substr($user->borndate, 3, 2), substr($user->borndate, 0, 2));*/ echo star_sign($user->borndate); ?>.png" alt="Родовой знак"> <img src="i/zodiac/<?= star_sign($user->borndate); ?>.png" alt="Родовой знак">
</td> </td>
</tr> </tr>
</table> </table>