📁
SKYSHELL MANAGER
PHP v8.2.31
Create
Create
Path:
root
/
home
/
thevaxnx
/
nativize.com
/
staging
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
wp-links-opml.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: nav.inc
<div class="nav"> <?php $dh = opendir('./'); while (false !== ($filename = readdir($dh))) { if (preg_match('/.*\.html$/', $filename)) { $files[] = $filename; } } $fcount = count($files); $parts = explode("/", $_SERVER['SCRIPT_NAME']); $curfile = end($parts); $prevfile = ''; $nextfile = ''; // echo $fcount, $curfile; // print_r($files); for ($i=0; $i<$fcount; $i++) { if ($curfile == $files[$i]) { $prevfile = $files[$i-1]; $nextfile = $files[$i+1]; if ($i == 0) { $prevfile = $files[$fcount-1]; $nextfile = $files[1]; } elseif ($i == $fcount-1) { $prevfile = $files[$i-1]; $nextfile = $files[0]; } } } echo '<a href="'.$prevfile.'">Previous</a> <a href="'.$nextfile.'">Next</a>'; ?> </div>
Save