');
?>
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ECS has a deprecated constructor in /home/wwwroot/www.jyhxj.com.cn/includes/cls_ecshop.php on line 25
ELECT count(*) FROM ' . $GLOBALS['ecs']->table('category') . " WHERE parent_id = '$cat_id' AND is_show = 1 ";
/* 获取当前分类及其子分类 */
$sql = 'SELECT cat_id,cat_name ,parent_id,is_show ' .
'FROM ' . $GLOBALS['ecs']->table('category') .
"WHERE parent_id = '$cat_id' AND is_show = 1 ORDER BY sort_order ASC, cat_id ASC";
$res = $GLOBALS['db']->getAll($sql);
foreach ($res AS $row)
{
if ($row['is_show'])
{
$cat_arr[$row['cat_id']]['id'] = $row['cat_id'];
$cat_arr[$row['cat_id']]['name'] = $row['cat_name'];
$cat_arr[$row['cat_id']]['url'] = build_uri('category', array('cid' => $row['cat_id']), $row['cat_name']);
if (isset($row['cat_id']) != NULL)
{
$cat_arr[$row['cat_id']]['cat_id'] = get_child_tree($row['cat_id']);
}
}
}
if(isset($cat_arr))
{
return $cat_arr;
}
}
/**
* 授权信息内容
*
* @return str
*/
function license_info()
{
if($GLOBALS['_CFG']['licensed'] > 0)
{
/* 获取HOST */
if (isset($_SERVER['HTTP_X_FORWARDED_HOST']))
{
$host = $_SERVER['HTTP_X_FORWARDED_HOST'];
}
elseif (isset($_SERVER['HTTP_HOST']))
{
$host = $_SERVER['HTTP_HOST'];
}
$url_domain=url_domain();
$host = 'http://' . $host .$url_domain ;
$license = ' Licensed';
return $license;
}
else
{
return '';
}
}
function url_domain()
{
$curr = strpos(PHP_SELF, ADMIN_PATH . '/') !== false ?
preg_replace('/(.*)(' . ADMIN_PATH . ')(\/?)(.)*/i', '\1', dirname(PHP_SELF)) :
dirname(PHP_SELF);
$root = str_replace('\\', '/', $curr);
if (substr($root, -1) != '/')
{
$root .= '/';
}
return $root;
}
?>
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/wwwroot/www.jyhxj.com.cn/includes/cls_mysql.php:100
Stack trace:
#0 /home/wwwroot/www.jyhxj.com.cn/includes/cls_mysql.php(241): cls_mysql->connect('localhost', 'Allcpap888888', 'AllCpaP9cN8aPAP', 'Allcpap2008', 'utf8', 0)
#1 /home/wwwroot/www.jyhxj.com.cn/includes/cls_session.php(143): cls_mysql->query('INSERT INTO `Al...')
#2 /home/wwwroot/www.jyhxj.com.cn/includes/cls_session.php(126): cls_session->insert_session()
#3 /home/wwwroot/www.jyhxj.com.cn/includes/cls_session.php(114): cls_session->gen_session_id()
#4 /home/wwwroot/www.jyhxj.com.cn/includes/cls_session.php(43): cls_session->cls_session(Object(cls_mysql), '`Allcpap2008`.`...', '`Allcpap2008`.`...', 'ECS_ID', '')
#5 /home/wwwroot/www.jyhxj.com.cn/includes/init.php(155): cls_session->__construct(Object(cls_mysql), '`Allcpap2008`.`...', '`Allcpap2008`.`...')
#6 /home/wwwroot/www.jyhxj.com.cn/article.php(18): require('/home/wwwroot/w...')
#7 {main}
thrown in /home/wwwroot/www.jyhxj.com.cn/includes/cls_mysql.php on line 100