정보기술

Gnu Board Theme 0.9.7 Update

We have updated the Bootstrap theme for Gnu Board (0.9.7). You can use Bootstrap without changing the Gnu Board source. Installation Method Download the theme and install it in the Gnu Board theme folder.Ex) /theme/bootstrap/ In the theme settings, apply Bootstrap 5. In the basic settings, apply the most recent post skin, search skin, visitor...

Using Threads in Delphi

This is an easy way to work with threads in Delphi. Just make sure to use synchronize properly 🙂 Function Details uses System.Classes, System.SysUtils, Vcl.Forms; procedure Wait(Proc: TProc); begin Thread := TThread.CreateAnonymousThread(procedure() begin Proc; end); Thread.FreeOnTerminate := True; Thread.Start; while not Thread.Finished do Application.ProcessMessages; end; How to Use Wait(procedure() begin // .... content end);

Finding Current Location (PHP)

We can determine the location using the geolocation function. If there are relevant permissions issues or if the browser is not supported, we can use the API provided by Naver to obtain the location via IP address. Before using it, please get your Naver API key at the following address.(https://www.ncloud.com/product/applicationService/geoLocation) <? function makeSignature($secretKey, $method, $baseString,...

Installing Go Language - Windows

1. Download and install from https://golang.org/dl/ 2. Create a working folder (e.g., d:\source\Go) 3. Create subfolders: bin, pkg, src 4. Windows Control Panel -> System -> Advanced system settings -> Environment Variables 5. In the User variables section, enter the working folder for GOPATH 6. Set the variable name as GOPATH 7. Set the variable...

Getting Public IP Address from AWS (PHP)

When using Amazon servers, the server IP displayed is typically a private IP. So, I created this script to fetch the public IP address. <? if(in_array(substr($_SERVER['SERVER_ADDR'], 0, 3), array('172'))) if(strrpos(gethostname(), '.compute.internal')!==false) $_SERVER['SERVER_ADDR'] = file_get_contents('http://169.254.169.254/latest/meta-data/public-ipv4'); echo $_SERVER['SERVER_ADDR']; ?>

Web Hacking: Backdoor Risk Code Detection Plugin

This plugin is designed to easily find backdoors (PHP) secretly installed for server hacking. It locates files that use functions susceptible to misuse in PHP and notifies you via email.   You can easily install and use it on WordPress and GnuBoard 5.   Upon initial activation, it scans your system thoroughly, and if suspicious...

Registry Monitoring (Delphi)

How to Use procedure RegistryMonitor(RootKey: HKEY; Key: string; Proc: TProc; WatchSub: boolean); begin TThread.CreateAnonymousThread(procedure var Reg: TRegistry; Event: cardinal; begin Reg := TRegistry.Create; Reg.RootKey := RootKey; if Reg.OpenKeyReadOnly(Key) then begin Event := CreateEvent(nil, False, False, nil); if Event > 0 then begin while True do begin RegNotifyChangeKeyValue(Reg.CurrentKey, WatchSub, REG_NOTIFY_CHANGE_LAST_SET, Event, True); if WaitForSingleObject(Event, INFINITE) =...