コード例 #1
0
ファイル: config.php プロジェクト: hieunhan1/all-website3
<?php

$error_sql = "Lỗi kết nối";
define('does_not_exist', 'Mục này không tồn tại.');
include_once 'class/class.trangchu.php';
$tc = new trangchu();
$config = $tc->config() or die($error_sql);
$row_config = mysql_fetch_array($config);
mysql_free_result($config);
$domain = $row_config['domain'];
$lang = $row_config['lang'];
define('max_news', $row_config['max_news']);
define('max_product', $row_config['max_product']);
define('max_product_home', $row_config['max_picture']);
define('url_slider_image', 'public/images/slider_banner/');
define('url_no_image', 'public/no-image.jpg');
define('url_default_image', 'images/logo.png');
define('url_danhmuc_image', 'public/images/catalog/');
define('url_detail_thumb_image', 'public/_thumbs/Images/articles/');
define('url_product_thumb_image', 'public/images/articles/');
コード例 #2
0
ファイル: config.php プロジェクト: hieunhan1/all-website3
<?php

$error_sql = "Lỗi kết nối";
define(does_not_exist, 'Mục này không tồn tại.');
include_once 'class/class.trangchu.php';
$tc = new trangchu();
$config = $tc->config($lang) or die($error_sql);
$row_config = mysql_fetch_array($config);
mysql_free_result($config);
$domain = $row_config['domain'];
$lang = $row_config['lang'];
define(max_limit_1, $row_config['max_limit_1']);
define(max_limit_2, $row_config['max_limit_2']);
define(max_limit_3, $row_config['max_limit_3']);
define(max_limit_4, $row_config['max_limit_4']);
define(url_no_image, 'images/no-image.jpg');
define(url_default_image, 'images/img_default.gif');
define(url_catalog_image, 'public/images/catalog/');
define(url_detail_image, 'public/images/articles/');
define(url_detail_image_thumb, 'public/_thumbs/Images/articles/');
define(url_product_image, 'public/images/products/');
define(url_product_image_thumb, 'public/_thumbs/Images/products/');
define(url_slider_image, 'public/images/slider/');