removed version file path from location string
This commit is contained in:
31
cms-ver.php
31
cms-ver.php
@@ -191,8 +191,10 @@ foreach(glob("../{**/*,*}".$row[1], GLOB_BRACE) as $versionfile){
|
||||
echo "<br />";
|
||||
echo "<strong>".$row[0]." found:</strong><br />";
|
||||
echo implode("<br />", $matches[0]);
|
||||
echo "<br />";
|
||||
print_r ("location:".$versionfile);
|
||||
echo "<br />";
|
||||
$location = $versionfile;
|
||||
$trim = str_replace($row[1], '', $location);
|
||||
print_r ("location:".$trim);
|
||||
|
||||
|
||||
}
|
||||
@@ -209,7 +211,9 @@ foreach(glob("../".$row[1], GLOB_BRACE) as $versionfile) {
|
||||
echo "<strong>".$row[0]." found:</strong><br />";
|
||||
echo implode("<br />", $matches[0]);
|
||||
echo "<br />";
|
||||
print_r ("location:".$versionfile);
|
||||
$location = $versionfile;
|
||||
$trim = str_replace($row[1], '', $location);
|
||||
print_r ("location:".$trim);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,8 +244,9 @@ foreach(glob("../{**/*,*}".$raw[1], GLOB_BRACE) as $versionfiles){
|
||||
echo "<strong>".$raw[0]." found:</strong><br />";
|
||||
echo implode("<br />", $matches[0]);
|
||||
echo "<br />";
|
||||
print_r ("location:".$versionfiles);
|
||||
|
||||
$location = $versionfiles;
|
||||
$trim = str_replace($raw[1], '', $location);
|
||||
print_r ("location:".$trim);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -258,8 +263,9 @@ foreach(glob("../".$raw[1], GLOB_BRACE) as $versionfiles) {
|
||||
echo "<strong>".$raw[0]." found:</strong><br />";
|
||||
echo implode("<br />", $matches[0]);
|
||||
echo "<br />";
|
||||
print_r ("location:".$versionfiles);
|
||||
}
|
||||
$location = $versionfiles;
|
||||
$trim = str_replace($raw[1], '', $location);
|
||||
print_r ("location:".$trim); }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -289,8 +295,9 @@ foreach(glob("../{**/*,*}".$rxw[1], GLOB_BRACE) as $versionfilex){
|
||||
echo "<strong>".$rxw[0]." found:</strong><br />";
|
||||
echo implode("<br />", $matches[0]);
|
||||
echo "<br />";
|
||||
print_r ("location:".$versionfilex);
|
||||
|
||||
$location = $versionfilex;
|
||||
$trim = str_replace($rxw[1], '', $location);
|
||||
print_r ("location:".$trim);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -308,8 +315,10 @@ foreach(glob("../".$rxw[1], GLOB_BRACE) as $versionfilex) {
|
||||
echo "<strong>".$rxw[0]." found:</strong><br />";
|
||||
echo implode("<br />", $matches[0]);
|
||||
echo "<br />";
|
||||
print_r ("location:".$versionfilex);
|
||||
}
|
||||
$location = $versionfilex;
|
||||
$trim = str_replace($rxw[1], '', $location);
|
||||
print_r ("location:".$trim);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user