주절주절

Gnuboard linked completion

Based on the WordPress member DB, it was linked with Gnuboard to make it possible to write when logging in from BBS. Sharing cookies with sub domain Save the source below as "WP-SSO.PHP" on the server where the WordPress is installed.[PHP][/PHP]If there is no gnuboard session value and WordPress cookie value, module 2 is processed on the server to implement SSO (SINGLE SIGN ON) function If you have a gnuboard session value and the WordPress cookie value, you can empty the session and gangcy the page Nuboard ...

HTTP access information record

When using OpenAPI, it is to check whether the test and access information is properly Messos value, host, POST value when connecting[PHP] <? $log = $_SERVER['REQUEST_METHOD'].' '.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."nn"; foreach($_SERVER as $k => $v) { if($k=='HTTP_HOST') continue; if(substr($k, 0,5)!='HTTP_') continue; $log .= '$k: $v'."n"; } $log .= "n"; $post = array_map('urldecode', explode('&', file_get_contents('php://input'))); foreach($post as $v) { $log .= "$vn"; } $log .= "-----------------------------------n"; file_put_contents('log.txt', $log, FILE_APPEND | LOCK_EX); ?> [/PHP]

Bring jQuery from Google

Because of the traffic, the images and flash files were moved to another server and connected. JQuery finds the following source while surfing and connects to Google Modified File: Theme/Functions.php[PHP] //Making jQuery Google API function modify_jquery() { if (!is_admin()) { // comment out the next two lines to load the local copy of jQuery ...

Simple CDN service module made with PHP

I used Cloudflare to reduce the traffic load, but the connection location was LAX (Los Angeles), so I made it to be used to use it as a CDN form. The server is located in VULTR. The principle is that kilho.net/ {file} is connected to cdn.kilho.net/ {file} to disperse the traffic of the main hosting.[PHP] <? $cfg['url'] = 'kilho.net'; $cfg['cache'] = '../data/cache'; $url = $_SERVER['REQUEST_SCHEME'].'://'.$cfg['url'].$_SERVER['REQUEST_URI']; $url_arr = parse_url($url); switch($_SERVER['REQUEST_METHOD']) { case 'GET': $filename = $cfg['cache'].$url_arr['path']; $dirname = dirname($filename); if(!is_file($filename)) { if(!is_dir($dirname)) mkdir($dirname, 0707, true); $ch = curl_init(); $fp =...

WordPress, Gnu Board linkage

It is currently linked to WordPress and Gnuboard in Kilhonet. After stabilizing the site more, I tried to release the sauce, and I uploaded something made by the request of Gnuboard users. (http://sir.co.kr/bbs/board.php?bo_table=cm_free&wr_id=741180) In the future, I think that the pages generated from the WordPress are directly loaded from the Head.php and Tail.php of the Head.php, and the cash processing and content areas are divided up and down and output. Based on the WordPress member DB, it is linked to Gnuboard, when writing BBS posts ...

Modify the WordPress theme

It is a method of modifying the file that is backed up (represented by a child theme) without touching the original when modifying the WordPress theme. To easily check the children theme used, create a new folder in the "WP-Content/Theme" folder by combining the theme name. Copy the "Style.css" of the original theme to the child theme folder and "Theme Name", "Themplate" as below ...