mirror of
https://github.com/scummvm/scummvm-sites.git
synced 2026-06-20 05:45:36 +00:00
32 lines
936 B
PHP
Executable File
32 lines
936 B
PHP
Executable File
<?php
|
|
|
|
//error_reporting(E_ALL);
|
|
|
|
// two ways to address the email
|
|
// option 1) manually set the list
|
|
//$email_to = "wjp@usecode.org";
|
|
//$email_to = "scummvm-cvs-logs@lists.sourceforge.net";
|
|
//$email_to = "scummvm-git-logs@lists.scummvm.org";
|
|
$email_to = "scummvm-git-logs@lists.scummvm.org";
|
|
|
|
// option 2) use the list maintainer so people can sign-up for the list (and
|
|
// leave) on their own (recommended)
|
|
// note: to setup your own list, go to http://yuba.stanford.edu/github/list_create.php
|
|
//include 'list_funcs.php';
|
|
//$email_to = list_get_active_to_addrs_as_string('example');
|
|
|
|
// how to prefix the subject line (e.g., project name)
|
|
$email_subj_prefix = "";
|
|
|
|
// grab payload
|
|
if(isset($_POST['payload']))
|
|
{
|
|
$json = $_POST['payload'];
|
|
// debug:
|
|
file_put_contents('/tmp/gitmailer.log', $json, FILE_APPEND);
|
|
include 'github_post_receive.php';
|
|
mail_github_post_receive($email_to, $email_subj_prefix, $json);
|
|
}
|
|
|
|
?>
|