oauth_switch.inc.php 280 B

1234567891011121314
  1. <?php
  2. $connect = C::t('common_setting')->fetch('connect', true);
  3. $connect['oauth2'] = 1;
  4. C::t('common_setting')->update('connect', serialize($connect));
  5. include_once libfile('function/cache');
  6. updatecache('setting');
  7. showmessage('Switch oAuth to oAuth2', $_G['siteurl']);
  8. ?>