forked from Innoz-Technologies/SMSGyan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eurocup12.php
90 lines (83 loc) · 3.11 KB
/
eurocup12.php
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
if (preg_match("~\b(eurocup|euro cup|football scores|euro 2012)\b(.+)?~", $spell_checked)) {
$ouput = "";
mysql_close();
include 'lib/configdb2.php';
echo $query = "Select * from eurocup where dated between '" . date("Y-m-d", strtotime("-2 day")) . "' and '" . date("Y-m-d", strtotime("+2 day")) . "'";
$result = mysql_query($query);
$count = 1;
while ($row = mysql_fetch_array($result)) {
$ouput .=$count . ". " . $row["week"] . " " . date("d-m-Y", strtotime($row["dated"])) . " " . date("H:i", strtotime($row["time"])) . "\n" . $row["matches"] . "\n" . $row["result"] . "\n";
$count = $count + 1;
}
mysql_close();
include 'lib/appconfigdb.php';
if (!empty($ouput)) {
$total_return = "Euro Cup Fixture & Results\n" . $ouput;
}
}
if ($total_return) {
$options_list[] = "All Fixtures";
$list[] = array("content" => "__eurofixture__");
$options_list[] = "All Results";
$list[] = array("content" => "__euroresult__");
$source_machine = $machine_id;
$current_file = "/temp/$numbers";
file_put_contents(DATA_PATH . $current_file, $total_return);
$to_logserver['source'] = 'euro';
include 'allmanip.php';
putOutput($total_return);
exit();
// }
}
if ($req == "__euroresult__") {
mysql_close();
include 'lib/configdb2.php';
echo $query = "Select * from eurocup where result!=''";
$result = mysql_query($query);
$count = 1;
while ($row = mysql_fetch_array($result)) {
$ouput .=$count . ". " . $row["week"] . " " . date("d-m-Y", strtotime($row["dated"])) . "\n" . $row["matches"] . "\nResult : " . $row["result"] . "\n";
$count = $count + 1;
}
mysql_close();
include 'lib/appconfigdb.php';
if (!empty($ouput)) {
$total_return = "Euro Cup Results\n" . $ouput;
}
if ($total_return) {
$source_machine = $machine_id;
$current_file = "/temp/$numbers";
file_put_contents(DATA_PATH . $current_file, $total_return);
$to_logserver['source'] = 'euro';
include 'allmanip.php';
putOutput($total_return);
exit();
}
}
if ($req == "__eurofixture__") {
mysql_close();
include 'lib/configdb2.php';
$query = "Select * from eurocup where dated>='" . date("Y-m-d") . "'";
$result = mysql_query($query);
$count = 1;
while ($row = mysql_fetch_array($result)) {
$ouput .=$count . ". " . $row["week"] . " " . date("d-m-Y", strtotime($row["dated"])) . " " . date("H:i", strtotime($row["time"])) . "\n" . $row["matches"] . "\n";
$count = $count + 1;
}
mysql_close();
include 'lib/appconfigdb.php';
if (!empty($ouput)) {
$total_return = "Euro Cup Fixture & Results\n" . $ouput;
}
if ($total_return) {
$source_machine = $machine_id;
$current_file = "/temp/$numbers";
file_put_contents(DATA_PATH . $current_file, $total_return);
$to_logserver['source'] = 'euro';
include 'allmanip.php';
putOutput($total_return);
exit();
}
}
?>