diff -r 1f97ee3ec614 -r bd9e124f5904 includes/functions.php --- a/includes/functions.php Sun Sep 05 16:05:06 2010 -0400 +++ b/includes/functions.php Sun Sep 05 16:05:33 2010 -0400 @@ -309,7 +309,7 @@ function have_blank_urlname_page() { - return getConfig('main_page', 'Main_Page') == '' || getConfig('main_page', getConfig('main_page', 'Main_Page')) == ''; + return getConfig('main_page', 'Main_Page') == '' || ( getConfig('main_page_alt_enable', 0) == 1 && getConfig('main_page_alt', getConfig('main_page', 'Main_Page')) == '' ); } /** @@ -1950,7 +1950,7 @@ { global $db, $session, $paths, $template, $plugins; // Common objects // Decide whether to quote the string or not - if(substr($type, 0, 7) == 'varchar' || $type == 'datetime' || $type == 'text' || $type == 'tinytext' || $type == 'smalltext' || $type == 'longtext' || substr($type, 0, 4) == 'char') + if(substr($type, 0, 7) == 'varchar' || $type == 'datetime' || $type == 'text' || $type == 'tinytext' || $type == 'smalltext' || $type == 'longtext' || substr($type, 0, 4) == 'char' || substr($type, 0, 4) == 'enum') { $str = "'" . $db->escape($input) . "'"; } @@ -4222,7 +4222,7 @@ throw new Exception('Invalid extension of input file.'); } - $magick_path = getConfig('imagemagick_path'); + $magick_path = getConfig('imagemagick_path', '/usr/bin/convert'); $can_use_magick = ( getConfig('enable_imagemagick') == '1' && file_exists($magick_path) && @@ -5408,3 +5408,39 @@ } } } + +/** + * Echo out the HTML and Javascript used to make a form with files in it upload via ajax. + * @param string The DOM ID of the form (