1 Star 0 Fork 42

javaalpha/JAreaSelect-js省市区级联选择插件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
assets
database
images
php
make.php
make_bank.php
mysql_class.php
mysql_config_class.php
page_class.php
src
.gitignore
README.md
area_edit.php
area_manager.php
index.html
spider.php
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mysql_config_class.php 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
/**
* the configuration message for mysql database server
* @access yangjian
* @version 1.0
*/
if ( !defined('DEFAULT_CACHE_DIR') ) {
define('DEFAULT_CACHE_DIR',dirname(__FILE__).DIRECTORY_SEPARATOR.'my_cache');
}
class mysqli_config {
/**
* TRUE for try pconnect
*/
public static $pconnect = FALSE;
/**
* the host of the mysql server
*/
public static $db_host = 'localhost';
/**
* the username for mysql server
*/
public static $db_user = 'root';
/**
* the password of the username
*/
public static $db_pass = '123456';
/**
* the database name
*/
public static $db_data = 'area';
/**
* the charset
*/
public static $charset = 'utf8';
/**
* default directory of cache file (缓存的默认地址)
*/
public static $default_cache_dir = DEFAULT_CACHE_DIR;
/**
* set cache timeout(设置缓存时间:默认为2个小时)
*/
public static $cache_timeout = 10;
/**
* identifier of sql(sql语句的标志符号,含有@表示是getOneRow()方法的sql语句)
*/
public static $sql_id = '@';
}
/**
* 终端高亮打印绿色
* @param $message
*/
function println( $message ) {
printf("\033[32m\033[1m{$message}\033[0m\n");
}
// 获取毫秒时间
function timer() {
list($msec, $sec) = explode(' ', microtime());
return ((float)$msec + (float)$sec);
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/javaalpha/JAreaSelect.git
git@gitee.com:javaalpha/JAreaSelect.git
javaalpha
JAreaSelect
JAreaSelect-js省市区级联选择插件
master

搜索帮助