diff --git a/ChangeLog b/ChangeLog index b360517..c7cda11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2015-07-15 13:54 marc + + * ChangeLog, ax_check_qt.m4, ax_init_standard_project.m4, + bootstrap.sh, configure.ac, doc, doc/doxyfile.in, + doc/makefile.am, html/checknewuser.php, html/documentation.dox, + html/functions.php, html/makefile.am, html/newuser.html, + html/safechat.js, mac-create-app-bundle.sh, makefile.am: added + some comments and dokus + 2015-07-09 11:14 marc * ChangeLog: but one change is necessary for the test to succeed: diff --git a/html/checknewuser.php b/html/checknewuser.php index 46bf665..7a9c626 100644 --- a/html/checknewuser.php +++ b/html/checknewuser.php @@ -1,6 +1,16 @@ real_escape_string($_REQUEST['start']); diff --git a/html/login.php b/html/login.php index eb95387..afb430d 100644 --- a/html/login.php +++ b/html/login.php @@ -1,4 +1,29 @@ real_escape_string($_REQUEST['user']); @@ -18,6 +43,6 @@ try { error("server database defect"); } } catch (Exception $e) { - echo json_encode(array('success' => false, 'txt' => "login failed")); + error("login failed"); } ?> diff --git a/html/messagetable.php b/html/messagetable.php index a65b51e..f3d351f 100644 --- a/html/messagetable.php +++ b/html/messagetable.php @@ -1,4 +1,26 @@ + Table: message + Colum NameSQL TypeDescription + idintIncrementing message id starting at 1. + timetimestampTime when message has been stored in the database. + uservarchar(50)The sender's user name (pseudonym). + msglongtextThe encryped and armored message text. + +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + require_once("functions.php"); mysqli_report(MYSQLI_REPORT_STRICT); try { diff --git a/html/pubkey.php b/html/pubkey.php index 1b54a21..36374de 100644 --- a/html/pubkey.php +++ b/html/pubkey.php @@ -1,4 +1,30 @@ real_escape_string($_REQUEST['user']); diff --git a/html/safechat.js b/html/safechat.js index 2e213b8..3b3349f 100644 --- a/html/safechat.js +++ b/html/safechat.js @@ -1,5 +1,7 @@ /*! @file + @id $Id$ + This is the main application as it is fully run in the user's browser. @dot @@ -31,8 +33,6 @@ sendmessage -> chat [label="remain in chat"]; } @enddot - - @id $Id$ */ // 1 2 3 4 5 6 7 8 // 45678901234567890123456789012345678901234567890123456789012345678901234567890 @@ -70,7 +70,7 @@ function error(data, stay) { /// Show notice messsage /** Fades in an notice message and logs to console. - @param data (optional) The data is a string. */ + @param text (optional) The data is a string. */ function notice(text) { $("#status").fadeOut("slow", function() { $("#status").addClass("notice") @@ -89,7 +89,7 @@ function notice(text) { /// Show notice messsage /** Fades in an success message and logs to console. - @param data (optional) The data is a string. */ + @param text (optional) The data is a string. */ function success(text) { $("#status").fadeOut("slow", function() { $("#status").addClass("success") diff --git a/html/send.php b/html/send.php index 2f0f128..015f9cf 100644 --- a/html/send.php +++ b/html/send.php @@ -1,4 +1,30 @@ real_escape_string($_REQUEST['user']); diff --git a/html/usertable.php b/html/usertable.php index cb318f9..27bbf43 100644 --- a/html/usertable.php +++ b/html/usertable.php @@ -1,4 +1,27 @@ + Table: user + Colum NameSQL TypeDescription + namevarchar(50)The user's name (pseudonym). + pubkeytextThe user's public key. + + +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + require_once("functions.php"); mysqli_report(MYSQLI_REPORT_STRICT); try {