HEX
Server: Apache/2.4.59 (Debian)
System: Linux keymana 4.19.0-21-cloud-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64
User: lijunjie (1003)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wp-content/themes/ormedia/page-download.php
<?php
/* Template Name: download */
// if($_REQUEST['eye']==1){
//     $url = get_template_directory_uri().'/tmp/eye_for_mac.zip';
//     $label = "下载 Eye for Mac";
// }else{
//     $url = get_template_directory_uri().'/tmp/KeyManaPro_v1.1.8.apk';
//     $label = "下載KeyMana Pro測試APK v1.1.8";
// }
$url = get_template_directory_uri().'/tmp/KeyManaPro_v1.1.8.apk';
$label = "下載 KeyMana Pro";

$url_r = get_template_directory_uri().'/tmp/KeyMana_v1.0.1.apk';
$label_r = "下載住戶版";

$bg = get_template_directory_uri().'/image/bg-download.jpg';
?>

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- <div style="max-width:500px;margin: 0 auto;position: relative;height: 100%;background: url('<?php echo $bg;?>');background-size: cover;    background-position-x: center;"> -->
<div style="max-width:800px;margin: 0 auto;position: relative;">
    <img src="<?php echo $bg;?>" style="width:100%;">
    <div style="position: absolute; left: 20px;right: 20px;bottom: 40px;">
        <a class="no_deco" style="background: #2D6A37;color:#fff;margin-bottom: 20px;" href="<?php echo $url; ?>">
            <?php echo $label; ?>
        </a>
        <a class="no_deco" style="background: #D8EFD1;color:#2D6A37;" href="<?php echo $url_r; ?>">
            <?php echo $label_r; ?>
        </a>
    </div>
</div>

<style>
    html,body{
        margin: 0;
        border: 0;
        padding: 0;
    }
    .no_deco {
        text-decoration: none;
        border-radius: 20px;
        padding: 10px 5px;
        text-align: center;
        display: block;
    }
</style>