Skip to content

Commit

Permalink
Use http: instead of https: for downloading CHMs (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwins authored Oct 17, 2024
1 parent 5b983c4 commit c0495be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/fetch-chms.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?php
define("DEBUG", 0);
$BUILDDIR = "https://www.mumumu.org/chm";
$BUILDDIR = "http://www.mumumu.org/chm";
$TMPDIR = sys_get_temp_dir();
$CHMDIR = "/local/mirrors/phpweb/distributions/manual";

$chminfo = "$BUILDDIR/build.log";
fetch($chminfo, tempnam(sys_get_temp_dir(), "chm"));
$tmpfilename = tempnam(sys_get_temp_dir(), "chm");
fetch($chminfo, $tmpfilename);

$chms = file($chminfo, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
$chms = file($tmpfilename, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
if (!$chms) {
err("No chm info\n");
return 1;
Expand Down

0 comments on commit c0495be

Please sign in to comment.