Advertisement
theitd

Payplan user detail

Oct 31st, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <?php
  2.    
  3.     $userDetailApp  = PayplansHelperApp::getAvailableApps('userdetail');
  4.    
  5.     foreach ($userDetailApp as $app) {
  6.         $name     = $app->getName();
  7.         $appid    = $app->getId();
  8.         $location = $app->getLocation();
  9.         $path     = $location.DS.'xmldata'.DS."userdetail_app_{$appid}.xml";
  10.         $form = JForm::getInstance('user.userDetail'.$appid, $path ,array(),true, '//config');
  11.         foreach ($form->getFieldset('params') as $f){
  12.             $userps[$f->fieldname] = $f->value;
  13.         }
  14.         //dump($userps);
  15.     }
  16.    
  17.     $logged_in = ( (!empty($userps['first_name'])) ? true : false );
  18.     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement