PluginProbe
Linguise – AI Automatic Multilingual Translation / 2.2.59
Linguise – AI Automatic Multilingual Translation v2.2.59
2.2.63 2.2.62 2.2.61 2.2.60 2.2.59 2.2.58 2.2.57 2.2.56 2.2.55 2.2.54 2.2.53 2.2.52 2.2.51 2.2.50 2.2.49 2.2.47 2.2.48 2.2.46 2.2.45 2.2.44 2.2.43 2.2.42 1.9.7 1.9.8 1.9.9 All 254 releases
linguise / script.php

script.php in Linguise – AI Automatic Multilingual Translation 2.2.59, at script.php

31 lines 990 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use Linguise\Vendor\Linguise\Script\Core\Processor;
4
5 if (!defined('LINGUISE_SCRIPT_TRANSLATION')) {
6 define('LINGUISE_SCRIPT_TRANSLATION', true);
7 }
8
9 ini_set('display_errors', false);
10
11 require_once(__DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php');
12
13 linguiseInitializeConfiguration();
14
15 $processor = new Processor();
16 // phpcs:disable WordPress.Security.NonceVerification.Recommended -- View request, no action
17 if (isset($_GET['linguise_language']) && $_GET['linguise_language'] === 'zz-zz' && isset($_GET['linguise_action'])) {
18 switch ($_GET['linguise_action']) {
19 case 'clear-cache':
20 $processor->clearCache();
21 break;
22 case 'update-certificates':
23 $processor->updateCertificates();
24 break;
25 }
26 } elseif ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_GET['linguise_language']) && $_GET['linguise_language'] === 'zz-zz') {
27 $processor->editor();
28 } else {
29 $processor->run();
30 }
31