Get rid of a redundant directory level.
This commit is contained in:
14
projects/dsktp/ci.php
Normal file
14
projects/dsktp/ci.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
header("Content-type: text/javascript");
|
||||
$f=fopen("script.js","r");
|
||||
$c=fread($f,filesize("script.js"));
|
||||
fclose($f);
|
||||
$ci=explode("\n",$c);
|
||||
for ($i=0;$i<sizeof($ci);$i++) {
|
||||
$tl=$ci[$i];
|
||||
$tle=substr($tl,strlen($tl)-2,1);
|
||||
if ($tle=="{" || strlen($tl)==1) $end="";
|
||||
else $end=";";
|
||||
echo substr($tl,0,strlen($tl)-1).$end."\n";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user