Join the forums now, and start posting to receive access to our Scripts Vault!
<?php//// ---- A block of php code at the top of the page//$hello = "Hello World!";////?><html><!-- Then, your HTML section --><!-- If you need to refer to a variable set at the top, use the following syntax -->Welcome Message: <?php $hello ?></html>
package PRangers::CGI::Tactical;use strict;use warnings;sub register { my (undef, $hooks) = @_; $hooks->{actions}->{tactical} = \&tactical_display;}sub tactical_display { my $r = shift; return 'guest.tt' unless $r->session->user; $r->tpl_data->{char} = $r->session->char; $r->conf->pagetitle('Tactical Display'); return 'tactical.tt';}1;
<h3>Combat Log</h3><p><i>[% char.battle_name || 'No log available' %]</i></p><div id=combat_log>[% FOREACH round IN char.battle_log.keys.sort.reverse -%]<div class=combat_round><p class=combat_timestamp>[% round | time_only %]</p>[% FOREACH message IN char.battle_log.item(round) -%]<p>[% message | bbcode %]</p>[% END # FOREACH message -%]</div>[% END # FOREACH round -%]</div>