Skip to content

Commit

Permalink
Completed issue 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lucliscio committed Apr 17, 2018
1 parent 0a54aac commit 6646817
Show file tree
Hide file tree
Showing 8 changed files with 292 additions and 232 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.associations": {
".gpmrc": "json"
}
}
4 changes: 2 additions & 2 deletions src/lan.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

// Titoli della pagina
define("LAN_TITLE1","fanKounter :: Statistiche");
define("LAN_TITLE2","fanKounter :: Statistiche per ".chr(171)."%s".chr(187));
define("LAN_TITLE2","fanKounter :: Statistiche per «%s»");

// Testi della maschera di accesso
define("LAN_MASK1","Seleziona un contatore:");
Expand All @@ -81,7 +81,7 @@
define("LAN_MENU7","ESCI");

// Altre voci generiche
define("LAN_HEADER","Statistiche per ".chr(171)."[count]%1\$s[/count]".chr(187)." in data [date]%2\$s[/date] ore [hi]%3\$s[/hi]");
define("LAN_HEADER","Statistiche per «[count]%1\$s[/count]» in data [date]%2\$s[/date] ore [hi]%3\$s[/hi]");
define("LAN_TOP","- TOP -");

// Altre voci comuni
Expand Down
421 changes: 209 additions & 212 deletions src/stats.php

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/temp/tpl/login.71953e2636e357022bf53424f5bcf4e4.rtpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
<p>
<select name="id" size="1" class="counter">

<?php $counter1=-1; if( isset($counters) && is_array($counters) && sizeof($counters) ) foreach( $counters as $key1 => $value1 ){ $counter1++; ?>
<option value="<?php echo $key1;?>" <?php echo $value1;?>><?php echo $key1;?></option>
<?php } ?>
<?php $counter1=-1; if( isset($counters) && is_array($counters) && sizeof($counters) ) foreach( $counters as $key1 => $value1 ){ $counter1++; ?>
<option value="<?php echo $key1;?>" <?php echo $value1;?>><?php echo $key1;?></option>
<?php } ?>

</select>
</p>
Expand All @@ -35,7 +35,7 @@
</form>
</div>
<p class="credits">
&copy;2017 HZKnight | &copy;2002 fanatiko
&copy;2018 HZKnight | &copy;2002 fanatiko
<br/><a href="<?php echo $homepage;?>">fanKounter</a> a Free PHP Script
</p>
<script type="text/javascript" language="javascript">
Expand Down
57 changes: 57 additions & 0 deletions src/temp/tpl/stats.71953e2636e357022bf53424f5bcf4e4.rtpl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php if(!class_exists('raintpl')){exit;}?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- fanKounter v <?php echo $version;?> - by LucLiscio (Italy) //-->
<!-- <?php echo $homepage;?> //-->
<!-- mailto:<?php echo $email;?> //-->

<html>
<head>
<title><?php echo $title;?></title>
<meta name="description" content="fanKounter: uno script in PHP per creare e gestire contatori di visite con statistiche per pagine WEB." />
<meta name="keywords" content="accessi,contatore,counter,fanKounter,pagine,PHP,script,statistiche,stats,reload,unici,visitatori,visite,WEB\" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<base target="_top" />
<link type="text/css" rel="stylesheet" href="template/fanKounter_classic/stats.css" />
</head>
<body>
<div align="center">
<img src="template/fanKounter_classic/../../img/fk_newlogo.png" style="width:200px"><br/><br/>
<table cellspacing="0" cellpadding="0" class="conteiner">
<tr>
<td align="center">
<table cellspacing="0" cellpadding="0">
<tr>

<?php $counter1=-1; if( isset($menus) && is_array($menus) && sizeof($menus) ) foreach( $menus as $key1 => $value1 ){ $counter1++; ?>
<td valign="bottom">
<form method="post" action="<?php echo $action;?>">
<input type="hidden" name="id" value="<?php echo $value1->id;?>"/>
<input type="hidden" name="panel" value="<?php echo $value1->panel;?>"/>
<?php echo $value1->tab_header;?>
</form>
</td>
<?php } ?>

