-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathfun.php
More file actions
48 lines (43 loc) · 1.66 KB
/
Copy pathfun.php
File metadata and controls
48 lines (43 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?
include ("setup.php");
########################Ñòàòèñòèêà íà ñàéò
function statistika()
{
$date=date("d.m.y");
$masvet_user_stat=mysql_num_rows(mysql_query("SELECT * FROM users"));
$masvet_newuser_stat=mysql_num_rows(mysql_query("SELECT * FROM users WHERE date='$date'"));
$masvet_game_stat=mysql_num_rows(mysql_query("SELECT * FROM stat_game"));
$masvet_stat = "Âñåãî èãðîêîâ: $masvet_user_stat<br>Íîâûõ çà ñóòêè: $masvet_newuser_stat<br>Ñûãðàëè èãð: $masvet_game_stat<br>";
echo $masvet_stat;
}
###########################################
################################# Ïîääêðæêà
function support()
{
$conf=mysql_query("select * from seting");
$con=mysql_fetch_array($conf);
$masvet_support_email="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"CENTER\"><a href=mailto:$con[2]>$con[2]</a><br></td></tr></table>";
if ($con[icq]<>""){
$masvet_support_icq="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"CENTER\">ICQ: $con[icq];<br></td></tr><tr><td align=\"CENTER\"><a href=\"http://web.icq.com/whitepages/message_me?uin=$con[icq];&action=message\"><img src=\"http://web.icq.com/whitepages/online?icq=$con[icq];&img=2\" border=0> </a></td></tr></table>";
}
$masvet_support=$masvet_support_email.$masvet_support_icq;
echo $masvet_support;
}
############################################
############################################
function procent()
{
$conf=mysql_query("select * from seting");
$con=mysql_fetch_array($conf);
echo $con['pcash'];
}
############################################
function config()
{
$conf=mysql_query("select * from seting");
$con=mysql_fetch_array($conf);
return $con;
}
$con=config();
$date=date("d.m.y");
?>