├── .gitattributes ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.MD ├── VAuditDemo_Debug ├── about.inc ├── admin │ ├── captcha.php │ ├── delCom.php │ ├── delUser.php │ ├── index.php │ ├── logCheck.php │ ├── login.php │ ├── manage.php │ ├── manageAdmin.php │ ├── manageCom.php │ ├── manageUser.php │ └── ping.php ├── css │ ├── bootstrap.css │ ├── bootstrap.min.css │ ├── bootswatch.less │ ├── bootswatch.min.css │ └── variables.less ├── footer.php ├── header.php ├── images │ └── default.jpg ├── index.php ├── install │ ├── install.php │ └── install.sql ├── js │ ├── bootstrap.min.js │ ├── bootswatch.js │ ├── bsa.js │ └── check.js ├── message.php ├── messageDetail.php ├── messageSub.php ├── search.php ├── sys │ ├── config.php │ └── lib.php ├── uploads │ └── .gitkeep └── user │ ├── avatar.php │ ├── edit.php │ ├── logCheck.php │ ├── login.php │ ├── logout.php │ ├── reg.php │ ├── regCheck.php │ ├── updateAvatar.php │ ├── updateName.php │ ├── updatePass.php │ └── user.php ├── VAuditDemo_Release ├── about.inc ├── admin │ ├── captcha.php │ ├── delAdmin.php │ ├── delCom.php │ ├── delUser.php │ ├── index.php │ ├── logCheck.php │ ├── login.php │ ├── manage.php │ ├── manageAdmin.php │ ├── manageCom.php │ ├── manageUser.php │ ├── php_errors.log │ └── ping.php ├── css │ ├── bootstrap.css │ ├── bootstrap.min.css │ ├── bootswatch.less │ ├── bootswatch.min.css │ └── variables.less ├── footer.php ├── header.php ├── images │ └── default.jpg ├── index.php ├── install │ ├── install.php │ └── install.sql ├── js │ ├── bootstrap.min.js │ ├── bootswatch.js │ ├── bsa.js │ └── check.js ├── message.php ├── messageDetail.php ├── messageSub.php ├── search.php ├── strtotime.php ├── sys │ ├── config.php │ ├── install.lock │ └── lib.php └── user │ ├── avatar.php │ ├── edit.php │ ├── logCheck.php │ ├── login.php │ ├── logout.php │ ├── reg.php │ ├── regCheck.php │ ├── updateAvatar.php │ ├── updateName.php │ ├── updatePass.php │ └── user.php ├── docker-compose.yml └── files ├── docker-php-entrypoint ├── nginx.conf └── vhost.nginx.conf /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:5.6-fpm-alpine 2 | 3 | MAINTAINER Virink 4 | LABEL CHALLENGE="VAuditDemo Debug" 5 | 6 | ADD VAuditDemo_Debug /var/www/html 7 | ADD files /tmp/ 8 | 9 | RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \ 10 | && apk add --update --no-cache libpng-dev nginx mysql mysql-client \ 11 | # php mysql ext 12 | && docker-php-source extract \ 13 | && docker-php-ext-install mysql gd \ 14 | && docker-php-source delete \ 15 | # mysql 16 | && mysql_install_db --user=mysql --datadir=/var/lib/mysql \ 17 | && sh -c 'mysqld_safe &' \ 18 | && sleep 5s \ 19 | && mysqladmin -uroot password 'root' \ 20 | # && mysql -e "source /tmp/db.sql;" -uroot -pqwertyuiop \ 21 | && mkdir /run/nginx \ 22 | # docker-php-entrypoint 23 | && mv /tmp/docker-php-entrypoint /usr/local/bin/docker-php-entrypoint \ 24 | && chmod +x /usr/local/bin/docker-php-entrypoint \ 25 | # nginx config 26 | && mv /tmp/nginx.conf /etc/nginx/nginx.conf \ 27 | && mv /tmp/vhost.nginx.conf /etc/nginx/conf.d/default.conf \ 28 | # 29 | && chmod -R -w /var/www/html \ 30 | && chmod -R 777 /var/www/html/uploads \ 31 | && chmod -R +w /var/www/html/sys \ 32 | && chown -R www-data:www-data /var/www/html \ 33 | # clear 34 | && rm -rf /tmp/* \ 35 | && rm -rf /etc/apk 36 | 37 | EXPOSE 80 38 | 39 | VOLUME ["/var/log/nginx"] 40 | 41 | CMD ["/bin/sh", "-c", "docker-php-entrypoint"] -------------------------------------------------------------------------------- /README.MD: -------------------------------------------------------------------------------- 1 | # VAuditDemo 2 | 3 | 本程序是**一个简单的Web漏洞演练平台**, 4 | 5 | 用於錄製演示講解PHP基本漏洞的視頻《[PHP代码审计实战-愛春秋](http://www.ichunqiu.com/course/54473 "PHP代码审计实战-愛春秋")》 6 | 7 | ## 安装说明 8 | 9 | 1. 先创建数据库`vauditdemo` 10 | 2. 放在网站根目录 11 | 12 | ## 漏洞類型 13 | 14 | - 安裝問題 15 | - 命令注入 16 | - SQL數字型注入 17 | - XSS後臺敏感操作 18 | - 文件包含 19 | - 任意文件讀取 20 | - 越權操作 21 | - 密碼爆破-繞過驗證碼 22 | - 截斷導致二次注入 23 | 24 | 25 | ## 版權 26 | 27 | [GPLv3](LICENSE) 28 | 29 | 該程序基於**ZVulDrill**修改,借鑒了前端框架等。 30 | 31 | 其他PHP代碼構造的漏洞純屬本人自行編寫。 32 | 33 | ## 作者 Virink 34 | 35 | **Blog :** [Virink's Blog](https://www.virzz.com "Virink's Blog") 36 | 37 | **Telegram :** [@virink](https://telegram.me/virink) 38 | 39 | **Twitter :** [@virinkz](https://twitter.com/virinkz) 40 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/about.inc: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 | 34 |
35 |
36 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/admin/captcha.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/admin/delCom.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/admin/delUser.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/admin/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/admin/logCheck.php: -------------------------------------------------------------------------------- 1 | 32 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/admin/login.php: -------------------------------------------------------------------------------- 1 | 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 | 41 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/admin/manage.php: -------------------------------------------------------------------------------- 1 | 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 |
管理入口
管理員进入
用户进入
评论进入
Ping进入
32 | 39 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/admin/manageAdmin.php: -------------------------------------------------------------------------------- 1 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 36 | 37 | 38 | 39 | 40 | 41 | 42 |
NameManege
删除
43 | 44 |
45 | 添加管理員 46 |
47 | 48 |
49 | 50 |
51 |
52 |
53 | 54 |
55 | 56 |
57 |
58 |
59 |
60 | 61 | 返回 62 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/admin/manageCom.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 |
留言用户管理
删除
33 | 返回 34 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/admin/manageUser.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
IdNameIpManege
删除
32 | 33 | 返回 34 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/admin/ping.php: -------------------------------------------------------------------------------- 1 | 9 |
10 |
11 | 32 |
33 |
34 | 35 | 36 | 返回 37 | 44 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/css/bootswatch.less: -------------------------------------------------------------------------------- 1 | // Custom 3.1.0 2 | // Bootswatch 3 | // ----------------------------------------------------- 4 | 5 | 6 | // Navbar ===================================================================== 7 | 8 | // Buttons ==================================================================== 9 | 10 | // Typography ================================================================= 11 | 12 | // Tables ===================================================================== 13 | 14 | // Forms ====================================================================== 15 | 16 | // Navs ======================================================================= 17 | 18 | // Indicators ================================================================= 19 | 20 | // Progress bars ============================================================== 21 | 22 | // Containers ================================================================= 23 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/css/bootswatch.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px} 2 | #banner{border-bottom:none} 3 | .page-header h1{font-size:4em} 4 | .bs-docs-section{margin-top:8em} 5 | footer{margin:5em 0}footer li{float:left;margin-right:1.5em;margin-bottom:1.5em} 6 | footer p{clear:left;margin-bottom:0} 7 | .splash{padding:4em 0 2em;background-color:#1c2533;background:-webkit-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:-o-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:-ms-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:-moz-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:linear-gradient(20deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background-attachment:fixed;color:#fff;text-align:center}.splash .alert{margin:4em 0 2em} 8 | .splash h1{font-size:4em} 9 | .splash #social{margin:2em 0 4em} 10 | .splash .bsa{max-width:350px;margin:0 auto;background:none}.splash .bsa .one .bsa_it_ad{border:1px solid #3e4653 !important;border-color:rgba(255,255,255,0.2) !important} 11 | .splash .bsa a{color:#fff} 12 | .section-tout{padding:4em 0 3em;border-top:1px solid rgba(255,255,255,0.1);border-bottom:1px solid rgba(0,0,0,0.1);background-color:#eaf1f1}.section-tout .fa{margin-right:.5em} 13 | .section-tout p{margin-bottom:3em} 14 | .section-preview{padding:4em 0 4em}.section-preview .preview{margin-bottom:4em;background-color:#eaf1f1;border:1px solid rgba(0,0,0,0.1);border-radius:6px}.section-preview .preview .image{padding:5px}.section-preview .preview .image img{border:1px solid rgba(0,0,0,0.1)} 15 | .section-preview .preview .options{text-align:center;padding:0 2em 2em}.section-preview .preview .options p{margin-bottom:2em} 16 | .section-preview .dropdown-menu{text-align:left} 17 | .section-preview .lead{margin-bottom:2em} 18 | @media (max-width:767px){.section-preview .image img{width:100%}} 19 | .bsa{padding:0}.bsa .one .bsa_it_ad{border:none !important;background-color:transparent !important}.bsa .one .bsa_it_ad .bsa_it_t,.bsa .one .bsa_it_ad .bsa_it_d{color:inherit !important} 20 | .bsa .one .bsa_it_ad .bsa_it_i{margin-bottom:0 !important} 21 | .bsa .one .bsa_it_p{display:none} 22 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/css/variables.less: -------------------------------------------------------------------------------- 1 | // Custom 3.1.0 2 | // Variables 3 | // -------------------------------------------------- 4 | 5 | 6 | //== Colors 7 | // 8 | //## Gray and brand colors for use across Bootstrap. 9 | 10 | @gray-darker: lighten(#000, 13.5%); // #222 11 | @gray-dark: lighten(#000, 20%); // #333 12 | @gray: lighten(#000, 33.5%); // #555 13 | @gray-light: lighten(#000, 60%); // #999 14 | @gray-lighter: lighten(#000, 93.5%); // #eee 15 | 16 | @brand-primary: #428bca; 17 | @brand-success: #5cb85c; 18 | @brand-info: #5bc0de; 19 | @brand-warning: #f0ad4e; 20 | @brand-danger: #d9534f; 21 | 22 | 23 | //== Scaffolding 24 | // 25 | // ## Settings for some of the most global styles. 26 | 27 | //** Background color for ``. 28 | @body-bg: #fff; 29 | //** Global text color on ``. 30 | @text-color: @gray-dark; 31 | 32 | //** Global textual link color. 33 | @link-color: @brand-primary; 34 | //** Link hover color set via `darken()` function. 35 | @link-hover-color: darken(@link-color, 15%); 36 | 37 | 38 | //== Typography 39 | // 40 | //## Font, line-height, and color for body text, headings, and more. 41 | 42 | @font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif; 43 | @font-family-serif: Georgia, "Times New Roman", Times, serif; 44 | //** Default monospace fonts for ``, ``, and `
`.
 45 | @font-family-monospace:   Menlo, Monaco, Consolas, "Courier New", monospace;
 46 | @font-family-base:        @font-family-sans-serif;
 47 | 
 48 | @font-size-base:          14px;
 49 | @font-size-large:         ceil((@font-size-base * 1.25)); // ~18px
 50 | @font-size-small:         ceil((@font-size-base * 0.85)); // ~12px
 51 | 
 52 | @font-size-h1:            floor((@font-size-base * 2.6)); // ~36px
 53 | @font-size-h2:            floor((@font-size-base * 2.15)); // ~30px
 54 | @font-size-h3:            ceil((@font-size-base * 1.7)); // ~24px
 55 | @font-size-h4:            ceil((@font-size-base * 1.25)); // ~18px
 56 | @font-size-h5:            @font-size-base;
 57 | @font-size-h6:            ceil((@font-size-base * 0.85)); // ~12px
 58 | 
 59 | //** Unit-less `line-height` for use in components like buttons.
 60 | @line-height-base:        1.428571429; // 20/14
 61 | //** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
 62 | @line-height-computed:    floor((@font-size-base * @line-height-base)); // ~20px
 63 | 
 64 | //** By default, this inherits from the ``.
 65 | @headings-font-family:    inherit;
 66 | @headings-font-weight:    500;
 67 | @headings-line-height:    1.1;
 68 | @headings-color:          inherit;
 69 | 
 70 | 
 71 | //-- Iconography
 72 | //
 73 | //## Specify custom locations of the include Glyphicons icon font. Useful for those including Bootstrap via Bower.
 74 | 
 75 | @icon-font-path:          "../fonts/";
 76 | @icon-font-name:          "glyphicons-halflings-regular";
 77 | @icon-font-svg-id:				"glyphicons_halflingsregular";
 78 | 
 79 | //== Components
 80 | //
 81 | //## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
 82 | 
 83 | @padding-base-vertical:     6px;
 84 | @padding-base-horizontal:   12px;
 85 | 
 86 | @padding-large-vertical:    10px;
 87 | @padding-large-horizontal:  16px;
 88 | 
 89 | @padding-small-vertical:    5px;
 90 | @padding-small-horizontal:  10px;
 91 | 
 92 | @padding-xs-vertical:       1px;
 93 | @padding-xs-horizontal:     5px;
 94 | 
 95 | @line-height-large:         1.33;
 96 | @line-height-small:         1.5;
 97 | 
 98 | @border-radius-base:        4px;
 99 | @border-radius-large:       6px;
100 | @border-radius-small:       3px;
101 | 
102 | //** Global color for active items (e.g., navs or dropdowns).
103 | @component-active-color:    #fff;
104 | //** Global background color for active items (e.g., navs or dropdowns).
105 | @component-active-bg:       @brand-primary;
106 | 
107 | //** Width of the `border` for generating carets that indicator dropdowns.
108 | @caret-width-base:          4px;
109 | //** Carets increase slightly in size for larger components.
110 | @caret-width-large:         5px;
111 | 
112 | 
113 | //== Tables
114 | //
115 | //## Customizes the `.table` component with basic values, each used across all table variations.
116 | 
117 | //** Padding for ``s and ``s.
118 | @table-cell-padding:            8px;
119 | //** Padding for cells in `.table-condensed`.
120 | @table-condensed-cell-padding:  5px;
121 | 
122 | //** Default background color used for all tables.
123 | @table-bg:                      transparent;
124 | //** Background color used for `.table-striped`.
125 | @table-bg-accent:               #f9f9f9;
126 | //** Background color used for `.table-hover`.
127 | @table-bg-hover:                #f5f5f5;
128 | @table-bg-active:               @table-bg-hover;
129 | 
130 | //** Border color for table and cell borders.
131 | @table-border-color:            #ddd;
132 | 
133 | 
134 | //== Buttons
135 | //
136 | //## For each of Bootstrap's buttons, define text, background and border color.
137 | 
138 | @btn-font-weight:                normal;
139 | 
140 | @btn-default-color:              #333;
141 | @btn-default-bg:                 #fff;
142 | @btn-default-border:             #ccc;
143 | 
144 | @btn-primary-color:              #fff;
145 | @btn-primary-bg:                 @brand-primary;
146 | @btn-primary-border:             darken(@btn-primary-bg, 5%);
147 | 
148 | @btn-success-color:              #fff;
149 | @btn-success-bg:                 @brand-success;
150 | @btn-success-border:             darken(@btn-success-bg, 5%);
151 | 
152 | @btn-info-color:                 #fff;
153 | @btn-info-bg:                    @brand-info;
154 | @btn-info-border:                darken(@btn-info-bg, 5%);
155 | 
156 | @btn-warning-color:              #fff;
157 | @btn-warning-bg:                 @brand-warning;
158 | @btn-warning-border:             darken(@btn-warning-bg, 5%);
159 | 
160 | @btn-danger-color:               #fff;
161 | @btn-danger-bg:                  @brand-danger;
162 | @btn-danger-border:              darken(@btn-danger-bg, 5%);
163 | 
164 | @btn-link-disabled-color:        @gray-light;
165 | 
166 | 
167 | //== Forms
168 | //
169 | //##
170 | 
171 | //** `` background color
172 | @input-bg:                       #fff;
173 | //** `` background color
174 | @input-bg-disabled:              @gray-lighter;
175 | 
176 | //** Text color for ``s
177 | @input-color:                    @gray;
178 | //** `` border color
179 | @input-border:                   #ccc;
180 | //** `` border radius
181 | @input-border-radius:            @border-radius-base;
182 | //** Border color for inputs on focus
183 | @input-border-focus:             #66afe9;
184 | 
185 | //** Placeholder text color
186 | @input-color-placeholder:        @gray-light;
187 | 
188 | //** Default `.form-control` height
189 | @input-height-base:              (@line-height-computed + (@padding-base-vertical * 2) + 2);
190 | //** Large `.form-control` height
191 | @input-height-large:             (ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
192 | //** Small `.form-control` height
193 | @input-height-small:             (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
194 | 
195 | @legend-color:                   @gray-dark;
196 | @legend-border-color:            #e5e5e5;
197 | 
198 | //** Background color for textual input addons
199 | @input-group-addon-bg:           @gray-lighter;
200 | //** Border color for textual input addons
201 | @input-group-addon-border-color: @input-border;
202 | 
203 | 
204 | //== Dropdowns
205 | //
206 | //## Dropdown menu container and contents.
207 | 
208 | //** Background for the dropdown menu.
209 | @dropdown-bg:                    #fff;
210 | //** Dropdown menu `border-color`.
211 | @dropdown-border:                rgba(0,0,0,.15);
212 | //** Dropdown menu `border-color` **for IE8**.
213 | @dropdown-fallback-border:       #ccc;
214 | //** Divider color for between dropdown items.
215 | @dropdown-divider-bg:            #e5e5e5;
216 | 
217 | //** Dropdown link text color.
218 | @dropdown-link-color:            @gray-dark;
219 | //** Hover color for dropdown links.
220 | @dropdown-link-hover-color:      darken(@gray-dark, 5%);
221 | //** Hover background for dropdown links.
222 | @dropdown-link-hover-bg:         #f5f5f5;
223 | 
224 | //** Active dropdown menu item text color.
225 | @dropdown-link-active-color:     @component-active-color;
226 | //** Active dropdown menu item background color.
227 | @dropdown-link-active-bg:        @component-active-bg;
228 | 
229 | //** Disabled dropdown menu item background color.
230 | @dropdown-link-disabled-color:   @gray-light;
231 | 
232 | //** Text color for headers within dropdown menus.
233 | @dropdown-header-color:          @gray-light;
234 | 
235 | // Note: Deprecated @dropdown-caret-color as of v3.1.0
236 | @dropdown-caret-color:           #000;
237 | 
238 | 
239 | //-- Z-index master list
240 | //
241 | // Warning: Avoid customizing these values. They're used for a bird's eye view
242 | // of components dependent on the z-axis and are designed to all work together.
243 | //
244 | // Note: These variables are not generated into the Customizer.
245 | 
246 | @zindex-navbar:            1000;
247 | @zindex-dropdown:          1000;
248 | @zindex-popover:           1010;
249 | @zindex-tooltip:           1030;
250 | @zindex-navbar-fixed:      1030;
251 | @zindex-modal-background:  1040;
252 | @zindex-modal:             1050;
253 | 
254 | 
255 | //== Media queries breakpoints
256 | //
257 | //## Define the breakpoints at which your layout will change, adapting to different screen sizes.
258 | 
259 | // Extra small screen / phone
260 | // Note: Deprecated @screen-xs and @screen-phone as of v3.0.1
261 | @screen-xs:                  480px;
262 | @screen-xs-min:              @screen-xs;
263 | @screen-phone:               @screen-xs-min;
264 | 
265 | // Small screen / tablet
266 | // Note: Deprecated @screen-sm and @screen-tablet as of v3.0.1
267 | @screen-sm:                  768px;
268 | @screen-sm-min:              @screen-sm;
269 | @screen-tablet:              @screen-sm-min;
270 | 
271 | // Medium screen / desktop
272 | // Note: Deprecated @screen-md and @screen-desktop as of v3.0.1
273 | @screen-md:                  992px;
274 | @screen-md-min:              @screen-md;
275 | @screen-desktop:             @screen-md-min;
276 | 
277 | // Large screen / wide desktop
278 | // Note: Deprecated @screen-lg and @screen-lg-desktop as of v3.0.1
279 | @screen-lg:                  1200px;
280 | @screen-lg-min:              @screen-lg;
281 | @screen-lg-desktop:          @screen-lg-min;
282 | 
283 | // So media queries don't overlap when required, provide a maximum
284 | @screen-xs-max:              (@screen-sm-min - 1);
285 | @screen-sm-max:              (@screen-md-min - 1);
286 | @screen-md-max:              (@screen-lg-min - 1);
287 | 
288 | 
289 | //== Grid system
290 | //
291 | //## Define your custom responsive grid.
292 | 
293 | //** Number of columns in the grid.
294 | @grid-columns:              12;
295 | //** Padding between columns. Gets divided in half for the left and right.
296 | @grid-gutter-width:         30px;
297 | // Navbar collapse
298 | //** Point at which the navbar becomes uncollapsed.
299 | @grid-float-breakpoint:     @screen-sm-min;
300 | //** Point at which the navbar begins collapsing.
301 | @grid-float-breakpoint-max: (@grid-float-breakpoint - 1);
302 | 
303 | 
304 | //== Navbar
305 | //
306 | //##
307 | 
308 | // Basics of a navbar
309 | @navbar-height:                    50px;
310 | @navbar-margin-bottom:             @line-height-computed;
311 | @navbar-border-radius:             @border-radius-base;
312 | @navbar-padding-horizontal:        floor((@grid-gutter-width / 2));
313 | @navbar-padding-vertical:          ((@navbar-height - @line-height-computed) / 2);
314 | @navbar-collapse-max-height:       340px;
315 | 
316 | @navbar-default-color:             #777;
317 | @navbar-default-bg:                #f8f8f8;
318 | @navbar-default-border:            darken(@navbar-default-bg, 6.5%);
319 | 
320 | // Navbar links
321 | @navbar-default-link-color:                #777;
322 | @navbar-default-link-hover-color:          #333;
323 | @navbar-default-link-hover-bg:             transparent;
324 | @navbar-default-link-active-color:         #555;
325 | @navbar-default-link-active-bg:            darken(@navbar-default-bg, 6.5%);
326 | @navbar-default-link-disabled-color:       #ccc;
327 | @navbar-default-link-disabled-bg:          transparent;
328 | 
329 | // Navbar brand label
330 | @navbar-default-brand-color:               @navbar-default-link-color;
331 | @navbar-default-brand-hover-color:         darken(@navbar-default-brand-color, 10%);
332 | @navbar-default-brand-hover-bg:            transparent;
333 | 
334 | // Navbar toggle
335 | @navbar-default-toggle-hover-bg:           #ddd;
336 | @navbar-default-toggle-icon-bar-bg:        #888;
337 | @navbar-default-toggle-border-color:       #ddd;
338 | 
339 | 
340 | // Inverted navbar
341 | // Reset inverted navbar basics
342 | @navbar-inverse-color:                      @gray-light;
343 | @navbar-inverse-bg:                         #222;
344 | @navbar-inverse-border:                     darken(@navbar-inverse-bg, 10%);
345 | 
346 | // Inverted navbar links
347 | @navbar-inverse-link-color:                 @gray-light;
348 | @navbar-inverse-link-hover-color:           #fff;
349 | @navbar-inverse-link-hover-bg:              transparent;
350 | @navbar-inverse-link-active-color:          @navbar-inverse-link-hover-color;
351 | @navbar-inverse-link-active-bg:             darken(@navbar-inverse-bg, 10%);
352 | @navbar-inverse-link-disabled-color:        #444;
353 | @navbar-inverse-link-disabled-bg:           transparent;
354 | 
355 | // Inverted navbar brand label
356 | @navbar-inverse-brand-color:                @navbar-inverse-link-color;
357 | @navbar-inverse-brand-hover-color:          #fff;
358 | @navbar-inverse-brand-hover-bg:             transparent;
359 | 
360 | // Inverted navbar toggle
361 | @navbar-inverse-toggle-hover-bg:            #333;
362 | @navbar-inverse-toggle-icon-bar-bg:         #fff;
363 | @navbar-inverse-toggle-border-color:        #333;
364 | 
365 | 
366 | //== Navs
367 | //
368 | //##
369 | 
370 | //=== Shared nav styles
371 | @nav-link-padding:                          10px 15px;
372 | @nav-link-hover-bg:                         @gray-lighter;
373 | 
374 | @nav-disabled-link-color:                   @gray-light;
375 | @nav-disabled-link-hover-color:             @gray-light;
376 | 
377 | @nav-open-link-hover-color:                 #fff;
378 | 
379 | //== Tabs
380 | @nav-tabs-border-color:                     #ddd;
381 | 
382 | @nav-tabs-link-hover-border-color:          @gray-lighter;
383 | 
384 | @nav-tabs-active-link-hover-bg:             @body-bg;
385 | @nav-tabs-active-link-hover-color:          @gray;
386 | @nav-tabs-active-link-hover-border-color:   #ddd;
387 | 
388 | @nav-tabs-justified-link-border-color:            #ddd;
389 | @nav-tabs-justified-active-link-border-color:     @body-bg;
390 | 
391 | //== Pills
392 | @nav-pills-border-radius:                   @border-radius-base;
393 | @nav-pills-active-link-hover-bg:            @component-active-bg;
394 | @nav-pills-active-link-hover-color:         @component-active-color;
395 | 
396 | 
397 | //== Pagination
398 | //
399 | //##
400 | 
401 | @pagination-color:                     @link-color;
402 | @pagination-bg:                        #fff;
403 | @pagination-border:                    #ddd;
404 | 
405 | @pagination-hover-color:               @link-hover-color;
406 | @pagination-hover-bg:                  @gray-lighter;
407 | @pagination-hover-border:              #ddd;
408 | 
409 | @pagination-active-color:              #fff;
410 | @pagination-active-bg:                 @brand-primary;
411 | @pagination-active-border:             @brand-primary;
412 | 
413 | @pagination-disabled-color:            @gray-light;
414 | @pagination-disabled-bg:               #fff;
415 | @pagination-disabled-border:           #ddd;
416 | 
417 | 
418 | //== Pager
419 | //
420 | //##
421 | 
422 | @pager-bg:                             @pagination-bg;
423 | @pager-border:                         @pagination-border;
424 | @pager-border-radius:                  15px;
425 | 
426 | @pager-hover-bg:                       @pagination-hover-bg;
427 | 
428 | @pager-active-bg:                      @pagination-active-bg;
429 | @pager-active-color:                   @pagination-active-color;
430 | 
431 | @pager-disabled-color:                 @pagination-disabled-color;
432 | 
433 | 
434 | //== Jumbotron
435 | //
436 | //##
437 | 
438 | @jumbotron-padding:              30px;
439 | @jumbotron-color:                inherit;
440 | @jumbotron-bg:                   @gray-lighter;
441 | @jumbotron-heading-color:        inherit;
442 | @jumbotron-font-size:            ceil((@font-size-base * 1.5));
443 | 
444 | 
445 | //== Form states and alerts
446 | //
447 | //## Define colors for form feedback states and, by default, alerts.
448 | 
449 | @state-success-text:             #3c763d;
450 | @state-success-bg:               #dff0d8;
451 | @state-success-border:           darken(spin(@state-success-bg, -10), 5%);
452 | 
453 | @state-info-text:                #31708f;
454 | @state-info-bg:                  #d9edf7;
455 | @state-info-border:              darken(spin(@state-info-bg, -10), 7%);
456 | 
457 | @state-warning-text:             #8a6d3b;
458 | @state-warning-bg:               #fcf8e3;
459 | @state-warning-border:           darken(spin(@state-warning-bg, -10), 5%);
460 | 
461 | @state-danger-text:              #a94442;
462 | @state-danger-bg:                #f2dede;
463 | @state-danger-border:            darken(spin(@state-danger-bg, -10), 5%);
464 | 
465 | 
466 | //== Tooltips
467 | //
468 | //##
469 | 
470 | //** Tooltip max width
471 | @tooltip-max-width:           200px;
472 | //** Tooltip text color
473 | @tooltip-color:               #fff;
474 | //** Tooltip background color
475 | @tooltip-bg:                  #000;
476 | @tooltip-opacity:             .9;
477 | 
478 | //** Tooltip arrow width
479 | @tooltip-arrow-width:         5px;
480 | //** Tooltip arrow color
481 | @tooltip-arrow-color:         @tooltip-bg;
482 | 
483 | 
484 | //== Popovers
485 | //
486 | //##
487 | 
488 | //** Popover body background color
489 | @popover-bg:                          #fff;
490 | //** Popover maximum width
491 | @popover-max-width:                   276px;
492 | //** Popover border color
493 | @popover-border-color:                rgba(0,0,0,.2);
494 | //** Popover fallback border color
495 | @popover-fallback-border-color:       #ccc;
496 | 
497 | //** Popover title background color
498 | @popover-title-bg:                    darken(@popover-bg, 3%);
499 | 
500 | //** Popover arrow width
501 | @popover-arrow-width:                 10px;
502 | //** Popover arrow color
503 | @popover-arrow-color:                 #fff;
504 | 
505 | //** Popover outer arrow width
506 | @popover-arrow-outer-width:           (@popover-arrow-width + 1);
507 | //** Popover outer arrow color
508 | @popover-arrow-outer-color:           rgba(0,0,0,.25);
509 | //** Popover outer arrow fallback color
510 | @popover-arrow-outer-fallback-color:  #999;
511 | 
512 | 
513 | //== Labels
514 | //
515 | //##
516 | 
517 | //** Default label background color
518 | @label-default-bg:            @gray-light;
519 | //** Primary label background color
520 | @label-primary-bg:            @brand-primary;
521 | //** Success label background color
522 | @label-success-bg:            @brand-success;
523 | //** Info label background color
524 | @label-info-bg:               @brand-info;
525 | //** Warning label background color
526 | @label-warning-bg:            @brand-warning;
527 | //** Danger label background color
528 | @label-danger-bg:             @brand-danger;
529 | 
530 | //** Default label text color
531 | @label-color:                 #fff;
532 | //** Default text color of a linked label
533 | @label-link-hover-color:      #fff;
534 | 
535 | 
536 | //== Modals
537 | //
538 | //##
539 | 
540 | //** Padding applied to the modal body
541 | @modal-inner-padding:         20px;
542 | 
543 | //** Padding applied to the modal title
544 | @modal-title-padding:         15px;
545 | //** Modal title line-height
546 | @modal-title-line-height:     @line-height-base;
547 | 
548 | //** Background color of modal content area
549 | @modal-content-bg:                             #fff;
550 | //** Modal content border color
551 | @modal-content-border-color:                   rgba(0,0,0,.2);
552 | //** Modal content border color **for IE8**
553 | @modal-content-fallback-border-color:          #999;
554 | 
555 | //** Modal backdrop background color
556 | @modal-backdrop-bg:           #000;
557 | //** Modal backdrop opacity
558 | @modal-backdrop-opacity:      .5;
559 | //** Modal header border color
560 | @modal-header-border-color:   #e5e5e5;
561 | //** Modal footer border color
562 | @modal-footer-border-color:   @modal-header-border-color;
563 | 
564 | @modal-lg:                    900px;
565 | @modal-md:                    600px;
566 | @modal-sm:                    300px;
567 | 
568 | 
569 | //== Alerts
570 | //
571 | //## Define alert colors, border radius, and padding.
572 | 
573 | @alert-padding:               15px;
574 | @alert-border-radius:         @border-radius-base;
575 | @alert-link-font-weight:      bold;
576 | 
577 | @alert-success-bg:            @state-success-bg;
578 | @alert-success-text:          @state-success-text;
579 | @alert-success-border:        @state-success-border;
580 | 
581 | @alert-info-bg:               @state-info-bg;
582 | @alert-info-text:             @state-info-text;
583 | @alert-info-border:           @state-info-border;
584 | 
585 | @alert-warning-bg:            @state-warning-bg;
586 | @alert-warning-text:          @state-warning-text;
587 | @alert-warning-border:        @state-warning-border;
588 | 
589 | @alert-danger-bg:             @state-danger-bg;
590 | @alert-danger-text:           @state-danger-text;
591 | @alert-danger-border:         @state-danger-border;
592 | 
593 | 
594 | //== Progress bars
595 | //
596 | //##
597 | 
598 | //** Background color of the whole progress component
599 | @progress-bg:                 #f5f5f5;
600 | //** Progress bar text color
601 | @progress-bar-color:          #fff;
602 | 
603 | //** Default progress bar color
604 | @progress-bar-bg:             @brand-primary;
605 | //** Success progress bar color
606 | @progress-bar-success-bg:     @brand-success;
607 | //** Warning progress bar color
608 | @progress-bar-warning-bg:     @brand-warning;
609 | //** Danger progress bar color
610 | @progress-bar-danger-bg:      @brand-danger;
611 | //** Info progress bar color
612 | @progress-bar-info-bg:        @brand-info;
613 | 
614 | 
615 | //== List group
616 | //
617 | //##
618 | 
619 | //** Background color on `.list-group-item`
620 | @list-group-bg:                 #fff;
621 | //** `.list-group-item` border color
622 | @list-group-border:             #ddd;
623 | //** List group border radius
624 | @list-group-border-radius:      @border-radius-base;
625 | 
626 | //** Background color of single list elements on hover
627 | @list-group-hover-bg:           #f5f5f5;
628 | //** Text color of active list elements
629 | @list-group-active-color:       @component-active-color;
630 | //** Background color of active list elements
631 | @list-group-active-bg:          @component-active-bg;
632 | //** Border color of active list elements
633 | @list-group-active-border:      @list-group-active-bg;
634 | @list-group-active-text-color:  lighten(@list-group-active-bg, 40%);
635 | 
636 | @list-group-link-color:         #555;
637 | @list-group-link-heading-color: #333;
638 | 
639 | 
640 | //== Panels
641 | //
642 | //##
643 | 
644 | @panel-bg:                    #fff;
645 | @panel-body-padding:          15px;
646 | @panel-border-radius:         @border-radius-base;
647 | 
648 | //** Border color for elements within panels
649 | @panel-inner-border:          #ddd;
650 | @panel-footer-bg:             #f5f5f5;
651 | 
652 | @panel-default-text:          @gray-dark;
653 | @panel-default-border:        #ddd;
654 | @panel-default-heading-bg:    #f5f5f5;
655 | 
656 | @panel-primary-text:          #fff;
657 | @panel-primary-border:        @brand-primary;
658 | @panel-primary-heading-bg:    @brand-primary;
659 | 
660 | @panel-success-text:          @state-success-text;
661 | @panel-success-border:        @state-success-border;
662 | @panel-success-heading-bg:    @state-success-bg;
663 | 
664 | @panel-info-text:             @state-info-text;
665 | @panel-info-border:           @state-info-border;
666 | @panel-info-heading-bg:       @state-info-bg;
667 | 
668 | @panel-warning-text:          @state-warning-text;
669 | @panel-warning-border:        @state-warning-border;
670 | @panel-warning-heading-bg:    @state-warning-bg;
671 | 
672 | @panel-danger-text:           @state-danger-text;
673 | @panel-danger-border:         @state-danger-border;
674 | @panel-danger-heading-bg:     @state-danger-bg;
675 | 
676 | 
677 | //== Thumbnails
678 | //
679 | //##
680 | 
681 | //** Padding around the thumbnail image
682 | @thumbnail-padding:           4px;
683 | //** Thumbnail background color
684 | @thumbnail-bg:                @body-bg;
685 | //** Thumbnail border color
686 | @thumbnail-border:            #ddd;
687 | //** Thumbnail border radius
688 | @thumbnail-border-radius:     @border-radius-base;
689 | 
690 | //** Custom text color for thumbnail captions
691 | @thumbnail-caption-color:     @text-color;
692 | //** Padding around the thumbnail caption
693 | @thumbnail-caption-padding:   9px;
694 | 
695 | 
696 | //== Wells
697 | //
698 | //##
699 | 
700 | @well-bg:                     #f5f5f5;
701 | @well-border:                 darken(@well-bg, 7%);
702 | 
703 | 
704 | //== Badges
705 | //
706 | //##
707 | 
708 | @badge-color:                 #fff;
709 | //** Linked badge text color on hover
710 | @badge-link-hover-color:      #fff;
711 | @badge-bg:                    @gray-light;
712 | 
713 | //** Badge text color in active nav link
714 | @badge-active-color:          @link-color;
715 | //** Badge background color in active nav link
716 | @badge-active-bg:             #fff;
717 | 
718 | @badge-font-weight:           bold;
719 | @badge-line-height:           1;
720 | @badge-border-radius:         10px;
721 | 
722 | 
723 | //== Breadcrumbs
724 | //
725 | //##
726 | 
727 | @breadcrumb-padding-vertical:   8px;
728 | @breadcrumb-padding-horizontal: 15px;
729 | //** Breadcrumb background color
730 | @breadcrumb-bg:                 #f5f5f5;
731 | //** Breadcrumb text color
732 | @breadcrumb-color:              #ccc;
733 | //** Text color of current page in the breadcrumb
734 | @breadcrumb-active-color:       @gray-light;
735 | //** Textual separator for between breadcrumb elements
736 | @breadcrumb-separator:          "/";
737 | 
738 | 
739 | //== Carousel
740 | //
741 | //##
742 | 
743 | @carousel-text-shadow:                        0 1px 2px rgba(0,0,0,.6);
744 | 
745 | @carousel-control-color:                      #fff;
746 | @carousel-control-width:                      15%;
747 | @carousel-control-opacity:                    .5;
748 | @carousel-control-font-size:                  20px;
749 | 
750 | @carousel-indicator-active-bg:                #fff;
751 | @carousel-indicator-border-color:             #fff;
752 | 
753 | @carousel-caption-color:                      #fff;
754 | 
755 | 
756 | //== Close
757 | //
758 | //##
759 | 
760 | @close-font-weight:           bold;
761 | @close-color:                 #000;
762 | @close-text-shadow:           0 1px 0 #fff;
763 | 
764 | 
765 | //== Code
766 | //
767 | //##
768 | 
769 | @code-color:                  #c7254e;
770 | @code-bg:                     #f9f2f4;
771 | 
772 | @kbd-color:                   #fff;
773 | @kbd-bg:                      #333;
774 | 
775 | @pre-bg:                      #f5f5f5;
776 | @pre-color:                   @gray-dark;
777 | @pre-border-color:            #ccc;
778 | @pre-scrollable-max-height:   340px;
779 | 
780 | 
781 | //== Type
782 | //
783 | //##
784 | 
785 | //** Text muted color
786 | @text-muted:                  @gray-light;
787 | //** Abbreviations and acronyms border color
788 | @abbr-border-color:           @gray-light;
789 | //** Headings small color
790 | @headings-small-color:        @gray-light;
791 | //** Blockquote small color
792 | @blockquote-small-color:      @gray-light;
793 | //** Blockquote border color
794 | @blockquote-border-color:     @gray-lighter;
795 | //** Page header border color
796 | @page-header-border-color:    @gray-lighter;
797 | 
798 | 
799 | //== Miscellaneous
800 | //
801 | //##
802 | 
803 | //** Horizontal line color.
804 | @hr-border:                   @gray-lighter;
805 | 
806 | //** Horizontal offset for forms and lists.
807 | @component-offset-horizontal: 180px;
808 | 
809 | 
810 | //== Container sizes
811 | //
812 | //## Define the maximum width of `.container` for different screen sizes.
813 | 
814 | // Small screen / tablet
815 | @container-tablet:             ((720px + @grid-gutter-width));
816 | //** For `@screen-sm-min` and up.
817 | @container-sm:                 @container-tablet;
818 | 
819 | // Medium screen / desktop
820 | @container-desktop:            ((940px + @grid-gutter-width));
821 | //** For `@screen-md-min` and up.
822 | @container-md:                 @container-desktop;
823 | 
824 | // Large screen / wide desktop
825 | @container-large-desktop:      ((1140px + @grid-gutter-width));
826 | //** For `@screen-lg-min` and up.
827 | @container-lg:                 @container-large-desktop;
828 | 


--------------------------------------------------------------------------------
/VAuditDemo_Debug/footer.php:
--------------------------------------------------------------------------------
1 |         
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | VAuditDemo 5 | 6 | 7 | 8 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | 51 | 52 |
53 |
54 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/images/default.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virink/VAuditDemo/33dc98de2e9e505b86cf324b50fd484cfb9832c8/VAuditDemo_Debug/images/default.jpg -------------------------------------------------------------------------------- /VAuditDemo_Debug/index.php: -------------------------------------------------------------------------------- 1 | 5 |
6 | 12 |
13 |

VAuditDemo

14 |

一个简单的Web漏洞演练平台


15 |
16 |
17 |

用於演示講解PHP基本漏洞

18 |

19 |
20 | 23 |
24 | 25 | 28 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/install/install.php: -------------------------------------------------------------------------------- 1 | '; 44 | echo '

系統環境

'; 45 | echo '

服務器操作系統: .................................................................... '.PHP_OS.'

'; 46 | echo '

Web 服務器: .................................................... '.$_SERVER['SERVER_SOFTWARE'].'

'; 47 | echo '

PHP 版本: .................................................................... '.PHP_VERSION.'

'; 48 | echo '

MySQL 版本: .................................................................... '.$sys_info['mysql_ver'].'

'; 49 | echo '

Zlib 支持: .................................................................... '.$sys_info['zlib'].'

'; 50 | echo '

GD2 支持: .................................................................... '.$sys_info['gd'].'

'; 51 | echo '

Socket 支持: .................................................................... '.$sys_info['socket'].'

'; 52 | echo '

curl 支持: .................................................................... '.$sys_info['curl_init'].'

'; 53 | echo '

目錄權限

'; 54 | 55 | /* 检查目录 */ 56 | $check_dirs = array ( 57 | '../sys', 58 | '../uploads' 59 | ); 60 | 61 | $i = 0; 62 | foreach ( $check_dirs as $dir ) { 63 | $full_dir = $dir; 64 | $check_writeable = check_writeable( $full_dir ); 65 | if ( $check_writeable == '1' ) { 66 | echo "

".$check_dirs[$i]." ................................................................... 可寫

"; 67 | } 68 | elseif ( $check_writeable == '0' ) { 69 | echo "

".$check_dirs[$i]." ................................................................... 不可寫

"; 70 | $no_write = true; 71 | } 72 | elseif ( $check_writeable == '2' ) { 73 | echo "

".$check_dirs[$i]." ................................................................... 不存在

"; 74 | $no_write = true; 75 | } 76 | $i = $i + 1; 77 | } 78 | 79 | if ( $sys_info['gd'] == 'NO' || $sys_info['curl_init'] == 'NO' ) { 80 | exit( '組建不支持,無法安裝使用!' ); 81 | }else if ( $check_writeable == '0' || $check_writeable == '2' ) { 82 | exit( '關鍵目錄不可寫,無法安裝使用!' ); 83 | } 84 | 85 | if ( $_POST ) { 86 | 87 | if ( $_POST["dbhost"] == "" ) { 88 | exit( '数据库连接地址不能为空' ); 89 | }elseif ( $_POST["dbuser"] == "" ) { 90 | exit( '数据库数据库登录名' ); 91 | }elseif ( $_POST["dbname"] == "" ) { 92 | exit( '请先创建数据库名称' ); 93 | } 94 | 95 | $dbhost = $_POST["dbhost"]; 96 | $dbuser = $_POST["dbuser"]; 97 | $dbpass = $_POST["dbpass"]; 98 | $dbname = $_POST["dbname"]; 99 | 100 | $con = mysql_connect( $dbhost, $dbuser, $dbpass ); 101 | if ( !$con ) { 102 | die( '数据库链接出错,请检查账号密码及地址是否正确: ' . mysql_error() ); 103 | } 104 | 105 | $result = mysql_query('show databases;') or die ( mysql_error() );; 106 | While($row = mysql_fetch_assoc($result)){ 107 | $data[] = $row['Database']; 108 | } 109 | unset($result, $row); 110 | if (in_array(strtolower($dbname), $data)){ 111 | mysql_close(); 112 | echo ""; 113 | exit(); 114 | } 115 | 116 | mysql_query( "CREATE DATABASE $dbname", $con ) or die ( mysql_error() ); 117 | 118 | $str_tmp=""; 120 | $str_tmp.="\r\n"; 121 | $str_tmp.="error_reporting(0);\r\n"; 122 | $str_tmp.="\r\n"; 123 | $str_tmp.="if (!file_exists(\$_SERVER[\"DOCUMENT_ROOT\"].'/sys/install.lock')){\r\n\theader(\"Location: /install/install.php\");\r\nexit;\r\n}\r\n"; 124 | $str_tmp.="\r\n"; 125 | $str_tmp.="include_once('../sys/lib.php');\r\n"; 126 | $str_tmp.="\r\n"; 127 | $str_tmp.="\$host=\"$dbhost\"; \r\n"; 128 | $str_tmp.="\$username=\"$dbuser\"; \r\n"; 129 | $str_tmp.="\$password=\"$dbpass\"; \r\n"; 130 | $str_tmp.="\$database=\"$dbname\"; \r\n"; 131 | $str_tmp.="\r\n"; 132 | $str_tmp.="\$conn = mysql_connect(\$host,\$username,\$password);\r\n"; 133 | $str_tmp.="mysql_query('set names utf8',\$conn);\r\n"; 134 | $str_tmp.="mysql_select_db(\$database, \$conn) or die(mysql_error());\r\n"; 135 | $str_tmp.="if (!\$conn)\r\n"; 136 | $str_tmp.="{\r\n"; 137 | $str_tmp.="\tdie('Could not connect: ' . mysql_error());\r\n"; 138 | $str_tmp.="\texit;\r\n"; 139 | $str_tmp.="}\r\n"; 140 | $str_tmp.="\r\n"; 141 | $str_tmp.="session_start();\r\n"; 142 | $str_tmp.="\r\n"; 143 | $str_tmp.=$str_end; 144 | 145 | $fp=fopen( "../sys/config.php", "w" ); 146 | fwrite( $fp, $str_tmp ); 147 | fclose( $fp ); 148 | 149 | //创建表 150 | mysql_select_db( $dbname, $con ); 151 | mysql_query( "set names 'utf8'", $con ); 152 | //导入数据库 153 | $sql=file_get_contents( "install.sql" ); 154 | $a=explode( ";", $sql ); 155 | foreach ( $a as $b ) { 156 | mysql_query( $b.";" ); 157 | } 158 | mysql_close( $con ); 159 | file_put_contents($_SERVER["DOCUMENT_ROOT"].'/sys/install.lock', 'virink'); 160 | echo ""; 161 | exit; 162 | }else { 163 | echo "
"; 164 | echo ""; 165 | echo ""; 166 | echo ""; 167 | echo ""; 168 | echo ""; 169 | echo ""; 170 | echo ""; 171 | echo ""; 172 | echo ""; 173 | echo ""; 174 | echo ""; 175 | echo ""; 176 | echo ""; 177 | echo ""; 178 | echo ""; 179 | echo ""; 180 | echo ""; 181 | echo ""; 182 | echo " "; 183 | echo ""; 184 | echo ""; 185 | echo ""; 186 | echo ""; 187 | echo ""; 188 | echo "

數據庫连接地址:
*
數據庫登錄名:
*
數據庫登錄密碼:
*
創建數據庫名稱:
*
"; 189 | echo "
"; 190 | } 191 | ?> 192 | 193 | 194 | 197 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/install/install.sql: -------------------------------------------------------------------------------- 1 | # Host: localhost (Version: 5.5.40) 2 | # Date: 2016-07-06 02:06:51 3 | # Generator: MySQL-Front 5.3 (Build 4.214) 4 | 5 | /*!40101 SET NAMES utf-8 */; 6 | 7 | # 8 | # Structure for table "admin" 9 | # 10 | 11 | DROP TABLE IF EXISTS `admin`; 12 | CREATE TABLE `admin` ( 13 | `admin_id` int(10) unsigned NOT NULL AUTO_INCREMENT, 14 | `admin_name` varchar(200) NOT NULL DEFAULT '', 15 | `admin_pass` varchar(200) NOT NULL DEFAULT '', 16 | PRIMARY KEY (`admin_id`) 17 | ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; 18 | 19 | # 20 | # Data for table "admin" 21 | # 22 | 23 | /*!40000 ALTER TABLE `admin` DISABLE KEYS */; 24 | INSERT INTO `admin` VALUES (1,'admin','d033e22ae348aeb5660fc2140aec35850c4da997'); 25 | /*!40000 ALTER TABLE `admin` ENABLE KEYS */; 26 | 27 | # 28 | # Structure for table "comment" 29 | # 30 | 31 | DROP TABLE IF EXISTS `comment`; 32 | CREATE TABLE `comment` ( 33 | `comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT, 34 | `user_name` varchar(16) NOT NULL, 35 | `comment_text` varchar(255) NOT NULL DEFAULT '', 36 | `pub_date` date NOT NULL, 37 | PRIMARY KEY (`comment_id`) 38 | ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; 39 | 40 | # 41 | # Data for table "comment" 42 | # 43 | 44 | /*!40000 ALTER TABLE `comment` DISABLE KEYS */; 45 | /*!40000 ALTER TABLE `comment` ENABLE KEYS */; 46 | 47 | # 48 | # Structure for table "users" 49 | # 50 | 51 | DROP TABLE IF EXISTS `users`; 52 | CREATE TABLE `users` ( 53 | `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, 54 | `user_name` varchar(16) NOT NULL DEFAULT '', 55 | `user_pass` varchar(255) NOT NULL DEFAULT '', 56 | `user_avatar` varchar(255) NOT NULL DEFAULT '', 57 | `user_bio` varchar(255) NOT NULL DEFAULT '', 58 | `join_date` date NOT NULL, 59 | `login_ip` varchar(255) DEFAULT NULL, 60 | PRIMARY KEY (`user_id`) 61 | ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; 62 | 63 | # 64 | # Data for table "users" 65 | # 66 | 67 | /*!40000 ALTER TABLE `users` DISABLE KEYS */; 68 | /*!40000 ALTER TABLE `users` ENABLE KEYS */; 69 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.1.0 (http://getbootstrap.com) 3 | * Copyright 2011-2014 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.isLoading=!1};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",f.resetText||d.data("resetText",d[e]()),d[e](f[b]||this.options[b]),setTimeout(a.proxy(function(){"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},b.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}a&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});return this.$element.trigger(j),j.isDefaultPrevented()?void 0:(this.sliding=!0,f&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),f&&this.cycle(),this)};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);!e&&f.toggle&&"show"==c&&(c=!c),e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(b){a(d).remove(),a(e).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(''}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;(e||"destroy"!=c)&&(e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]())})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(a(c).is("body")?window:c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);{var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})}},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);if(g&&b<=e[0])return g!=(a=f[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(b.RESET).addClass("affix");var a=this.$window.scrollTop(),c=this.$element.offset();return this.pinnedOffset=c.top-a},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"top"==this.affixed&&(e.top+=d),"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top(this.$element)),"function"==typeof h&&(h=f.bottom(this.$element));var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;if(this.affixed!==i){this.unpin&&this.$element.css("top","");var j="affix"+(i?"-"+i:""),k=a.Event(j+".bs.affix");this.$element.trigger(k),k.isDefaultPrevented()||(this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(b.RESET).addClass(j).trigger(a.Event(j.replace("affix","affixed"))),"bottom"==i&&this.$element.offset({top:c-h-this.$element.height()}))}}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(jQuery); -------------------------------------------------------------------------------- /VAuditDemo_Debug/js/bootswatch.js: -------------------------------------------------------------------------------- 1 | $('[data-toggle="tooltip"]').tooltip(); -------------------------------------------------------------------------------- /VAuditDemo_Debug/js/bsa.js: -------------------------------------------------------------------------------- 1 | (function(){ 2 | var bsa = document.createElement('script'); 3 | bsa.type = 'text/javascript'; 4 | bsa.async = true; 5 | bsa.src = 'http://s3.buysellads.com/ac/bsa.js'; 6 | (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa); 7 | })(); -------------------------------------------------------------------------------- /VAuditDemo_Debug/js/check.js: -------------------------------------------------------------------------------- 1 | function check() 2 | { 3 | with(document.all){ 4 | if(passwd.value!=passwd2.value) 5 | { 6 | alert("密码不一致"); 7 | passwd2.value = ""; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /VAuditDemo_Debug/message.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | '; 21 | echo ''; 22 | echo ''; 23 | echo ''; 24 | } 25 | ?> 26 |
#Column heading
'.$html['username'].''.$html['comment_text'].'
27 |
28 | 31 |
32 |
33 | 34 |
35 | 36 | 返回




37 |
38 | 39 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/messageDetail.php: -------------------------------------------------------------------------------- 1 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | '; 26 | echo ''; 27 | echo ''; 28 | echo ''; 29 | echo ''; 30 | echo ''; 31 | } 32 | ?> 33 |
IDUsernameContentDate
'.$com['comment_id'].''.$html['username'].''.$html['comment_text'].''.$com['pub_date'].'
34 |
35 | 38 |
39 |
40 | 41 |
42 | 43 |
44 | 返回




45 | 50 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/messageSub.php: -------------------------------------------------------------------------------- 1 | 404 Not Found

Not Found

15 |

The requested URL ".$_SERVER['PHP_SELF']." was not found on this server.

"; 16 | } 17 | ?> 18 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/search.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | '; 23 | echo ''; 24 | echo ''; 25 | echo ''; 26 | } 27 | ?> 28 |
#Column heading
'.$html['username'].''.$html['comment_text'].'
29 |
30 | 33 |
34 |
35 | 36 |
37 | 38 |
39 | 返回




40 | 45 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/sys/config.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/sys/lib.php: -------------------------------------------------------------------------------- 1 | $v ) { 15 | $array [$k] = sec ( $v ); 16 | } 17 | } else if ( is_string( $array ) ) { 18 | $array = addslashes( $array ); 19 | } else if ( is_numeric( $array ) ) { 20 | $array = intval( $array ); 21 | } 22 | return $array; 23 | } 24 | 25 | function sqlwaf( $str ) { 26 | $str = str_ireplace( "and", "sqlwaf", $str ); 27 | $str = str_ireplace( "or", "sqlwaf", $str ); 28 | $str = str_ireplace( "from", "sqlwaf", $str ); 29 | $str = str_ireplace( "execute", "sqlwaf", $str ); 30 | $str = str_ireplace( "update", "sqlwaf", $str ); 31 | $str = str_ireplace( "count", "sqlwaf", $str ); 32 | $str = str_ireplace( "chr", "sqlwaf", $str ); 33 | $str = str_ireplace( "mid", "sqlwaf", $str ); 34 | $str = str_ireplace( "char", "sqlwaf", $str ); 35 | $str = str_ireplace( "union", "sqlwaf", $str ); 36 | $str = str_ireplace( "select", "sqlwaf", $str ); 37 | $str = str_ireplace( "delete", "sqlwaf", $str ); 38 | $str = str_ireplace( "insert", "sqlwaf", $str ); 39 | $str = str_ireplace( "limit", "sqlwaf", $str ); 40 | $str = str_ireplace( "concat", "sqlwaf", $str ); 41 | $str = str_ireplace( "\\", "\\\\", $str ); 42 | $str = str_ireplace( "&&", "", $str ); 43 | $str = str_ireplace( "||", "", $str ); 44 | $str = str_ireplace( "'", "", $str ); 45 | $str = str_ireplace( "%", "\%", $str ); 46 | $str = str_ireplace( "_", "\_", $str ); 47 | return $str; 48 | } 49 | 50 | function get_client_ip(){ 51 | if ($_SERVER["HTTP_CLIENT_IP"] && strcasecmp($_SERVER["HTTP_CLIENT_IP"], "unknown")){ 52 | $ip = $_SERVER["HTTP_CLIENT_IP"]; 53 | }else if ($_SERVER["HTTP_X_FORWARDED_FOR"] && strcasecmp($_SERVER["HTTP_X_FORWARDED_FOR"], "unknown")){ 54 | $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; 55 | }else if ($_SERVER["REMOTE_ADDR"] && strcasecmp($_SERVER["REMOTE_ADDR"], "unknown")){ 56 | $ip = $_SERVER["REMOTE_ADDR"]; 57 | }else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown")){ 58 | $ip = $_SERVER['REMOTE_ADDR']; 59 | }else{ 60 | $ip = "unknown"; 61 | } 62 | return($ip); 63 | } 64 | 65 | function clean_input( $dirty ) { 66 | return mysql_real_escape_string( stripslashes( $dirty ) ); 67 | } 68 | 69 | function is_pic( $file_name ) { 70 | $extend =explode( "." , $file_name ); 71 | $va=count( $extend )-1; 72 | if ( $extend[$va]=='jpg' || $extend[$va]=='jpeg' || $extend[$va]=='png' ) { 73 | return 1; 74 | } 75 | else 76 | return 0; 77 | } 78 | 79 | function not_find( $page ) { 80 | echo "404 Not Found

Not Found

81 |

The requested URL ".$page." was not found on this server.

"; 82 | } 83 | ?> 84 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/uploads/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virink/VAuditDemo/33dc98de2e9e505b86cf324b50fd484cfb9832c8/VAuditDemo_Debug/uploads/.gitkeep -------------------------------------------------------------------------------- /VAuditDemo_Debug/user/avatar.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/user/edit.php: -------------------------------------------------------------------------------- 1 | 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 | 69 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/user/logCheck.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/user/login.php: -------------------------------------------------------------------------------- 1 | 10 |
11 | 登录 12 |
13 | 14 |
15 | 16 |
17 |
18 |
19 | 20 |
21 | 22 |
23 |
24 |
25 |
26 | 27 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/user/logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/user/reg.php: -------------------------------------------------------------------------------- 1 | 10 |
11 | 注册 12 |
13 | 14 |
15 | 16 |
17 |
18 |
19 | 20 |
21 | 22 |
23 |
24 |
25 | 26 |
27 | 28 |
29 |
30 |
31 |
32 | 33 | 36 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/user/regCheck.php: -------------------------------------------------------------------------------- 1 | 16) { 7 | $_SESSION['error_info'] = '用户名過長(用戶名長度<=16)'; 8 | header('Location: reg.php'); 9 | exit; 10 | } 11 | 12 | //过滤输入变量 13 | $clean_name = clean_input($_POST['user']); 14 | $clean_pass = clean_input($_POST['passwd']); 15 | $avatar = '../images/default.jpg'; 16 | 17 | //判断用户名已是否存在 18 | $query = "SELECT * FROM users WHERE user_name = '$clean_name'"; 19 | $data = mysql_query($query, $conn); 20 | if (mysql_num_rows($data) == 1) { 21 | $_SESSION['error_info'] = '用户名已存在'; 22 | header('Location: reg.php'); 23 | } 24 | //添加用户 25 | else { 26 | $_SESSION['username'] = $clean_name; 27 | $_SESSION['avatar'] = $avatar; 28 | $date = date('Y-m-d'); 29 | $query = "INSERT INTO users(user_name,user_pass,user_avatar,join_date) VALUES ('$clean_name',SHA('$clean_pass'),'$avatar','$date')"; 30 | mysql_query($query, $conn) or die("Error!!"); 31 | header('Location: user.php'); 32 | } 33 | mysql_close($conn); 34 | } 35 | else { 36 | not_find($_SERVER['PHP_SELF']); 37 | } 38 | ?> 39 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/user/updateAvatar.php: -------------------------------------------------------------------------------- 1 | '; 22 | echo '返回'; 23 | } 24 | }else{ 25 | echo '只能上傳 jpg png gif!
'; 26 | echo '返回'; 27 | } 28 | } 29 | else { 30 | not_find($_SERVER['PHP_SELF']); 31 | } 32 | ?> 33 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/user/updateName.php: -------------------------------------------------------------------------------- 1 | 16) { 6 | $_SESSION['error_info'] = '用户名過長(用戶名長度<=16)'; 7 | header('Location: edit.php'); 8 | exit; 9 | } 10 | 11 | $clean_username = clean_input($_POST['username']); 12 | $clean_user_id = clean_input($_POST['id']); 13 | 14 | //判断用户名已是否存在 15 | $query = "SELECT * FROM users WHERE user_name = '$clean_username'"; 16 | $data = mysql_query($query, $conn); 17 | if (mysql_num_rows($data) == 1) { 18 | $_SESSION['error_info'] = '用户名已存在'; 19 | header('Location: edit.php'); 20 | exit; 21 | } 22 | 23 | $query = "UPDATE users SET user_name = '$clean_username' WHERE user_id = '$clean_user_id'"; 24 | mysql_query($query, $conn) or die("update error!"); 25 | mysql_close($conn); 26 | //刷新缓存 27 | $_SESSION['username'] = $clean_username; 28 | header('Location: edit.php'); 29 | } 30 | else { 31 | not_find($_SERVER['PHP_SELF']); 32 | } 33 | ?> -------------------------------------------------------------------------------- /VAuditDemo_Debug/user/updatePass.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Debug/user/user.php: -------------------------------------------------------------------------------- 1 | 18 |
19 |
20 | 21 |
22 |
23 | 24 |
25 | 26 |
27 | 28 |
29 |



