";
echo "";
echo "";
echo "";
echo " | ";
echo " | German | ";
echo " | English | ";
echo " | ";
//--------------------------------------------------------------------------------------------------
$file_config="settings/config.php";
$file_newsscript="newsscript.php";
###############################
$file_bin=substr(decbin(fileperms($file_config)), -9);
$file_arr=explode(".", substr(chunk_split($file_bin, 1, "."), 0, 17));
$perms_config="";
$i=0;
foreach ($file_arr as $this)
{
$file_char=($i%3==0 ? "r" : ($i%3==1 ? "w" : "x" ));
$perms_config.=($this=="1" ? $file_char : "-") . ($i%3==2 ? " " : "");
$i++;
}
unset($file_bin);unset($file_arr);unset($file_char);
//-------------------------------------------------
$file_bin=substr(decbin(fileperms($file_newsscript)), -9);
$file_arr=explode(".", substr(chunk_split($file_bin, 1, "."), 0, 17));
$perms_newsscript="";
$i=0;
foreach ($file_arr as $this)
{
$file_char=($i%3==0 ? "r" : ($i%3==1 ? "w" : "x" ));
$perms_newsscript.=($this=="1" ? $file_char : "-") . ($i%3==2 ? " " : "");
$i++;
}
#######################################################################################
if(substr($perms_config,1,1)!="w" || substr($perms_config,5,1)!="w" || substr($perms_config,9,1)!="w")
{
echo " | CHMOD for the file ".$file_config." must be set on \"777\" | ";
$error_chmod="ok";
}
else
{
echo " | CHMOD for the file ".$file_config." is correct! | ";
}
//-------------------------------------------------
if(substr($perms_newsscript,1,1)!="w" || substr($perms_newsscript,5,1)!="w" || substr($perms_newsscript,9,1)!="w")
{
echo " | CHMOD for the file ".$file_newsscript." must be set on \"777\" | ";
$error_chmod="ok";
}
else
{
echo " | CHMOD for the file ".$file_newsscript." is correct! | ";
}
//--------------------------------------------------------------------------------------------------
echo " ";
echo " | ";
echo " |