Check-in [b7d70e6f66]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Comment out some test snippets |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
b7d70e6f66a43af4df5f9ecb816d77a5 |
| User & Date: | mario 2021-04-05 06:24:32 |
Context
|
2021-04-05
| ||
| 06:25 | More shortags (use `phptags --long` to reverse...) check-in: b137de1697 user: mario tags: trunk | |
| 06:24 | Comment out some test snippets check-in: b7d70e6f66 user: mario tags: trunk | |
| 06:23 | Case-insensitive title match check-in: dbb0abdf71 user: mario tags: trunk | |
Changes
Changes to .htaccess.
| ︙ | ︙ | |||
57 58 59 60 61 62 63 |
RewriteRule ^(url|go)/(\w+(?:[-_.]\w+)*)/(\w+)/?$ index.php?page=redir&name=$2&ext=$3 [L,NS,QSA]
RewriteRule ^(forum|meta)\b/?(\w+)?/?$ page_forum.php?name=$2 [L,NS,QSA]
#-- Deny direct invocations
RewriteRule ^freshcode\.db.*$ - [F]
RewriteRule ^\. - [F]
RewriteCond %{ENV:REDIRECT_STATUS} !200
| | | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
RewriteRule ^(url|go)/(\w+(?:[-_.]\w+)*)/(\w+)/?$ index.php?page=redir&name=$2&ext=$3 [L,NS,QSA]
RewriteRule ^(forum|meta)\b/?(\w+)?/?$ page_forum.php?name=$2 [L,NS,QSA]
#-- Deny direct invocations
RewriteRule ^freshcode\.db.*$ - [F]
RewriteRule ^\. - [F]
RewriteCond %{ENV:REDIRECT_STATUS} !200
#RewriteRule ^\w+\.php(|/.*)$ - [F,L,NS]
#-- invalid resources
RewriteRule ^favicon\.(png|ico|jpeg)$ http://freshcode.club/img/changes.png [R=301,L]
|
Changes to cron.daily/password_hash.php.
| ︙ | ︙ | |||
40 41 42 43 44 45 46 |
$updated = 1;
$tokens[$i] = password_hash($pw, PASSWORD_DEFAULT);
print " ↓ $pw → $tokens[$i]\n";
}
}
# update record
| | | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
$updated = 1;
$tokens[$i] = password_hash($pw, PASSWORD_DEFAULT);
print " ↓ $pw → $tokens[$i]\n";
}
}
# update record
if ($updated and $tokens) {
$r = new release($name);
$r->update(
["lock" => join(", ", $tokens)],
[], [], TRUE
);
$r->store();
#print_r($r);
print "Hashin password for `$name`\n";
}
}
}
db("END TRANSACTION");
|