mirror of
https://github.com/ivuorinen/xkcd-Mailer.git
synced 2026-02-24 13:56:12 +00:00
Compare commits
37 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d2dd2c29d | ||
|
|
8643c5dcc4 | ||
|
|
97770ec4e4 | ||
|
|
18c36ab8c7 | ||
|
|
c08dddca13 | ||
|
|
125bf37b4b | ||
|
|
2470718d88 | ||
|
|
fe0809acf3 | ||
|
|
ebff93e3d7 | ||
|
|
2b4bfb5ecd | ||
|
|
92928a0c2d | ||
|
|
62e1356acb | ||
|
|
c69546d936 | ||
|
|
735d04607f | ||
|
|
c2f238488b | ||
|
|
3d67b3ab3d | ||
|
|
5dbe4076b8 | ||
|
|
d1e77aebd9 | ||
|
|
ee3e135627 | ||
|
|
3335d0456c | ||
|
|
8af7d87faf | ||
|
|
b5b95fa2e7 | ||
| 3cddb4e7f5 | |||
|
|
c280d3f46d | ||
|
|
21e99b99bb | ||
| eaa47530f1 | |||
| 0acec26cc5 | |||
|
|
a5d09cf9c2 | ||
| dee6c1791c | |||
|
|
dfdede56e1 | ||
| 1b2de7835c | |||
|
|
8f40ce8c24 | ||
| 7b7fdd3aba | |||
|
|
2ccf90a7d3 | ||
| 2bbda39840 | |||
|
|
1ed8522135 | ||
|
|
ca885ef899 |
6
.github/renovate.json
vendored
Normal file
6
.github/renovate.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"github>ivuorinen/renovate-config"
|
||||
]
|
||||
}
|
||||
6
.github/workflows/phpcs.yml
vendored
6
.github/workflows/phpcs.yml
vendored
@@ -7,14 +7,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
|
||||
- name: Validate composer.json and composer.lock
|
||||
run: composer validate
|
||||
|
||||
- name: Cache Composer packages
|
||||
id: composer-cache
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
|
||||
with:
|
||||
path: vendor
|
||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
${{ runner.os }}-php-
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
extensions: simplexml
|
||||
|
||||
@@ -27,6 +27,6 @@
|
||||
"ext-curl": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"squizlabs/php_codesniffer": "^3.6"
|
||||
"squizlabs/php_codesniffer": "3.13.2"
|
||||
}
|
||||
}
|
||||
|
||||
66
composer.lock
generated
66
composer.lock
generated
@@ -4,21 +4,21 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "287b4ba4fba3028b90560807d217298f",
|
||||
"content-hash": "167d01deb24f5b6bdf96a74db53647f6",
|
||||
"packages": [],
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "squizlabs/php_codesniffer",
|
||||
"version": "3.6.1",
|
||||
"version": "3.13.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
||||
"reference": "f268ca40d54617c6e06757f83f699775c9b3ff2e"
|
||||
"url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
|
||||
"reference": "5b5e3821314f947dd040c70f7992a64eac89025c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/f268ca40d54617c6e06757f83f699775c9b3ff2e",
|
||||
"reference": "f268ca40d54617c6e06757f83f699775c9b3ff2e",
|
||||
"url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/5b5e3821314f947dd040c70f7992a64eac89025c",
|
||||
"reference": "5b5e3821314f947dd040c70f7992a64eac89025c",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -28,11 +28,11 @@
|
||||
"php": ">=5.4.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
|
||||
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
|
||||
},
|
||||
"bin": [
|
||||
"bin/phpcs",
|
||||
"bin/phpcbf"
|
||||
"bin/phpcbf",
|
||||
"bin/phpcs"
|
||||
],
|
||||
"type": "library",
|
||||
"extra": {
|
||||
@@ -47,32 +47,60 @@
|
||||
"authors": [
|
||||
{
|
||||
"name": "Greg Sherwood",
|
||||
"role": "lead"
|
||||
"role": "Former lead"
|
||||
},
|
||||
{
|
||||
"name": "Juliette Reinders Folmer",
|
||||
"role": "Current lead"
|
||||
},
|
||||
{
|
||||
"name": "Contributors",
|
||||
"homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
|
||||
}
|
||||
],
|
||||
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
|
||||
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
|
||||
"homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
|
||||
"keywords": [
|
||||
"phpcs",
|
||||
"standards"
|
||||
"standards",
|
||||
"static analysis"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
|
||||
"source": "https://github.com/squizlabs/PHP_CodeSniffer",
|
||||
"wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
|
||||
"issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues",
|
||||
"security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy",
|
||||
"source": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
|
||||
"wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki"
|
||||
},
|
||||
"time": "2021-10-11T04:00:11+00:00"
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/PHPCSStandards",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/jrfnl",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://opencollective.com/php_codesniffer",
|
||||
"type": "open_collective"
|
||||
},
|
||||
{
|
||||
"url": "https://thanks.dev/u/gh/phpcsstandards",
|
||||
"type": "thanks_dev"
|
||||
}
|
||||
],
|
||||
"time": "2025-06-17T22:17:01+00:00"
|
||||
}
|
||||
],
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": [],
|
||||
"stability-flags": {},
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
"ext-simplexml": "*",
|
||||
"ext-curl": "*"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.1.0"
|
||||
"platform-dev": {},
|
||||
"plugin-api-version": "2.6.0"
|
||||
}
|
||||
|
||||
@@ -99,22 +99,25 @@ if ($current > $last) {
|
||||
if ($send) {
|
||||
mail($mail, $subject, $msg, $headers);
|
||||
} else {
|
||||
echo $msg . "\n\n";
|
||||
echo htmlspecialchars($msg, ENT_QUOTES) . "\n\n";
|
||||
}
|
||||
|
||||
$file_write_result = file_put_contents($lastfile, $current);
|
||||
|
||||
if (! $file_write_result) {
|
||||
echo "Error writing to file: $lastfile\n";
|
||||
echo htmlspecialchars("Error writing to file: $lastfile\n", ENT_QUOTES);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if ($debug) {
|
||||
echo "New last is $current (was $last)\n";
|
||||
echo htmlspecialchars("New last is $current (was $last)\n", ENT_QUOTES);
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if ($debug) {
|
||||
echo sprintf("No new XKCD: last=%d current=%d\n", $last, $current);
|
||||
echo htmlspecialchars(
|
||||
sprintf("No new XKCD: last=%d current=%d\n", $last, $current),
|
||||
ENT_QUOTES
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user