<td valign="bottom">
<form method="post" action="<?php echo $action;?>">
<input type="submit" value="<?php echo $exit;?>" onmouseover="javascript:this.className='menuq_up';" onmouseout="javascript:this.className='menuq';" class="menuq" />
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="conteiner">
<p class="header"><?php echo $header;?></p>
<?php echo $content;?>
<p class="top"><a href="javascript:scroll(0,0);"><?php echo $top;?></a></p>
</td>
</tr>
</table>
<p class="credits">
&copy;2017 HZKnight | &copy;2002 fanatiko
<br/><a href="<?php echo $homepage;?>">fanKounter</a> a Free PHP Script
</p>
</div>
</body>
</html>
Empty file.
29 changes: 15 additions & 14 deletions src/template/fanKounter_classic/stats.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,26 @@
</head>
<body>
<div align="center">
<img src="../../img/fk_newlogo.png" style="width:200px"><br/><br/>
<table cellspacing="0" cellpadding="0" class="conteiner">
<tr>
<td align="center">
<table cellspacing="0" cellpadding="0">
<tr>

foreach(array(_strlan_(LAN_MENU1,TRUE)=>0,_strlan_(LAN_MENU2,TRUE)=>1,_strlan_(LAN_MENU3,TRUE)=>2,_strlan_(LAN_MENU4,TRUE)=>3,_strlan_(LAN_MENU5,TRUE)=>4,_strlan_(LAN_MENU6,TRUE)=>5) as $__name=>$__panel){
echo"<td valign=\"bottom\">";
echo"<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">";
echo"<input type=\"hidden\" name=\"id\" value=\"".$par__id."\" />";
echo"<input type=\"hidden\" name=\"panel\" value=\"".$__panel."\" />";
echo ($par__panel===$__panel)?("<input type=\"submit\" value=\"".$__name."\" class=\"menu_hi\" />"):("<input type=\"submit\" value=\"".$__name."\" onmouseover=\"javascript:this.className=&quot;menu_up&quot;;\" onmouseout=\"javascript:this.className=&quot;menu&quot;;\" class=\"menu\" />");
echo"</form>";
echo"</td>";
}
{loop="$menus"}
<td valign="bottom">
<form method="post" action="{$action}">
<input type="hidden" name="id" value="{$value->id}"/>
<input type="hidden" name="panel" value="{$value->panel}"/>
{$value->tab_header}
</form>
</td>
{/loop}

<td valign="bottom">
<form method="post" action="{{$_SERVER["PHP_SELF"]}}>
<input type="submit" value="{{_strlan_(LAN_MENU7,TRUE)}}" onmouseover="javascript:this.className='menuq_up';" onmouseout="javascript:this.className='menuq';" class="menuq" />
<form method="post" action="{$action}">
<input type="submit" value="{$exit}" onmouseover="javascript:this.className='menuq_up';" onmouseout="javascript:this.className='menuq';" class="menuq" />
</form>
</td>
</tr>
Expand All @@ -41,9 +42,9 @@ foreach(array(_strlan_(LAN_MENU1,TRUE)=>0,_strlan_(LAN_MENU2,TRUE)=>1,_strlan_(L
</tr>
<tr>
<td class="conteiner">
<p class="header">{{_strlan_(LAN_HEADER,FALSE,$par__id,_strdate_($aux__now,"d"),date("G:i",$aux__now),_strdate_($aux__now,"w"))}}</p>
{{eval("_panel".$par__panel."_();");}}
<p class="top"><a href="javascript:scroll(0,0);">{{_strlan_(LAN_TOP,TRUE)}}</a></p>
<p class="header">{$header}</p>
{$content}
<p class="top"><a href="javascript:scroll(0,0);">{$top}</a></p>
</td>
</tr>
</table>
Expand Down
Empty file added src/template/index.html
Empty file.

0 comments on commit 6646817

Please sign in to comment.