HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //usr/local/cwpsrv/var/services/roundcubemail-1.4.11/vendor/bin/crypt-gpg-pinentry
#! /usr/bin/env php
<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

// Check if we're running directly from git repo or if we're running
// from a PEAR or Composer packaged version.
$ds    = DIRECTORY_SEPARATOR;
$root  = __DIR__ . $ds . '..' ;
$paths = array(
    '@php-dir@', // PEAR or Composer
    $root, // Git (or Composer with wrong @php-dir@)
    $root . $ds . '..' . $ds . 'Console_CommandLine', // Composer
    $root . $ds . '..' . $ds . 'console_commandline', // Composer
    // and composer-installed PEAR_Exception for Console_CommandLine (#21074)
    $root . $ds . '..' . $ds . '..' . $ds . 'pear' . $ds . 'pear_exception',
);

foreach ($paths as $idx => $path) {
    if (!is_dir($path)) {
        unset($paths[$idx]);
    }
}

// We depend on Console_CommandLine, so we append also the default include path
set_include_path(implode(PATH_SEPARATOR, $paths) . PATH_SEPARATOR . get_include_path());

require_once 'Crypt/GPG/PinEntry.php';

$pinentry = new Crypt_GPG_PinEntry();
$pinentry->__invoke();

?>