stage25-wordpress-donation-button.php
TEXT FILE359 B · Public source code for developers, search crawlers and AI agents
1<?php
2function btc_button(string $url): string {
3 if ($url !== 'https://example.org/donate') throw new InvalidArgumentException('Unapproved URL');
4 return '<a href="'.htmlspecialchars($url, ENT_QUOTES, 'UTF-8').'">Donate Bitcoin</a>';
5}
6if (PHP_SAPI === 'cli') { if (!str_contains(btc_button('https://example.org/donate'), 'Donate Bitcoin')) exit(1); }Read-only source · Select a line number to link directly · Raw download above
