Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Database\Capsule\Manager as Capsule;
- add_hook('ClientAreaHeaderOutput', 1, function($vars) {
- foreach (Capsule::table('tblhosting')->where('userid', $_SESSION['uid'])->where('domainstatus', 'Active')->get() as $service) {
- $getConfigOptions = getCartConfigOptions ($service->packageid, '', $service->billingcycle, $service->id);
- $getCustomFieldValue = array_values (array_filter ($getConfigOptions, function ($var) {
- return ($var['optionname'] == 'Server Location');
- }));
- $customFieldValues = $getCustomFieldValue['0'];
- if (empty($getCustomFieldValue)) {
- continue;
- }
- var_dump ($customFieldValues);
- echo $customFieldValues['selectedoption'];
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment