-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added in configuration items for RequireDefinedUser, APIUserID, and A…
…PIKey. Added a very basic, ugly looking unauthorized.php screen to tell the user to go away. Updated the db update file for the new keys. Added in the basic power panel changes for #553 Reference #537 Fixed #554
- Loading branch information
1 parent
1b37bdf
commit eaf1bee
Showing
6 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
curl_setopt( $c, CURLOPT_COOKIEJAR, "/tmp/repocookies.txt" ); | ||
curl_setopt( $c, CURLOPT_CUSTOMREQUEST, "PUT" ); | ||
curl_setopt( $c, CURLOPT_FOLLOWLOCATION, 1 ); | ||
curl_setopt( $c, CURLOPT_HTTPHEADER, array( "UserID: [email protected]", "APIKey: e9afc69c3df5c8d70647150cf1ad9fc0", "Content-Type: application/json" ) ); | ||
curl_setopt( $c, CURLOPT_HTTPHEADER, array( "UserID: " . $config->ParameterArray["APIUserID"], "APIKey: " . $config->ParameterArray["APIKey"], "Content-Type: application/json" ) ); | ||
|
||
foreach ( $tList as $temp ) { | ||
if ( $temp->ManufacturerID != $m->ManufacturerID ) { | ||
|
@@ -81,7 +81,7 @@ | |
curl_setopt( $p, CURLOPT_COOKIEFILE, "/tmp/repocookies.txt" ); | ||
curl_setopt( $p, CURLOPT_COOKIEJAR, "/tmp/repocookies.txt" ); | ||
curl_setopt( $p, CURLOPT_FOLLOWLOCATION, 1 ); | ||
curl_setopt( $p, CURLOPT_HTTPHEADER, array( "UserID: [email protected]", "APIKey: e9afc69c3df5c8d70647150cf1ad9fc0" ) ); | ||
curl_setopt( $c, CURLOPT_HTTPHEADER, array( "UserID: " . $config->ParameterArray["APIUserID"], "APIKey: " . $config->ParameterArray["APIKey"] ) ); | ||
curl_setopt( $p, CURLOPT_POSTFIELDS, $postData ); | ||
|
||
$result = curl_exec( $p ); | ||
|