From cc73b72363e01fbf6d849a990510596543cfd5b0 Mon Sep 17 00:00:00 2001 From: kanoi Date: Wed, 29 Oct 2014 18:12:54 +1100 Subject: [PATCH] php - allow workers via the API --- pool/page_api.php | 65 ++++++++++++++++++++++++++++++------------- pool/page_userset.php | 6 ++++ 2 files changed, 52 insertions(+), 19 deletions(-) diff --git a/pool/page_api.php b/pool/page_api.php index a4cd94ae..e5b84906 100644 --- a/pool/page_api.php +++ b/pool/page_api.php @@ -1,8 +1,11 @@
"; $pg .= ''; + $pg .= 'You can get your workers via:'; + $pg .= ''; + $pg .= "/index.php?k=api&username="; + $pg .= htmlspecialchars(urlencode($user)); + $pg .= "&api=$api&json=y&work=y
"; + $pg .= ''; } $pg .= '';