From: Michael J. Rubinsky Date: Sat, 17 Jul 2010 13:59:02 +0000 (-0400) Subject: remove deprecated file X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1d95e0c6daa8c71df5c21c4814b90173d09581eb;p=horde.git remove deprecated file --- diff --git a/horde/services/twitterapi.php b/horde/services/twitterapi.php deleted file mode 100644 index f36ac04a9..000000000 --- a/horde/services/twitterapi.php +++ /dev/null @@ -1,39 +0,0 @@ - - */ - -require_once dirname(__FILE__) . '/../lib/Application.php'; -Horde_Registry::appInit('horde', array('nologintasks' => true)); - -$twitter = new Services_Twitter($_SESSION['horde']['twitterblock']['username'], - $_SESSION['horde']['twitterblock']['password']); - -// Require the actions to be POST only since following them -// could change the user's state. -$action = Horde_Util::getPost('actionID'); - -switch ($action) { -case 'updateStatus': - try { - $result = $twitter->statuses->update(Horde_Util::getPost('statusText')); - Horde::logMessage($result, 'DEBUG'); - $notification->push(_("Status successfully updated."), 'horde.success'); - } catch (Services_Twitter_Exception $e) { - $error = $e->getMessage(); - Horde::logMessage($e, 'ERR'); - $notification->push($error); - } -} - -$notification->notify();