Uname:Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64

403WebShell
403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.152
Web Server : Apache
System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : monpetu ( 144298)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/monpetu/www/benneplus/wp-content/plugins/mailchimp-for-wp/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/monpetu/www/benneplus/wp-content/plugins/mailchimp-for-wp/bin/check-php-syntax
#!/usr/bin/env php
<?php

/**
 * Checks all PHP files in this project recursively
 * and passes them to PHP's built-in linter.
 *
 * If the output contains "deprecated", the final status code will be 1.
 */

$global_exit_code = 0;
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(".", RecursiveDirectoryIterator::SKIP_DOTS));

foreach ($iterator as $file) {
  if (
    strpos($file->getPathname(), './vendor/') === 0
    || strpos($file->getPathname(), './node_modules/') === 0
    || false == $file->isFile()
    || $file->getExtension() !== 'php'
  ) {
    continue;
  }

  $exit_code = 0;
  $output = [];
  exec("php --define error_reporting=-1 -l {$file->getPathname()}", $output, $exit_code);
  $output = join("\n", $output);
  echo $output . "\n";

  if ($exit_code || strpos($output, 'Deprecated') !== false) {
    $global_exit_code = 1;
  }
}

exit($global_exit_code);

Youez - 2016 - github.com/yon3zu
LinuXploit