-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
116 lines (103 loc) · 6.09 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
function classLoad($className)
{
$fileLoad = 'skin_include/class/'.$className.'.class.php';
if (is_file($fileLoad)) {
require_once ($fileLoad);
}
}
spl_autoload_register('classLoad');
/*加载PHP自定义类*/
include "skin_content/skin_config.php";//读取预设配置(不涉及安全设置)
include "skin_content/skin_safe_config.php";//读取预设安全设置
$loadMysql=new mysql();//加载预设类 - MySQL预设类
$connectMysql=$loadMysql->connect(constant("SQL_SERVER_ADDRESS").':'.constant("SQL_SERVER_PORT"),constant("SQL_SERVER_USERNAME"),constant("SQL_SERVER_PASSWORD"),constant("SQL_SERVER_DATABASE"));
$queryMysql_wp=$loadMysql->variable("SELECT item_name,wp_inf.item_order_id,item_price,item_type,item_hot,image_big_link FROM skin_weapons_informations wp_inf INNER JOIN skin_weapons_images wp_img ON wp_inf.item_order_id = wp_img.item_order_id ORDER BY wp_inf.item_hot DESC LIMIT 10;");
$consultMysql_wp=$loadMysql->choice(1);
$connectMysql_box=$loadMysql->connect(constant("SQL_SERVER_ADDRESS").':'.constant("SQL_SERVER_PORT"),constant("SQL_SERVER_USERNAME"),constant("SQL_SERVER_PASSWORD"),constant("SQL_SERVER_DATABASE"));
$queryMysql_box=$loadMysql->variable("SELECT box_name,box_inf.box_order_id,box_price,box_hot,image_preview_link FROM skin_boxes_informations box_inf INNER JOIN skin_boxes_images box_img ON box_inf.box_order_id = box_img.box_order_id ORDER BY box_inf.box_hot DESC LIMIT 10;");
$consultMysql_box=$loadMysql->choice(1);
/*
* connectMysql代表连接数据库,其使用了MySQL预设类
* queryMysql代表执行SQL语句
* consultMysql代表执行结果展示的方式,1为全体,2为只有一条
* _wp代表查询武器,_box代表查询箱子*/
$getCopiesMod = constant("website_copies_mod"); // 获取版权显示值,1为显示,0为隐藏
?>
<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><? echo constant("website_name"); ?></title>
<link rel="stylesheet" href="skin_style/skin_frame.css">
<link rel="stylesheet" href="skin_style/skin_roof.css">
<link rel="stylesheet" href="skin_style/skin_middle.css">
<link rel="stylesheet" href="skin_style/skin_feet.css">
<link rel="stylesheet" href="skin_style/market/skin_notice.css">
</head>
<input type="hidden" version="202102120001" value="CS2D皮肤站 Desgined By JackAltman">
<body>
<? include "skin_content/roof.php"; ?>
<div class="core_middle">
<div class="core_middle_notice">
<img src="skin_images/smallpic/notice.png" alt="">
<a href="javascript:void(0)" onclick="notice()">测试测试</a>
</div>
<div class="core_middle_ads">
<img style="display: none;" src="" alt="">
<div style="color: white;">广告位招商,联系:CS2D中文站站长</div>
</div>
<div class="core_middle_hot">
<div class="core_middle_hot_inf"><p>热销皮肤</p></div>
</div>
<div class="core_middle_market">
<? foreach ($consultMysql_wp as $consequence){ ?>
<div style="/*border: 1px solid gold*/">
<div class="core_middle_market_item">
<div class="core_middle_market_item_pic" style="background: radial-gradient(#ffffff 10%, #4b69ff 45%, #101822 95%)"><img src="skin_images/weapon/<? echo $consequence['image_big_link']?>" alt="" style="width: 150px;"></div>
<div style="display: grid;grid-template-rows: repeat(2,50%);background-color: white;">
<div class="core_middle_market_item_inf">
<div class="core_middle_market_item_inf_name"><a href="skin_goods.php?cater_block_number=<? echo $consequence['item_order_id'] ?>"><p><? echo $consequence['item_type']; ?> | <? echo $consequence['item_name']; ?></p></a></div>
<div class="core_middle_market_item_inf_price">
<img src="skin_images/smallpic/power.png" alt="">
<p><strong><? echo $consequence['item_price']?></strong></p>
</div>
</div>
</div>
</div>
</div>
<? } ?>
</div>
<div class="core_middle_hot">
<div class="core_middle_hot_inf"><p>热销箱子</p></div>
</div>
<div class="core_middle_market">
<? foreach ($consultMysql_box as $consequence){ ?>
<div style="/*border: 1px solid gold*/">
<div class="core_middle_market_item">
<div class="core_middle_market_item_pic" style="background: radial-gradient(#ffffff 10%, #4b69ff 45%, #101822 95%)"><img src="skin_images/box/<? echo $consequence['image_preview_link'] ?>" alt="" style="width: 200px;"></div>
<div style="display: grid;grid-template-rows: repeat(2,50%);background-color: white;">
<div class="core_middle_market_item_inf">
<div class="core_middle_market_item_inf_name"><a href="#"><p><? echo $consequence['box_name'] ?></p></a></div>
<div class="core_middle_market_item_inf_price">
<img src="skin_images/smallpic/power.png" alt="">
<p><strong><? echo $consequence['box_price'] ?></strong></p>
</div>
</div>
</div>
</div>
</div>
<? } ?>
</div>
</div>
<? include "skin_content/feet.php"; ?>
<? include "skin_content/notice.html"?>
</body>
<script src="https://s3.pstatp.com/cdn/expire-1-M/jquery/3.3.1/jquery.min.js"></script>
<script src="skin_content/javascripts/roof.js"></script>
<script src="skin_content/javascripts/notice.js"></script>
<script src="skin_content/javascripts/title.js"></script>
</html>