Merge pull request #1382 from YJSoft-Sec/NO2php4

#1370 불필요한 PHP4용 코드 삭제
This commit is contained in:
bnu 2015-04-13 12:23:06 +09:00
commit 9cb7cfa701
2 changed files with 1 additions and 13 deletions

View file

@ -314,11 +314,6 @@ class DB
{
$db_type = $supported_list[$i];
if(version_compare(phpversion(), '5.0') < 0 && preg_match('/pdo/i', $db_type))
{
continue;
}
$class_name = sprintf("DB%s%s", strtoupper(substr($db_type, 0, 1)), strtolower(substr($db_type, 1)));
$class_file = sprintf(_XE_PATH_ . "classes/db/%s.class.php", $class_name);
if(!file_exists($class_file))

View file

@ -1,14 +1,7 @@
<?php
/* Copyright (C) NAVER <http://www.navercorp.com> */
if(version_compare(PHP_VERSION, '5.0.0', '>='))
{
require_once _XE_PATH_ . "libs/phpmailer/phpmailer.php";
}
else
{
require_once _XE_PATH_ . "libs/phpmailer/class.phpmailer.php";
}
require_once _XE_PATH_ . "libs/phpmailer/phpmailer.php";
/**
* Mailing class for XpressEngine