You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
431 B
PHP

<?php
$seemorepath="";
if (!isset($_GET['post'])) {
$length = sizeof(get_included_files());
$prefix = explode("/includes", dirname(__FILE__))[0];
$seemorepath = explode($prefix, get_included_files()[$length - 1])[1];
$patharr = explode('/', $seemorepath);
$patharr[sizeof($patharr) - 1] = $indexfile . '?post=' . $patharr[sizeof($patharr) - 1];
$finalpath = implode('/', $patharr);
$seemorepath = $finalpath;
}
?>