game/_incl_data/class/__seasons.php
2022-06-07 00:30:34 +03:00

35 lines
1.0 KiB
PHP

<?php
if(!defined('GAME')) {
die();
}
class season {
public static $yy = array(
1 => array( 1 , '01' , 'ßíâàðü' , 'ßíâàðüñêèé' ),
2 => array( 2 , '02' , 'Ôåâðàëü' , 'Ôåâðàëüñêèé' ),
3 => array( 3 , '03' , 'Ìàðò' , 'Ìàðòîâñêèé' ),
4 => array( 4 , '04' , 'Àïðåëü' , 'Àïðåëüñêèé' ),
5 => array( 5 , '05' , 'Ìàé' , 'Ìàéñêèé' ),
6 => array( 6 , '06' , 'Èþíü' , 'Èþíüñêèé' ),
7 => array( 7 , '07' , 'Èþëü' , 'Èþëüñêèé' ),
8 => array( 8 , '08' , 'Àâãóñò' , 'Àâãóñòîâñêèé' ),
9 => array( 9 , '09' , 'Ñåíòÿáðü' , 'Ñåíòÿáðüñêèé' ),
10 => array( 10 , '10' , 'Îêòÿáðü' , 'Îêòÿáðüñêèé' ),
11 => array( 11 , '11' , 'Íîÿáðü' , 'Íîÿáðüñêèé' ),
12 => array( 12 , '12' , 'Äåêàáðü' , 'Äåêàáðüñêèé' ),
);
public static $date = array( ), $m = array( );
public static function data( $val ) {
self::$m = mysql_fetch_array(mysql_query('SELECT * FROM `sss_m` WHERE `id` = "'.mysql_real_escape_string((int)$val).'" LIMIT 1'));
if( self::$m['s'] != self::$date['m'] ) {
self::$m = array( );
}
}
}
?>