Changeset 28846


Ignore:
Timestamp:
06/29/14 16:24:34 (5 years ago)
Author:
mistic100
Message:

use new maintain class

Location:
extensions/oAuth
Files:
1 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/admin/config.php

    r26626 r28846  
    1313    ); 
    1414     
    15   conf_update_param('oauth', serialize($conf['oauth'])); 
     15  conf_update_param('oauth', $conf['oauth']); 
    1616  $page['infos'][] = l10n('Information data registered in database'); 
    1717} 
  • extensions/oAuth/main.inc.php

    r28668 r28846  
    1111defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); 
    1212 
     13define('OAUTH_ID',     basename(dirname(__FILE__))); 
     14define('OAUTH_PATH' ,  PHPWG_PLUGINS_PATH . OAUTH_ID . '/'); 
     15define('OAUTH_ADMIN',  get_root_url() . 'admin.php?page=plugin-' . OAUTH_ID); 
     16define('OAUTH_CONFIG', PWG_LOCAL_DIR . 'config/hybridauth.inc.php'); 
     17define('OAUTH_PUBLIC', get_absolute_root_url() . ltrim(OAUTH_PATH,'./') . 'include/hybridauth/'); 
    1318 
    14 define('OAUTH_ID',      basename(dirname(__FILE__))); 
    15 define('OAUTH_PATH' ,   PHPWG_PLUGINS_PATH . OAUTH_ID . '/'); 
    16 define('OAUTH_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . OAUTH_ID); 
    17 define('OAUTH_CONFIG',  PWG_LOCAL_DIR . 'config/hybridauth.inc.php'); 
    18 define('OAUTH_PUBLIC',  get_absolute_root_url() . ltrim(OAUTH_PATH,'./') . 'include/hybridauth/'); 
    19 define('OAUTH_VERSION', 'auto'); 
     19include_once(OAUTH_PATH . 'include/functions.inc.php'); 
    2020 
    2121 
    22 global $hybridauth_conf, $conf; 
    23  
    2422// try to load hybridauth config 
    25 include_once(OAUTH_PATH . 'include/functions.inc.php'); 
    26  
     23global $hybridauth_conf; 
    2724load_hybridauth_conf(); 
    2825 
     
    6562  global $conf, $page, $hybridauth_conf, $template; 
    6663   
    67   include_once(OAUTH_PATH . 'maintain.inc.php'); 
    68   $maintain = new oAuth_maintain(OAUTH_ID); 
    69   $maintain->autoUpdate(OAUTH_VERSION, 'install'); 
    70    
    7164  load_language('plugin.lang', OAUTH_PATH); 
    7265   
    73   $conf['oauth'] = unserialize($conf['oauth']); 
     66  $conf['oauth'] = safe_unserialize($conf['oauth']); 
    7467   
    7568  // check config 
Note: See TracChangeset for help on using the changeset viewer.