예제 #1
0
function getmatches_data()
{
    $db_connect = connect_db();
    $query = "select * from matchfixture WHERE match_date >= CURDATE()";
    $result = mysql_query($query, $db_connect) or die(mysql_error());
    $i = 1;
    $ipl_result = '';
    while ($row = mysql_fetch_array($result)) {
        /*echo '<br>';
        	echo '<br> id =' .$row['id'];
        	echo '<br>match date='.$row['match_date'];
        	echo '<br>match timing='.$row['match_time'];
        	echo '<br>team1 name='.$row['team1'];
        	echo '<br>team2 name='.$row['team2'];
        	echo '<br>match venue='.$row['venue'];*/
        $ipl_result .= $i . ". " . $row['team1'] . " Vs " . $row['team2'] . " on " . date('F j', strtotime($row['match_date'])) . ", " . $row['match_time'] . " at " . $row['venue'] . "\n";
        $i++;
    }
    echo $ipl_result;
    if ($ipl_result != "") {
        $total_return = $ipl_result;
        $source_machine = $machine_id;
        $current_file = "/temp/{$numbers}";
        file_put_contents(DATA_PATH . $current_file, $total_return);
        include 'allmanip.php';
        $to_logserver['source'] = 'championsTrophy';
        putOutput($total_return);
        exit;
    }
}
예제 #2
0
        $q_qoutes = "Select * from quotes_data where typed like '%" . $quotes_word . "%' order by rand() limit 2";
        $r_quotes = mysql_query($q_qoutes);
    }
    if ($quotes_word == "friendship") {
        $options_list[] = "gift ideas";
        $list[] = array("content" => "friendship idea_gift");
        $options_list[] = "celebration ideas";
        $list[] = array("content" => "friendship celb idea");
        $options_list[] = "Send Mobile Greeting card";
        $list[] = array("content" => "__gc__frndshpday__help__");
    }
    if (mysql_num_rows($r_quotes) > 0) {
        $r = mysql_fetch_array($r_quotes);
        $total_return = $r["quotes"];
        $quotes_id = $r["id"];
        if (mysql_num_rows($r_quotes) > 1) {
            $options_list[] = "Read another";
            $list[] = array("content" => "__quotes__" . $quotes_id . "__" . $quotes_word . "__");
        }
    }
    echo $total_return;
    if ($total_return) {
        $source_machine = $machine_id;
        $current_file = "/temp/{$numbers}";
        file_put_contents(DATA_PATH . $current_file, $total_return);
        $to_logserver['source'] = 'quote';
        include 'allmanip.php';
        putOutput($total_return);
        exit;
    }
}
예제 #3
0
}
$cri_res = TRUE;
$hor_res = TRUE;
echo "<h1>SPL CRI</h1>";
if ($cri_res) {
    $rr = trim(str_ireplace("'", "", $query_alphabets));
    if (preg_match("~\\b^(livescore|commentary|wicket|ipl cri|live scor|ipl scor|score|scor|skore|cri|ckt|ipllive|live cri|ipl live|iplscor|what is the score|live ipl|cricket ipl|sms cri|cricket live|cricket scor|cricketlive|c r i|scr|scorecard|livescore1|livescore2|live score|cric|live cricket|sms cricket|cricket|scores|t20)\\b~si", $rr) || $spell_checked == "india" && $circle_short == "KA") {
        // changed on 04/03/2013 as per mail, give cri results for keyword india
        echo "<br> CRI MATCH";
        echo "<br> CRI MATCH NEXT";
        include 'livecricket_new.php';
        if (!$live_return) {
            include 'livescores.php';
            if ($live_return != '') {
                $to_logserver['source'] = 'cri';
                putOutput($live_return);
                exit;
            }
        }
    }
}
include 'doctor.php';
include 'match_namaz.php';
$spelled_qry_alphabets = $spell_checked;
if ($spelled_qry_alphabets == 'keyword' || $spelled_qry_alphabets == 'keywords' || $spelled_qry_alphabets == 'key word' || $spelled_qry_alphabets == 'key words' || $spelled_qry_alphabets == 'sms keywords' || $spelled_qry_alphabets == 'sms keyword') {
    $spell_checked = 'keywords';
    $req = 'keywords';
    $flag_enabled = false;
    $free = true;
}
include 'taxiFare.php';
예제 #4
0
            $addon .= "\n{$key}: Unlimited search at Rs {$price_point}/day";
        } else {
            $addon .= "\n{$key}: Unlimited search at Rs {$price_point}/{$validity} days";
        }
        // "Subscribe at Rs $pricepoint/$pricepoint days"; //Subscribe option";
        $options[] = array("content" => "sub_gyan", "count" => 1);
    }
    echo "\n<br>no read more<br>\n";
    if (strlen($out_text) > 4 && preg_match("~[\\w\\d]+~", $out_text)) {
        $query = 'update request set position=-1 where mobile="' . $numbers . '"';
        mysql_query($query) or trigger_error("Error in {$query}: " . mysql_error(), E_USER_ERROR);
        $content = getLinks($content);
        $outs = serialize($options);
        file_put_contents(DATA_PATH . "/lists/{$numbers}", $outs);
        $lq = "REPLACE INTO lists (machine_id,number,query_id) VALUES ('{$machine_id}','{$numbers}','{$query_id}')";
        mysql_query($lq) or trigger_error(mysql_error() . " in {$lq}", E_USER_ERROR);
        $out_text = $out_text . $addon;
    } else {
        echo "\n<br>EMPTY OUTPUT 2<br>\n";
        $out_text = 'Sorry, no more data available';
    }
    if ($has_options) {
        $add_on_top = "Options (Eg: Reply with 1 for Next Page):\n";
    }
    echo "<br>This Is MORE :{$out_text}";
    if (!(strpos($out_text, 'NEXT PAGE') > 0)) {
        echo "<br>Example replaced";
        $out_text = str_replace('Eg: Reply with 1 for Next Page', 'Reply with option, eg. 1', $out_text);
    }
    putOutput($out_text);
}
예제 #5
0
            echo print_r($query_words);
            $love_in = implode(' ', $query_words);
            if (preg_match("~^((calculate|calc)? ?(fri?e?nd[sz]?|frand[sz]?|fri?e?ndship|frn[sz])) (\\w+) (\\w+)\$~", $love_in, $matches)) {
                echo '<br>----------<bR>';
                print_r($matches);
                echo '<br>---------<br>';
                $first_name = $matches[4];
                $second_name = $matches[5];
            } else {
                if (preg_match("~^((calculate|calc)? ?(fri?e?nd[sz]?|frand[sz]?|fri?e?ndship|frn[sz])) ([\\w\\s]+)(and|\\+|\\||x|,|\\*|\\.|%|-|=)([\\w\\s]+)~", $love_in, $matches)) {
                    echo '<br>_________<br>';
                    print_r($matches);
                    echo '<br>_________<br>';
                    $first_name = $matches[4];
                    $second_name = $matches[6];
                } else {
                    $first_name = $query_words[1];
                    $second_name = $query_words[count($query_words) - 1];
                    echo " <br>first :  {$first_name}, {$second_name}<br>";
                }
            }
            include 'lovecalculator.php';
            if ($isfs && ($circle == 'UW' || $circle == 'UE')) {
                $charge_per_query = 3;
            }
            $to_logserver['source'] = 'fc';
            putOutput($love_result);
            exit;
        }
    }
}