$db_plancostoth = $arrSubPlanDetails[0]['plan_cost_oth']; $db_concurrentsessions = $arrSubPlanDetails[0]['concurrent_sessions']; $db_talktimemins = $arrSubPlanDetails[0]['talk_time_mins']; //$db_plankeyword = $arrSubPlanDetails[0]['plan_keyword']; $db_autorenewflag = $arrSubPlanDetails[0]['autorenew_flag']; $db_consumednumberofsessions = $arrSubPlanDetails[0]['consumed_number_of_sessions']; $db_consumedtalktimemins = $arrSubPlanDetails[0]['consumed_talk_time_mins']; if ($db_subscriptionstatus == 4) { $db_subscriptionstatus = 2; } else { $db_subscriptionstatus = $db_subscriptionstatus; } $gmt_datetime = GM_DATE; $gmt_start_date = date("Y-m-d", strtotime(GM_DATE)); $Type = "N"; $dateTime = timezoneConverter($Type, $gmt_datetime, $db_user_timezone); $dtm = explode(SEPARATOR, $dateTime); $local_start_date = date("Y-m-d", strtotime($dtm[1])); try { $arrSubscDetails = insUserSubscriptionDetails($db_userid, $gmt_datetime, $gmt_start_date, $db_subscriptionenddategmt, $local_start_date, $db_subscriptionend_date_local, $db_subscriptionstatus, $db_orderid, $db_planid, $db_planname, $db_plandesc, $db_planfor, $db_plantype, $db_numberofsessions, $db_numberofminspersessions, $db_planperiod, $db_numberofinvitee, $db_meetingrecording, $db_diskspace, $db_isfree, $db_plancostinr, $db_plancostoth, $db_concurrentsessions, $db_talktimemins, $db_autorenewflag, $db_consumednumberofsessions, $db_consumedtalktimemins, $objDataHelper); } catch (Exception $a) { throw new Exception("response.php : insSubscriptionMaster : Error in adding subscription details." . $a->getMessage(), 541); } $subscStatus = $arrSubscDetails[0]['@STATUS']; $subsc_id = $arrSubscDetails[0]['@OUTPUT']; if ($subscStatus == 1) { $ClientSubStatus = "2"; //update CSM try { $arrClientSubStatus = updateClientSubscription($ClientSubStatus, $gmt_datetime, $strSetClient_ID, $db_orderid, $db_planid, $objDataHelper); } catch (Exception $e) {
$uPlan = $_REQUEST['uplan']; $schStat = $_REQUEST['stat']; $userTimeZone = explode("\$:\$", $tZone); $timezone = $userTimeZone[1]; $gmt = $userTimeZone[2]; /* Meeting Date Time : Start */ if ($scheduleType == "N") { $meeting_timestamp = GM_DATE; } else { if ($scheduleType == "L") { $meeting_timestamp = date("Y-m-d H:i:s", strtotime($meeting_timestamp)); } } /* Meeting Date Time : End */ /* Timezone : Start */ $dateTime = timezoneConverter($scheduleType, $meeting_timestamp, $timezone); $dtm = explode(SEPARATOR, $dateTime); $gmTime = $dtm[0]; $localTime = $dtm[1]; /* Timezone : End */ /* Meeting Invitees Count : Start */ $inviteesCnt = sizeof(explode(",", $arrInviteesEmail)); /* Meeting Invitees Count : End */ /* Plan Details : Start */ $userPlan = explode("\$:\$", $uPlan); $subId = $userPlan[0]; $schDt = date("Y-m-d", strtotime($meeting_timestamp)); try { $planDetails = validatePlan($subId, $strCK_user_id, $objDataHelper); } catch (Exception $e) { throw new Exception("createSchedule.php : validatePlan Failed : " . $e->getMessage(), 1131);