| 1 |
<?php |
| 2 |
defined('ABSPATH') or die('Unauthorized Access'); |
| 3 |
|
| 4 |
if (!Phpinfo_WP_License::is_valid()) { |
| 5 |
phpinfowp_render_feature_lock([ |
| 6 |
'feature' => 'Premium Support', |
| 7 |
'icon' => 'dashicons-sos', |
| 8 |
'tagline' => 'Get priority email support and access to our technical experts.', |
| 9 |
'previews' => [ |
| 10 |
'Ticket response time: <strong>< 24 hours</strong>', |
| 11 |
'Support channel: <strong>Priority Email</strong>', |
| 12 |
'Bug fixes: <strong>Guaranteed</strong>', |
| 13 |
], |
| 14 |
]); |
| 15 |
return; |
| 16 |
} |
| 17 |
|
| 18 |
$payload = Phpinfo_WP_License::payload(); |
| 19 |
$email = $payload['email'] ?? 'Unknown'; |
| 20 |
|
| 21 |
$sysinfo = [ |
| 22 |
'Site URL' => get_site_url(), |
| 23 |
'WP Version' => get_bloginfo('version'), |
| 24 |
'PHP Version'=> PHP_VERSION, |
| 25 |
'Plugin Ver' => PHPINFOWP_VERSION, |
| 26 |
'License' => Phpinfo_WP_License::is_unlimited() ? 'Unlimited' : 'Single Site', |
| 27 |
'Reg. Email' => $email, |
| 28 |
]; |
| 29 |
|
| 30 |
$sysinfo_str = ""; |
| 31 |
foreach ($sysinfo as $k => $v) { |
| 32 |
$sysinfo_str .= str_pad($k, 12) . ": " . $v . "\n"; |
| 33 |
} |
| 34 |
?> |
| 35 |
|
| 36 |
<div class="phpinfowp-pro-page"> |
| 37 |
<div class="phpinfowp-page-header"> |
| 38 |
<div> |
| 39 |
<h1>Premium Support <span class="phpinfowp-pro-badge"><?php _e('PRO', 'phpinfo-wp'); ?></span></h1> |
| 40 |
<p class="phpinfowp-page-subtitle"><?php _e('Need help? Our technical experts are ready to assist you.', 'phpinfo-wp'); ?></p> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
|
| 44 |
<div style="display:flex; gap:24px; flex-wrap:wrap; margin-top:24px;"> |
| 45 |
<!-- Support Options Card --> |
| 46 |
<div style="flex:1; min-width:300px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; padding:24px;"> |
| 47 |
<h3 style="margin-top:0; font-size:18px; color:#1d2327;"><span class="dashicons dashicons-email-alt" style="vertical-align:middle; color:#777BB3;"></span> <?php _e('Contact Support', 'phpinfo-wp'); ?></h3> |
| 48 |
<p style="color:#475569; font-size:14px; line-height:1.6; margin-bottom:20px;"> |
| 49 |
<?php _e('As a Pro user, you get priority email support. If you are experiencing a bug, need help configuring the plugin, or have a feature request, please open a ticket.', 'phpinfo-wp'); ?> |
| 50 |
</p> |
| 51 |
<a href="https://exeebit.com/support" target="_blank" rel="noopener" class="button button-primary button-large" style="background:#777BB3; border-color:#777BB3;"> |
| 52 |
<?php _e('Open a Support Ticket →', 'phpinfo-wp'); ?> |
| 53 |
</a> |
| 54 |
|
| 55 |
<hr style="border:0; border-top:1px solid #e2e8f0; margin:24px 0;"> |
| 56 |
|
| 57 |
<div style="background:#f8fafc; border:1px solid #cbd5e1; border-radius:6px; padding:20px;"> |
| 58 |
<h4 style="margin-top:0; margin-bottom:8px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:#64748b;">More from Exeebit</h4> |
| 59 |
<h3 style="margin-top:0; font-size:18px; color:#1d2327;">Meet Mimonous 💸</h3> |
| 60 |
<p style="color:#475569; font-size:13.5px; line-height:1.5; margin-bottom:16px;"> |
| 61 |
Are you a freelancer or small agency? Check out <strong>Mimonous</strong>, our peer-to-peer invoicing platform that turns the invoices you send directly into payable bills for your clients. |
| 62 |
</p> |
| 63 |
<a href="https://mimonous.com" target="_blank" rel="noopener" class="button"> |
| 64 |
Learn about Mimonous → |
| 65 |
</a> |
| 66 |
</div> |
| 67 |
</div> |
| 68 |
|
| 69 |
<!-- System Info Card --> |
| 70 |
<div style="flex:1; min-width:300px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; padding:24px;"> |
| 71 |
<h3 style="margin-top:0; font-size:18px; color:#1d2327;"><span class="dashicons dashicons-desktop" style="vertical-align:middle; color:#777BB3;"></span> <?php _e('System Information', 'phpinfo-wp'); ?></h3> |
| 72 |
<p style="color:#475569; font-size:14px; line-height:1.6;"> |
| 73 |
<?php _e('Please copy and paste this information when opening a support ticket. It helps us diagnose issues faster.', 'phpinfo-wp'); ?> |
| 74 |
</p> |
| 75 |
<textarea readonly style="width:100%; height:140px; font-family:monospace; font-size:13px; background:#f8fafc; color:#334155; border:1px solid #cbd5e1; border-radius:4px; padding:12px; margin-bottom:12px;" onclick="this.select();"><?php echo esc_textarea($sysinfo_str); ?></textarea> |
| 76 |
<button type="button" class="button" onclick="var t=this.previousElementSibling; t.select(); document.execCommand('copy'); this.innerText='Copied!'; setTimeout(()=>this.innerText='<?php _e('Copy System Info', 'phpinfo-wp'); ?>', 2000);"> |
| 77 |
<?php _e('Copy System Info', 'phpinfo-wp'); ?> |
| 78 |
</button> |
| 79 |
</div> |
| 80 |
</div> |
| 81 |
</div> |
| 82 |
|