mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
- Upgraded to the latest version of Open Flash Charts (Version 2 Lug Wyrm Charmer)
- Localization of the menus 90% done. - Removed the old types of Flash charts, (no longer used anyway, now we rely on open-flash-charts) SVN:trunk[441]
This commit is contained in:
@@ -26,9 +26,18 @@ if (!file_exists($default_path)) mkdir($default_path, 0777, true);
|
||||
$destination = $default_path . basename( $_GET[ 'name' ] );
|
||||
|
||||
echo 'Saving your image to: '. $destination;
|
||||
// print_r( $_POST );
|
||||
// print_r( $_SERVER );
|
||||
// echo $HTTP_RAW_POST_DATA;
|
||||
|
||||
//
|
||||
// POST data is usually string data, but we are passing a RAW .png
|
||||
// so PHP is a bit confused and $_POST is empty. But it has saved
|
||||
// the raw bits into $HTTP_RAW_POST_DATA
|
||||
//
|
||||
|
||||
$jfh = fopen($destination, 'w') or die("can't open file");
|
||||
fwrite($jfh, $GLOBALS['HTTP_RAW_POST_DATA']);
|
||||
fwrite($jfh, $HTTP_RAW_POST_DATA);
|
||||
fclose($jfh);
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user