AIR app integration

Discussion in 'Integration' started by primitive_soul, Oct 20, 2010.

  1. primitive_soul

    primitive_soul New Member

    Joined:
    Oct 11, 2010
    Messages:
    14
    I'm trying to create a custom .php file that will accept the user name and password that I post from my AIR app, log the user in and print a unique word or code depending on the subscriptions they have active. I'm an actionscript coder not a php coder and I have looked at the session variables page and the custom plugin page and I'm lost. This is what I've got so far but I don't think it's logging in:

    PHP:
    <?php
    session_start
    ();
    $_SESSION['_amember_login'] = $_POST['username'];
    $_SESSION['_amember_pass'] = $_POST['pword'];
    include(
    './config.inc.php');
    $_product_id = array('ONLY_LOGIN');
    require(
    'http://www.primitivesoultattoo.com/amember/plugins/protect/php_include/check.inc.php');

    $need_one_from = array(1,2,3); 
    if (
    array_intersect($need_one_from$_SESSION['_amember_product_ids'])){
      print 
    "Free";
    } else{
      print 
    "not"
    }
    ?>
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279

Share This Page