네이버 신디케이션 syndi_echo.php 오류 수정

This commit is contained in:
whitedot
2013-04-09 09:42:56 +09:00
parent 821f95d84b
commit b87609c1b4
2 changed files with 9 additions and 7 deletions

View File

@ -15,15 +15,15 @@
// include gnuboard config & lib
include '../config.php';
include '../'.G4_LIB_DIR.'/common.lib.php';
include '../'.G4_DATA_DIR.'/dbconfig.php';
include G4_PATH.'/config.php';
//include G4_LIB_PATH.'/common.lib.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;
$GLOBALS['connect_db'] = $connect_db;
sql_select_db($mysql_db, $connect_db);
sql_select_db(G4_MYSQL_DB, $connect_db);
/**

View File

@ -1,12 +1,14 @@
<?php
include_once('./_common.php');
/**
* @file syndi_echo.php
* @author sol (ngleader@gmail.com)
* @brief Print Syndication Data XML
*/
header("Content-Type: text/html; charset=UTF-8");
header("Pragma: no-cache");
header('Content-Type: text/html; charset=UTF-8');
header('Pragma: no-cache');
if(version_compare(PHP_VERSION, '5.3.0') >= 0)
{