'.__('Welcome to Blogmail')."
";
print __('Select another language:');
print ' '.__('English').'';
print ' | '.__('Spanish').'';
print ' | '.__('Catalan').'';
print '
';
function check_writeable_dir( $dir, $ret )
{
if( is_writeable( $dir ) == false )
{
print basename($dir)." : ".__('FAILED')."
".__('Quick Fix: ')."chmod 777 $dir
";
return false;
}
else
{
print basename($dir)." : ".__('OK')."
";
if( $ret == true )
{
return true;
}
else
{
return false;
}
}
}
function do_htaccess( $oldfilename, $newfilename, $realpath, $base, $url )
{
$htaccess = '';
if( is_file( $oldfilename ) )
{
$fp = fopen( $oldfilename, "r" );
if( $fp )
{
while( !feof( $fp ) )
{
$htaccess .= fgets( $fp, 4096 );
}
fclose( $fp );
$htaccess = str_replace( '$REALPATH', $realpath, $htaccess );
$htaccess = str_replace( '$BASE',
str_replace('.', '\.', $base)
, $htaccess );
$htaccess = str_replace( '$HOST', $url, $htaccess );
$fp = fopen( $newfilename, "w" );
fwrite( $fp, $htaccess );
fclose( $fp );
}
}
}
$realpath = dirname(dirname(__FILE__));
print "
".__('Some directories need write rights')."
";
print __('Write')." chmod 777 ".__('or')." ".__('directory-name')."
chown ".__('to this directory to have the same owner as the server runs (usually nobody, apache, or www-data')."
";
print __("Refresh this web when the changes were finished")."