mirror of
https://github.com/waytotheweb/scripts.git
synced 2026-03-29 19:47:06 +00:00
GPL v3 Release
This commit is contained in:
22
csf/cwp/ajax_csfframe.php
Normal file
22
csf/cwp/ajax_csfframe.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
$env = http_build_query($_POST);
|
||||
if ($env == "") {
|
||||
$env = http_build_query($_GET);
|
||||
}
|
||||
$env = $env."&CWPSESSID=".$_SERVER["REQUEST_URI"];
|
||||
|
||||
exec ("/usr/local/cwpsrv/htdocs/resources/admin/modules/csf.pl \"$env\"", $result, $return_var);
|
||||
|
||||
$header = 1;
|
||||
foreach ($result as $line) {
|
||||
if ($header) {
|
||||
header ("$line\n");
|
||||
} else {
|
||||
print "$line\n";
|
||||
}
|
||||
if ($header && $line == "") {
|
||||
$header = 0;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user