<?php
//Database 정보
define('DATABASE_DRIVER', $_ENV['DATABASE_DRIVER'] ?? $_SERVER['DATABASE_DRIVER'] ?? 'mysql');
define('DATABASE_HOST', $_ENV['DATABASE_HOST'] ?? $_SERVER['DATABASE_HOST'] ?? 'localhost');
define('DATABASE_DB', $_ENV['DATABASE_DB'] ?? $_SERVER['DATABASE_DB'] ?? 'test');
define('DATABASE_CHARSET', $_ENV['DATABASE_CHARSET'] ?? $_SERVER['DATABASE_CHARSET'] ?? 'utf8');
define('DATABASE_ID', $_ENV['DATABASE_ID'] ?? $_SERVER['DATABASE_ID'] ?? 'test');
define('DATABASE_PASSWORD', $_ENV['DATABASE_PASSWORD'] ?? $_SERVER['DATABASE_PASSWORD'] ?? 'test');
define('DATABASE_QUERY_DEBUG', $_ENV['DATABASE_QUERY_DEBUG'] ?? $_SERVER['DATABASE_QUERY_DEBUG'] ?? false);

//List관련
define('VIEW_LIST_PERPAGE', $_ENV['VIEW_LIST_PERPAGE'] ?? $_SERVER['VIEW_LIST_PERPAGE'] ?? 20);
define('VIEW_LIST_PAGINATION_GROUPSIZE', $_ENV['VIEW_LIST_PAGINATION_GROUPSIZE'] ?? $_SERVER['VIEW_LIST_PAGINATION_GROUPSIZE'] ?? 10);

//DBMS Site정보
define('DBMS_SITE_DASHBOARD_DAY', $_ENV['DBMS_SITE_DASHBOARD_DAY'] ?? $_SERVER['DBMS_SITE_DASHBOARD_DAY'] ?? 7);
define('DBMS_SITE_HOST', $_ENV['DBMS_SITE_HOST'] ?? $_SERVER['DBMS_SITE_HOST'] ?? "http://dbms.prime-idc.jp");
define('DBMS_SITE_JAVA_PORT', $_ENV['DBMS_SITE_JAVA_PORT'] ?? $_SERVER['DBMS_SITE_JAVA_PORT'] ?? 6752);
define('DBMS_SITE_URL', DBMS_SITE_HOST . ":" . DBMS_SITE_JAVA_PORT);
define('DBMS_SITEINFOS', [
  'dbms.prime-idc.jp' => [
    "id" => "PRIMEIDC",
    "domain" => "dbms.prime-idc.jp",
    "name" => "PrimeIDC",
    "email" => "primeidc.jp@gmail.com",
    "totalcount_types" => ["normal", "defence", "solo", "substitution", "test"],
    "totalcount_customers" => [
      "idcjp" => "Client_Code NOT IN ('C116','C012','C636')",
      "winidc" => "Client_Code='C116'",
      "gamewing" => "Client_Code='C012'",
      "GDIDC" => "Client_Code='C636'",
    ],
    "banks" => [
      ["id" => "331301-04-217387", "name" => '국민은행', "owner" => "주)듀나미스"]
    ]
  ],
  'dbms.itsolution-idc.jp' => [
    "id"     => "ITSOLUTION",
    "domain" => "dbms.itsolution-idc.jp",
    "name"   => "Itsolution",
    "email"  => "support@itsoution-idc.jp",
    "totalcount_types" => ["normal", "defence", "solo", "substitution", "test"],
    "totalcount_customers" => [
      "winidc" => "Client_Code NOT IN ('C237')",
      "bosch" => "Client_Code='C237'",
    ],
    "banks"  => [
      ["id" => "9002-1932-1654-1", "name" => '새마을금고', "owner" => "주식회사 르호봇"],
      ["id" => "351-0995-6751-73", "name" => '농협', "owner" => "주식회사 르호봇"],
    ],
  ],
  'dbms.gdidc.jp' =>  [
    "id" => "GDIDC",
    "domain" => "dbms.gdidc.jp",
    "name" => "GDIDC",
    "email" => "support@gdidc.jp",
    "totalcount_types" => ["normal", "defence", "solo", "substitution", "test"],
    "totalcount_customers" => [
      "gdidc" => "",
    ],
    "banks" => [
      ["id" => "1005-204-100758", "name" => '우리은행', "owner" => " (주)브엘라해로이"],
    ],
  ]
]);
define('DBMS_SERVICE_SWITCHCODE', [
  'Chiba' => ['begin' => 'C00%', 'end' => 'C64%'],
  'Tokyo' => ['begin' => 'C80%', 'end' => 'C99%']
]);
define('DBMS_SERVICE_LINE', [
  'normal' => '일반',
  'defence' => '방어',
  'solo' => '전용',
  'substitution' => '대체',
  'test' => '테스트',
  'vpn' => 'VPN',
  'event' => '이벤트',
]);
define('DBMS_GEARLIST_PROCESS_TYPES', [
  '',
  'COLOCATION',
  'XEON Single',
  'CUSTOM',
  'INS-일회성',
  'NEHALEM',
  'Cisco Router',
]);
define('DBMS_GEARLIST_CPU_TYPES', [
  '',
  'X6-Q',
  'C2800',
  'C2600',
  'COL',
  'CUS',
  'NX227',
  'NX20',
  'NX21',
  'DQ28',
  'DQ26',
  'DQ31',
  'DQ18',
  'DQ23',
  'DQ20',
  'DX34',
  'DX38',
  'DX28',
  'DX32',
  'DX36',
  'DX30',
  'MD32',
  'MD30',
  'Q16R',
  'Q316',
  'Q310',
  'Q283',
  'Q266',
  'Q25R',
  'Q213',
  'Q20R',
  'Q186',
  'Q24',
  'Q20',
  'Q240',
  'DX3',
  'DQ233'
]);
