-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathepisode_story.php
78 lines (71 loc) · 2.19 KB
/
episode_story.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
<?php
if ($free) {
$len_max = 250;
} else {
$len_max = 200;
}
mysql_close();
include 'lib/configdb2.php';
if (preg_match("~\b((savitha|savita).+(babi|bhabi|bhabbi|bhabhi))\b~", $spell_checked)) {
$query = "select * from story_epd";
$result = mysql_query($query);
$len = 0;
while ($row = mysql_fetch_array($result)) {
$len = $len + strlen($row["titles"]) + 3;
if ($len < $len_max) {
$options_list[] = $row["titles"];
$list[] = array("content" => "_storyepd__" . $row['id'] . "_");
$lid = $row["id"];
} else {
$options_list[] = "More Options";
$list[] = array("content" => "_storyepdmore__" . $lid . "_");
break;
}
}
if (count($options_list) > 0) {
$total_return = "Stories Of Savitha Bhabi";
}
}
if (preg_match("~_storyepd__(.+)_~", $req, $match1)) {
$epd = $match1[1];
echo $query = "select story from story_epd where id=$epd";
$result = mysql_query($query);
if (mysql_num_rows($result) > 0) {
$row = mysql_fetch_array($result);
$story_epd = $row['story'];
$total_return = $story_epd;
}
}
if (preg_match("~_storyepdmore__(.+)_~", $req, $match2)) {
$id1 = $match2[1];
$query = "select * from story_epd where id>$id1";
$result = mysql_query($query);
$len = 0;
while ($row = mysql_fetch_array($result)) {
$len = $len + strlen($row["titles"]) + 3;
if ($len < $len_max) {
$options_list[] = $row["titles"];
$list[] = array("content" => "_storyepd__" . $row['id'] . "_");
$lid = $row["id"];
} else {
$options_list[] = "More Options";
$list[] = array("content" => "_storyepdmore__" . $lid . "_");
break;
}
}
if (count($options_list) > 0) {
$total_return = "Stories Of Savitha Bhabi";
}
}
mysql_close();
include 'lib/appconfigdb.php';
if ($total_return) {
$source_machine = $machine_id;
$current_file = "/temp/$numbers";
file_put_contents(DATA_PATH . $current_file, $total_return);
$to_logserver['source'] = 'storyepsd';
include 'allmanip.php';
putOutput($total_return);
exit();
}
?>