dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse


Our Discord Notification Server invitation link is https://discord.gg/jB2qmRrxyD

Author Topic: Simpleportal's "Guest Visitors Today" Custom HTML Block and is php program  (Read 27 times)

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 7237
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Yesterday at 04:11:51 PM
  • Deeply Confused Learner
  • Profession: IT Engineer now retired

ee /var/www/html/visitors.php


<?php
$date 
date(&#39;d/M/Y&#39;);
$count shell_exec("grep &#39;$date&#39; /var/log/httpd/access_log | awk &#39;{print $1}&#39; | sort -u | wc -l");
echo &
#39;<span style="font-family:Arial,sans-serif; font-size:14px;"><strong>&#39; . trim($count) . &#39;</strong> visitors today</span>&#39;;
?>


Custom HTML Left Block

Name: Guest Visitors Today

Code: [Select]
<iframe src="/visitors.php" style="border:none; width:100%; height:25px;" scrolling="no"></iframe>
NB: height: might need to be increased to 30px ot 35px one day so that some text doesn't get cut off
« Last Edit: Yesterday at 12:50:20 PM by Chip »
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Tags:
 


dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse





TERMS AND CONDITIONS

In no event will d&u or any person involved in creating, producing, or distributing site information be liable for any direct, indirect, incidental, punitive, special or consequential damages arising out of the use of or inability to use d&u. You agree to indemnify and hold harmless d&u, its domain founders, sponsors, maintainers, server administrators, volunteers and contributors from and against all liability, claims, damages, costs and expenses, including legal fees, that arise directly or indirectly from the use of any part of the d&u site.


TO USE THIS WEBSITE YOU MUST AGREE TO THE TERMS AND CONDITIONS ABOVE


Founded December 2014
SimplePortal 2.3.6 © 2008-2014, SimplePortal