'upload_form_thumb_square', 'value' => 'false' ) ) ); } // Update param on submit if (isset($_POST['submit'])) { $conf['upload_form_thumb_square'] = isset($_POST['square']); mass_updates( CONFIG_TABLE, array( 'primary' => array('param'), 'update' => array('value') ), array( array( 'param' => 'upload_form_thumb_square', 'value' => $conf['upload_form_thumb_square'] ? 'true':'false' ) ) ); } // Template init $template->assign('SQUARE', @$conf['upload_form_thumb_square']); // Add prefilter $template->set_prefilter('photos_add', 'add_square_option'); function add_square_option($content, $smarty) { $search = '