:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/www/demo/horoscope/**
:: Editing File: horoscope.php
<?php $sign = $_GET['sign'] ?? 'aries'; // default sign $api_url = "https://aztro.sameerkumar.website/?sign=$sign&day=today"; $ch = curl_init($api_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); // POST method required $response = curl_exec($ch); curl_close($ch); $data = json_decode($response, true); ?> <!DOCTYPE html> <html> <head> <title>Daily Horoscope</title> <style> body { font-family: Arial, sans-serif; padding: 20px; background: #f3f3f3; } .card { background: white; padding: 20px; border-radius: 10px; max-width: 600px; margin: auto; box-shadow: 0 0 10px #ccc; } select { padding: 10px; } </style> </head> <body> <div class="card"> <h2>🔮 Daily Horoscope</h2> <form method="GET"> <select name="sign" onchange="this.form.submit()"> <?php $signs = ['aries','taurus','gemini','cancer','leo','virgo','libra','scorpio','sagittarius','capricorn','aquarius','pisces']; foreach ($signs as $s) { echo "<option value='$s'" . ($s == $sign ? ' selected' : '') . ">" . ucfirst($s) . "</option>"; } ?> </select> </form> <?php if (!empty($data)) { ?> <h3><?= ucfirst($sign); ?> - <?= $data['current_date']; ?></h3> <p><strong>💬 Description:</strong> <?= $data['description']; ?></p> <p><strong>🎯 Mood:</strong> <?= $data['mood']; ?></p> <p><strong>🎨 Color:</strong> <?= $data['color']; ?></p> <p><strong>🍀 Lucky Number:</strong> <?= $data['lucky_number']; ?></p> <p><strong>🕰 Lucky Time:</strong> <?= $data['lucky_time']; ?></p> <?php } ?> </div> </body> </html>