Guest User

Untitled

a guest
Dec 15th, 2021
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <?php
  2. use Illuminate\Database\Capsule\Manager as Capsule;
  3.  
  4.  
  5. add_hook('ClientAreaHeaderOutput', 1, function($vars) {
  6. foreach (Capsule::table('tblhosting')->where('userid', $_SESSION['uid'])->where('domainstatus', 'Active')->get() as $service) {
  7. $getConfigOptions = getCartConfigOptions ($service->packageid, '', $service->billingcycle, $service->id);
  8.  
  9. $getCustomFieldValue = array_values (array_filter ($getConfigOptions, function ($var) {
  10. return ($var['optionname'] == 'Server Location');
  11. }));
  12.  
  13. $customFieldValues = $getCustomFieldValue['0'];
  14.  
  15. if (empty($getCustomFieldValue)) {
  16. continue;
  17. }
  18.  
  19. var_dump ($customFieldValues);
  20. echo $customFieldValues['selectedoption'];
  21. }
  22. });
Advertisement
Add Comment
Please, Sign In to add comment