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
<?php | |
//filter githubs webhooks by using this conditional relay script | |
//used for discord, but also usable for other needs. | |
//set the webhook url in github to the public url to this php file | |
$headers = getallheaders(); | |
//file_put_contents('/home/user/public_html/webhook_data.txt', json_ensode($headers) );//debug | |
$rawPostBody = file_get_contents('php://input'); |
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
<?php | |
class OAuthClient { | |
/** @var OAuth */ | |
public $oauth; | |
/** @var cURL */ | |
public $curl; | |
function __construct(array $config) { |
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
<?php | |
foreach(debug_backtrace() as $i){ | |
echo $i['file'].' '.$i['line'].' ' .$i['function'].'<br/>'; | |
} |