Subversion Repositories php-qbpwcf

Rev

Rev 3 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 226
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
/*
3
/*
4
 
4
 
5
	QBPWCF, Quick Build PHP website Component base on Fedora Linux.
5
	QBPWCF, Quick Build PHP website Component base on Fedora Linux.
6
    Copyright (C) 2015~2024 Min-Jhin,Chen
6
    Copyright (C) 2014~2025 MIN ZHI, CHEN
7
 
7
 
8
    This file is part of QBPWCF.
8
    This file is part of QBPWCF.
9
 
9
 
10
    QBPWCF is free software: you can redistribute it and/or modify
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
11
    it under the terms of the GNU General Public License as published by
Line 25... Line 25...
25
#如果有post data
25
#如果有post data
26
if(isset($_POST["data"])){
26
if(isset($_POST["data"])){
27
 
27
 
28
	#unserialize
28
	#unserialize
29
	$data=@unserialize($_POST["data"]);
29
	$data=@unserialize($_POST["data"]);
30
	
30
 
31
	#if unserialize fail
31
	#if unserialize fail
32
	if($data===false){
32
	if($data===false){
33
	
33
 
34
		#do nothing
34
		#do nothing
35
		exit;
35
		exit;
36
	
36
 
37
		}#if end
37
		}#if end
38
 
38
 
39
	#印出 unserialize 後再 json_encode 後的 data
39
	#印出 unserialize 後再 json_encode 後的 data
40
	echo json_encode($data);
40
	echo json_encode($data);
41
 
41
 
42
	}#if end
42
	}#if end
43
 
43
 
44
?>
-
 
45
44
?>
-
 
45