nsGetGPCats_ajax

The NextScripts: Social Networks Auto-Poster nsGetGPCats ajax function.

Description

nsGetGPCats_ajax(); 

Usage

  1. if ( !function_exists( 'nsGetGPCats_ajax' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/NextScripts_SNAP.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = nsGetGPCats_ajax(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/NextScripts_SNAP.php  
  1. function nsGetGPCats_ajax() { global $nxs_gCookiesArr; check_ajax_referer('nxsSsPageWPN'); global $plgn_NS_SNAutoPoster; if (!isset($plgn_NS_SNAutoPoster)) return; $options = $plgn_NS_SNAutoPoster->nxs_options;  
  2. if (get_magic_quotes_gpc() || $_POST['nxs_mqTest']=="\'") { $_POST['u'] = stripslashes($_POST['u']); $_POST['p'] = stripslashes($_POST['p']);} $_POST['p'] = trim($_POST['p']); $u = trim($_POST['u']);  
  3. $loginError = doConnectToGooglePlus2($_POST['u'], substr($_POST['p'], 0, 5)=='g9c1a'?nsx_doDecode(substr($_POST['p'], 5)):$_POST['p'] ); if ($loginError!==false) {echo $loginError; return "BAD USER/PASS";}  
  4. $gGPCCats = doGetCCatsFromGooglePlus($_POST['c']); $options['gp'][$_POST['ii']]['gpCCatsList'] = base64_encode($gGPCCats); 
  5. if (is_array($options)) update_option('NS_SNAutoPoster', $options); echo $gGPCCats; die();