[aur-dev] [PATCH 1/1] restructure the html/rpc.php endpoint

2011-05-28 Thread elij
- move request_method test to the top, and catch other request types (HEAD, PUT, etc) - change how html output is handled. instead of building a string, just output the html - set appropriate response header for incorrect request_method. --- web/html/rpc.php | 60

[aur-dev] [PATCH 2/2] add missing exit to request_method conditional test

2011-05-28 Thread elij
--- web/html/rpc.php |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/web/html/rpc.php b/web/html/rpc.php index 27439db..b2c244b 100644 --- a/web/html/rpc.php +++ b/web/html/rpc.php @@ -4,6 +4,7 @@ include_once("aurjson.class.php"); if ( $_SERVER['REQUEST_METHOD'] != 'GE

[aur-dev] [PATCH 1/1] fix two issues (php notice level) with html/rss.php

2011-05-28 Thread elij
- Undefined index: HTTPS in rss.php on line 8 - Undefined property: RSSCreator20::$cssStyleSheet in feedcreator.class.php on line 591 --- web/html/rss.php |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/web/html/rss.php b/web/html/rss.php index 0547815..d0a202b 100644

[aur-dev] refactor apc cache code (centralize and genericize)

2011-05-28 Thread elij
The first patch is a slight refactor and move of the apc cache code, out of stats.inc into aur.inc. This is to make it available for other code to utilize if desired. I made it a bit more generic, so other referncing code does not have to supply a cache prefix. It will apply a prefix on behalf of t

[aur-dev] [PATCH 1/2] refactor apc code and move to aur.inc

2011-05-28 Thread elij
- move apc cache code to aur.inc (centralize) - refactor the apc usage in stats.inc to utilize new code in aur.inc --- web/lib/aur.inc | 49 ++ web/lib/stats.inc | 61 +++- 2 files changed, 62 insertions(

[aur-dev] [PATCH 2/2] make rss.php use the apc cache instead of a cache file

2011-05-28 Thread elij
utilize the apc cache functionality in aur.inc to cache the rss feed output. the cache will cache on a per-protocol basis (http/https) so that urls are appropriate regardless of which url people hit. --- web/html/rss.php | 18 +- 1 files changed, 13 insertions(+), 5 deletions(-)