OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
social_media
/
linkedin
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📁
bin
-
11/19/2024 11:51:16 AM
rwxr-xr-x
📄
function.php
4.59 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
index.php
430 bytes
05/19/2025 10:07:13 AM
rw-r--r--
📄
linkedinPost.php
1.12 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
linkedin_credentials.json
142 bytes
12/26/2024 08:39:27 AM
rw-r--r--
📄
linkedin_function.php
17.91 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
linkedin_post_handler.php
4.16 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
linkedin_setup.php
8.26 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
linkedin_setup_handler.php
1.18 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
test.json
1.73 KB
12/26/2024 08:39:27 AM
rw-r--r--
📄
test.php
1.92 KB
05/19/2025 10:07:13 AM
rw-r--r--
Editing: linkedin_setup_handler.php
Close
<?php ini_set('display_startup_errors', 1); include 'linkedin_function.php'; include '../db_connect.php'; include '../../assets/php/validate.logged.php'; $credentials = json_decode(file_get_contents('linkedin_credentials.json'), true); $appId = $credentials['client_id']; $appSecret = $credentials['client_secret']; if (isset($_GET['code'])) { $code = $_GET['code']; try { $accessToken = linkedin_generate_access_token($db, $credentials, $code, 'https://knoblycream.com/social_media/linkedin/linkedin_setup_handler.php'); if ($accessToken) { if (linkedin_update_profile($db, $accessToken)) { ?> <script> alert("Account Created/Updated Successfully"); </script> <?php }; } } catch (Exception $e) { ?> <script> alert("<? echo "Error: " . $e->getMessage(); ?>"); </script> <?php } } else { ?> <script> alert("<? echo "No authorization code provided."; ?>") </script> <? } header("Location: linkedin_setup.php"); // Use Location header exit(); // Always exit after a header redirect ?>