From cda52b7a666e1f47d976b6f3c279be4a6b7a74c8 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Fri, 27 May 2022 06:42:36 -0500 Subject: [PATCH] Use PHP_SELF, return source on ?source --- nextrip.php | 73 ++++++++++++++++++++++++++++------------------------- 1 file changed, 38 insertions(+), 35 deletions(-) diff --git a/nextrip.php b/nextrip.php index a90d13d..00ef049 100644 --- a/nextrip.php +++ b/nextrip.php @@ -1,30 +1,36 @@ - -*/ ?> - + + */ + + // Return source code + if(isset($_GET['source'])) { + header("Content-Type: text/plain"); + die(file_get_contents(basename($_SERVER['PHP_SELF']))); + } +?> @@ -46,9 +52,6 @@