Quick Search:

View

Revision:

Diff

Diff from 1852 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/branches/hpdl/oscommerce/admin/includes/applications/configuration/classes/rpc.php

Annotated File View

hpdl
1852
1 <?php
2 /*
3   $Id: rpc.php 1852 2009-02-28 03:24:48Z hpdl $
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
8   Copyright (c) 2009 osCommerce
9
10   This program is free software; you can redistribute it and/or modify
11   it under the terms of the GNU General Public License v2 (1991)
12   as published by the Free Software Foundation.
13 */
14
15   require('includes/applications/configuration/classes/configuration.php');
16
17   class osC_Configuration_Admin_rpc {
18     public static function getAll() {
19       if ( !isset($_GET['gID']) ) {
20         $_GET['gID'] = '1';
21       }
22
23       if ( !isset($_GET['search']) ) {
24         $_GET['search'] = '';
25       }
26
27       if ( !empty($_GET['search']) ) {
28         $result = osC_Configuration_Admin::find($_GET['search']);
29       } else {
30         $result = osC_Configuration_Admin::getAll($_GET['gID']);
31       }
32
33       $result['rpcStatus'] = RPC_STATUS_SUCCESS;
34
35       echo json_encode($result);
36     }
37   }
38 ?>