PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/seoshop.live/wp-content/plugins/cart66/pro/models/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/seoshop.live/wp-content/plugins/cart66/pro/models/ZendeskRemoteAuth.php

<?php
class ZendeskRemoteAuth {

  public static function login(Cart66Account $account) {
    $name = $account->firstName . ' ' . $account->lastName;
    $email = $account->email;
    $externalId = $account->id;
    $organization = Cart66Setting::getValue('zendesk_organization');
    $token = Cart66Setting::getValue('zendesk_token');
    $prefix = Cart66Setting::getValue('zendesk_prefix');

     /* Build the message */
    $ts = isset($_GET['timestamp']) ? $_GET['timestamp'] : time(); 
    $message = $name . '|' . $email . '|' . $externalId . '|' . $organization . '|||' . $token . '|' . $ts;
    $hash = MD5($message);

    //$remoteAuthUrl = "http://" . $prefix . ".zendesk.com/access/remoteauth/?name=" . urlencode($name) . "&email=". urlencode($email) . "&external_id=".$externalId . "&organization=" . $organization ."&timestamp=". $ts ."&hash=". $hash;
    
    $remoteAuthUrl = 'http://' . $prefix . '.zendesk.com/access/remoteauth/';
    $arguments = array(
      'name' => $name,
      'email' => $email,
      'external_id' => $externalId,
      'organization' => $organization,
      'timestamp' => $ts,
      'hash' => $hash
    );
    $url = add_query_arg($arguments, $remoteAuthUrl);

    //Cart66Common::log('[' . basename(__FILE__) . ' - line ' . __LINE__ . "] Message: $message\nRemote Auth URL: $remoteAuthUrl");

    header("Location: " . $url);
    exit;
  } 
}