⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phpshop.cfg

📁 php做的网上商店系统。简单易懂
💻 CFG
字号:
<?php 

$global_vars = array(		       

# LANGUAGE Directive
# ------------------ 
# Designates the default language for this site.  Each module has
# its own language file definitions specified by the given code.
# phpShop is currently distributed with English and Spanish by
# default.  Either eng or esl.		       

"LANGUAGE"		=>	"eng",

# URL Directive
# -------------
# Designates the URL of the phpShop site.  This URL
# should point to the location of the index.php3 file.

"URL"			=>	"http://192.168.0.18/phpshop/",

# SECUREURL Directive
# -------------------
# Designates the URL of the secure server for the phpShop site.  This URL
# should point to the location of the index.php3 file.  Note, if no
# secure server is available, this should be set to the same value
# as the URL directive.

"SECUREURL"		=>	"http://192.168.0.18/phpshop/",

# Location directives
# -------------------
# These directives designate some default directories which are based
# on the $base_dir variable set in the index.php3 file.  These should 
# not be edited!

"DOCROOT"		=>	$base_dir,
"LIBROOT"		=>	$base_dir."lib/",
"MODROOT"		=>	$base_dir."modules/",

# WEBROOT Directive
# -----------------
# Designates the path to the index.php3 on the web server.

"WEBROOT"		=>      "d:/apache/htdocs",

# Database Directives
# -------------------
# Used to specify the settings necessary to connect to the phpShop
# database.  Currently supports mySQL using the included etc/ps_local.inc
# file.  Future database configurations will be available soon.
        

"DB_HOST"		=>	"localhost",
"DB_NAME"		=>	"phpshop",
"DB_USER"		=>	"root",
"DB_PWD"		=>	"",


# Session Directives for PHP3
# ---------------------------
# Used to specify settings for session management under php3.  
# - SESSION_EXPIRE sets the number of minutes that the session will last
#   when used in cookie mode.
# - SESSION_MODE sets the mode of session propogation.  Either "get" or 
#   "cookie".  "get" mode propgates the session via the GET or POST
#   variables.  "cookie" mode propogates the session by setting a
#   cookie on the users machine.  If cookie mode is unsuccessful, get mode
#   is automatically set.
# - SESSION_DOMAIN sets the domain for the cookie.  Leave blank as default.
# - SESSION_HISTORY sets the number of minutes of history to leave in the
#   session database during session cleanup.

"SESSION_EXPIRE"	=>	"0",
"SESSION_MODE"		=>	"cookie",  # cookie or get
"SESSION_DOMAIN"	=>	"",	   # Leave blank unless YKWYRD
"SESSION_HISTORY"	=>	"1440",	   # sessions in database (minutes)

# HOMEPAGE Directive
# ------------------
# Sets the page to load by default when the URL is referenced with
# no page arguments.  Effectively the home page of phpShop.

"HOMEPAGE"		=>	"shop/index",

# LOGINPAGE Directive
# -------------------
# Sets the page to load when a login is required or requested.

"LOGINPAGE"		=>	"shop/login",

# FLYPAGE Directive
# -----------------
# Sets the default flypage to use for all products if a flypage is not set 
# in the product category.

"FLYPAGE"		=>	"shop/flypage",

# ERRORPAGE Directive
# -------------------
# Sets the page to load when an error occurs.

"ERRORPAGE"		=>	"msgs/error",

# DEBUGPAGE Directive
# -------------------
# Sets the page to load when the DEBUG directive is set.  This page is loaded
# at the end of every page viewed. 
        
"DEBUGPAGE"		=>	"msgs/debug",

# NO_IMAGE Directive
# ------------------
# Sets the image to load if no image is present for a product.

"NO_IMAGE"		=>	"/phpshop/ps_image/noimage.gif",

# Search Directives
# -----------------
# Sets some values for all list or search result pages.
# - SEARCH_ROWS sets the number of rows to show in the list or search
#   result pages.
# - SEARCH_COLOR_1 and SEARCH_COLOR_2 set the colors for each subsequest row
#   in a list or search result page.

"SEARCH_ROWS"		=>	"20",
"SEARCH_COLOR_1"	=>	"#f9f9f9",
"SEARCH_COLOR_2"	=>	"#f0f0f0",

# MAX_ROWS Directive
# ------------------
# Sets the number of rows to show in the order list select box.

"MAX_ROWS"		=>	"5",

# DEBUG Directive
# ---------------
# Turns on the debug output.  This causes the DEBUGPAGE to be displayed
# at the bottom of each page.  Very helpful during shop development since
# it shows the carts contents, form field values, etc.

"DEBUG"			=>	"0",

# SHOWVERSION Directive
# ---------------------
# Sets the version in order to show the phpShop version information on
# each page.  This is meant to be used for demonstration purposes and
# not for normal use.  Usually not set.
        
"SHOWVERSION"		=>  	"0",

# CHECK_STOCK Directive
# ---------------------
# Sets whether to check the stock level when a user adds an item
# to the shopping cart.  If set, this will not allow user to add
# more items to the cart than are available in stock.

"CHECK_STOCK"		=>	"0",
					
# ENCODE_KEY Directive
# ---------------------
# Used to encrypt data stored in database with this key.  This means that this file
# should be protected from viewing at all times.

"ENCODE_KEY"		=>	"phpShopIsCool",


# CYBERCASH Directives
# ---------------------
# Used to set Cybercash variables so that Cybercash can be used with phpShop.  
# CC_MERCHANT is the CyberCash Merchant ID
# CC_MERCHANT_KEY is the Merchant Provided by CyberCash
# CC_PAYMENT_URL is the URL provided by Cybercash for secure payment
# CC_AUTH_TYPE is the Cybercash authentication type provided by Cybercase
"CC_ENABLE"		=>	"0",
"CC_MERCHANT"		=>	"phpshop",
"CC_MERCHANT_KEY"	=>	"00000000000000000000000000",
"CC_PAYMENT_URL"	=>	"https://192.168.0.18/phpshop/",
"CC_AUTH_TYPE"		=>	"mauthonly",

# InterShipper Directives
# -----------------------
"IS_ENABLE"   		=>      "0",
"IS_PASSWORD" 		=>      "<qaz123>",
"IS_EMAIL"    		=>      "<ycdx@netease.com>",



# Do not edit beyond this point
"ENDPOINT"		=> 	""
);

// Globalize everything for later use
while (list($key, $value) = each($global_vars)) {
  define($key, $value);
}

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -