diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-26 17:11:33 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-26 17:11:33 +0000 |
commit | 8f19a7382a1c808eb696f8fd62b06196b6c56fa1 (patch) | |
tree | b83007b562da804b6356d254a6808222ab3d5484 /mod/apitest/views/default | |
parent | fafa17160223deaab78da1203657bbeb1b218ad7 (diff) | |
download | elgg-8f19a7382a1c808eb696f8fd62b06196b6c56fa1.tar.gz elgg-8f19a7382a1c808eb696f8fd62b06196b6c56fa1.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Basic API testrig
git-svn-id: https://code.elgg.org/elgg/trunk@270 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/apitest/views/default')
-rw-r--r-- | mod/apitest/views/default/apitest/configform.php | 7 | ||||
-rw-r--r-- | mod/apitest/views/default/apitest/main.php | 23 |
2 files changed, 30 insertions, 0 deletions
diff --git a/mod/apitest/views/default/apitest/configform.php b/mod/apitest/views/default/apitest/configform.php new file mode 100644 index 000000000..c637ae7b6 --- /dev/null +++ b/mod/apitest/views/default/apitest/configform.php @@ -0,0 +1,7 @@ +<form method="post"> + <input type="hidden" name="action" value="configure" /> + <p>API Key: <input type="text" name="apikey" value="<?php echo $vars['apikey'];?>" /></p> + <p>Secret Key: <input type="password" name="secret" value="<?php echo $vars['secret'];?>" /></p> + <p>Endpoint: <input type="text" name="endpoint" value="<?php echo $vars['endpoint'];?>" /></p> + <input type="submit" name="submit" value="Set.." /> +</form>
\ No newline at end of file diff --git a/mod/apitest/views/default/apitest/main.php b/mod/apitest/views/default/apitest/main.php new file mode 100644 index 000000000..dfdbd482b --- /dev/null +++ b/mod/apitest/views/default/apitest/main.php @@ -0,0 +1,23 @@ +<script type="text/javascript" language="javascript"> +<!-- +function showhide(oid) +{ + var e = document.getElementById(oid); + if(e.style.display == 'none') { + e.style.display = 'block'; + } else { + e.style.display = 'none'; + } +} +// --> +</script> + +<div id="config"> + <?php echo $vars['config']; ?> +</div> + +<hr /> + +<div id="list"> + <?php echo $vars['commandlist']; ?> +</div>
\ No newline at end of file |