Skip to content

Commit

Permalink
uwu
Browse files Browse the repository at this point in the history
  • Loading branch information
Renyu106 committed May 2, 2024
1 parent e367a4a commit cb9ea01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Binary file added images/logos/php-logo-by-SAWARATSUKI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,25 @@
$content .= '<p class="archive"><a href="/archive/">Older News Entries</a></p>';
$content .= "</div>";

$uwu_set = isset($_GET['uwu']) || isset($_COOKIE['uwu']);
if ($uwu_set) {
setcookie("uwu", true, time() + 60);
}
$hero_logo = $uwu_set
? ["img" => "images/logos/php-logo-by-SAWARATSUKI.png", "alt" => "php logo by SAWARATSUKI", "width" => "250"]
: ["img" => "images/logos/php-logo-white.svg", "alt" => "php", "width" => "240", "height" => "120"];

$intro = <<<EOF
<div class="hero">
<img class="hero-logo" src="/images/logos/php-logo-white.svg" alt="php" width="240" height="120">
<img class="hero-logo" src="{$hero_logo['img']}" alt="{$hero_logo['alt']}" width="{$hero_logo['width']}" height="{$hero_logo['height']}">
<p class="hero-text">A <strong>popular general-purpose scripting language</strong> that is especially suited to web development.<br />Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.</p>
<div class="hero-actions">
<a href="/releases/8.3/index.php" class="hero-btn hero-btn-primary">What's new in 8.3</a>
<a href="/downloads.php" class="hero-btn hero-btn-secondary">Download</a>
</div>
EOF;


$intro .= "<ul class='hero-versions'>\n";
$active_branches = get_active_branches();
krsort($active_branches);
Expand Down

0 comments on commit cb9ea01

Please sign in to comment.