Permalink
Browse files

Added redistributable PHP headers («<?php» instead of «<?»), deleted …

…error-prone PHP footers («?>», after which any accidental newlines are treated as literal output).
  • Loading branch information...
1 parent 59dc1de commit 8d55f4dffda61d725e0588bca2cb525164dc9503 @Mithgol committed Sep 29, 2011
View
@@ -135,7 +135,7 @@ if [ -n "$EXECUTABLE" ]; then
rm $EXECUTABLE
fi
echo 'Installing phfito.php into '$SHARE
- echo '<?
+ echo '<?php
$file = file("'$FROM'/phfito.php");
$src_path = "'$SHARE'";
$config_file = "'$CONFIGS'";
@@ -180,4 +180,3 @@ if [ -n "$CONFINST" ]; then
echo 'Now you must edit your configuration in '$CONFIGS' directory'
fi
exit 0
-
View
@@ -73,7 +73,7 @@ FROM=$PHFITO
SHARE=/usr/share/phfito
CONFIGS=/etc/phfito
PHP=/usr/bin/php
- echo '<?
+ echo '<?php
$file = file("'$FROM'/phfito.php");
$src_path = "'$SHARE'";
$config_file = "'$CONFIGS'";
View
@@ -49,8 +49,8 @@ Ok. Phpbb
# find incs --exec chmod 0644 {} \;
Создаем "ярлыки" для запуска тоссера:
-# echo '<? require "incs/E_phfito.php"; ?>' > toss.php
-# echo '<? require "incs/E_scanareas.php"; ?>' > scan.php
+# echo '<?php require "incs/E_phfito.php"; ?>' > toss.php
+# echo '<?php require "incs/E_scanareas.php"; ?>' > scan.php
Теперь самое интересное - конфиг. :-)
# mkdir cfg
View
@@ -1,5 +1,5 @@
#!/usr/bin/php
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -658,6 +658,4 @@ function colour_str($num)
}
}
return "";
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -760,6 +760,4 @@ function todec($value)
$result+=($v<<(($len-$i-1)*4));
}
return $result;
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -59,6 +59,4 @@ function Send_mail()
endforeach;
endif;
endforeach;
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -566,6 +566,4 @@ function SendPushMsg($forlink,$area,$foruser)
$Omessage->MsgText = $Text;
PackMessageTo($Omessage,$forlink);
}
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -290,6 +290,4 @@ function CreateBase($path)
return 0;
endif;
}
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -532,6 +532,4 @@ function Update($file)
$this->basemsgnum
));
}
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -402,6 +402,4 @@ function CreateBase($path)
{
return 1;
}
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -229,6 +229,4 @@ function WriteMessage($header,$message)
'\''.mysql_real_escape_string($header->Attrs).'\''. // ATTRIB
');',$this->id);
}
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -171,6 +171,4 @@ function _int_sort($a,$b)
if ($a<$b) return -1;
if ($a>$b) return 1;
return 0;
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -657,6 +657,4 @@ function _phpbb_to_fidomessage($bbcode,$lvl,$text_init = '')
endwhile;
return $result;
}
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -683,6 +683,4 @@ function ReadMsgBody($msg,$ext)
endif;
return $result;
}
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -366,6 +366,4 @@ function FormLine($act, $echo, $links, $fromrq, $ctime = false)
function Rec_cmp($a,$b)
{
return strcasecmp($a[1],$b[1]);
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -13,6 +13,4 @@
class C_sqltbase
{
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -548,5 +548,4 @@ function SquishHash($f)
}
return ($hash & 0x7fffffff);
-}
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -141,6 +141,4 @@ function Done()
$this->write_atossed($file);
}
}
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -630,6 +630,4 @@ function _format_reply($str)
$result = trim($result);
return $result;
}
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -343,6 +343,4 @@ function _int_sort($a,$b)
if ($a<$b) return -1;
if ($a>$b) return 1;
return 0;
-}
-
-?>
+}
View
@@ -1,5 +1,5 @@
#!/usr/bin/php
-<?
+<?php
// This file is deprecated!!!!!
// Should be removed in future release
//
@@ -237,6 +237,4 @@ function PlainAreasStat($file,$period,$topnum)
}
} else {
print "Usage: L_genstat.php 0|1|2|3|4|5\n";
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -217,6 +217,4 @@ function ExtractBundles($inbound,$temp)
}
endwhile;
return $resdirs;
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -300,6 +300,4 @@ function Unclose()
} while (ord($c)==0);
fseek($this->file,$p+2,2);
}
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -281,6 +281,4 @@ function pc_mkdir_parents($d,$umask = 0777) {
}
}
return true;
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -331,6 +331,4 @@ function RescanArea($link,$area,$msgs,$addresd = true)
return -1;
endif;
return $numscn;
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -132,6 +132,4 @@ function ConvertBases($spath,$stype,$dpath,$dtype)
} else {
tolog('E',"Error during opening source");
}
-}
-
-?>
+}
View
@@ -1,4 +1,4 @@
-<?
+<?php
/*\
/ This is a part of PhFiTo (aka PHP Fido Tosser)
// Copyright (c) Alex Kocharin, 2:50/13
@@ -556,6 +556,4 @@ function ScanEchoMessage($area,$msg,$Area = false,$header = false,$ext = false)
$Area->Close();
endif;
return $res;
-}
-
-?>
+}
Oops, something went wrong.

0 comments on commit 8d55f4d

Please sign in to comment.