Subversion Repositories php-qbpwcf

Rev

Rev 3 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 liveuser 1
<?php
2
 
3
/*
4
 
5
	QBPWCF, Quick Build PHP website Component base on Fedora Linux.
226 liveuser 6
    Copyright (C) 2014~2025 MIN ZHI, CHEN
3 liveuser 7
 
8
    This file is part of QBPWCF.
9
 
10
    QBPWCF is free software: you can redistribute it and/or modify
11
    it under the terms of the GNU General Public License as published by
12
    the Free Software Foundation, either version 3 of the License, or
13
    (at your option) any later version.
14
 
15
    QBPWCF is distributed in the hope that it will be useful,
16
    but WITHOUT ANY WARRANTY; without even the implied warranty of
17
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
    GNU General Public License for more details.
19
 
20
    You should have received a copy of the GNU General Public License
21
    along with QBPWCF.  If not, see <http://www.gnu.org/licenses/>.
22
 
23
*/
24
 
25
#如果有post data
26
if(isset($_POST["data"])){
27
 
28
	#unserialize
29
	$data=@unserialize($_POST["data"]);
226 liveuser 30
 
3 liveuser 31
	#if unserialize fail
32
	if($data===false){
226 liveuser 33
 
3 liveuser 34
		#do nothing
35
		exit;
226 liveuser 36
 
3 liveuser 37
		}#if end
38
 
39
	#印出 unserialize 後再 json_encode 後的 data
40
	echo json_encode($data);
41
 
42
	}#if end
43
 
226 liveuser 44
?>