function iriStatPress() { if ($_GET['statpress_action'] == 'export') { iriStatPressExport(); } elseif ($_GET['statpress_action'] == 'up') { iriStatPressUpdate(); } elseif ($_GET['statpress_action'] == 'spy') { iriStatPressSpy(); } elseif ($_GET['statpress_action'] == 'search') { iriStatPressSearch(); } elseif ($_GET['statpress_action'] == 'details') { iriStatPressDetails(); } elseif ($_GET['statpress_action'] == 'options') { iriStatPressOptions(); } elseif (1) { iriStatPressMain(); } }
function heart5_dashboard_4_spc() { $options = get_option('widget_statpress'); $title = $options['title']; $body = $options['body']; $body = preg_replace("@%thistotalvisits%@", "<font color=gray>" . __("as many as you can", "statpresscn") . "(^_^)</font>", $body); print "<h3>" . $title . "</h3>"; echo iri_StatPress_Vars($body); if (get_option('statpress_showspyonwidget') != "") { echo iriStatPressSpy(8); } }