Jump to content

Recommended Posts

Posted
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
<div id="mainbox">
<?php

// Show the News module, call the function ShowNewsFront
// This is in the modules/Frontpage folder

MainController::Run('News', 'ShowNewsFront', 5);

	// Show the activity feed
	MainController::Run('Activity', 'Frontpage', 20);

?>
</div>
<div id="sidebar">
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
<div id="mainbox">
<?php

// Show the News module, call the function ShowNewsFront
// This is in the modules/Frontpage folder

MainController::Run('News', 'ShowNewsFront', 5);


   // Show the activity feed


?>
</div>
<div id="sidebar">
<h3>Vôos Recentes</h3>

<?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>

<h3>Novos Pilotos</h3>

<?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?>

<h3>Usuários onlines</h3>
<p><i>Houve <?php echo count($usersonline)?> usuário(s), e <?php echo count($guestsonline);?> visitante(s) online(s) nos últimos <?php echo Config::Get('USERS_ONLINE_TIME')?> minutos.</i></p>

<?php
/* $usersonline also has the list of users -
really simple example

Or if you're not on the frontpage:
$usersonline = StatsData::UsersOnline();


foreach($usersonline as $pilot)
{
echo "{$pilot->firstname} {$pilot->lastname}<br />";
}
*/
?>

</div>

  • Moderators
Posted

As you can see, a part of code is twice in the file. Check below:

<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
<div id="mainbox">
<?php
// Show the News module, call the function ShowNewsFront
// This is in the modules/Frontpage folder
MainController::Run('News', 'ShowNewsFront', 5);
		    // Show the activity feed
		    MainController::Run('Activity', 'Frontpage', 20);
?>
</div>
<div id="sidebar">
<h3>Vôos Recentes</h3>
<?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>
<h3>Novos Pilotos</h3>
<?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?>
<h3>Usuários onlines</h3>
<p><i>Houve <?php echo count($usersonline)?> usuário(s), e <?php echo count($guestsonline);?> visitante(s) online(s) nos últimos <?php echo Config::Get('USERS_ONLINE_TIME')?> minutos.</i></p>
<?php
/* $usersonline also has the list of users -
really simple example
Or if you're not on the frontpage:
$usersonline = StatsData::UsersOnline();

foreach($usersonline as $pilot)
{
echo "{$pilot->firstname} {$pilot->lastname}<br />";
}
*/
?>
</div>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...