All pastes #900259 Raw Edit

Modified WP HashCash function

public php v1 · immutable
#900259 ·published 2008-02-11 19:58 UTC
rendered paste body
function wphc_addform(){	$options = wphc_option();		switch($options['moderation']){		case 'delete':			$verb = 'deleted!';			break;		case 'akismet':			$verb = 'checked by the Akismet service. If it doesn\'t appear right away, send a note to the blog owner.';			break;		case 'moderate':		default:			$verb = 'placed in moderation, and the blog owner will be asked to review it.';			break;	}		echo '<input type="hidden" id="wphc_value" name="wphc_value" value=""/>';#	echo '<p>' . __('Powered by', 'wp-hashcash') . ' <a href="http://wordpress-plugins.feifei.us/hashcash/">WP Hashcash</a></p>';	echo '<noscript><small>Wordpress Hashcash needs javascript to work, but your browser has javascript disabled. Your comment will be '.$verb.'</small></noscript>';}