Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 915 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
60 liveuser 1
<?php
2
 
622 liveuser 3
/*
4
 
5
	QBPWCF, Quick Build PHP website Component base on Fedora Linux.
6
    Copyright (C) 2015~2024 Min-Jhin,Chen
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
 
60 liveuser 25
#如果有post data
357 liveuser 26
if(isset($_POST["data"])){
27
 
28
	#unserialize
29
	$data=@unserialize($_POST["data"]);
30
 
31
	#if unserialize fail
32
	if($data===false){
33
 
34
		#do nothing
35
		exit;
36
 
37
		}#if end
38
 
60 liveuser 39
	#印出 unserialize 後再 json_encode 後的 data
357 liveuser 40
	echo json_encode($data);
60 liveuser 41
 
357 liveuser 42
	}#if end
60 liveuser 43
 
44
?>