theitd icon

Payplan user detail

theitd | PRO | 10/31/15 09:52:19 PM UTC | 0 ⭐ | 542 👁️ | Never ⏰ | []
PHP |

540 B

|

None

|

0 👍

/

0 👎

<?php 
    
    $userDetailApp  = PayplansHelperApp::getAvailableApps('userdetail');
    
    foreach ($userDetailApp as $app) {
        $name     = $app->getName(); 
        $appid    = $app->getId();
        $location = $app->getLocation();
        $path     = $location.DS.'xmldata'.DS."userdetail_app_{$appid}.xml";
        $form = JForm::getInstance('user.userDetail'.$appid, $path ,array(),true, '//config');
        foreach ($form->getFieldset('params') as $f){
            $userps[$f->fieldname] = $f->value;
        }
        //dump($userps);
    }
    
    $logged_in = ( (!empty($userps['first_name'])) ? true : false );
    ?>

Comments