Файловый менеджер - Редактировать - /home/clickysoft/public_html/fl.clickysoft.net/index.php
Назад
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ClickySoft - Freelancer Project Info</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" /> <style> .container { margin: 30px auto; } </style> </head> <body> <div class="container"> <div class="row"> <div class="col-md-12"> <form method="post"> <div class="input-group mb-3"> <input type="number" class="form-control" name="project_id" placeholder="Enter Project ID" aria-label="Enter Project ID" aria-describedby="basic-addon2" value="<?php echo isset($_POST['project_id']) ? $_POST['project_id'] : "" ?>" required> <div class="input-group-append"> <button name="submit_btn" type="submit" class="btn btn-outline-secondary">Find</button> </div> </div> </form> </div> </div> </div> <?php if (isset($_REQUEST['submit_btn']) && $_POST['project_id'] != "") { $url = "https://www.freelancer.com/api/projects/0.1/projects/" . $_POST['project_id'] . '?user_details=true'; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "freelancer-oauth-v1: o8A4CQ4j0UStmWk2JL4c9K39YwTL7Q" ), )); $response = json_decode(curl_exec($curl)); // echo '<pre>' . print_r($response, true) . '</pre>'; curl_close($curl); ?> <div class="container"> <div class="row"> <div class="col-md-12"> <table class="table table-bordered"> <tr> <th>Project Title: </th> <td><a href="https://www.freelancer.pk/projects/<?php echo $response->result->seo_url ?>" target="_blank"><?php echo $response->result->title ?></a></td> </tr> <tr> <th>Project Status: </th> <td><?php echo $response->result->status ?></td> </tr> <tr> <th>Project Sub Status: </th> <td><?php echo $response->result->sub_status ?></td> </tr> <tr> <th>Owner Username: </th> <td><a href="https://www.freelancer.com/u/<?php echo $response->result->owner->username ?>" target="_blank"><?php echo $response->result->owner->username ?></a></td> </tr> <tr> <th>Public Name: </th> <td><?php echo $response->result->owner->public_name ?></td> </tr> <tr> <th>Display Name: </th> <td><?php echo $response->result->owner->display_name ?></td> </tr> <tr> <th>Country: </th> <td><?php echo $response->result->owner->location->country->name ?></td> </tr> <tr> <th>City: </th> <td><?php echo $response->result->owner->location->city ?></td> </tr> </table> </div> </div> </div> <?php } ?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка