All pastes #558264 Raw Edit

mm2000

public php v1 · immutable
·published 2007-06-11 09:30 UTC
rendered paste body
include('components/core/config/core.config.php');$max_list_rows = $core_config['display']['max_list_rows'];function plugin_event ($attributes=null) {		global $db, $ws, $output_webspace, $body, $max_list_rows;	echo $max_list_rows;	// PREPARE BLOCKS --------------------------------------------------------	if (!isset($attributes['block'])) {		$attributes['block'] = "events";	}	if ($attributes['block'] == "events") { // select multiple events			// paging...		$query = "			SELECT COUNT(*) AS total			FROM " . $db->prefix . "_plugin_event e, " . $db->prefix . "_webpage wp			WHERE e.webspace_id=" . $output_webspace['webspace_id'] . " AND			e.event_archived IS NULL "		;