HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-172-31-4-197 6.8.0-1036-aws #38~22.04.1-Ubuntu SMP Fri Aug 22 15:44:33 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wordpress/wp-content/plugins/trinity-audio/admin/inc/info.php
<?php
  require_once __DIR__ . '/../../initial_checking.php';

  // save content into variable.
  ob_start();
  require_once __DIR__ . '/info-content.php';
  $contents = ob_get_clean();

  // show content.
  echo wp_kses_post($contents);

  // write that content into file.
  trinity_log_to_file($contents, TRINITY_AUDIO_INFO_HTML, 'w');

  function trinity_info_show_credits() {
    $error_msg = trinity_can_not_connect_error_message('Can\'t get available credits.');
    $result    = trinity_curl_get(TRINITY_AUDIO_CREDITS_URL . '?installkey=' . trinity_get_install_key(), $error_msg, false);
    if (!$result) {
      echo esc_html($error_msg);
      return;
    }

    $credits_data = json_decode($result);
    $cap_type = $credits_data->capType;

    if ($cap_type === 'chars') {
      echo "<p>" . esc_html($credits_data->credits) . "</p>
            <p class='description'>Shows the amount of credits available to generate audio for new posts</p>";
    } else if ($cap_type === 'articles') {
      echo "<p>Used " . esc_html($credits_data->used) . " of " . esc_html($credits_data->packageLimit) . "</p>
            <p class='description'>Amount of articles used to audify</p>";
    } else if ($cap_type === 'no_limit') {
      echo "<p>Unlimited</p>
            <p class='description'>Amount of articles used to audify</p>";
    } else {
      echo "<p>N/A</p>
          <p class='description'>Amount of articles used to audify</p>";
    }
  }

  function trinity_info_tech_show_config() {
    $config = trinity_init_checks_get_ini();

    $wp_version  = trinity_get_wp_version();
    $php_version = phpversion();

    echo "<table class='trinity-inner'>
            <thead>
              <tr>
                <td><span class='trinity-bold-text'>Parameter name</span></td>
                <td><span class='trinity-bold-text'>Minimum required value</span></td>
                <td><span class='trinity-bold-text'>Actual value</span></td>
              </tr>
            </thead>
            <body>
            <tr>
              <td>WordPress</td>
              <td>5.2</td>
              <td>" . esc_html($wp_version) . '</td>
            </tr>
            <tr>
              <td>PHP</td>
              <td>7.2</td>
              <td>' . esc_html($php_version) . '</td>
            </tr>
            <tr></tr>';

    foreach ($config as $key => $value) {
      $expected = $value['min_required'];
      $actual   = $value['actual'];

      echo '<tr>
              <td>' . esc_html($key) . '</td>
              <td>' . esc_html($expected) . '</td>
              <td>' . esc_html($actual) . '</td>
            </tr>';
    }

    echo '</body></table>';
  }