-
大小: 126KB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2021-01-03
- 標簽: php大轉(zhuǎn)盤??
資源簡介
此代碼為做項目過程中,寫的例子,實際應(yīng)用到項目中,只需加入自己的業(yè)務(wù)流程,以及中獎記錄。即可。
ReadMe結(jié)構(gòu)說明:
index.php 抽獎前臺視圖
data.php 抽獎處理
lottery_list.php 抽獎程序后臺列表
lottery_set.php 獎項設(shè)置頁面
conn.php 數(shù)據(jù)庫配置信息(常用自定義函數(shù)庫)
lottery.sql 數(shù)據(jù)庫文件 mysql5.5版本
代碼片段和文件信息
@session_start();
ob_start();
//error_reporting(0);
set_time_limit(0);
$lg_charset=“utf-8“;//網(wǎng)頁編碼
header(“Content-Type:?text/html;charset=“.$lg_charset);
date_default_timezone_set(“PRC“);?//時間設(shè)置
$lg_sj=date(“Y-m-d?H:i:s“);
$db_url=“l(fā)ocalhost“?;//連接地址
$db_user=“root“;?//數(shù)據(jù)庫用戶名?//root
$db_password=“123456“;//數(shù)據(jù)庫密碼?
$db_name=“l(fā)ottery“;//數(shù)據(jù)庫名
//============================
$query_charset=“UTF8“;//字符集編碼
$lg_root=$_SERVER[“DOCUMENT_ROOT“];//獲取網(wǎng)站根目錄
if($lg_root==‘‘){$lg_root=str_replace(‘\\‘‘/‘realpath(dirname(__FILE__).‘/‘));}
//----------自定義函數(shù)區(qū)
function?lg_page(){ include(‘page.class.php‘);}?//分頁
function?lg_script($content){?echo?“ript>“.$content.“ ript>“;?die();}?//js標簽
function?lg_back(){?lg_script(“l(fā)ocation.href=‘“.$_SERVER[‘HTTP_REFERER‘].“‘;“);die();}???/
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????6169??2014-12-10?15:16??php大轉(zhuǎn)盤\conn.php
?????文件???????1535??2015-01-13?15:11??php大轉(zhuǎn)盤\css\main.css
?????文件???????4187??2015-01-14?09:18??php大轉(zhuǎn)盤\data.php
?????文件??????91662??2013-10-21?21:55??php大轉(zhuǎn)盤\disk.jpg
?????文件???????2727??2015-01-13?15:13??php大轉(zhuǎn)盤\index.php
?????文件???????5555??2013-01-17?18:22??php大轉(zhuǎn)盤\jquery.easing.min.js
?????文件??????11500??2013-01-17?11:16??php大轉(zhuǎn)盤\jQueryRotate.2.2.js
?????文件????????179??2013-10-21?21:18??php大轉(zhuǎn)盤\js\ad_demo.js
?????文件????????179??2013-10-21?21:18??php大轉(zhuǎn)盤\js\demo_topad.js
?????文件??????72174??2013-10-21?21:20??php大轉(zhuǎn)盤\js\jquery.js
?????文件????????246??2013-10-21?21:19??php大轉(zhuǎn)盤\js\tongji.js
?????文件???????1331??2015-04-23?10:48??php大轉(zhuǎn)盤\lottery.rar
?????文件???????3599??2015-04-23?10:48??php大轉(zhuǎn)盤\lottery.sql
?????文件???????1552??2015-01-13?16:43??php大轉(zhuǎn)盤\lottery_list.php
?????文件???????3320??2015-01-13?15:01??php大轉(zhuǎn)盤\lottery_set.php
?????文件????????176??2014-12-10?15:24??php大轉(zhuǎn)盤\readme.txt
?????文件??????18711??2013-10-21?22:00??php大轉(zhuǎn)盤\start.png
?????目錄??????????0??2014-12-10?14:24??php大轉(zhuǎn)盤\js\ad_js
?????目錄??????????0??2015-01-14?08:59??php大轉(zhuǎn)盤\css
?????目錄??????????0??2015-01-14?08:59??php大轉(zhuǎn)盤\js
?????目錄??????????0??2015-04-23?10:49??php大轉(zhuǎn)盤
-----------?---------??----------?-----??----
???????????????224802????????????????????21
評論
共有 條評論