int num_urls = 0;
char urls[MAXURLS][SIZ];
char imagecmd[SIZ];
-int has_images = 0; /* Current msg has images */
+int has_images = 0; /* Current msg has images */
struct parts *last_message_parts = NULL; /* Parts from last msg */
/*
* add a newline to the buffer...
*/
-void add_newline(struct cittext *textlist)
-{
+void add_newline(struct cittext *textlist) {
struct cittext *ptr;
ptr = textlist;
int r; /* IPC response code */
int subject_required = 0;
+ /*
+ * First, check to see if we have permission to enter a message in
+ * this room. The server will return an error code if we can't.
+ */
if (entmsg_ok == ENTMSG_OK_YES) {
/* no problem, go right ahead */
}
strcpy(subject, "");
- /*
- * First, check to see if we have permission to enter a message in
- * this room. The server will return an error code if we can't.
- */
strcpy(message.recipient, "");
strcpy(message.author, "");
strcpy(message.subject, "");
}
if (b == 1) {
- scr_printf("*** 1 additional message has been entered " "in this room by another user.\n");
+ scr_printf("*** 1 additional message has been entered in this room by another user.\n");
}
else if (b > 1) {
- scr_printf("*** %d additional messages have been entered " "in this room by other users.\n", b);
+ scr_printf("*** %d additional messages have been entered in this room by other users.\n", b);
}
free(message.text);
GET /ctdl/r/ROOMNAME/msgs.all JSON array of message list in room
GET /ctdl/r/ROOMNAME/msgs.new JSON array of message list in room (new messages)
GET /ctdl/r/ROOMNAME/MSGNUM Retrieve the content of an individual message
+GET /ctdl/r/ROOMNAME/MSGNUM/json Retrieve an individual message in a room, encapsulated in JSON
DELETE /ctdl/r/ROOMNAME/MSGNUM Deletes a message from a room
PUT /ctdl/r/ROOMNAME/xxx DAV operation to insert a new message into a room
Accepted parameters:
last The number of the most recently seen message
-GET /ctdl/r/ROOMNAME/MSGNUM/json Retrieve an individual message in a room, encapsulated in JSON
GET /ctdl/c/info Returns a JSON representation of the output of an INFO server command
POST /ctdl/a/login Send it a your credentials and it will log you in
GET /ctdl/a/whoami
</div>
<div class="w3-col s8 w3-bar">
<span id="current_user">Not logged in.</span><br>
- <a href="#" class="w3-bar-item w3-button"><i class="fa fa-envelope"></i></a>
+ <a href="#" class="w3-bar-item w3-button"><i class="fa fa-envelope" onclick="javascript:gotoroom('_MAIL_');"></i></a>
<a href="#" class="w3-bar-item w3-button"><i class="fa fa-user"></i></a>
<a href="#" class="w3-bar-item w3-button"><i class="fa fa-cog"></i></a>
</div>