Changeset f561a3367df902911024ea31916b658bd232f522
- Timestamp:
- 10/30/10 19:45:30
(3 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1288467930 +0000
- git-parent:
[20ab2bd0d35802eb75167adfa7cab41fbc2573aa]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1288467930 +0000
- Message:
fix from Taborsky for content-type of json
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r7c5375e |
rf561a33 |
|
| 60 | 60 | } |
|---|
| 61 | 61 | |
|---|
| | 62 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| 62 | 63 | echo json_encode($bag); |
|---|
| r52dcc3a |
rf561a33 |
|
| 4 | 4 | |
|---|
| 5 | 5 | $db = Reconnoiter_DB::GetDB(); |
|---|
| | 6 | |
|---|
| | 7 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| 6 | 8 | |
|---|
| 7 | 9 | try { |
|---|
| rf99c668 |
rf561a33 |
|
| 7 | 7 | $force = $_GET['force']; |
|---|
| 8 | 8 | $wsheets = $db->getWorksheetsByGraph($_GET['id']); |
|---|
| | 9 | |
|---|
| | 10 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| 9 | 11 | |
|---|
| 10 | 12 | if($wsheets && !$force) { |
|---|
| r52dcc3a |
rf561a33 |
|
| 3 | 3 | require_once('Reconnoiter_DB.php'); |
|---|
| 4 | 4 | $db = Reconnoiter_DB::getDB(); |
|---|
| | 5 | |
|---|
| | 6 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| | 7 | |
|---|
| 5 | 8 | if($_GET['id']) { |
|---|
| 6 | 9 | $row = $db->getGraphByID($_GET['id']); |
|---|
| r52dcc3a |
rf561a33 |
|
| 4 | 4 | |
|---|
| 5 | 5 | $db = Reconnoiter_DB::GetDB(); |
|---|
| | 6 | |
|---|
| | 7 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| 6 | 8 | |
|---|
| 7 | 9 | try { |
|---|
| r9478c46 |
rf561a33 |
|
| 7 | 7 | $saved_id = $graph['id']; |
|---|
| 8 | 8 | $db = Reconnoiter_DB::getDB(); |
|---|
| | 9 | |
|---|
| | 10 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| | 11 | |
|---|
| 9 | 12 | try { |
|---|
| 10 | 13 | $id = $db->saveGraph($graph); |
|---|
| r44c7512 |
rf561a33 |
|
| 70 | 70 | 'colors' => $driver->graphcolors() |
|---|
| 71 | 71 | ); |
|---|
| | 72 | |
|---|
| | 73 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| | 74 | |
|---|
| 72 | 75 | print json_encode(array( |
|---|
| 73 | 76 | 'data' => $data, |
|---|
| r21720f4 |
rf561a33 |
|
| 262 | 262 | |
|---|
| 263 | 263 | |
|---|
| | 264 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| | 265 | |
|---|
| 264 | 266 | echo json_encode($bag); |
|---|
| r504c244 |
rf561a33 |
|
| 79 | 79 | createGraphsFromCombos('', $var_vals, 0, $sid_vars, $genesis_base, $rparams, $templateid, $graph_num, $update); |
|---|
| 80 | 80 | |
|---|
| | 81 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| | 82 | |
|---|
| 81 | 83 | print json_encode($graphs_to_update); |
|---|
| 82 | 84 | ?> |
|---|
| r2f41995 |
rf561a33 |
|
| 4 | 4 | |
|---|
| 5 | 5 | $db = Reconnoiter_DB::getDB(); |
|---|
| | 6 | |
|---|
| | 7 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| 6 | 8 | |
|---|
| 7 | 9 | try { |
|---|
| r171b238 |
rf561a33 |
|
| 4 | 4 | |
|---|
| 5 | 5 | $db = Reconnoiter_DB::GetDB(); |
|---|
| | 6 | |
|---|
| | 7 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| 6 | 8 | |
|---|
| 7 | 9 | try { |
|---|
| r171b238 |
rf561a33 |
|
| 4 | 4 | |
|---|
| 5 | 5 | $db = Reconnoiter_DB::GetDB(); |
|---|
| | 6 | |
|---|
| | 7 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| 6 | 8 | |
|---|
| 7 | 9 | try { |
|---|
| r6cbb5ff |
rf561a33 |
|
| 7 | 7 | $saved_id = $worksheet['id']; |
|---|
| 8 | 8 | $db = Reconnoiter_DB::getDB(); |
|---|
| | 9 | |
|---|
| | 10 | header('Content-Type: application/json; charset=utf-8'); |
|---|
| | 11 | |
|---|
| 9 | 12 | try { |
|---|
| 10 | 13 | $id = $db->saveWorksheet($worksheet); |
|---|