<?php
+// FIXME : missing copyright
+
require_once('OAuth.php');
class OAuthResource {
global $gfplugins;
require_once $gfplugins.'twitter/include/twitterPlugin.class.php' ;
+// TODO check on installed oauthconsumer dependency
+
//oauthconsumer dependencies
require_once $gfplugins.'oauthconsumer/include/fusionforge_oauth_datastore.php';
require_once $gfplugins.'oauthconsumer/include/provider_api.php';
<?php
-class twitterPlugin extends ForgeAuthPlugin {
+/**
+ * twitterPlugin Class
+ *
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+class twitterPlugin extends ForgeAuthPlugin {
public function __construct() {
$this->ForgeAuthPlugin() ;
}
}
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
+?>
+
<?php
+/**
+ * twitter plugin main script
+ *
+ * This file is (c) Copyright 2010, 2011 by Olivier BERGER, Madhumita DHAR, Institut TELECOM
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
require_once('../../env.inc.php');
require_once 'checks.php';