Exemplo n.º 1
0
            }
        }
    }
}
echo "Love calculated";
//echo $query = "REPLACE INTO share_data (msisdn,circle,data,modified_date) VALUES ('$numbers','$circle','" . mysql_real_escape_string($love_result) . "',now())";
//mysql_query($query) or trigger_error(mysql_error(), E_USER_ERROR);
if ($operator == 'loop') {
    $add_below = "\n--\nFor more such unlimited Searches on sms subscribe to this service at just Rs 1/day dial *888*1#";
    //} else {
    //////    $add_below = "\n--\nInternet search on sms! Sms HELP to $shortcode to find out more.$tollfree";
    ////    $query = "select * from ad_scripts order by rand() limit 0,1";
    ////    $result = mysql_query($query) or trigger_error(mysql_error(), E_USER_ERROR);
    ////    if (mysql_num_rows($result)) {
    ////        $row = mysql_fetch_array($result);
    ////        $add_below = "\n--\n" . $row["script"];
    ////    }
} elseif (($circle_short == 'RJ' || $circle == 'RAJASTHAN') && $operator == 'idea') {
    $add_below = "\n--\nFor unlimited Search sms GYAN to {$shortcode}";
} else {
    echo "its here";
    echo $add_below = adscript();
}
$total_return = $love_result;
include 'allmanip.php';
if ($fromHi == true) {
    $total_return = str_replace("OPTIONS", "ALSO TRY", $total_return);
    $total_return = str_replace("Reply with", "Try with", $total_return);
}
putOutput($total_return);
exit;
Exemplo n.º 2
0
                 }
             }
         }
     }
 }
 if ($set_prom && $operator == "airtel") {
     $no = rand(0, 3);
     echo "<h2>RANDOM NO :{$no} </h2>";
     if ($no == 0 || $no == 1) {
         $add_below = $add_below1 . "\n--\nDial *321*565# for Unlimited Search at {$charge_currency} {$price_point}/{$validity} days";
     } else {
         $add_below = $add_below1 . adscript();
     }
 } else {
     echo "<h2>ELSE NOT IN RANDOM</h2>";
     $add_below = $add_below1 . adscript();
 }
 //if ($isblacklisted == 0 && $operator != 'wapapi' && $isemp != 1) {
 //    echo "its here";
 //    $add_below.="\n--\nTo get a Certified MBA Degree, SMS MBA to $shortcode";
 //}
 echo "<br><h2>TIME before all :" . (microtime(TRUE) - $time_start) . "</h2><br>";
 if ($total_return) {
     //    $ipl_stats = apc_fetch('iplstats', $success);
     //    if (!$success) {
     //        $query = "select question from canned_responses where source='iplstats'";
     //        $result = mysql_query($query) or trigger_error(mysql_error(), E_USER_ERROR);
     //        $ipl_stats[] = mysql_num_rows($result);
     //        while ($row = mysql_fetch_array($result)) {
     //            $ipl_stats[] = $row['question'];
     //        }