Information technology

Bootstrap theme update for Innouvo

The last update is 2023/05/04. You can use the bootstrap without changing the Gnuboard source. Use Bootstrap 5.3.0-ALPHA3 version. PHP 8.x 에서 사용 가능합니다. How to install After downloading the theme and installed in the Gnuboard Theme folder. Example)/theme/bootstrap/ Apply bootstrap5 in theme settings. In the default preferences, the recent postskine, search skin, user skin, and FAQ skin are applied to "(theme) Basic". How to use 인덱스 사용; theme 폴더 내 index.php 를 수정하셔도 되지만, /main.php 파일을...

Using threads in Delphi

It's easy to use threads in Delphi. Synchronize is good :-)   Function Contents uses System.Classes, System.SysUtils, Vcl.Forms; procedure Wait(Proc: TProc); var Thread: TThread; 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 // .... Contents end);

Getting your current location (PHP)

The location is obtained through the geolocation function. If the browser does not support the related authority and the browser does not support it, the location is obtained via the API provided by Naver. Receive Naver's API key before using it (https://www.ncloud.com/product/applicationService/geoLocation) <? function makeSignature($secretKey, $method, $baseString, $timestamp, $accessKey) { $space = ' '; $newLine = "\n"; $hmac = $method.$space.$baseString.$newLine.$timestamp.$newLine.$accessKey; $signautue = base64_encode(hash_hmac('sha256', $hmac, $secretKey,true)); return $signautue; } if($_POST['order'] == 'geolocation') { $hostNameUrl = 'https://geolocation.apigw.ntruss.com'; $requestUrl= '/geolocation/v2/geoLocation'; $accessKey...

Go Language Installations - Windows

1. Download and install from https://golang.org/dl/ 2. Create a working folder (eg d: \ source \ Go) 3. Create bin, pkg, src folder in child 4. In the Windows Control Panel - & gt; System - & gt; Advanced System Settings - & gt; Environment variable 5. In the user variable group, enter the working folder in GOPATH 6. Enter GOPATH in the variable name 7. Enter the working folder in the variable value (for example, d: \ source \ Go) 8....

Getting the connection IP from AWS (PHP)

If you use Amazon server and get server IP, private IP will be output. So I made it to save the authorized IP. <? 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 Danger Code Detection Plugin

It is a plugin that makes it easy to find a backdoor (PHP) that has been installed for server hacking. A function that can be exploited by PHP finds the file used and notifies you by mail.   You can easily install and use it in WordPress, Pinball 5.   The first time you activate it, it will be checked as a whole, and if suspicious files are found every hour, you will be notified by admin mail.   How to use Download the plug-in for your solution. The file downloaded to the folder below ...

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) = WAIT_OBJECT_0 then TThread.Synchronize(TThread.CurrentThread, procedure begin Proc end); end; end; end; Reg.Free; end).Start; end; // Proc: command input // WatchSub: Subsido Monitoring ...

Installing and using stemming (PHP)

Installation environment: Centos7 default, PHP7 yum install gcc-c++ java-1.7.0-openjdk-devel python-devel zlib-devel openssl openssl-devel git -y wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz tar xf Python-3.* cd Python-3.* ./configure make make altinstall pip3.6 install JPype1-py3 pip3.6 install konlpy cd .. wget https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.2.tar.gz tar zxfv mecab-0.996-ko-0.9.2.tar.gz cd mecab-0.996-ko-0.9.2 ./configure make make install cd .. wget https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.0.1-20150920.tar.gz tar zxfv mecab-ko-dic-2.0.1-20150920.tar.gz cd mecab-ko-dic-2.0.1-20150920 ./autogen.sh ./configure make make install cd /usr/local/src/ git clone https://github.com/rsky/php-mecab.git cd /usr/local/src/php-mecab/mecab phpize ./configure --with-php-config=/usr/bin/php-config --with-mecab=/usr/local/bin/mecab-config make make test make install echo "extension = mecab.so" > /etc/php.d/mecab.ini systemctl restart httpd.service PHP...

Web (PHP) Hacking, Risk Code Checker

It was created to monitor the installation of malicious PHP through server hacking and to make it easy to check for dangerous code. Write the code in the server account and upload it. Click the Download button below to download the monitoring program. Run the downloaded program and enter the URL created in (1) in URL (s). If you click Diagnose, the name of the suspicious file will be shown below. Not usually ...

SSHScript - linux (web hosting) make backups easy

How to use Run the program. After clicking the File button, fill out the following contents and save. (Repeat for multiple accounts.) Press the RUN button to execute. Download Download (Kilhonet) Think After being hurt by one person who used Nayana web hosting, I made it by feeling the importance of backup.