powerdns-admin/app/static/global/plugins/datatables/examples/resources/examples.php

11 lines
212 B
PHP
Raw Normal View History

2015-12-13 09:34:12 +00:00
<?php
if ( isset( $_POST['src'] ) && preg_match( '/scripts\/[a-zA-Z_\-_]+\.php/', $_POST['src'] ) !== 0 ) {
echo htmlspecialchars( file_get_contents( '../server_side/'.$_POST['src'] ) );
}
else {
echo '';
}