PHPIndex

This page lists files in the current directory. You can view content, get download/execute commands for Wget, Curl, or PowerShell, or filter the list using wildcards (e.g., `*.sh`).

functions
js
editor.php
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/editor.php'
View Content
<?php

?>

<head>
	<script src="js/jquery-3.3.1.js"></script>
	<style>
	.tomato 
	{
		color: tomato;
	}
</style>
</head>

<?php

$file		=		'template_00001.php';

/*
echo		nl2br(file_get_contents($file));
*/


$orig = file_get_contents($file);
/*$a = htmlentities($orig);*/

/*
echo '<code>';
echo '<pre>';

echo $a;

echo '</pre>';
echo '</code>';
*/
/*
header("Content-Type: text/plain");
*/
echo '<textarea id="textarea" class="" style="width:100%;height:100%;">';
echo $orig;
echo '</textarea>';

?>

<script>
var $test = $('#textarea').html();
$test = $test.replace(/ar/gi, '<span class="tomato">ar</span>');
$('#textarea').html($test);
</script>
stylesheet.css
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/stylesheet.css'
View Content
p{
	font-size:1rem;
}
p{
	font-size:(V->p__fontsize);
	font-family:(V->p__fontfamily);
}
stylesheet2.css
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/stylesheet2.css'
View Content
.p__class2{
	font-size:(V->p__fontsize);
	font-family:(V->p__fontfamily);
	color:(S[varname]S);
}
template.html
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/template.html'
View Content
<content>
	<article>
		<button id="{V->php_button__id_var}" class="{V->php_button__class_var}">
			<p class="{S[varname]S}">an html file: <br>this p element uses a php session variable in it's class tag.</p>
		</button>
		<div>
			<p class="{V->php_p__class_var}">{V->php_text_var}</p>
		</div>
	</article>
</content>
template.json
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/template.json'
View Content
[
	{
		"{V->html_id}":
		[
			{
				"{V->html_class}":
				[
				
				]
			},
			{
				"div":
				[
					"{S[varname]S}"
				]
			},
			{
				"title":
				[
					
				]
			}
		]
	}
]
template.php
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/template.php'
View Content
<content>
	<article>
		<div id="{V->div_id}" class="{V->div_class}">
			<p class="{V->p_class}">the wind in the  willows</p>
		</div>
		<button id="{V->button_id}" class="{V->button_class}" onclick="{V->onclick}">
			<p class="{S[varname]S}">button for willows</p>
		</button>
	</article>
</content>
template_00001.html
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/template_00001.html'
View Content
<?php ?>

<content>
	<div id="{div_id}" class="{div_class}">
		<p class="{p_class}">the wind in the  willows</p>
	</div>
	<button id="{button_id}" class="{button_class}" onclick="{onclick}">
		<p class="{p_class}">button for willows</p>
	</button>
</content>
template_00001.php
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/template_00001.php'
View Content
<content>
	<article>
		<div id="{div_id}" class="{div_class}">
			<p class="{p_class}">the wind in the  willows</p>
		</div>
		<button id="{button_id}" class="{button_class}" onclick="{onclick}">
			<p class="{S[varname]S}">button for willows</p>
		</button>
	</article>
</content>
tmp.php
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/tmp.php'
View Content
[
	{
		"<?= $V->html_id; ?>":
		[
			{
				"<?= $V->html_class; ?>":
				[
				
				]
			},
			{
				"div":
				[
					"<?= $_SESSION['varname']; ?>"
				]
			},
			{
				"title":
				[
					
				]
			}
		]
	}
]
tmp_001.php
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/tmp_001.php'
View Content
<?php ?>

<content>
	<div id="<?= $div_id; ?>" class="<?= $div_class; ?>">
		<p class="<?= $p_class; ?>">the wind in the  willows</p>
	</div>
	<button id="<?= $button_id; ?>" class="<?= $button_class; ?>" onclick="<?= $onclick; ?>">
		<p class="<?= $p_class; ?>">button for willows</p>
	</button>
</content>
tmp_template_00001.html
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/tmp_template_00001.html'
View Content
<?php  ?><content>
	<div id="<?= $div_id; ?>" class="<?= $div_class; ?>">
		<p class="<?= $p_class; ?>">the wind in the  willows</p>
	</div>
	<button id="<?= $button_id; ?>" class="<?= $button_class; ?>" onclick="<?= $onclick; ?>">
		<p class="<?= $p_class; ?>">button for willows</p>
	</button>
</content>tmp_template_00001.html