about summary refs log tree commit diff stats
path: root/client/trunk/src/com
Commit message (Expand)AuthorAgeFilesLines
* Client: Worked on step 2Kelly Rauchenberger2008-09-278-114/+187
* Client: Modified "blog-post"'s semanticsKelly Rauchenberger2008-09-241-1/+4
* Client: Added the "comic" iconKelly Rauchenberger2008-09-232-0/+9
* Series: Removed Series componentKelly Rauchenberger2008-09-181-0/+23
* Client: Fixed the unsubscription bugKelly Rauchenberger2008-09-181-1/+10
* Client: Added the "page-change" categoryKelly Rauchenberger2008-09-136-46/+106
* Client: Centralized CentralKelly Rauchenberger2008-09-075-121/+98
* Client: Added the ability to disable UnreadKelly Rauchenberger2008-09-028-32/+128
* Client: Added Unread flag manipulationKelly Rauchenberger2008-09-015-1/+111
* Client: Added Unread flagKelly Rauchenberger2008-09-016-90/+241
* Client: Modified old Verification ID deletionKelly Rauchenberger2008-08-173-21/+9
* Client: Added start-up IP checkKelly Rauchenberger2008-08-161-1/+3
* General: Upped default verIDBufferSizeKelly Rauchenberger2008-08-162-3/+3
* Client: Added change passwordKelly Rauchenberger2008-08-157-3/+421
* Client: Added org.jdesktop-style progressKelly Rauchenberger2008-08-152-3/+51
* Client: Spruced up About BoxKelly Rauchenberger2008-08-147-56/+91
* Client: Added password protection supportKelly Rauchenberger2008-08-138-23/+521
* Client: Changed interaction portKelly Rauchenberger2008-08-081-1/+1
* Client: Fixed connection reset problemKelly Rauchenberger2008-08-082-41/+87
* Client: Client now sends category informationKelly Rauchenberger2008-08-081-0/+1
* Client: Added "vcs-rev" categoryKelly Rauchenberger2008-08-073-11/+16
* Client: Added an icon for the "email" categoryKelly Rauchenberger2008-08-062-0/+9
* Client: Transactionalized the databaseKelly Rauchenberger2008-08-062-32/+111
* Client: Tweaked the way filter invalidation worksKelly Rauchenberger2008-08-063-16/+46
* Client: Unescaped "__INSTADISC__"Kelly Rauchenberger2008-08-061-1/+1
* Client: Caught FileNotFoundException in SubscriptionFileKelly Rauchenberger2008-08-061-12/+11
* Client: Fixed IP Check TimerKelly Rauchenberger2008-08-061-4/+6
* Client: Added IP Check TimerKelly Rauchenberger2008-08-055-18/+158
* Client: Modified IDSubscriptionListCellRendererKelly Rauchenberger2008-08-051-1/+1
* Client: Added the Item Buffer backKelly Rauchenberger2008-08-056-99/+155
* Client: Fixed yet another client item bugKelly Rauchenberger2008-08-053-47/+26
* Client: Tweaked the client to work (better)Kelly Rauchenberger2008-08-047-197/+115
* Client: Fixed up startup request retainedKelly Rauchenberger2008-08-042-5/+8
* Client: Modified -r flagKelly Rauchenberger2008-08-041-4/+4
* Client: Added WellFormedItem backKelly Rauchenberger2008-08-021-0/+139
* Client: Replaced "unsafe" functionKelly Rauchenberger2008-08-011-2/+3
* Client: Fixed subcribing codeKelly Rauchenberger2008-08-011-0/+4
* Client: Removed deprecated function from Step2.javaKelly Rauchenberger2008-08-012-11/+18
* Client: Finished the "Request Retained Items" menu itemKelly Rauchenberger2008-07-312-0/+13
* Client: Added filtersKelly Rauchenberger2008-07-3127-130/+1237
* Client: Fixed up form label fieldsKelly Rauchenberger2008-07-3115-128/+91
* Client: Added Advanced Settings formKelly Rauchenberger2008-07-3111-44/+411
* Client: Created Manage Subscriptions formKelly Rauchenberger2008-07-3111-7/+405
* Client: Added blog-comment and forum-post category iconsKelly Rauchenberger2008-07-313-0/+18
* Client: Fixed up First Run formKelly Rauchenberger2008-07-3112-304/+172
* Client: Fixed up iconsKelly Rauchenberger2008-07-302-1/+4
* Client: Completed "Add Subscription" formKelly Rauchenberger2008-07-308-130/+280
* Client: Added System Tray IconKelly Rauchenberger2008-07-306-1/+37
* Client: Automated BDB Environment placingKelly Rauchenberger2008-07-304-29/+15
* Client: Created Add Subscription form shellKelly Rauchenberger2008-07-306-1/+377
e) . "\" AND itemID = " . $id; $delitem2 = mysql_query($delitem); return new xmlrpcresp(new xmlrpcval(0, "int")); } } return new xmlrpcresp(new xmlrpcval(1, "int")); } function resendItem($username, $verification, $verificationID, $id) { if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) { $getitem = "SELECT * FROM inbox WHERE username = \"" . mysql_real_escape_string($username) . "\" AND itemID = " . $id; $getitem2 = mysql_query($getitem); $getitem3 = mysql_fetch_array($getitem2); if ($getitem3['id'] == $id) { instaDisc_sendItem($username, $id); return new xmlrpcresp(new xmlrpcval(0, "int")); } } return new xmlrpcresp(new xmlrpcval(1, "int")); } function requestRetained($username, $verification, $veriicationID) { if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) { $getitems = "SELECT * FROM inbox WHERE username = \"" . mysql_real_escape_string($username) . "\""; $getitems2 = mysql_query($getitems); $i=0; while ($getitems3[$i] = mysql_fetch_array($getitems2)) { instaDisc_sendItem($username, $getitems3[$i]['itemID']); $i++; } return new xmlrpcresp(new xmlrpcval(0, "int")); } return new xmlrpcresp(new xmlrpcval(1, "int")); } function sendFromUpdate($username, $verification, $verificationID, $subscription, $title, $author, $url, $semantics) { if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) { $getusubs = "SELECT * FROM subscriptions WHERE username = \"" . mysql_real_escape_string($username) . "\" AND url = \"" . mysql_real_escape_string($subscription) . "\" AND owner = \"true\""; $getusubs2 = mysql_query($getusubs); $getusubs3 = mysql_fetch_array($getusubs2); if ($getusubs['username'] == $username) { $cserver = $_SERVER['HTTP_HOST']; $getuk = "SELECT * FROM centralServers WHERE url = \"" . mysql_real_escape_string($cserver) . "\""; $getuk2 = mysql_query($getuk); $getuk3 = mysql_fetch_array($getuk2); $getcs = "SELECT * FROM centralServers"; $getcs2 = mysql_query($getcs); $i=0; while ($getcs3[$i] = mysql_fetch_array($getcs2)) { $verID = rand(1,65536); $client = new xmlrpc_client($getcs3[$i]['xmlrpc']); $msg = new xmlrpcmsg("InstaDisc.sendFromCentral", array( new xmlrpcval($cserver, 'string'), new xmlrpcval(md5($cserver + ":" + $getuk3['code'] + ":" + $verID), 'string'), new xmlrpcval($verID, 'int'), new xmlrpcval($subscription, 'string'), new xmlrpcval($title, 'string'), new xmlrpcval($author, 'string'), new xmlrpcval($url, 'string'), new xmlrpcval($semantics, 'array'), new xmlrpcval(instaDisc_getConfig('softwareVersion'), 'int'), new xmlrpcval(instaDisc_getConfig('databaseVersion'), 'int'))); $client->send($msg); $i++; } return new xmlrpcresp(new xmlrpcval(0, "int")); } } return new xmlrpcresp(new xmlrpcval(1, "int")); } function sendFromCentral($cserver, $verification, $verificationID, $subscription, $title, $author, $url, $semantics, $softwareVersion, $databaseVersion) { if (instaDisc_checkVerification($cserver, $verification, $verificationID, 'centralServers', 'url', 'code')) { if ($softwareVersion > instaDisc_getConfig('softwareVersion')) { instaDisc_sendUpdateNotice($softwareVersion); } else if ($softwareVersion < instaDisc_getConfig('softwareVersion')) { $cserver2 = $_SERVER['HTTP_HOST']; $getuk = "SELECT * FROM centralServers WHERE url = \"" . mysql_real_escape_string($cserver2) . "\""; $getuk2 = mysql_query($getuk); $getuk3 = mysql_fetch_array($getuk2); $verID = rand(1,65536); $client = new xmlrpc_client($cserver); $msg = new xmlrpcmsg("InstaDisc.sendUpdateNotice", array( new xmlrpcval($cserver2, 'string'), new xmlrpcval(md5($cserver2 . ':' . $getuk3['code'] . ':' . $verID), 'string'), new xmlrpcval($verID, 'int'), new xmlrpcval(instaDisc_getConfig('softwareVersion'), 'int'))); $client->send($msg); } if ($databaseVersion > instaDisc_getConfig('databaseVersion')) { $cserver2 = $_SERVER['HTTP_HOST']; $getuk = "SELECT * FROM centralServers WHERE url = \"" . mysql_real_escape_string($cserver2) . "\""; $getuk2 = mysql_query($getuk); $getuk3 = mysql_fetch_array($getuk2); $verID = rand(1,65536); $client = new xmlrpc_client($cserver); $msg = new xmlrpcmsg("InstaDisc.askForDatabase", array( new xmlrpcval($cserver2, 'string'), new xmlrpcval(md5($cserver2 . ':' . $getuk3['code'] . ':' . $verID), 'string'), new xmlrpcval($verID, 'int'), new xmlrpcval(instaDisc_getConfig('databaseVersion'), 'int'))); $client->send($msg); } else if ($databaseVersion < instaDisc_getConfig('databaseVersion')) { instaDisc_sendDatabase($cserver); } $getsed = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscription) . "\""; $getsed2 = mysql_query($getsed); $i=0; while ($getsed3[$i] = mysql_fetch_array($getsed2)) { instaDisc_addItem($getsed3['username'], $subscription, $title, $author, $url, $semantics); $i++; } return new xmlrpcresp(new xmlrpcval(0, "int")); } return new xmlrpcresp(new xmlrpcval(1, "int")); } function sendUpdateNotice($cserver, $verification, $verificationID, $softwareVersion) { if (instaDisc_checkVerification($cserver, $verification, $verificationID, 'centralServers', 'url', 'code')) { if ($softwareVersion > instaDisc_getConfig('softwareVersion')) { instaDisc_sendUpdateNotice($softwareVersion); return new xmlrpcresp(new xmlrpcval(0, "int")); } } return new xmlrpcresp(new xmlrpcval(1, "int")); } function askForDatabase($cserver, $verification, $verificationID, $databaseVersion) { if (instaDisc_checkVerification($cserver, $verification, $verificationID, 'centralServers', 'url', 'code')) { if ($databaseVersion < instaDisc_getConfig('databaseVersion')) { instaDisc_sendDatabase($cserver); return new xmlrpcresp(new xmlrpcval(0, "int")); } } return new xmlrpcresp(new xmlrpcval(1, "int")); } function deleteSubscription($username, $verification, $verificationID, $subscription) { if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) { $getsub = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscription) . "\" AND username = \"" . mysql_real_escape_string($username) . "\" AND owner = \"false\""; $getsub2 = mysql_query($getsub); $getsub3 = mysql_fetch_array($getsub2); if ($getsub3['url'] == $subscription) { $delsub = "DELETE FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscription) . "\" AND username = \"" . mysql_real_escape_string($username) . "\" AND owner = \"false\""; $delsub2 = mysql_query($delsub); return new xmlrpcresp(new xmlrpcval(0, "int")); } } return new xmlrpcresp(new xmlrpcval(1, "int")); } function addSubscription($username, $verification, $verificationID, $subscription) { if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) { $inssub = "INSERT INTO subscriptions (url, username, owner) VALUES (\"" . mysql_real_escape_string($subscription) . "\", \"" . mysql_real_escape_string($username) . "\", \"false\")"; $inssub2 = mysql_query($inssub); return new xmlrpcresp(new xmlrpcval(0, "int")); } return new xmlrpcresp(new xmlrpcval(1, "int")); } function sendDatabase($cserver, $verification, $verificationID, $db) { if (instaDisc_checkVerification($cserver, $verification, $verificationID, 'centralServers', 'url', 'code')) { if (isset($db['central.fourisland.com'])) { $getfi = "SELECT * FROM centralServers WHERE url = \"central.fourisland.com\""; $getfi2 = mysql_query($getfi); $getfi3 = mysql_fetch_array($getfi2); if ($db['central.fourisland.com']['code'] == $getfi3['code']) { $deldb = "DELETE FROM centralServers"; $deldb2 = mysql_query($deldb); foreach($db as $name => $value) { $insdb = "INSERT INTO centralServers (url, code, xmlrpc) VALUES (\"" . mysql_real_escape_string($name) . "\", \"" . mysql_real_escape_string($value['code']) . "\", \"" . mysql_real_escape_string($value['xmlrpc']) . "\")"; $insdb2 = mysql_query($insdb); } return new xmlrpcresp(new xmlrpcval("0", 'int')); } } } return new xmlrpcresp(new xmlrpcval(1, "int")); } $s = new xmlrpc_server( array( "InstaDisc.checkRegistration" => array("function" => "checkRegistration"), "InstaDisc.deleteItem" => array("function" => "deleteItem"), "InstaDisc.resendItem" => array("function" => "resendItem"), "InstaDisc.requestRetained" => array("function" => "requestRetained"), "InstaDisc.sendFromUpdate" => array("function" => "sendFromUpdate"), "InstaDisc.sendFromCentral" => array("function" => "sendFromCentral"), "InstaDisc.sendUpdateNotice" => array("function" => "sendUpdateNotice"), "InstaDisc.askForDatabase" => array("function" => "askForDatabase"), "InstaDisc.deleteSubscription" => array("function" => "deleteSubscription"), "InstaDisc.addSubscription" => array("function" => "addSubscription"), "InstaDisc.sendDatabase" => array("function" => "sendDatabase") ),0); $s->functions_parameters_type = 'phpvals'; $s->service(); ?>