HelioNetworks/HelioLinkExchange

View on GitHub
stats.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable $nb_site_page is undeclared
Open

$first_message = ($page-1)*$nb_site_page;
Severity: Minor
Found in stats.php by phan

Call to undeclared function \mysql_query()
Open

$q=mysql_query("SELECT * FROM `topsite` WHERE id='".$id."'");
Severity: Critical
Found in stats.php by phan

Call to undeclared function \mysql_num_rows()
Open

if(mysql_num_rows($q)>0){
Severity: Critical
Found in stats.php by phan

Variable $last_message is undeclared
Open

$q2 = mysql_query("SELECT * FROM `ips` WHERE id='".$id."' DESC LIMIT ".$first_message.",".$last_message."");
Severity: Minor
Found in stats.php by phan

Variable $nb_site_page is undeclared
Open

$nbpages = ceil($req1['nb']/$nb_site_page);
Severity: Minor
Found in stats.php by phan

Call to undeclared function \mysql_query()
Open

$req1 = mysql_fetch_array(mysql_query('SELECT count(time) AS `nb` FROM `ips` WHERE id="'.$id.'"'));
Severity: Critical
Found in stats.php by phan

Call to undeclared function \mysql_fetch_array()
Open

while($cld = mysql_fetch_array($$q2)){
Severity: Critical
Found in stats.php by phan

Variable $first_message is undeclared
Open

$q2 = mysql_query("SELECT * FROM `ips` WHERE id='".$id."' DESC LIMIT ".$first_message.",".$last_message."");
Severity: Minor
Found in stats.php by phan

Call to undeclared function \mysql_fetch_array()
Open

$req1 = mysql_fetch_array(mysql_query('SELECT count(time) AS `nb` FROM `ips` WHERE id="'.$id.'"'));
Severity: Critical
Found in stats.php by phan

Call to undeclared function \mysql_fetch_array()
Open

$q2 = mysql_fetch_array($q);
Severity: Critical
Found in stats.php by phan

Variable $sname is undeclared
Open

$dc = "Statistics of your site in toplist at ".$sname;
Severity: Minor
Found in stats.php by phan

Call to undeclared function \mysql_query()
Open

$q2 = mysql_query("SELECT * FROM `ips` WHERE id='".$id."' DESC LIMIT ".$first_message.",".$last_message."");
Severity: Critical
Found in stats.php by phan

Call to undeclared function \mysql_close()
Open

mysql_close();
Severity: Critical
Found in stats.php by phan

Variable $nb_site_page is undeclared
Open

$last_message = $first_message +$nb_site_page;
Severity: Minor
Found in stats.php by phan

Unused result of a binary '.' operator
Open

'<br>Time: '.date("g:I:a d/m/Y",$cld["time"]);
Severity: Info
Found in stats.php by phan

There are no issues that match your filters.

Category
Status