30 |
31 |
32 | 39 | -------------------------------------------------------------------------------- /VAuditDemo_Release/about.inc: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 | 34 |
35 |
36 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/captcha.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/delAdmin.php: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/delCom.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/delUser.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/logCheck.php: -------------------------------------------------------------------------------- 1 | 38 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/login.php: -------------------------------------------------------------------------------- 1 | 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 | 41 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/manage.php: -------------------------------------------------------------------------------- 1 | 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 |
管理入口
管理員进入
用户进入
评论进入
Ping进入
32 | 39 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/manageAdmin.php: -------------------------------------------------------------------------------- 1 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 36 | 37 | 38 | 39 | 40 | 41 | 42 |
NameManege
删除
43 | 44 |
45 | 添加管理員 46 |
47 | 48 |
49 | 50 |
51 |
52 |
53 | 54 |
55 | 56 |
57 |
58 |
59 |
60 | 61 | 返回 62 | 69 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/manageCom.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 |
留言用户管理
删除
33 | 返回 34 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/manageUser.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
IdNameIpManege
删除
32 | 33 | 返回 34 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/php_errors.log: -------------------------------------------------------------------------------- 1 | [03-Aug-2016 19:04:07 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 2 | [03-Aug-2016 19:04:07 UTC] PHP Stack trace: 3 | [03-Aug-2016 19:04:07 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\login.php:0 4 | [03-Aug-2016 19:04:07 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\login.php:2 5 | [03-Aug-2016 19:04:07 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 6 | [03-Aug-2016 19:04:09 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 7 | [03-Aug-2016 19:04:09 UTC] PHP Stack trace: 8 | [03-Aug-2016 19:04:09 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\login.php:0 9 | [03-Aug-2016 19:04:09 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\login.php:2 10 | [03-Aug-2016 19:04:09 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 11 | [03-Aug-2016 19:05:06 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 12 | [03-Aug-2016 19:05:06 UTC] PHP Stack trace: 13 | [03-Aug-2016 19:05:06 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\logCheck.php:0 14 | [03-Aug-2016 19:05:06 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\logCheck.php:2 15 | [03-Aug-2016 19:05:06 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 16 | [03-Aug-2016 19:05:07 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 17 | [03-Aug-2016 19:05:07 UTC] PHP Stack trace: 18 | [03-Aug-2016 19:05:07 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manage.php:0 19 | [03-Aug-2016 19:05:07 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manage.php:2 20 | [03-Aug-2016 19:05:07 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 21 | [03-Aug-2016 19:05:09 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 22 | [03-Aug-2016 19:05:09 UTC] PHP Stack trace: 23 | [03-Aug-2016 19:05:09 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manage.php:0 24 | [03-Aug-2016 19:05:09 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manage.php:2 25 | [03-Aug-2016 19:05:09 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 26 | [03-Aug-2016 19:05:16 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 27 | [03-Aug-2016 19:05:16 UTC] PHP Stack trace: 28 | [03-Aug-2016 19:05:16 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\ping.php:0 29 | [03-Aug-2016 19:05:16 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\ping.php:2 30 | [03-Aug-2016 19:05:16 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 31 | [03-Aug-2016 19:05:17 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 32 | [03-Aug-2016 19:05:17 UTC] PHP Stack trace: 33 | [03-Aug-2016 19:05:17 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\ping.php:0 34 | [03-Aug-2016 19:05:18 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\ping.php:2 35 | [03-Aug-2016 19:05:18 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 36 | [03-Aug-2016 19:05:42 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 37 | [03-Aug-2016 19:05:42 UTC] PHP Stack trace: 38 | [03-Aug-2016 19:05:42 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\ping.php:0 39 | [03-Aug-2016 19:05:42 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\ping.php:2 40 | [03-Aug-2016 19:05:42 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 41 | [03-Aug-2016 19:06:20 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 42 | [03-Aug-2016 19:06:20 UTC] PHP Stack trace: 43 | [03-Aug-2016 19:06:20 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\ping.php:0 44 | [03-Aug-2016 19:06:20 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\ping.php:2 45 | [03-Aug-2016 19:06:21 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 46 | [03-Aug-2016 19:08:19 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 47 | [03-Aug-2016 19:08:19 UTC] PHP Stack trace: 48 | [03-Aug-2016 19:08:19 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\ping.php:0 49 | [03-Aug-2016 19:08:19 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\ping.php:2 50 | [03-Aug-2016 19:08:19 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 51 | [03-Aug-2016 19:08:30 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 52 | [03-Aug-2016 19:08:30 UTC] PHP Stack trace: 53 | [03-Aug-2016 19:08:30 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\ping.php:0 54 | [03-Aug-2016 19:08:30 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\ping.php:2 55 | [03-Aug-2016 19:08:30 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 56 | [03-Aug-2016 20:49:53 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 57 | [03-Aug-2016 20:49:53 UTC] PHP Stack trace: 58 | [03-Aug-2016 20:49:53 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\login.php:0 59 | [03-Aug-2016 20:49:53 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\login.php:2 60 | [03-Aug-2016 20:49:53 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 61 | [03-Aug-2016 20:49:55 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 62 | [03-Aug-2016 20:49:55 UTC] PHP Stack trace: 63 | [03-Aug-2016 20:49:55 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\login.php:0 64 | [03-Aug-2016 20:49:55 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\login.php:2 65 | [03-Aug-2016 20:49:55 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 66 | [03-Aug-2016 20:50:04 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 67 | [03-Aug-2016 20:50:04 UTC] PHP Stack trace: 68 | [03-Aug-2016 20:50:04 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\logCheck.php:0 69 | [03-Aug-2016 20:50:04 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\logCheck.php:2 70 | [03-Aug-2016 20:50:04 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 71 | [03-Aug-2016 20:50:05 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 72 | [03-Aug-2016 20:50:05 UTC] PHP Stack trace: 73 | [03-Aug-2016 20:50:05 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manage.php:0 74 | [03-Aug-2016 20:50:05 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manage.php:2 75 | [03-Aug-2016 20:50:05 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 76 | [03-Aug-2016 20:50:07 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 77 | [03-Aug-2016 20:50:07 UTC] PHP Stack trace: 78 | [03-Aug-2016 20:50:07 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manage.php:0 79 | [03-Aug-2016 20:50:07 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manage.php:2 80 | [03-Aug-2016 20:50:07 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 81 | [03-Aug-2016 20:50:24 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 82 | [03-Aug-2016 20:50:24 UTC] PHP Stack trace: 83 | [03-Aug-2016 20:50:24 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageUser.php:0 84 | [03-Aug-2016 20:50:24 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageUser.php:2 85 | [03-Aug-2016 20:50:24 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 86 | [03-Aug-2016 20:50:26 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 87 | [03-Aug-2016 20:50:26 UTC] PHP Stack trace: 88 | [03-Aug-2016 20:50:26 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageUser.php:0 89 | [03-Aug-2016 20:50:26 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageUser.php:2 90 | [03-Aug-2016 20:50:26 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 91 | [03-Aug-2016 20:50:41 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 92 | [03-Aug-2016 20:50:41 UTC] PHP Stack trace: 93 | [03-Aug-2016 20:50:41 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manage.php:0 94 | [03-Aug-2016 20:50:41 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manage.php:2 95 | [03-Aug-2016 20:50:41 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 96 | [03-Aug-2016 20:50:43 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 97 | [03-Aug-2016 20:50:43 UTC] PHP Stack trace: 98 | [03-Aug-2016 20:50:43 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manage.php:0 99 | [03-Aug-2016 20:50:43 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manage.php:2 100 | [03-Aug-2016 20:50:43 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 101 | [03-Aug-2016 20:50:46 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 102 | [03-Aug-2016 20:50:46 UTC] PHP Stack trace: 103 | [03-Aug-2016 20:50:46 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 104 | [03-Aug-2016 20:50:46 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:2 105 | [03-Aug-2016 20:50:46 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 106 | [03-Aug-2016 20:50:47 UTC] PHP Notice: Undefined index: user_id in E:\SourceCodes\VAuditDemo\admin\manageAdmin.php on line 38 107 | [03-Aug-2016 20:50:47 UTC] PHP Stack trace: 108 | [03-Aug-2016 20:50:47 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 109 | [03-Aug-2016 20:50:47 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 110 | [03-Aug-2016 20:50:47 UTC] PHP Stack trace: 111 | [03-Aug-2016 20:50:47 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 112 | [03-Aug-2016 20:50:47 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:2 113 | [03-Aug-2016 20:50:47 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 114 | [03-Aug-2016 20:50:48 UTC] PHP Notice: Undefined index: user_id in E:\SourceCodes\VAuditDemo\admin\manageAdmin.php on line 38 115 | [03-Aug-2016 20:50:48 UTC] PHP Stack trace: 116 | [03-Aug-2016 20:50:48 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 117 | [03-Aug-2016 20:51:22 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 118 | [03-Aug-2016 20:51:22 UTC] PHP Stack trace: 119 | [03-Aug-2016 20:51:22 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 120 | [03-Aug-2016 20:51:22 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:2 121 | [03-Aug-2016 20:51:22 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 122 | [03-Aug-2016 20:51:23 UTC] PHP Notice: Undefined index: user_id in E:\SourceCodes\VAuditDemo\admin\manageAdmin.php on line 38 123 | [03-Aug-2016 20:51:23 UTC] PHP Stack trace: 124 | [03-Aug-2016 20:51:23 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 125 | [03-Aug-2016 20:51:23 UTC] PHP Notice: Undefined index: user_id in E:\SourceCodes\VAuditDemo\admin\manageAdmin.php on line 38 126 | [03-Aug-2016 20:51:23 UTC] PHP Stack trace: 127 | [03-Aug-2016 20:51:23 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 128 | [03-Aug-2016 20:52:10 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 129 | [03-Aug-2016 20:52:10 UTC] PHP Stack trace: 130 | [03-Aug-2016 20:52:10 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 131 | [03-Aug-2016 20:52:10 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:2 132 | [03-Aug-2016 20:52:10 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 133 | [03-Aug-2016 20:52:12 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 134 | [03-Aug-2016 20:52:12 UTC] PHP Stack trace: 135 | [03-Aug-2016 20:52:12 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 136 | [03-Aug-2016 20:52:12 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:2 137 | [03-Aug-2016 20:52:12 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 138 | [03-Aug-2016 20:52:19 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 139 | [03-Aug-2016 20:52:19 UTC] PHP Stack trace: 140 | [03-Aug-2016 20:52:19 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\delUser.php:0 141 | [03-Aug-2016 20:52:19 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\delUser.php:2 142 | [03-Aug-2016 20:52:19 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 143 | [03-Aug-2016 20:52:20 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 144 | [03-Aug-2016 20:52:20 UTC] PHP Stack trace: 145 | [03-Aug-2016 20:52:20 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageUser.php:0 146 | [03-Aug-2016 20:52:20 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageUser.php:2 147 | [03-Aug-2016 20:52:20 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 148 | [03-Aug-2016 20:52:22 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 149 | [03-Aug-2016 20:52:22 UTC] PHP Stack trace: 150 | [03-Aug-2016 20:52:22 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageUser.php:0 151 | [03-Aug-2016 20:52:22 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageUser.php:2 152 | [03-Aug-2016 20:52:22 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 153 | [03-Aug-2016 20:52:27 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 154 | [03-Aug-2016 20:52:27 UTC] PHP Stack trace: 155 | [03-Aug-2016 20:52:27 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manage.php:0 156 | [03-Aug-2016 20:52:27 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manage.php:2 157 | [03-Aug-2016 20:52:27 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 158 | [03-Aug-2016 20:52:28 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 159 | [03-Aug-2016 20:52:28 UTC] PHP Stack trace: 160 | [03-Aug-2016 20:52:28 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manage.php:0 161 | [03-Aug-2016 20:52:28 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manage.php:2 162 | [03-Aug-2016 20:52:28 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 163 | [03-Aug-2016 21:01:13 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 164 | [03-Aug-2016 21:01:13 UTC] PHP Stack trace: 165 | [03-Aug-2016 21:01:13 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 166 | [03-Aug-2016 21:01:13 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:2 167 | [03-Aug-2016 21:01:13 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 168 | [03-Aug-2016 21:01:15 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 169 | [03-Aug-2016 21:01:15 UTC] PHP Stack trace: 170 | [03-Aug-2016 21:01:15 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 171 | [03-Aug-2016 21:01:15 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:2 172 | [03-Aug-2016 21:01:15 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 173 | [03-Aug-2016 21:07:10 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 174 | [03-Aug-2016 21:07:10 UTC] PHP Stack trace: 175 | [03-Aug-2016 21:07:10 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\login.php:0 176 | [03-Aug-2016 21:07:10 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\login.php:2 177 | [03-Aug-2016 21:07:10 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 178 | [03-Aug-2016 21:07:20 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 179 | [03-Aug-2016 21:07:20 UTC] PHP Stack trace: 180 | [03-Aug-2016 21:07:20 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\logCheck.php:0 181 | [03-Aug-2016 21:07:20 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\logCheck.php:2 182 | [03-Aug-2016 21:07:20 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 183 | [03-Aug-2016 21:07:21 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 184 | [03-Aug-2016 21:07:21 UTC] PHP Stack trace: 185 | [03-Aug-2016 21:07:21 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manage.php:0 186 | [03-Aug-2016 21:07:21 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manage.php:2 187 | [03-Aug-2016 21:07:21 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 188 | [03-Aug-2016 21:07:27 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 189 | [03-Aug-2016 21:07:27 UTC] PHP Stack trace: 190 | [03-Aug-2016 21:07:27 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageUser.php:0 191 | [03-Aug-2016 21:07:27 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageUser.php:2 192 | [03-Aug-2016 21:07:27 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 193 | [03-Aug-2016 21:08:54 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 194 | [03-Aug-2016 21:08:54 UTC] PHP Stack trace: 195 | [03-Aug-2016 21:08:54 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageUser.php:0 196 | [03-Aug-2016 21:08:54 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageUser.php:2 197 | [03-Aug-2016 21:08:54 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 198 | [03-Aug-2016 21:08:58 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 199 | [03-Aug-2016 21:08:58 UTC] PHP Stack trace: 200 | [03-Aug-2016 21:08:58 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 201 | [03-Aug-2016 21:08:58 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:2 202 | [03-Aug-2016 21:08:58 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 203 | [03-Aug-2016 21:09:36 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 204 | [03-Aug-2016 21:09:36 UTC] PHP Stack trace: 205 | [03-Aug-2016 21:09:36 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manage.php:0 206 | [03-Aug-2016 21:09:36 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manage.php:2 207 | [03-Aug-2016 21:09:36 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 208 | [03-Aug-2016 21:09:42 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 209 | [03-Aug-2016 21:09:42 UTC] PHP Stack trace: 210 | [03-Aug-2016 21:09:42 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:0 211 | [03-Aug-2016 21:09:42 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manageAdmin.php:2 212 | [03-Aug-2016 21:09:42 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 213 | [03-Aug-2016 21:09:57 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 214 | [03-Aug-2016 21:09:57 UTC] PHP Stack trace: 215 | [03-Aug-2016 21:09:57 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\login.php:0 216 | [03-Aug-2016 21:09:57 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\login.php:2 217 | [03-Aug-2016 21:09:57 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 218 | [03-Aug-2016 21:10:10 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 219 | [03-Aug-2016 21:10:10 UTC] PHP Stack trace: 220 | [03-Aug-2016 21:10:10 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\logCheck.php:0 221 | [03-Aug-2016 21:10:10 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\logCheck.php:2 222 | [03-Aug-2016 21:10:10 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 223 | [03-Aug-2016 21:10:11 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\SourceCodes\VAuditDemo\sys\config.php on line 17 224 | [03-Aug-2016 21:10:11 UTC] PHP Stack trace: 225 | [03-Aug-2016 21:10:11 UTC] PHP 1. {main}() E:\SourceCodes\VAuditDemo\admin\manage.php:0 226 | [03-Aug-2016 21:10:11 UTC] PHP 2. include_once() E:\SourceCodes\VAuditDemo\admin\manage.php:2 227 | [03-Aug-2016 21:10:11 UTC] PHP 3. mysql_connect('localhost', 'root', 'root') E:\SourceCodes\VAuditDemo\sys\config.php:17 228 | -------------------------------------------------------------------------------- /VAuditDemo_Release/admin/ping.php: -------------------------------------------------------------------------------- 1 | 9 |
10 |
11 | 36 |
37 |
38 | 39 | 40 | 返回 41 | 48 | -------------------------------------------------------------------------------- /VAuditDemo_Release/css/bootswatch.less: -------------------------------------------------------------------------------- 1 | // Custom 3.1.0 2 | // Bootswatch 3 | // ----------------------------------------------------- 4 | 5 | 6 | // Navbar ===================================================================== 7 | 8 | // Buttons ==================================================================== 9 | 10 | // Typography ================================================================= 11 | 12 | // Tables ===================================================================== 13 | 14 | // Forms ====================================================================== 15 | 16 | // Navs ======================================================================= 17 | 18 | // Indicators ================================================================= 19 | 20 | // Progress bars ============================================================== 21 | 22 | // Containers ================================================================= 23 | -------------------------------------------------------------------------------- /VAuditDemo_Release/css/bootswatch.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px} 2 | #banner{border-bottom:none} 3 | .page-header h1{font-size:4em} 4 | .bs-docs-section{margin-top:8em} 5 | footer{margin:5em 0}footer li{float:left;margin-right:1.5em;margin-bottom:1.5em} 6 | footer p{clear:left;margin-bottom:0} 7 | .splash{padding:4em 0 2em;background-color:#1c2533;background:-webkit-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:-o-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:-ms-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:-moz-linear-gradient(70deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background:linear-gradient(20deg, #080f1f 30%, #2b4b5a 87%, #435e67 100%);background-attachment:fixed;color:#fff;text-align:center}.splash .alert{margin:4em 0 2em} 8 | .splash h1{font-size:4em} 9 | .splash #social{margin:2em 0 4em} 10 | .splash .bsa{max-width:350px;margin:0 auto;background:none}.splash .bsa .one .bsa_it_ad{border:1px solid #3e4653 !important;border-color:rgba(255,255,255,0.2) !important} 11 | .splash .bsa a{color:#fff} 12 | .section-tout{padding:4em 0 3em;border-top:1px solid rgba(255,255,255,0.1);border-bottom:1px solid rgba(0,0,0,0.1);background-color:#eaf1f1}.section-tout .fa{margin-right:.5em} 13 | .section-tout p{margin-bottom:3em} 14 | .section-preview{padding:4em 0 4em}.section-preview .preview{margin-bottom:4em;background-color:#eaf1f1;border:1px solid rgba(0,0,0,0.1);border-radius:6px}.section-preview .preview .image{padding:5px}.section-preview .preview .image img{border:1px solid rgba(0,0,0,0.1)} 15 | .section-preview .preview .options{text-align:center;padding:0 2em 2em}.section-preview .preview .options p{margin-bottom:2em} 16 | .section-preview .dropdown-menu{text-align:left} 17 | .section-preview .lead{margin-bottom:2em} 18 | @media (max-width:767px){.section-preview .image img{width:100%}} 19 | .bsa{padding:0}.bsa .one .bsa_it_ad{border:none !important;background-color:transparent !important}.bsa .one .bsa_it_ad .bsa_it_t,.bsa .one .bsa_it_ad .bsa_it_d{color:inherit !important} 20 | .bsa .one .bsa_it_ad .bsa_it_i{margin-bottom:0 !important} 21 | .bsa .one .bsa_it_p{display:none} 22 | -------------------------------------------------------------------------------- /VAuditDemo_Release/footer.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /VAuditDemo_Release/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | VAuditDemo 5 | 6 | 7 | 8 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | 51 | 52 |
53 |
54 | -------------------------------------------------------------------------------- /VAuditDemo_Release/images/default.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virink/VAuditDemo/33dc98de2e9e505b86cf324b50fd484cfb9832c8/VAuditDemo_Release/images/default.jpg -------------------------------------------------------------------------------- /VAuditDemo_Release/index.php: -------------------------------------------------------------------------------- 1 | 5 |
6 | 18 |
19 |

VAuditDemo

20 |

一个简单的Web漏洞演练平台


21 |
22 |
23 |

用於演示講解PHP基本漏洞

24 |

25 |
26 | 29 |
30 | 31 | 34 | -------------------------------------------------------------------------------- /VAuditDemo_Release/install/install.php: -------------------------------------------------------------------------------- 1 | '; 46 | echo '

系統環境

'; 47 | echo '

服務器操作系統: .................................................................... '.PHP_OS.'

'; 48 | echo '

Web 服務器: .................................................... '.$_SERVER['SERVER_SOFTWARE'].'

'; 49 | echo '

PHP 版本: .................................................................... '.PHP_VERSION.'

'; 50 | echo '

MySQL 版本: .................................................................... '.$sys_info['mysql_ver'].'

'; 51 | echo '

Zlib 支持: .................................................................... '.$sys_info['zlib'].'

'; 52 | echo '

GD2 支持: .................................................................... '.$sys_info['gd'].'

'; 53 | echo '

Socket 支持: .................................................................... '.$sys_info['socket'].'

'; 54 | echo '

curl 支持: .................................................................... '.$sys_info['curl_init'].'

'; 55 | echo '

目錄權限

'; 56 | 57 | /* 检查目录 */ 58 | $check_dirs = array ( 59 | '../sys', 60 | '../uploads' 61 | ); 62 | 63 | $i = 0; 64 | foreach ( $check_dirs as $dir ) { 65 | $full_dir = $dir; 66 | $check_writeable = check_writeable( $full_dir ); 67 | if ( $check_writeable == '1' ) { 68 | echo "

".$check_dirs[$i]." ................................................................... 可寫

"; 69 | } 70 | elseif ( $check_writeable == '0' ) { 71 | echo "

".$check_dirs[$i]." ................................................................... 不可寫

"; 72 | $no_write = true; 73 | } 74 | elseif ( $check_writeable == '2' ) { 75 | echo "

".$check_dirs[$i]." ................................................................... 不存在

"; 76 | $no_write = true; 77 | } 78 | $i = $i + 1; 79 | } 80 | 81 | if ( $sys_info['gd'] == 'NO' || $sys_info['curl_init'] == 'NO' ) { 82 | exit( '組建不支持,無法安裝使用!' ); 83 | }else if ( $check_writeable == '0' || $check_writeable == '2' ) { 84 | exit( '關鍵目錄不可寫,無法安裝使用!' ); 85 | } 86 | 87 | if ( $_POST ) { 88 | 89 | if ( $_POST["dbhost"] == "" ) { 90 | exit( '数据库连接地址不能为空' ); 91 | }elseif ( $_POST["dbuser"] == "" ) { 92 | exit( '数据库数据库登录名' ); 93 | }elseif ( $_POST["dbname"] == "" ) { 94 | exit( '请先创建数据库名称' ); 95 | } 96 | 97 | $dbhost = $_POST["dbhost"]; 98 | $dbuser = $_POST["dbuser"]; 99 | $dbpass = $_POST["dbpass"]; 100 | $dbname = $_POST["dbname"]; 101 | 102 | $con = mysql_connect( $dbhost, $dbuser, $dbpass ); 103 | if ( !$con ) { 104 | die( '数据库链接出错,请检查账号密码及地址是否正确: ' . mysql_error() ); 105 | } 106 | 107 | $result = mysql_query('show databases;') or die ( mysql_error() );; 108 | While($row = mysql_fetch_assoc($result)){ 109 | $data[] = $row['Database']; 110 | } 111 | unset($result, $row); 112 | if (in_array(strtolower($dbname), $data)){ 113 | mysql_close(); 114 | echo ""; 115 | exit(); 116 | } 117 | 118 | // exp;-- -";phpinfo();// 119 | 120 | mysql_query( "CREATE DATABASE $dbname", $con ) or die ( mysql_error() ); 121 | 122 | $str_tmp=""; 124 | $str_tmp.="\r\n"; 125 | $str_tmp.="error_reporting(0);\r\n"; 126 | $str_tmp.="\r\n"; 127 | $str_tmp.="if (!file_exists(\$_SERVER[\"DOCUMENT_ROOT\"].'/sys/install.lock')){\r\n\theader(\"Location: /install/install.php\");\r\nexit;\r\n}\r\n"; 128 | $str_tmp.="\r\n"; 129 | $str_tmp.="include_once('../sys/lib.php');\r\n"; 130 | $str_tmp.="\r\n"; 131 | $str_tmp.="\$host=\"$dbhost\"; \r\n"; 132 | $str_tmp.="\$username=\"$dbuser\"; \r\n"; 133 | $str_tmp.="\$password=\"$dbpass\"; \r\n"; 134 | $str_tmp.="\$database=\"$dbname\"; \r\n"; 135 | $str_tmp.="\r\n"; 136 | $str_tmp.="\$conn = mysql_connect(\$host,\$username,\$password);\r\n"; 137 | $str_tmp.="mysql_query('set names utf8',\$conn);\r\n"; 138 | $str_tmp.="mysql_select_db(\$database, \$conn) or die(mysql_error());\r\n"; 139 | $str_tmp.="if (!\$conn)\r\n"; 140 | $str_tmp.="{\r\n"; 141 | $str_tmp.="\tdie('Could not connect: ' . mysql_error());\r\n"; 142 | $str_tmp.="\texit;\r\n"; 143 | $str_tmp.="}\r\n"; 144 | $str_tmp.="\r\n"; 145 | $str_tmp.="session_start();\r\n"; 146 | $str_tmp.="\r\n"; 147 | $str_tmp.=$str_end; 148 | 149 | $fp=fopen( "../sys/config.php", "w" ); 150 | fwrite( $fp, $str_tmp ); 151 | fclose( $fp ); 152 | 153 | //创建表 154 | mysql_select_db( $dbname, $con ); 155 | mysql_query( "set names 'utf8'", $con ); 156 | //导入数据库 157 | $sql=file_get_contents( "install.sql" ); 158 | $a=explode( ";", $sql ); 159 | foreach ( $a as $b ) { 160 | mysql_query( $b.";" ); 161 | } 162 | mysql_close( $con ); 163 | file_put_contents($_SERVER["DOCUMENT_ROOT"].'/sys/install.lock', 'virink'); 164 | echo ""; 165 | exit; 166 | }else { 167 | echo "
"; 168 | echo ""; 169 | echo ""; 170 | echo ""; 171 | echo ""; 172 | echo ""; 173 | echo ""; 174 | echo ""; 175 | echo ""; 176 | echo ""; 177 | echo ""; 178 | echo ""; 179 | echo ""; 180 | echo ""; 181 | echo ""; 182 | echo ""; 183 | echo ""; 184 | echo ""; 185 | echo ""; 186 | echo " "; 187 | echo ""; 188 | echo ""; 189 | echo ""; 190 | echo ""; 191 | echo ""; 192 | echo "

數據庫连接地址:
*
數據庫登錄名:
*
數據庫登錄密碼:
*
創建數據庫名稱:
*
"; 193 | echo "
"; 194 | } 195 | ?> 196 | 197 | 198 | 201 | -------------------------------------------------------------------------------- /VAuditDemo_Release/install/install.sql: -------------------------------------------------------------------------------- 1 | # Host: localhost (Version: 5.5.40) 2 | # Date: 2016-07-06 02:06:51 3 | # Generator: MySQL-Front 5.3 (Build 4.214) 4 | 5 | /*!40101 SET NAMES utf-8 */; 6 | 7 | # 8 | # Structure for table "admin" 9 | # 10 | 11 | DROP TABLE IF EXISTS `admin`; 12 | CREATE TABLE `admin` ( 13 | `admin_id` int(10) unsigned NOT NULL AUTO_INCREMENT, 14 | `admin_name` varchar(200) NOT NULL DEFAULT '', 15 | `admin_pass` varchar(200) NOT NULL DEFAULT '', 16 | PRIMARY KEY (`admin_id`) 17 | ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; 18 | 19 | # 20 | # Data for table "admin" 21 | # 22 | 23 | /*!40000 ALTER TABLE `admin` DISABLE KEYS */; 24 | INSERT INTO `admin` VALUES (1,'admin','d033e22ae348aeb5660fc2140aec35850c4da997'); 25 | /*!40000 ALTER TABLE `admin` ENABLE KEYS */; 26 | 27 | # 28 | # Structure for table "comment" 29 | # 30 | 31 | DROP TABLE IF EXISTS `comment`; 32 | CREATE TABLE `comment` ( 33 | `comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT, 34 | `user_name` varchar(16) NOT NULL, 35 | `comment_text` varchar(255) NOT NULL DEFAULT '', 36 | `pub_date` date NOT NULL, 37 | PRIMARY KEY (`comment_id`) 38 | ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; 39 | 40 | # 41 | # Data for table "comment" 42 | # 43 | 44 | /*!40000 ALTER TABLE `comment` DISABLE KEYS */; 45 | /*!40000 ALTER TABLE `comment` ENABLE KEYS */; 46 | 47 | # 48 | # Structure for table "users" 49 | # 50 | 51 | DROP TABLE IF EXISTS `users`; 52 | CREATE TABLE `users` ( 53 | `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, 54 | `user_name` varchar(16) NOT NULL DEFAULT '', 55 | `user_pass` varchar(255) NOT NULL DEFAULT '', 56 | `user_avatar` varchar(255) NOT NULL DEFAULT '', 57 | `join_date` date NOT NULL, 58 | `login_ip` varchar(255) DEFAULT NULL, 59 | PRIMARY KEY (`user_id`) 60 | ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; 61 | 62 | # 63 | # Data for table "users" 64 | # 65 | 66 | /*!40000 ALTER TABLE `users` DISABLE KEYS */; 67 | /*!40000 ALTER TABLE `users` ENABLE KEYS */; 68 | -------------------------------------------------------------------------------- /VAuditDemo_Release/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.1.0 (http://getbootstrap.com) 3 | * Copyright 2011-2014 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.isLoading=!1};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",f.resetText||d.data("resetText",d[e]()),d[e](f[b]||this.options[b]),setTimeout(a.proxy(function(){"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},b.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}a&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});return this.$element.trigger(j),j.isDefaultPrevented()?void 0:(this.sliding=!0,f&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),f&&this.cycle(),this)};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);!e&&f.toggle&&"show"==c&&(c=!c),e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(b){a(d).remove(),a(e).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(''}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;(e||"destroy"!=c)&&(e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]())})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(a(c).is("body")?window:c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);{var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})}},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);if(g&&b<=e[0])return g!=(a=f[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(b.RESET).addClass("affix");var a=this.$window.scrollTop(),c=this.$element.offset();return this.pinnedOffset=c.top-a},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"top"==this.affixed&&(e.top+=d),"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top(this.$element)),"function"==typeof h&&(h=f.bottom(this.$element));var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;if(this.affixed!==i){this.unpin&&this.$element.css("top","");var j="affix"+(i?"-"+i:""),k=a.Event(j+".bs.affix");this.$element.trigger(k),k.isDefaultPrevented()||(this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(b.RESET).addClass(j).trigger(a.Event(j.replace("affix","affixed"))),"bottom"==i&&this.$element.offset({top:c-h-this.$element.height()}))}}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(jQuery); -------------------------------------------------------------------------------- /VAuditDemo_Release/js/bootswatch.js: -------------------------------------------------------------------------------- 1 | $('[data-toggle="tooltip"]').tooltip(); -------------------------------------------------------------------------------- /VAuditDemo_Release/js/bsa.js: -------------------------------------------------------------------------------- 1 | (function(){ 2 | var bsa = document.createElement('script'); 3 | bsa.type = 'text/javascript'; 4 | bsa.async = true; 5 | bsa.src = 'http://s3.buysellads.com/ac/bsa.js'; 6 | (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa); 7 | })(); -------------------------------------------------------------------------------- /VAuditDemo_Release/js/check.js: -------------------------------------------------------------------------------- 1 | function check() 2 | { 3 | with(document.all){ 4 | if(passwd.value!=passwd2.value) 5 | { 6 | alert("密码不一致"); 7 | passwd2.value = ""; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /VAuditDemo_Release/message.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | '; 21 | echo ''; 22 | echo ''; 23 | echo ''; 24 | } 25 | ?> 26 |
#Column heading
'.$html['username'].''.$html['comment_text'].'
27 |
28 | 31 |
32 |
33 | 34 |
35 | 36 | 返回




37 |
38 | 39 | -------------------------------------------------------------------------------- /VAuditDemo_Release/messageDetail.php: -------------------------------------------------------------------------------- 1 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | '; 27 | echo ''; 28 | echo ''; 29 | echo ''; 30 | echo ''; 31 | echo ''; 32 | } 33 | ?> 34 |
IDUsernameContentDate
'.$com['comment_id'].''.$html['username'].''.$html['comment_text'].''.$com['pub_date'].'
35 |
36 | 39 |
40 |
41 | 42 |
43 | 44 |
45 | 返回




46 | 51 | -------------------------------------------------------------------------------- /VAuditDemo_Release/messageSub.php: -------------------------------------------------------------------------------- 1 | 404 Not Found

Not Found

20 |

The requested URL ".$_SERVER['PHP_SELF']." was not found on this server.

"; 21 | } 22 | ?> 23 | -------------------------------------------------------------------------------- /VAuditDemo_Release/search.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | '; 23 | echo ''; 24 | echo ''; 25 | echo ''; 26 | } 27 | ?> 28 |
#Column heading
'.$html['username'].''.$html['comment_text'].'
29 |
30 | 33 |
34 |
35 | 36 |
37 | 38 |
39 | 返回




40 | 45 | -------------------------------------------------------------------------------- /VAuditDemo_Release/strtotime.php: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /VAuditDemo_Release/sys/config.php: -------------------------------------------------------------------------------- 1 | 29 | -------------------------------------------------------------------------------- /VAuditDemo_Release/sys/install.lock: -------------------------------------------------------------------------------- 1 | virink -------------------------------------------------------------------------------- /VAuditDemo_Release/sys/lib.php: -------------------------------------------------------------------------------- 1 | $v ) { 17 | $array [$k] = sec ( $v ); 18 | } 19 | } else if ( is_string( $array ) ) { 20 | $array = addslashes( $array ); 21 | } else if ( is_numeric( $array ) ) { 22 | $array = intval( $array ); 23 | } 24 | return $array; 25 | } 26 | 27 | /* Maybe bypass */ 28 | function sqlwaf( $str ) { 29 | $str = str_ireplace( "and", "sqlwaf", $str ); 30 | $str = str_ireplace( "or", "sqlwaf", $str ); 31 | $str = str_ireplace( "from", "sqlwaf", $str ); 32 | $str = str_ireplace( "execute", "sqlwaf", $str ); 33 | $str = str_ireplace( "update", "sqlwaf", $str ); 34 | $str = str_ireplace( "count", "sqlwaf", $str ); 35 | $str = str_ireplace( "chr", "sqlwaf", $str ); 36 | $str = str_ireplace( "mid", "sqlwaf", $str ); 37 | $str = str_ireplace( "char", "sqlwaf", $str ); 38 | $str = str_ireplace( "union", "sqlwaf", $str ); 39 | $str = str_ireplace( "select", "sqlwaf", $str ); 40 | $str = str_ireplace( "delete", "sqlwaf", $str ); 41 | $str = str_ireplace( "insert", "sqlwaf", $str ); 42 | $str = str_ireplace( "limit", "sqlwaf", $str ); 43 | $str = str_ireplace( "concat", "sqlwaf", $str ); 44 | $str = str_ireplace( "script", "sqlwaf", $str ); 45 | $str = str_ireplace( "\\", "\\\\", $str ); 46 | $str = str_ireplace( "&&", "sqlwaf", $str ); // sel||ect -> select 47 | $str = str_ireplace( "||", "sqlwaf", $str ); 48 | $str = str_ireplace( "'", "sqlwaf", $str ); // \' -> \ 49 | $str = str_ireplace( "%", "\%", $str ); 50 | $str = str_ireplace( "_", "\_", $str ); 51 | return $str; 52 | } 53 | 54 | /* Maybe Inject */ 55 | function get_client_ip(){ 56 | if ($_SERVER["HTTP_CLIENT_IP"] && strcasecmp($_SERVER["HTTP_CLIENT_IP"], "unknown")){ 57 | $ip = $_SERVER["HTTP_CLIENT_IP"]; 58 | }else if ($_SERVER["HTTP_X_FORWARDED_FOR"] && strcasecmp($_SERVER["HTTP_X_FORWARDED_FOR"], "unknown")){ 59 | $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; 60 | }else if ($_SERVER["REMOTE_ADDR"] && strcasecmp($_SERVER["REMOTE_ADDR"], "unknown")){ 61 | $ip = $_SERVER["REMOTE_ADDR"]; 62 | }else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown")){ 63 | $ip = $_SERVER['REMOTE_ADDR']; 64 | }else{ 65 | $ip = "unknown"; 66 | } 67 | return($ip); 68 | } 69 | 70 | function clean_input( $dirty ) { 71 | return mysql_real_escape_string( stripslashes( $dirty ) ); 72 | // xxx\ -> xxx\\ -> xxx\ -> xxx\\ 73 | // 2016-08-05 6:54 INSERT INTO users(user_name,user_pass,user_avatar,join_date) VALUES ('test\\',SHA('123456'),'../images/default.jpg','2016-08-04') 74 | } 75 | 76 | function is_pic( $file_name ) { 77 | $extend =explode( "." , $file_name ); 78 | $va=count( $extend )-1; 79 | if ( $extend[$va]=='jpg' || $extend[$va]=='jpeg' || $extend[$va]=='png' ) { 80 | return 1; 81 | } 82 | else 83 | return 0; 84 | } 85 | 86 | function not_find( $page ) { 87 | echo "404 Not Found

Not Found

88 |

The requested URL ".$page." was not found on this server.

"; 89 | } 90 | ?> 91 | -------------------------------------------------------------------------------- /VAuditDemo_Release/user/avatar.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /VAuditDemo_Release/user/edit.php: -------------------------------------------------------------------------------- 1 | 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 | 69 | -------------------------------------------------------------------------------- /VAuditDemo_Release/user/logCheck.php: -------------------------------------------------------------------------------- 1 | 16 | // 33 | 36 | -------------------------------------------------------------------------------- /VAuditDemo_Release/user/regCheck.php: -------------------------------------------------------------------------------- 1 | 16) { 7 | $_SESSION['error_info'] = '用户名過長(用戶名長度<=16)'; 8 | header('Location: reg.php'); 9 | exit; 10 | } 11 | 12 | //过滤输入变量 13 | $clean_name = clean_input($_POST['user']); 14 | if (!preg_match("/^[a-zA-Z0-9]+$/",$clean_name)) { 15 | die('用户名只允许\w+'); 16 | } 17 | $clean_pass = clean_input($_POST['passwd']); 18 | $avatar = '../images/default.jpg'; 19 | 20 | //判断用户名已是否存在 21 | $query = "SELECT * FROM users WHERE user_name = '$clean_name'"; 22 | $data = mysql_query($query, $conn); 23 | if (mysql_num_rows($data) == 1) { 24 | $_SESSION['error_info'] = '用户名已存在'; 25 | header('Location: reg.php'); 26 | } 27 | //添加用户 28 | else { 29 | $_SESSION['username'] = $clean_name; 30 | $_SESSION['avatar'] = $avatar; 31 | $date = date('Y-m-d'); 32 | $query = "INSERT INTO users(user_name,user_pass,user_avatar,join_date) VALUES ('$clean_name',SHA('$clean_pass'),'$avatar','$date')"; 33 | mysql_query($query, $conn) or die("Error!!"); 34 | header('Location: user.php'); 35 | } 36 | mysql_close($conn); 37 | } 38 | else { 39 | not_find($_SERVER['PHP_SELF']); 40 | } 41 | ?> 42 | -------------------------------------------------------------------------------- /VAuditDemo_Release/user/updateAvatar.php: -------------------------------------------------------------------------------- 1 | '; 32 | echo '返回'; 33 | } 34 | }else{ 35 | echo '只能上傳 jpg png gif!
'; 36 | echo '返回'; 37 | } 38 | } 39 | else { 40 | not_find($_SERVER['PHP_SELF']); 41 | } 42 | ?> 43 | -------------------------------------------------------------------------------- /VAuditDemo_Release/user/updateName.php: -------------------------------------------------------------------------------- 1 | 16) { 6 | $_SESSION['error_info'] = '用户名過長(用戶名長度<=16)'; 7 | header('Location: edit.php'); 8 | exit; 9 | } 10 | 11 | $clean_username = clean_input($_POST['username']); 12 | if (!preg_match("/^\w+$/",$_POST['user'])) { 13 | die('用户名只允许\w+'); 14 | } 15 | //$clean_user_id = clean_input($_POST['id']); 16 | 17 | //判断用户名已是否存在 18 | $query = "SELECT * FROM users WHERE user_name = '$clean_username'"; 19 | $data = mysql_query($query, $conn); 20 | if (mysql_num_rows($data) == 1) { 21 | $_SESSION['error_info'] = '用户名已存在'; 22 | header('Location: edit.php'); 23 | exit; 24 | } 25 | 26 | $query = "UPDATE users SET user_name = '$clean_username' WHERE user_id = '{$_SESSION['user_id']}'"; 27 | mysql_query($query, $conn) or die("update error!"); 28 | mysql_close($conn); 29 | //刷新缓存 30 | $_SESSION['username'] = $clean_username; 31 | header('Location: edit.php'); 32 | } 33 | else { 34 | not_find($_SERVER['PHP_SELF']); 35 | } 36 | ?> 37 | -------------------------------------------------------------------------------- /VAuditDemo_Release/user/updatePass.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VAuditDemo_Release/user/user.php: -------------------------------------------------------------------------------- 1 | 19 |
20 |
21 | 22 |
23 |
24 | 25 |
26 | 27 |
28 | 29 |
30 |



31 |
32 |
33 | 40 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "2" 2 | services: 3 | 4 | web: 5 | # build: . 6 | image: virink/vauditdemo:debug 7 | ports: 8 | - "127.0.0.1:8081:80" 9 | restart: always -------------------------------------------------------------------------------- /files/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | php-fpm & 4 | 5 | nginx & 6 | 7 | mysqld_safe & 8 | 9 | tail -F /var/log/nginx/error.log /var/log/nginx/access.log -------------------------------------------------------------------------------- /files/nginx.conf: -------------------------------------------------------------------------------- 1 | daemon off; 2 | 3 | worker_processes auto; 4 | 5 | error_log /var/log/nginx/error.log warn; 6 | 7 | events { 8 | worker_connections 1024; 9 | } 10 | 11 | 12 | http { 13 | include /etc/nginx/mime.types; 14 | default_type application/octet-stream; 15 | 16 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 17 | '$status $body_bytes_sent "$http_referer" ' 18 | '"$http_user_agent" "$http_x_forwarded_for"'; 19 | 20 | access_log /var/log/nginx/access.log main; 21 | 22 | sendfile on; 23 | 24 | keepalive_timeout 65; 25 | 26 | include conf.d/*.conf; 27 | } 28 | -------------------------------------------------------------------------------- /files/vhost.nginx.conf: -------------------------------------------------------------------------------- 1 | server { 2 | 3 | listen 80; 4 | server_name localhost; 5 | 6 | root /var/www/html; 7 | index index.html index.htm index.php; 8 | 9 | location / { 10 | try_files $uri $uri/ /index.php?$args; 11 | } 12 | 13 | # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 14 | location ~ \.php$ { 15 | try_files $uri =404; 16 | fastcgi_pass 127.0.0.1:9000; 17 | fastcgi_index index.php; 18 | include fastcgi_params; 19 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 20 | } 21 | 22 | location ~* \.(ico|css|js|gif|jpe?g|png|ogg|ogv|svg|svgz|eot|otf|woff)(\?.+)?$ { 23 | expires max; 24 | log_not_found off; 25 | } 26 | 27 | } --------------------------------------------------------------------------------