!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/doc/HTML_Javascript/examples/   drwxr-xr-x
Free 13.53 GB of 61.93 GB (21.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     javascript.php (2.76 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<title>HTML_Javascript::Javascript Sample 1</title>
</head>
<body>
<h1>HTML_Javascript</h1>
<?php
/**
 * HTML_Javascript::Javascript Sample usage
 *
 * Show how to use the base of HTML_Javascript
 *
 * @author Pierre-Alain Joye <paj@pearfr.org>
 * @package HTML_Javascript
 * @filesource
 */

/** requires the main class */
require_once 'HTML/Javascript.php';

$htmljs = new HTML_Javascript();

// Starts the JS script
echo $htmljs->startScript();

echo 
$htmljs->writeLine('<h2>document.write</h2>');

// document.write methods

/*
 * Simple usage of write and writeLine
 * See the confirm, prompt examples to see these methods
 * usage with JS variables.
 */
echo $htmljs->writeLine('writeln: Test JS Line 1'false);
echo 
$htmljs->write('write: Test JS Line 2'false);
echo 
$htmljs->write('write: Test JS still Line 2'false);


echo 
$htmljs->writeLine('<h2>Interaction with the users, prompt, alert and confirm</h2>');

echo 
$htmljs->alert('I will ask you three questions and write back the answers.');

// alert, confirm and prompt methods
/*
 * Yes/No Dialog box, be carefull, the 1st arg is the target JS variable.
 * We will certainly use the same argument order in futurs major releases
 * of HTML_Javascript ($str, as a 1st argument).
 * The result (boolean) is stored in a JS variable given as a 2nd arg, here likehtmljs
 */
echo $htmljs->confirm('Do you like HTML_Javascript?','likehtmljs');
echo 
$htmljs->write('Do you like HTML_Javascript? Your answer:');
echo 
$htmljs->writeLine('likehtmljs',true);

/*
 * Ask a value, works exactly as confirm. The 1st argument is the string to write
 * in the dialog box, the 2nd is the name of the JS variable to store the return value
 */
echo $htmljs->prompt('What is your favourite langage?','favouritelangage');
echo 
$htmljs->write('What is your favourite langage? Your answer:');
echo 
$htmljs->writeLine('favouritelangage',true);

/**
 * So you like popups?
 */

echo $htmljs->popup('popup_page1','page1.html''HTML_Javascript_page1'400,300false);
$popupContent '<html>
<head>
<title>HTML_Javascript popupWrite Usage</title>
</head>
<body>
<h1>HTML_Javascript::popupWrite</h1>
This is a popup with dynamic content<br>
</body>
</html>
'
;

echo 
$htmljs->popupWrite('popup_page2',$popupContent'HTML_Javascript_page2'300,300false);

$popupContent '<html>
<head>
<title>HTML_Javascript popupWrite Usage</title>
</head>
<body>
<h1>HTML_Javascript::popupWrite</h1>
This is a popup with dynamic content.<br>
It uses the different options.
</body>
</html>
'
;
/**
 *  resizable, scrollbars, menubar, toolbar, status, location
 */
$attrs = array(falsefalsetruefalsetruetrue);

echo 
$htmljs->popupWrite('popup_page3',$popupContent'HTML_Javascript_page3'300,300false);

// Ends the script
echo $htmljs->endScript();
?>
</body>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4713 ]--