[ PHPXref.com ] [ Generated: Sun Jul 20 18:52:05 2008 ] [ mroovca stats 0.5.3 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> define.inc.php (source)

   1  <?php
   2  // ************************************************************************

   3  // mroovca stats

   4  // version: 0.5.0 - 28 Feb 2006

   5  // author: przyjazn (MirekW)

   6  // licence: GNU GPL

   7  // ************************************************************************

   8  
   9  
  10  define( "DBLIB_MYSQL",    0 );
  11  
  12  include_once ("colors.inc.php");
  13  
  14  // browser categories

  15  define( "BROWSER_OTHER",    1 );
  16  define( "BROWSER_BOT",      2 );
  17  define( "BROWSER_OPERA",    3 );
  18  define( "BROWSER_MOZILLA",  4 );
  19  define( "BROWSER_IE",       5 );
  20  define( "BROWSER_DOWNLOAD", 6 );
  21  
  22  $ht_browser_groups = array(
  23                              BROWSER_OTHER    => array( $stringlist["others"],  COLOR_GRAY ),
  24                              BROWSER_BOT      => array( "BOT",                  COLOR_YELLOW ),
  25                              BROWSER_OPERA    => array( "Opera",                COLOR_RED ),
  26                              BROWSER_MOZILLA  => array( "Mozilla/Gecko Engine", COLOR_GREEN ),
  27                              BROWSER_IE       => array( "Internet Explorer",    COLOR_BLUE ),
  28                              BROWSER_DOWNLOAD => array( "Download",             COLOR_PURPLE )
  29                            );
  30  
  31  
  32  // os categories

  33  define( "OS_OTHER",     1 );
  34  define( "OS_WINDOWS",   2 );
  35  define( "OS_UNIX",      3 );
  36  define( "OS_MACINTOSH", 4 );
  37  
  38  $ht_os_groups = array(
  39                         OS_OTHER     => array( $stringlist["others"], COLOR_GRAY ),
  40                         OS_WINDOWS   => array( "Windows",             COLOR_BLUE ),
  41                         OS_UNIX      => array( "Unix/Linux Family",   COLOR_GREEN ),
  42                         OS_MACINTOSH => array( "Macintosh",           COLOR_RED )
  43                        );
  44                      
  45                      
  46                        
  47  // country flags

  48  
  49  $ht_country_flags = array(
  50  #                           "" => "ip",

  51  #                           ".aero" => "",

  52  #                           ".biz" => "",

  53  #                           ".cat" => "",

  54  #                           ".com" => "",

  55  #                           ".coop" => "",

  56  #                           ".edu" => "",

  57  #                           ".gov" => "",

  58  #                           ".info" => "",

  59  #                           ".int" => "",

  60  #                           ".jobs" => "",

  61  #                           ".mobi" => "",

  62  #                           ".mil" => "",

  63  #                           ".museum" => "",

  64  #                           ".name" => "",

  65  #                           ".net" => "",

  66  #                           ".org" => "",

  67  #                           ".pro" => "",

  68  #                           ".travel" => "",

  69  #                           ".arpa" => "",

  70                             ".eu" => "european_union",
  71                             
  72                             ".ad" => "andorra",
  73                             ".ae" => "united_arab_emirates",
  74                             ".af" => "afghanistan",
  75                             ".ag" => "antigua_and_barbuda",
  76                             ".ai" => "anguilla",
  77                             ".al" => "albania",
  78                             ".am" => "armenia",
  79                             ".an" => "netherlands_antilles",
  80                             ".ao" => "angola",
  81  #                           ".aq" => "Antarctica",

  82                             ".ar" => "argentina",
  83                             ".as" => "american_samoa",
  84                             ".at" => "austria",
  85                             ".au" => "australia",
  86                             ".aw" => "aruba",
  87  #                           ".ax" => "Aland Islands",

  88                             ".az" => "azerbaijan",
  89                             ".ba" => "bosnia_and_herzegovina",
  90                             ".bb" => "barbados",
  91                             ".bd" => "bangladesh",
  92                             ".be" => "belgium",
  93                             ".bf" => "burkina_faso",
  94                             ".bg" => "bulgaria",
  95                             ".bh" => "bahrain",
  96                             ".bi" => "burundi",
  97                             ".bj" => "benin",
  98                             ".bm" => "bermuda",
  99                             ".bn" => "brunei",
 100                             ".bo" => "bolivia",
 101                             ".br" => "brazil",
 102                             ".bs" => "bahamas",
 103                             ".bt" => "bhutan",
 104                             ".bv" => "bouvet_island",
 105                             ".bw" => "botswana",
 106                             ".by" => "belarus",
 107                             ".bz" => "belize",
 108                             ".ca" => "canada",
 109                             ".cc" => "cocos_keeling_islands",
 110                             ".cd" => "congo_dr",
 111                             ".cf" => "central_african_republic",
 112                             ".cg" => "congo",
 113                             ".ch" => "switzerland",
 114                             ".ci" => "ivory_coast",
 115                             ".ck" => "cook_islands",
 116                             ".cl" => "chile",
 117                             ".cm" => "cameroon",
 118                             ".cn" => "china",
 119                             ".co" => "colombia",
 120                             ".cr" => "costa_rica",
 121                             ".cs" => "serbia_and_montenegro",
 122                             ".cu" => "cuba",
 123                             ".cv" => "cape_verde",
 124                             ".cx" => "christmas_island",
 125                             ".cy" => "cyprus",
 126                             ".cz" => "czech_republic",
 127                             ".de" => "germany",
 128                             ".dj" => "djibouti",
 129                             ".dk" => "denmark",
 130                             ".dm" => "dominica",
 131                             ".do" => "dominican_republic",
 132                             ".dz" => "algeria",
 133                             ".ec" => "ecuador",
 134                             ".ee" => "estonia",
 135                             ".eg" => "Egypt",
 136                             ".eh" => "western_sahara",
 137                             ".er" => "eritrea",
 138                             ".es" => "spain",
 139                             ".et" => "ethiopia",
 140                             ".fi" => "finland",
 141                             ".fj" => "fiji_islands",
 142                             ".fk" => "falkland_islands",
 143                             ".fm" => "federated_states_of_micronesia",
 144                             ".fo" => "faroe_islands",
 145                             ".fr" => "france",
 146                             ".ga" => "gabon",
 147                             ".gb" => "united_kingdom",
 148                             ".gd" => "grenada",
 149                             ".ge" => "georgia",
 150                             ".gf" => "french_guiana",
 151  #                           ".gg" => "Guernsey",

 152                             ".gh" => "ghana",
 153                             ".gi" => "gibraltar",
 154                             ".gl" => "greenland",
 155                             ".gm" => "gambia",
 156                             ".gn" => "guinea",
 157                             ".gp" => "guadeloupea",
 158                             ".gq" => "equatorial_guinea",
 159                             ".gr" => "greece",
 160                             ".gs" => "south_georgia_and_the_south_sandwich_islands",
 161                             ".gt" => "guatemala",
 162                             ".gu" => "guam",
 163                             ".gw" => "guinea_bissau",
 164                             ".gy" => "guyana",
 165                             ".hk" => "hong_kong",
 166                             ".hm" => "heard_and_mcdonald_islands",
 167                             ".hn" => "honduras",
 168                             ".hr" => "croatia",
 169                             ".ht" => "haiti",
 170                             ".hu" => "hungary",
 171                             ".id" => "indonesia",
 172                             ".ie" => "ireland",
 173                             ".il" => "israel",
 174  #                           ".im" => "Isle of Man",

 175                             ".in" => "india",
 176                             ".io" => "british_indian_ocean_territory",
 177                             ".iq" => "iraq",
 178                             ".ir" => "iran",
 179                             ".is" => "iceland",
 180                             ".it" => "italy",
 181  #                           ".je" => "Jersey",

 182                             ".jm" => "jamaica",
 183                             ".jo" => "jordan",
 184                             ".jp" => "japan",
 185                             ".ke" => "kenya",
 186                             ".kg" => "kyrgyzstan",
 187                             ".kh" => "Cambodia",
 188                             ".ki" => "kiribati",
 189                             ".km" => "comoros",
 190                             ".kn" => "saint_kitts_and_nevis",
 191                             ".kp" => "north_korea",
 192                             ".kr" => "korea",
 193                             ".kw" => "kuwait",
 194                             ".ky" => "cayman_islands",
 195                             ".kz" => "kazakhstan",
 196                             ".la" => "laos",
 197                             ".lb" => "lebanon",
 198                             ".lc" => "saint_lucia",
 199                             ".li" => "liechtenstein",
 200                             ".lk" => "sri_lanka",
 201                             ".lr" => "liberia",
 202                             ".ls" => "lesotho",
 203                             ".lt" => "lithuania",
 204                             ".lu" => "luxembourg",
 205                             ".lv" => "latvia",
 206                             ".ly" => "libya",
 207                             ".ma" => "morocco",
 208                             ".mc" => "monaco",
 209                             ".md" => "moldowa",
 210                             ".mg" => "madagascar",
 211                             ".mh" => "marshall_islands",
 212                             ".mk" => "macedonia",
 213                             ".ml" => "mali",
 214                             ".mm" => "myanmar",
 215                             ".mn" => "mongolia",
 216                             ".mo" => "macau",
 217                             ".mp" => "northern_mariana_islands",
 218                             ".mq" => "martinique",
 219                             ".mr" => "mauritania",
 220                             ".ms" => "montserrat",
 221                             ".mt" => "malta",
 222                             ".mu" => "mauritius",
 223                             ".mv" => "maldives",
 224                             ".mw" => "malawi",
 225                             ".mx" => "mexico",
 226                             ".my" => "malaysia",
 227                             ".mz" => "mozambique",
 228                             ".na" => "namibia",
 229                             ".nc" => "new_caledonia",
 230                             ".ne" => "niger",
 231                             ".nf" => "norfolk_island",
 232                             ".ng" => "nigeria",
 233                             ".ni" => "nicaragua",
 234                             ".nl" => "netherlands",
 235                             ".no" => "norway",
 236                             ".np" => "nepal",
 237                             ".nr" => "nauru",
 238                             ".nu" => "niue",
 239                             ".nz" => "new_zeland",
 240                             ".om" => "oman",
 241                             ".pa" => "panama",
 242                             ".pe" => "peru",
 243                             ".pf" => "french_polynesia",
 244                             ".pg" => "papua_new_guinea",
 245                             ".ph" => "philippines",
 246                             ".pk" => "pakistan",
 247                             ".pl" => "poland",
 248                             ".pm" => "saint_pierre_and_miquelon",
 249                             ".pn" => "pitcairn_island",
 250                             ".pr" => "puerto_rico",
 251                             ".ps" => "palestinian_territory",
 252                             ".pt" => "portugal",
 253                             ".pw" => "palau",
 254                             ".py" => "paraguay",
 255                             ".qa" => "qatar",
 256                             ".re" => "reunion",
 257                             ".ro" => "romania",
 258                             ".ru" => "russia",
 259                             ".rw" => "rwanda",
 260                             ".sa" => "saudi_arabia",
 261                             ".sb" => "solomon_islands",
 262                             ".sc" => "seychelles",
 263                             ".sd" => "sudan",
 264                             ".se" => "sweden",
 265                             ".sg" => "singapore",
 266                             ".sh" => "saint_helena",
 267                             ".si" => "slovenia",
 268                             ".sj" => "svalbard_and_jan_mayen_islands",
 269                             ".sk" => "slovakia",
 270                             ".sl" => "sierra_leone",
 271                             ".sm" => "san_marino",
 272                             ".sn" => "senegal",
 273                             ".so" => "somalia",
 274                             ".sr" => "suriname",
 275                             ".st" => "sao_tome_and_principe",
 276                             ".sv" => "el_salvador",
 277                             ".sy" => "syria",
 278                             ".sz" => "swaziland",
 279                             ".tc" => "turks_and_caicos_islands",
 280                             ".td" => "chad",
 281                             ".tf" => "french_southern_territories",
 282                             ".tg" => "togo",
 283                             ".th" => "thailand",
 284                             ".tj" => "tajikistan",
 285                             ".tk" => "tokelau",
 286  #                           ".tl" => "Timor-Leste",

 287                             ".tm" => "turkmenistan",
 288                             ".tn" => "tunisia",
 289                             ".to" => "tonga",
 290                             ".tp" => "east_timor",
 291                             ".tr" => "turkey",
 292                             ".tt" => "trinidad_and_tobago",
 293                             ".tv" => "tuvalu",
 294                             ".tw" => "taiwan",
 295                             ".tz" => "tanzania",
 296                             ".ua" => "ukraine",
 297                             ".ug" => "uganda",
 298                             ".uk" => "united_kingdom",
 299                             ".um" => "united_states_minor_outlying_islands",
 300                             ".us" => "united_states",
 301                             ".uy" => "uruguay",
 302                             ".uz" => "uzbekistan",
 303                             ".va" => "vatican_city_state",
 304                             ".vc" => "saint_vincent_and_the_grenadines",
 305                             ".ve" => "venezuela",
 306                             ".vg" => "virgin_islands_uk",
 307                             ".vi" => "virgin_islands_us",
 308                             ".Vn" => "vietnam",
 309                             ".vu" => "vanuatu",
 310                             ".wf" => "wallis_and_futuna_islands",
 311                             ".ws" => "samoa",
 312                             ".ye" => "yemen",
 313                             ".yt" => "mayotte",
 314  #                           ".yu" => "Yugoslavia",

 315                             ".za" => "south_africa",
 316                             ".zm" => "zambia",
 317                             ".zw" => "zimbabwe"
 318                           );
 319                        
 320  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]