source: extensions/oAuth/maintain.inc.php @ 25973

Last change on this file since 25973 was 20293, checked in by mistic100, 11 years ago

first commit of oAuth plugin, still in developpement

File size: 651 bytes
Line 
1<?php
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4defined('OAUTH_ID') or define('OAUTH_ID', basename(dirname(__FILE__)));
5include_once(PHPWG_PLUGINS_PATH . OAUTH_ID . '/include/install.inc.php');
6
7
8function plugin_install() 
9{
10  oauth_install();
11  define('oauth_installed', true);
12}
13
14
15function plugin_activate()
16{
17  if (!defined('oauth_installed'))
18  {
19    oauth_install();
20  }
21}
22
23function plugin_uninstall() 
24{
25  pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "oauth" LIMIT 1;');
26  pwg_query('ALTER TABLE `'. USERS_TABLE .'` DROP `oauth_id`;');
27  @unlink(PHPWG_PLUGINS_PATH . PWG_LOCAL_DIR . 'config/hybridauth.inc.php');
28}
29
30?>
Note: See TracBrowser for help on using the repository browser.