네이버 신디케이션 syndi_echo.php 오류 수정
This commit is contained in:
@ -15,15 +15,15 @@
|
|||||||
|
|
||||||
|
|
||||||
// include gnuboard config & lib
|
// include gnuboard config & lib
|
||||||
include '../config.php';
|
include G4_PATH.'/config.php';
|
||||||
include '../'.G4_LIB_DIR.'/common.lib.php';
|
//include G4_LIB_PATH.'/common.lib.php';
|
||||||
include '../'.G4_DATA_DIR.'/dbconfig.php';
|
include G4_DATA_PATH.'/dbconfig.php';
|
||||||
|
|
||||||
$connect_db = sql_connect($mysql_host, $mysql_user, $mysql_password);
|
$connect_db = sql_connect(G4_MYSQL_HOST, G4_MYSQL_USER, G4_MYSQL_PASSWORD);
|
||||||
if(!$connect_db) return;
|
if(!$connect_db) return;
|
||||||
$GLOBALS['connect_db'] = $connect_db;
|
$GLOBALS['connect_db'] = $connect_db;
|
||||||
|
|
||||||
sql_select_db($mysql_db, $connect_db);
|
sql_select_db(G4_MYSQL_DB, $connect_db);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,12 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
include_once('./_common.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file syndi_echo.php
|
* @file syndi_echo.php
|
||||||
* @author sol (ngleader@gmail.com)
|
* @author sol (ngleader@gmail.com)
|
||||||
* @brief Print Syndication Data XML
|
* @brief Print Syndication Data XML
|
||||||
*/
|
*/
|
||||||
|
|
||||||
header("Content-Type: text/html; charset=UTF-8");
|
header('Content-Type: text/html; charset=UTF-8');
|
||||||
header("Pragma: no-cache");
|
header('Pragma: no-cache');
|
||||||
|
|
||||||
if(version_compare(PHP_VERSION, '5.3.0') >= 0)
|
if(version_compare(PHP_VERSION, '5.3.0') >= 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user