rpc: small optimizations

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Dan McGee 2009-08-06 20:02:28 -05:00 committed by Loui Chang
parent 5c13854922
commit 4af079a5bd

View file

@ -1,13 +1,13 @@
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang');
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
include("aur.inc");
include("aurjson.class.php");
$rpc_o = new AurJSON();
if ( $_SERVER['REQUEST_METHOD'] == 'GET' ) {
if ( isset($_GET['type']) ) {
$rpc_o = new AurJSON();
echo $rpc_o->handle($_GET);
}
else {