From 92f839b3683d72997b8197162d2feea9d1b57519 Mon Sep 17 00:00:00 2001 From: Paul Baranowski Date: Tue, 21 Jun 2011 11:49:47 -0400 Subject: [PATCH] Removed install/uninstall scripts for twitter plugin --- install/install_twitter_plugin.php | 39 ---------------------------- install/uninstall_twitter_plugin.php | 31 ---------------------- 2 files changed, 70 deletions(-) delete mode 100644 install/install_twitter_plugin.php delete mode 100644 install/uninstall_twitter_plugin.php diff --git a/install/install_twitter_plugin.php b/install/install_twitter_plugin.php deleted file mode 100644 index 1c473fb2b..000000000 --- a/install/install_twitter_plugin.php +++ /dev/null @@ -1,39 +0,0 @@ -/dev/null 2>&1'; -$old_regex = '/ui_twitterCron\.php/'; - -$cron = new Cron(); -$access = $cron->openCrontab('write'); -if ($access != 'write') { - do { - $r = $cron->forceWriteable(); - } while ($r); -} - -foreach ($cron->ct->getByType(CRON_CMD) as $id => $line) { - if (preg_match($old_regex, $line['command'])) { - echo " removing old entry\n"; - $cron->ct->delEntry($id); - } -} -echo " adding new entry\n"; -$cron->ct->addCron($m, $h, $dom, $mon, $dow, $command); -$cron->closeCrontab(); -echo "Done.\n"; - diff --git a/install/uninstall_twitter_plugin.php b/install/uninstall_twitter_plugin.php deleted file mode 100644 index 6fd9c6731..000000000 --- a/install/uninstall_twitter_plugin.php +++ /dev/null @@ -1,31 +0,0 @@ -openCrontab('write'); -if ($access != 'write') { - do { - $r = $cron->forceWriteable(); - } while ($r); -} - -foreach ($cron->ct->getByType(CRON_CMD) as $id => $line) { - if (preg_match($old_regex, $line['command'])) { - echo " removing cron entry\n"; - $cron->ct->delEntry($id); - } -} - -$cron->closeCrontab(); -echo "Done.\n";