Skip to content

Commit

Permalink
Modifed the text displayed for the mime and file extension checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Horne committed Oct 5, 2017
1 parent 9c7a44e commit bacfa09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions languages/en-GB/website_code/php/management/site.inc
Expand Up @@ -58,13 +58,13 @@

define("MANAGEMENT_SITE_SESSION_NAME", "The PHP session name is ");

define("MANAGEMENT_SITE_ENABLE_MIME", "Whether the MIME file type check should be applied to file uploads ");
define("MANAGEMENT_SITE_ENABLE_MIME", "Whether the file MIME type check should be enabled for imported files ");

define("MANAGEMENT_SITE_MIME", "The allowed uploaded MIME types for the Media and quota page are ");
define("MANAGEMENT_SITE_MIME", "The allowed MIME types for imported files are ");

define("MANAGEMENT_SITE_ENABLE_FILE_EXT", "Whether the file extension check should be applied to file uploads ");
define("MANAGEMENT_SITE_ENABLE_FILE_EXT", "Whether the file extension check should be enabled for imported files ");

define("MANAGEMENT_SITE_FILE_EXTENSIONS", "The disallowed uploaded file extensions for the Media and quota page are ");
define("MANAGEMENT_SITE_FILE_EXTENSIONS", "The blacklisted file extensions for imported files are ");

define("MANAGEMENT_SITE_INTEGRATION", "The integration config path is ");

Expand Down
12 changes: 6 additions & 6 deletions setup/page3.php
Expand Up @@ -69,23 +69,23 @@
echo "<p>The admin password is <textarea name=\"admin_password\">" . htmlspecialchars($_POST['password']) . "</textarea></p>";

if (function_exists('mime_content_type')) {
echo "<p>Whether the MIME file type check should be applied to file uploads<textarea name=\"enable_mime_check\">false</textarea></p>";
echo "<p>Whether the file MIME type check should be enabled for imported files <textarea name=\"enable_mime_check\">false</textarea></p>";
}
else {
echo "<p>Whether the MIME file type check should be applied to file uploads<textarea name=\"enable_mime_check\" disabled=\"true\">False. The MIME check requires the PHP 'mime_content_type' function.</textarea></p>";
echo "<p>Whether the file MIME type check should be enabled for imported files <textarea name=\"enable_mime_check\" disabled=\"true\">False. The MIME check requires the PHP 'mime_content_type' function.</textarea></p>";
}

echo "<p>The allowed upload MIME types for the Media and quota page are <textarea name=\"mimetypes\">text/xml,text/rtf,application/msword,application/x-shockwave-flash,image/bmp,image/jpg,image/jpeg,image/pjpeg,image/png,image/gif,image/svg+xml,image/x-png,audio/mp3,audio/mpeg,application/vnd.ms-excel,application/pdf,application/svg,application/vnd.ms-powerpoint,video/x-ms-wmv,text/html,video/mp4,video/mpeg,video/avi,audio/wav,text/plain,video/quicktime,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/ogg</textarea>
echo "<p>The allowed MIME types for imported files are <textarea name=\"mimetypes\">text/xml,text/rtf,application/msword,application/x-shockwave-flash,image/bmp,image/jpg,image/jpeg,image/pjpeg,image/png,image/gif,image/svg+xml,image/x-png,audio/mp3,audio/mpeg,application/vnd.ms-excel,application/pdf,application/svg,application/vnd.ms-powerpoint,video/x-ms-wmv,text/html,video/mp4,video/mpeg,video/avi,audio/wav,text/plain,video/quicktime,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/ogg</textarea>
</p>";

if (function_exists('pathinfo')) {
echo "<p>Whether the file extension check should be applied to file uploads<textarea name=\"enable_file_ext_check\">false</textarea></p>";
echo "<p>Whether the file extension check should be enabled for imported files <textarea name=\"enable_file_ext_check\">false</textarea></p>";
}
else {
echo "<p>Whether the file extension check should be applied to file uploads<textarea name=\"enable_file_ext_check\" disabled=\"true\">False. The file extension check requires the PHP 'pathinfo' function.</textarea></p>";
echo "<p>Whether the file extension check should be enabled for imported files <textarea name=\"enable_file_ext_check\" disabled=\"true\">False. The file extension check requires the PHP 'pathinfo' function.</textarea></p>";
}

echo "<p>The disallowed upload file extensions for the Media and quota page are <textarea name=\"file_extensions\">php,php5,pl,cgi,exe,vbs,pif,application,gadget,msi,msp,com,scr,hta,htaccess,ini,cpl,msc,jar,bat,cmd,vb,vbe,jsp,jse,ws,wsf,wsc,wsh,ps1,ps1xml,ps2,ps2xml,psc1,psc2,msh,msh1,msh2,mshxml,msh1xml,msh2xml,scf,lnk,inf,reg,docm,dotm,xlsm,xltm,xlam,pptm,potm,ppam,ppsm,sldm</textarea>
echo "<p>The blacklisted file extensions for imported files are <textarea name=\"file_extensions\">php,php5,pl,cgi,exe,vbs,pif,application,gadget,msi,msp,com,scr,hta,htaccess,ini,cpl,msc,jar,bat,cmd,vb,vbe,jsp,jse,ws,wsf,wsc,wsh,ps1,ps1xml,ps2,ps2xml,psc1,psc2,msh,msh1,msh2,mshxml,msh1xml,msh2xml,scf,lnk,inf,reg,docm,dotm,xlsm,xltm,xlam,pptm,potm,ppam,ppsm,sldm</textarea>
</p>";

echo "<br><br><h3 style=\"clear:left\">RSS Feed and Syndication settings - formatting for the RSS feeds and for the syndication</h3>";
Expand Down

0 comments on commit bacfa09

Please sign in to comment.