plugins/SpecialAdmin.php
changeset 391 85f91037cd4f
parent 387 92664d2efab8
child 407 35d94240a197
equal deleted inserted replaced
390:9bcc185dc151 391:85f91037cd4f
   944         $db->_die();
   944         $db->_die();
   945       setConfig('imagemagick_path', $_POST['imagemagick_path']);
   945       setConfig('imagemagick_path', $_POST['imagemagick_path']);
   946     }
   946     }
   947     else if ( $_POST['imagemagick_path'] != getConfig('imagemagick_path') )
   947     else if ( $_POST['imagemagick_path'] != getConfig('imagemagick_path') )
   948     {
   948     {
   949       echo '<span style="color: red"><b>Warning:</b> the file "'.htmlspecialchars($_POST['imagemagick_path']).'" was not found, and the ImageMagick file path was not updated.</span>';
   949       echo '<span style="color: red">' . $lang->get('acpup_err_magick_not_found', array('magick_path' => htmlspecialchars($_POST['imagemagick_path']))) . '</span>';
   950     }
   950     }
   951     $max_upload = floor((float)$_POST['max_file_size'] * (int)$_POST['fs_units']);
   951     $max_upload = floor((float)$_POST['max_file_size'] * (int)$_POST['fs_units']);
   952     if ( $max_upload > 1048576 && defined('ENANO_DEMO_MODE') )
   952     if ( $max_upload > 1048576 && defined('ENANO_DEMO_MODE') )
   953     {
   953     {
   954       echo '<div class="error-box">Wouldn\'t want the server DoS\'ed now. Stick to under a megabyte for the demo, please.</div>';
   954       echo '<div class="error-box">Wouldn\'t want the server DoS\'ed now. Stick to under a megabyte for the demo, please.</div>';