From dc0193b43d85718d108762ad72a620c79f1a0b4c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 20 Sep 2008 00:36:06 +0000 Subject: Update: Added back password capability Refs #61 and #10 --- update/library/trunk/instadisc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'update/library/trunk') diff --git a/update/library/trunk/instadisc.php b/update/library/trunk/instadisc.php index c0af8fa..975481c 100644 --- a/update/library/trunk/instadisc.php +++ b/update/library/trunk/instadisc.php @@ -4,18 +4,18 @@ include('xmlrpc/xmlrpc.inc'); -function instaDisc_sendItem($subTitle, $subCategory, $title, $author, $url, $semantics) +function instaDisc_sendItem($title, $author, $url, $semantics, $subTitle, $subCategory, $subPassword = '') { $subscriptionURL = 'http://'' . $_SERVER['SERVER_NAME'] . '/' . $subCategory . '/' . generateSlug($subTitle) . '/'; $encID = 0; - if (($idusEncryptionKey[$id] != '') && extension_loaded('mcrypt')) + if (($subPassword != '') && extension_loaded('mcrypt')) { $encID = rand(1,2147483647); $cipher = "rijndael-128"; $mode = "cbc"; - $key = substr(md5(substr(str_pad($idusEncryptionKey[$id],16,$encID),0,16)),0,16); + $key = substr(md5(substr(str_pad($subPassword[$id],16,$encID),0,16)),0,16); $td = mcrypt_module_open($cipher, "", $mode, ""); -- cgit 1.4.1