mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
5c13854922
commit
4af079a5bd
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue