more docs

This commit is contained in:
Marc Wäckerlin
2015-07-15 21:33:06 +00:00
parent 28a943f4eb
commit 0d2eeb25e0
10 changed files with 252 additions and 10 deletions

View File

@@ -1,4 +1,30 @@
<?php
/*! @file
@id $Id$
@see @ref apisend
@page api
@section apisend Send Message To Server
API-call send.php
Send a message to the server. Sever checks if user exists and has
a valid public key. More test could be added later.
@param user The name of the user that send the message.
@param msg The armored signed and encrypted message. There is a
limit of 100000 bytes for the message.
@return
- success() if the message has been stored successfully
- error() in case of any error
*/
// 1 2 3 4 5 6 7 8
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
try {
require_once("usertable.php");
$user = $db->real_escape_string($_REQUEST['user']);