<?php
if (!defined('PATH_CODEGEN')) define('PATH_CODEGEN', "/usr/local/sbin/codegen");
if (!defined('_LEASE_VALID_DAYS_')) define("_LEASE_VALID_DAYS_", 60);
if (!defined('CRMADATBAZIS')) define('CRMADATBAZIS', "cl_hlusers");
if (!defined('JMLADATBAZIS')) define('JMLADATBAZIS', "www_archline_hu");
if (!defined('SYNCADATBAZIS')) define('SYNCADATBAZIS', "sync_crm");
if (!defined('_COURSE_PRICE_PRELIMINARY_')) define("_COURSE_PRICE_PRELIMINARY_", 342);
if (!defined('_COURSE_PRICE_INTERMEDIATE_')) define("_COURSE_PRICE_INTERMEDIATE_", 343);
if (!defined('_MANAGER_')) define("_MANAGER_", 36);
if (!defined('ACT_VERSION_ID')) define('ACT_VERSION_ID', 1182);

$crm_config = "true";

class Status
{
    const sNormal                                       = 0; // Semmilyen kiveteles esemeny nem erzekelheto, a program rendben fut
    const sInconsistent                                 = 2; // A backup key file-ok elterest mutatnak a fo key file-al
    const sReenabled                                    = 4; // Egy letiltott program most kapta meg a reaktivalo kodot
    const sDisabled                                     = 8; // A program le lett tiltva
    const sLimited                                      = 16; // A program korlatozott modban fut
    const sUnlimited                                    = 32; // A vedelem lekapcsolt, a program nem korlatozza a tovabbi mukodest
    const sTimeBack                                     = 64; // Oravisszaallitast erzekelt
    const sTimeBackRestored                             = 128; // Kapott visszaallitas kiiktato kodot
    const sFixTimeLimitReached                          = 256; // Elerte a beallitott vegleges lejarati idot
    const sKilled                                       = 512; // A program le lett allitva
    const sCracked                                      = 1024; // A program fel van torve
    const sActiveRegistration                           = 2048; // A regisztraciorol kaptunk pozitiv visszajelzest
    const sTimeCodeAppliedToFile                        = 4096; // Az idokod letarolasra kerult
    const sTimeCodeErrorReceived                        = 8192; // Idokod helyett hibat kapott
    const sNotCommercialProgram                         = 16384; // A program nem kereskedelmi valtozat
    const sHW_keyOK                                     = 32768; // A program hardware kulcsa rendben van
    const sHW_keyLanForSingle                           = 65536; // A hardware kulcs lan-s es ezt hasznalna a program
    const sHW_DriverVerinfoNotAvaliable                 = 131072; // Sentinel: Driver version info not avalaiable
    const sHW_NotOurKey                                 = 262144; // Sentinel: not our key
    const sHW_TerminalServerEnableFailed                = 524288; // Sentinel: enable running on terminal server failed
    const sHW_KeyNotFound                               = 1048576; // Sentinel: key not found
    const sHW_AESNotEnabled                             = 2097152; // Sentinel: AES not enabled
    const sHW_SecTunNotEnabled                          = 4194304; // Sentinel: secure tunnel not enabled
    const sHW_NoKeyInfo                                 = 8388608; // Sentinel: unable to access key info
    const sHW_CannotContact                             = 16777216; // Sentinel: cannot contact to server
    const sHW_InitFailed                                = 33554432; // Sentinel: key initialization failed
    const sHW_FormatPacket                              = 67108864; // Sentinel: format packet error
    const sHW_LanServerNotFound                         = 134217728; // Sentinel: lan server not found
    const sHW_keyKeySerialNotMatchingWithLicenseSerial  = 268435456; // A hardwarekulcs sorozatszama nem passzol a licenc sorozatszamahoz
    const sHW_LanServerKeyNotFound                      = 536870912; // A halozatos szerver program nem latja a kulcsot
    const sHW_LanServerNotEnoughLicence                 = 1073741824; // A halozatos szerver szabad licencei elfogytak
    const sHW_LicenceRemoved                            = 2147483648; // A licenc el lett tavolitva
    const sFloatingLicenseToAnotherComputer             = 4294967296; // A floating licence egy masik gephez lett rogzitve
    const sFloatingLicensePINError                      = 8589934592; // A floating license nem kapta meg a pin kodjat
    const sFloatingAnotherLicenseIsOnThisComputer       = 17179869184; // Ehhez a gephez egy masik licensz van rogzitve
}

class CRM_Error
{
    const serverDownEng = '1121 - The server is currently not available. Please retry the connection later. If the problem persists, contact customer support.';
    const serverDownHun = '1121 - A szerver jelenleg nem elérhető. Kérjük, próbálja újra a kapcsolatot később. Ha a probléma továbbra is fennáll, lépjen kapcsolatba a terméktámogatással.';
}

class Floating_Error
{
    const UNKNOWN = 0;
    const DIFFERENT_LICENSE_ON_THE_SAME_COMPUTER = 1;
    const LIMIT_REACHED = 2;
}

class Time
{
    const sMin          = 1;
    const sFiveMin      = 5;
    const sFifteenMin   = 15;
    const sHour         = 60;
    const sThreeHour    = 180;
    const sSixHour      = 360;
    const sTwelveHour   = 720;
    const sDay          = 1440;
}

class Hour
{
    const sHour         = 1;
    const sThreeHour    = 3;
    const sSixHour      = 6;
    const sTwelveHour   = 12;
}

class _Country
{
    const Hungary = 36;
}

class _UserType
{
    const Nonprofit = 2;
}

class _UserStatus
{
    const StudentProbBuyer = 7;
}

class _Profession
{
    const StudentIntDesinger = 11;
}

class _Manager
{
    const Web = 36;
}

class _Product
{
    const Professional  = 1;
    const Live          = 2;
}

class _Hardlock
{
    const Blank     = 0;
    const Active    = 1;
    const Inactive  = 2;
}

class _Program
{
    const CurrentVersion    = 20;
    const PrevVersion       = 19;
    const ProfType          = 8;
    const LiveType          = 76;
    const Active            = 0;
    const Inactive          = 1;
    const Nonprofit         = 5;
}
