-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelnext.php
More file actions
34 lines (34 loc) · 1.03 KB
/
delnext.php
File metadata and controls
34 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
include './path.php';
if (empty($_POST['path'])) {
$loca = "Location: ./index.php?pesan=1";
}
else{
$loca = "Location: ./index.php?pesan=3";
$code = $_POST['path'];
$searchnamess = "<encrypt>$code</encrypt>";
$total_epsedit = "";
$lineztotaltotal = file("$pathnya");
$linetotaltotal = preg_replace('/^[\r]*[\n\t]+/m', '', $lineztotaltotal);
$searchtotaltotal = $searchnamess;
$resulttotaltotal = $total_epsedit;
foreach($linetotaltotal as $uniqtotal) {
if(stripos($uniqtotal, $searchtotaltotal) === false) {
$resulttotaltotal .= $uniqtotal;
}
}
file_put_contents("$pathnya", $resulttotaltotal);
$total_epsedit1 = "";
$lineztotaltotal1 = file("$pathconfig");
$linetotaltotal1 = preg_replace('/^[\r]*[\n\t]+/m', '', $lineztotaltotal1);
$searchtotaltotal1 = $code;
$resulttotaltotal1 = $total_epsedit1;
foreach($linetotaltotal1 as $uniqtotal1) {
if(stripos($uniqtotal1, $searchtotaltotal1) === false) {
$resulttotaltotal1 .= $uniqtotal1;
}
}
file_put_contents("$pathconfig", $resulttotaltotal1);
}
header($loca);
?>