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`).

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

function	ev($var)
{
	echo $var;
	echo '<br>';	
}
ev.php
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/functions/ev.php'
View Content
<?php

function	ev($var)
{
	echo $var;
	echo '<br>';	
}
evp.php
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/functions/evp.php'
View Content
<?php

function	evp($var)
{
	echo '<pre style="text-align:left; class="p__class2">';
	echo $var;
	echo '</pre>';
	echo '<br>';	
}
php_templator.php
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/functions/php_templator.php'
View Content
<?php

function php_templator($file_type, $file_contents, $V)
{
	if($file_type				===		'css')
	{
		$string					=			str_replace('(', '<?= $', $file_contents);
		$string					=			str_replace(')', '; ?>', $string);
		$string					=			str_replace('S[', '_SESSION[\'', $string);
		$string					=			str_replace(']S', '\']', $string);
	}
	elseif($file_type	===		'json')
	{
		$string					=			str_replace('"{', '"<?= $', $file_contents);
		$string					=			str_replace('}"', '; ?>"', $string);
		$string					=			str_replace('S[', '_SESSION[\'', $string);
		$string					=			str_replace(']S', '\']', $string);
	}
	else
	{
		$string					=			str_replace('{', '<?= $', $file_contents);
		$string					=			str_replace('}', '; ?>', $string);		
		$string					=			str_replace('S[', '_SESSION[\'', $string);
		$string					=			str_replace(']S', '\']', $string);
	}

	file_put_contents('tmp.php', $string);

	ob_start();
	
	include('tmp.php');
	
	$string						=			ob_get_clean();

	if($file_type				===		'css')
	{
		$string					=			'<style>'.$string.'</style>';
	}
	
	return $string;
}

	
/*
$string				=			str_replace('<ar', '<article', $string);
$string				=			str_replace('<b', '<button', $string);
$string				=			str_replace('<c', '<content', $string);
$string				=			str_replace('<d', '<div', $string);
$string				=			str_replace('</ar', '</article', $string);
$string				=			str_replace('</b', '</button', $string);
$string				=			str_replace('</c', '</content', $string);
$string				=			str_replace('</d', '</div', $string);
*/

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

function templater_json($file)
{
	/*
	$file				=			str_replace('<ar', '<article', $file);
	$file				=			str_replace('<b', '<button', $file);
	$file				=			str_replace('<c', '<content', $file);
	$file				=			str_replace('<d', '<div', $file);
	$file				=			str_replace('</ar', '</article', $file);
	$file				=			str_replace('</b', '</button', $file);
	$file				=			str_replace('</c', '</content', $file);
	$file				=			str_replace('</d', '</div', $file);
	*/
	
	$file				=			str_replace('S[', '_SESSION[\'', $file);
	$file				=			str_replace(']S', '\']', $file);
	
	file_put_contents('tmp.php', $file);

	ob_start();
	include('tmp.php');
	$html	=	ob_get_clean();

	return $html;
}
templater_json.php
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/functions/templater_json.php'
View Content
<?php

function templater_json($file, $r)
{
	/*
	$file				=			str_replace('<ar', '<article', $file);
	$file				=			str_replace('<b', '<button', $file);
	$file				=			str_replace('<c', '<content', $file);
	$file				=			str_replace('<d', '<div', $file);
	$file				=			str_replace('</ar', '</article', $file);
	$file				=			str_replace('</b', '</button', $file);
	$file				=			str_replace('</c', '</content', $file);
	$file				=			str_replace('</d', '</div', $file);
	*/
	$file				=			str_replace('"{', '"<?= $', $file);
	$file				=			str_replace('}"', '; ?>"', $file);
	$file				=			str_replace('S[', '_SESSION[\'', $file);
	$file				=			str_replace(']S', '\']', $file);
	
	file_put_contents('tmp.php', $file);

	ob_start();
	include('tmp.php');
	$html	=	ob_get_clean();

	return $html;
}
templater_php.php
wget 'https://lists2.roe3.org/mdrone/php_templating_engine/functions/templater_php.php'
View Content
<?php

function templater_php($file, $r)
{
	/*
	$file				=			str_replace('<ar', '<article', $file);
	$file				=			str_replace('<b', '<button', $file);
	$file				=			str_replace('<c', '<content', $file);
	$file				=			str_replace('<d', '<div', $file);
	$file				=			str_replace('</ar', '</article', $file);
	$file				=			str_replace('</b', '</button', $file);
	$file				=			str_replace('</c', '</content', $file);
	$file				=			str_replace('</d', '</div', $file);
	*/
	$file				=			str_replace('{', '<?= $', $file);
	$file				=			str_replace('}', '; ?>', $file);
	$file				=			str_replace('S[', '_SESSION[\'', $file);
	$file				=			str_replace(']S', '\']', $file);

	file_put_contents('tmp.php', $file);

	ob_start();
	include('tmp.php');
	$html	=	ob_get_clean();

	return $html;
}