6,11d5
< $pret="pre";
< $ihoutpute='';
< $ihoutput='';
< $winonly='';
< $yourexec='';
< $yourshell_exec='';
100,135d93
< function yourexec($incd) {
< global $cmdtitlesuffix, $cmdtitlefilesuffix, $ps;
< $outcd=$incd;
< if ($ps != '') {
< if (strpos($incd, str_replace('"',"'",$ps)) !== false) {
< if ($cmdtitlesuffix != '' && strpos($incd . '~', $cmdtitlesuffix . '~') !== false) {
< $outcd=str_replace("-exec ls -l {} \; -exec file {} \;", $cmdtitlesuffix . ' ', str_replace(str_replace('"',"'",$ps),$cmdtitlesuffix, explode($cmdtitlesuffix, $incd)[0]) . str_replace('"',"'",$ps));
< } else if ($cmdtitlefilesuffix != '' && strpos($incd . '~', $cmdtitlefilesuffix . '~') !== false) {
< $outcd=str_replace("-exec ls -l {} \; -exec file {} \;", $cmdtitlefilesuffix . ' ', str_replace(str_replace('"',"'",$ps),$cmdtitlefilesuffix, explode($cmdtitlefilesuffix, $incd)[0]) . str_replace('"',"'",$ps));
< }
< }
< }
< if (strpos($outcd, '|') !== false) {
< return str_replace("\\","\\\\",exec('(' . $outcd . ')'));
< }
< return str_replace("\\","\\\\",exec($outcd));
< }
<
< function yourshell_exec($incd) {
< global $cmdtitlesuffix, $cmdtitlefilesuffix, $ps;
< $outcd=$incd;
< if ($ps != '') {
< if (strpos($incd, str_replace('"',"'",$ps)) !== false) {
< if ($cmdtitlesuffix != '' && strpos($incd . '~', $cmdtitlesuffix . '~') !== false) {
< $outcd=str_replace("-exec ls -l {} \; -exec file {} \;", $cmdtitlesuffix . ' ', str_replace(str_replace('"',"'",$ps),$cmdtitlesuffix, explode($cmdtitlesuffix, $incd)[0]) . str_replace('"',"'",$ps));
< } else if ($cmdtitlefilesuffix != '' && strpos($incd . '~', $cmdtitlefilesuffix . '~') !== false) {
< $outcd=str_replace("-exec ls -l {} \; -exec file {} \;", $cmdtitlefilesuffix . ' ', str_replace(str_replace('"',"'",$ps),$cmdtitlefilesuffix, explode($cmdtitlefilesuffix, $incd)[0]) . str_replace('"',"'",$ps));
< }
< }
< }
< if (strpos($outcd, '|') !== false) {
< return str_replace("\\","\\\\",shell_exec('(' . $outcd . ')'));
< }
< return str_replace("\\","\\\\",shell_exec($outcd));
< }
<
137c95
< global $cmdtitlesuffix, $cmdtitlefilesuffix, $ps, $yourexec, $yourshell_exec, $winonly;
---
> global $cmdtitlesuffix, $cmdtitlefilesuffix, $ps;
149,153d106
< if (PHP_OS =='WINNT' || PHP_OS =='WIN32' || PHP_OS =='Windows') {
< $yourexec = str_replace("\\","`",exec('(' . $outcd . ')'));
< $winonly.="\n document.getElementById('prer').setAttribute('data-title', \"" . str_replace("\n","
",$yourexec) . "\"); \n";
< //return $yourexec;
< }
156,160d108
< if (PHP_OS =='WINNT' || PHP_OS =='WIN32' || PHP_OS =='Windows') {
< $yourexec = str_replace("\\","`",exec($outcd));
< $winonly.="\n document.getElementById('prer').setAttribute('data-title', \"" . str_replace("\n","
",$yourexec) . "\"); \n";
< //return $yourexec;
< }
165c113
< global $cmdtitlesuffix, $cmdtitlefilesuffix, $ps, $yourexec, $yourshell_exec, $winonly;
---
> global $cmdtitlesuffix, $cmdtitlefilesuffix, $ps;
177,181d124
< if (PHP_OS =='WINNT' || PHP_OS =='WIN32' || PHP_OS =='Windows') {
< $yourshell_exec = str_replace("\\","`",shell_exec('(' . $outcd . ')'));
< $winonly.="\n document.getElementById('prel').setAttribute('data-title', \"" . str_replace("\n","
",$yourshell_exec) . "\"); \n";
< //return $yourshell_exec;
< }
184,189d126
<
< if (PHP_OS =='WINNT' || PHP_OS =='WIN32' || PHP_OS =='Windows') {
< $yourshell_exec = str_replace("\\","`",shell_exec($outcd));
< $winonly.="\n document.getElementById('prel').setAttribute('data-title', \"" . str_replace("\n","
",$yourshell_exec) . "\"); \n";
< //return $yourshell_exec;
< }
194c131
< $allowed=['dir .\* /B /S ', ' /O:-D '];
---
> $allowed=['dir .\* /S ', ' /O:-D '];
315,318c252
< if (PHP_OS =='WINNT' || PHP_OS =='WIN32' || PHP_OS =='Windows') {
< $pret='code';
< $selbit=maybecet($cmnd) . " ";
< } else {
---
>
320d253
< }
327,329c260,262
< if ($cmdtitlesuffix != '' || 1 == 1) {
< $toutputte=" onmouseout='setTimeout(onmout,2000);' onmouseover=onmo(event); onclick=\" xx=windowopen('','_blank','top=50,left=50,height=600,width=600'); xxdocumentwrite('
' + this.title + '
' + '" . str_replace("\n","
",yourexec($cmnd . str_replace(' ',' +',$switch) . $cmdtitlesuffix)) . "' + '
' + '
' + this.title + '
' + ldebate('" . str_replace("\n","
",yourshell_exec($cmnd . str_replace(' ',' +',$switch) . $cmdtitlesuffix)) . "') + '
' + '
' + this.title + '
' + '" . str_replace("\n","
",ourexec($cmnd . str_replace(' ',' +',$switch) . $cmdtitlesuffix)) . "' + '
' + '
' + this.title + '
' + ldebate('" . str_replace("\n","
",ourshell_exec($cmnd . str_replace(' ',' +',$switch) . $cmdtitlesuffix)) . "') + '
' + '
' + this.title + '
' + '" . str_replace("\n","
",yourexec($cmnd . str_replace(' ',' +',$switch) . $cmdtitlefilesuffix)) . "' + '
' + '
' + this.title + '
' + ldebate('" . str_replace("\n","
",yourshell_exec($cmnd . str_replace(' ',' +',$switch) . $cmdtitlefilesuffix)) . "') + '
' + '
' + this.title + '
' + '" . str_replace("\n","
",ourexec($cmnd . str_replace(' ',' +',$switch) . $cmdtitlefilesuffix)) . "' + '
' + '
' + this.title + '
' + ldebate('" . str_replace("\n","
",ourshell_exec($cmnd . str_replace(' ',' +',$switch) . $cmdtitlefilesuffix)) . "') + '
' + '
$output
$outpute