View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-26-2019 , 22:54   Re: [ANY] Timezone API
Reply With Quote #2

Excellent work!!! Thanks!

Edits for tz_api.inc if somebody wants to use external MySQL connection:
PHP Code:
public void ConnectDB()
{
    if (
SQL_CheckConfig("tzdb"))
    {
        
Database.Connect(SQL_Callback_Connect"tzdb");
    }
    else
        
LogError("Database.cfg missing 'tzdb' entry!");
}

public 
void SQL_Callback_Connect (Database dbase, const char[] errorany data)
{
    if (!
dbase)
    {
        
LogError("Failed to connect to database: %s"error);
        return;
    }
    
db dbase;
    
db.SetCharset("utf8");

__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 11-26-2019 at 22:54.
Dragokas is offline