need to add curl opt
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 15 Mar 2017 18:50:51 +0000 (14:50 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 15 Mar 2017 18:50:51 +0000 (14:50 -0400)
For user password to login to dev55

models/admin/ajax/schedule.php
models/front/apis/schedule.php

index 5d1b59f..47559fd 100644 (file)
@@ -87,6 +87,7 @@ class GlmMembersAdmin_ajax_schedule
             $url = get_option( GLM_MEMBERS_APIS_STARLINE_OPTION_NAME ) . 'schedule-' . $_REQUEST['schedule_id'] . '.js';
             $curl = curl_init( $url );
             curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );
+           curl_setopt( $curl, CURLOPT_USERPWD, 'dev55:Glm15Keep!' );
             $content = curl_exec( $curl );
             curl_close( $curl );
             echo $content;
index 83717f8..789c26c 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+i<?php
 /**
  * detail.php
  *
@@ -57,6 +57,7 @@ class GlmMembersFront_apis_schedule
         $url = get_option( GLM_MEMBERS_APIS_STARLINE_OPTION_NAME ) . 'ferrySchedule.php';
         $curl = curl_init( $url );
         curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );
+       curl_setopt( $curl, CURLOPT_USERPWD, 'dev55:Glm15Keep!' );
         $content = curl_exec( $curl );
         curl_close( $curl );