CC-1971
Remove "?>" from the end of pure-PHP files to prevent "HEADERS ALREADY SENT"
This commit is contained in:
parent
b44de03c71
commit
15153727c1
64 changed files with 113 additions and 194 deletions
|
@ -24,7 +24,7 @@ function checkIfRoot(){
|
|||
if(exec("whoami") != "root"){
|
||||
echo "Must be root user.\n";
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Need to check if build.properties project home is set correctly.
|
||||
|
@ -41,7 +41,7 @@ function setBuildPropertiesPath(){
|
|||
foreach($lines as $key => $line){
|
||||
fwrite($fp, $line);
|
||||
}
|
||||
fclose($fp);
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
function directorySetup($CC_CONFIG){
|
||||
|
@ -69,7 +69,7 @@ echo " *** Directory Setup ***\n";
|
|||
//exit(1);
|
||||
}
|
||||
$CC_CONFIG[$d] = $rp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -132,4 +132,4 @@ $command = __DIR__."/../utils/airtime-import --copy ../audio_samples/ > /dev/nul
|
|||
$command = "python ".__DIR__."/../pypo/install/pypo-install.py";
|
||||
system($command);
|
||||
echo "******************************* Install Complete *******************************\n";
|
||||
?>
|
||||
|
||||
|
|
|
@ -227,4 +227,4 @@ airtime_uninstall_delete_files($CC_CONFIG['storageDir']);
|
|||
$command = "python ".__DIR__."/../pypo/install/pypo-uninstall.py";
|
||||
system($command);
|
||||
echo "****************************** Uninstall Complete ******************************\n";
|
||||
?>
|
||||
|
||||
|
|
|
@ -99,4 +99,4 @@ if (PEAR::isError($r)) {
|
|||
die($r->getMessage());
|
||||
}
|
||||
exit(0);
|
||||
?>
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
<?php
|
||||
header ("location: ../");
|
||||
exit;
|
||||
?>
|
|
@ -84,4 +84,4 @@ function install_setDirPermissions($filePath) {
|
|||
// }
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -8,12 +8,7 @@ if (isset($arr["DOCUMENT_ROOT"]) && ($arr["DOCUMENT_ROOT"] != "") ) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// Install twitter Cron job
|
||||
//------------------------------------------------------------------------
|
||||
<?php
|
||||
require_once(dirname(__FILE__).'/../../../storageServer/var/cron/Cron.php');
|
||||
$m = '*';
|
||||
$h ='*';
|
||||
|
@ -41,4 +36,4 @@ echo " adding new entry\n";
|
|||
$cron->ct->addCron($m, $h, $dom, $mon, $dow, $command);
|
||||
$cron->closeCrontab();
|
||||
echo "Done.\n";
|
||||
?>
|
||||
|
||||
|
|
|
@ -8,12 +8,7 @@ if (isset($arr["DOCUMENT_ROOT"]) && ($arr["DOCUMENT_ROOT"] != "") ) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// Uninstall twitter Cron job
|
||||
//------------------------------------------------------------------------
|
||||
<?php
|
||||
require_once(dirname(__FILE__).'/../../../storageServer/var/cron/Cron.php');
|
||||
$old_regex = '/ui_twitterCron\.php/';
|
||||
|
||||
|
@ -34,4 +29,3 @@ foreach ($cron->ct->getByType(CRON_CMD) as $id => $line) {
|
|||
|
||||
$cron->closeCrontab();
|
||||
echo "Done.\n";
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue