diff --git a/award.php b/award.php index a9769b3..55e4443 100644 --- a/award.php +++ b/award.php @@ -120,14 +120,19 @@ /** * TODO: 毎年変わるダウンロードキーを設定してください。 */ -$url = "https://exconf.istlab.info/awards/json_booth_title_author/xxxxxxx"; +$url = "https://exconf.istlab.info/awards/json_booth_title_author/xxxxxx"; +if (strpos($url, "xxxxxx") > 0) { + echo "ダウンロードキーを入力してください。(またはaward.php 123行目付近で設定)\n"; + $type = trim(fgets(STDIN)); + echo "「{$type}」が入力されました。\n"; + $url = str_replace("xxxxxx",$type, $url); + sleep(1); +} $json = file_get_contents($url); $obj = json_decode($json, true); // var_dump($obj); // 確認表示 -// 一部の【ブース番号】(not paper id)だけを出力する場合 半角スペース区切り -// $booth_list = "1 2 3 4 5 "; $awards = [ "優秀論文賞" => "貴殿が情報処理学会{$baseary['eventname']}にて発表された「hoge」は特に優秀な論文であり、情報教育の発展に貢献することを認めここに表彰いたします。", "優秀発表賞" => "貴殿が情報処理学会{$baseary['eventname']}にて発表された「hoge」は特に優秀な発表であり、情報教育の発展に貢献することを認めここに表彰いたします。", @@ -136,6 +141,7 @@ ]; /** * TODO: ここで、受賞者の論文のブース、発表番号を 半角スペース区切り で入れてください。 + * 空文字列にすると、すべての論文を出力します。 */ $winners = [ "優秀論文賞" => "", //"1-1 1-2", @@ -162,6 +168,7 @@ addHSJ($phpPres, $ary); } } + echo $award." を出力しました。\n"; } $phpPres->removeSlideByIndex(0); // 最初のスライドを削除する diff --git a/composer.lock b/composer.lock index bd64b72..b93b780 100644 --- a/composer.lock +++ b/composer.lock @@ -8,20 +8,20 @@ "packages": [ { "name": "ezyang/htmlpurifier", - "version": "v4.16.0", + "version": "v4.17.0", "source": { "type": "git", "url": "https://github.com/ezyang/htmlpurifier.git", - "reference": "523407fb06eb9e5f3d59889b3978d5bfe94299c8" + "reference": "bbc513d79acf6691fa9cf10f192c90dd2957f18c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/523407fb06eb9e5f3d59889b3978d5bfe94299c8", - "reference": "523407fb06eb9e5f3d59889b3978d5bfe94299c8", + "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/bbc513d79acf6691fa9cf10f192c90dd2957f18c", + "reference": "bbc513d79acf6691fa9cf10f192c90dd2957f18c", "shasum": "" }, "require": { - "php": "~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0" + "php": "~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "require-dev": { "cerdic/css-tidy": "^1.7 || ^2.0", @@ -63,9 +63,9 @@ ], "support": { "issues": "https://github.com/ezyang/htmlpurifier/issues", - "source": "https://github.com/ezyang/htmlpurifier/tree/v4.16.0" + "source": "https://github.com/ezyang/htmlpurifier/tree/v4.17.0" }, - "time": "2022-09-18T07:06:19+00:00" + "time": "2023-11-17T15:01:25+00:00" }, { "name": "maennchen/zipstream-php", @@ -298,16 +298,16 @@ }, { "name": "phpoffice/common", - "version": "1.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/PHPOffice/Common.git", - "reference": "6b5c03a704013bb79c5bab5319759cee34297903" + "reference": "1e968b24692bac8120b60e2ce3b7015eca0e7c00" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPOffice/Common/zipball/6b5c03a704013bb79c5bab5319759cee34297903", - "reference": "6b5c03a704013bb79c5bab5319759cee34297903", + "url": "https://api.github.com/repos/PHPOffice/Common/zipball/1e968b24692bac8120b60e2ce3b7015eca0e7c00", + "reference": "1e968b24692bac8120b60e2ce3b7015eca0e7c00", "shasum": "" }, "require": { @@ -316,7 +316,7 @@ }, "require-dev": { "phpmd/phpmd": "2.*", - "phpstan/phpstan": "^0.12.88", + "phpstan/phpstan": "^0.12.88 || ^1.0.0", "phpunit/phpunit": ">=7" }, "type": "library", @@ -348,9 +348,9 @@ ], "support": { "issues": "https://github.com/PHPOffice/Common/issues", - "source": "https://github.com/PHPOffice/Common/tree/1.0.1" + "source": "https://github.com/PHPOffice/Common/tree/1.0.2" }, - "time": "2022-02-17T16:34:52+00:00" + "time": "2023-12-11T13:11:02+00:00" }, { "name": "phpoffice/phppresentation", @@ -528,16 +528,16 @@ }, { "name": "psr/http-client", - "version": "1.0.2", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/php-fig/http-client.git", - "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31" + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31", - "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", "shasum": "" }, "require": { @@ -574,26 +574,26 @@ "psr-18" ], "support": { - "source": "https://github.com/php-fig/http-client/tree/1.0.2" + "source": "https://github.com/php-fig/http-client" }, - "time": "2023-04-10T20:12:12+00:00" + "time": "2023-09-23T14:17:50+00:00" }, { "name": "psr/http-factory", - "version": "1.0.2", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/php-fig/http-factory.git", - "reference": "e616d01114759c4c489f93b099585439f795fe35" + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", - "reference": "e616d01114759c4c489f93b099585439f795fe35", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", "shasum": "" }, "require": { - "php": ">=7.0.0", + "php": ">=7.1", "psr/http-message": "^1.0 || ^2.0" }, "type": "library", @@ -617,7 +617,7 @@ "homepage": "https://www.php-fig.org/" } ], - "description": "Common interfaces for PSR-7 HTTP message factories", + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", "keywords": [ "factory", "http", @@ -629,9 +629,9 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-factory/tree/1.0.2" + "source": "https://github.com/php-fig/http-factory" }, - "time": "2023-04-10T20:10:41+00:00" + "time": "2024-04-15T12:06:14+00:00" }, { "name": "psr/http-message", @@ -748,5 +748,5 @@ "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" }