gobrien | 4827546 | 2007-11-29 21:29:17 +0000 | [diff] [blame] | 1 | <?php |
| 2 | /******************************************************************************* |
| 3 | * Copyright (c) 2007 Eclipse Foundation and others. |
| 4 | * All rights reserved. This program and the accompanying materials |
| 5 | * are made available under the terms of the Eclipse Public License v1.0 |
| 6 | * which accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Paul Colton (Aptana)- initial API and implementation |
| 11 | * Eclipse Foundation |
| 12 | *******************************************************************************/ |
| 13 | |
atoulme | 12882d5 | 2009-01-26 18:39:17 +0000 | [diff] [blame] | 14 | require_once(dirname(__FILE__) . "/../global.php"); |
gobrien | 4827546 | 2007-11-29 21:29:17 +0000 | [diff] [blame] | 15 | |
| 16 | InitPage("login"); |
gobrien | f1b416a | 2007-12-20 23:00:21 +0000 | [diff] [blame] | 17 | |
| 18 | |
gobrien | da3a450 | 2008-01-28 23:43:26 +0000 | [diff] [blame] | 19 | if( !function_exists('json_encode') ){ |
gobrien | 65136c5 | 2007-12-20 23:07:16 +0000 | [diff] [blame] | 20 | require("/home/data/httpd/babel.eclipse.org/html/json_encode.php"); |
gobrien | f1b416a | 2007-12-20 23:00:21 +0000 | [diff] [blame] | 21 | |
| 22 | function json_encode($encode){ |
| 23 | $jsons = new Services_JSON(); |
| 24 | return $jsons->encode($encode); |
| 25 | } |
| 26 | } |