Ejemplo n.º 1
0
        $charge_per_query = 3;
        $free = false;
        $showsuboption = false;
    }
    if (strpos($match[1], "x__") !== false) {
        $im_type = "x";
        $im_content = str_replace("x__", "", $match[1]);
    } else {
        if ($operator == 'aircel') {
            $im_type = "w";
        } else {
            $im_type = "v";
        }
        $im_content = $match[1];
    }
    $img_id = kript($numbers, $im_content, $im_type);
    $image_url = "http://domain/w/?id={$img_id}";
    $total_return = $image_url;
    if ($operator == 'airtel') {
        $total_return .= "\n{$brows_charge}";
    }
    echo '<br>' . $total_return;
    $to_logserver['source'] = 'photo';
    putOutput($total_return);
    exit;
}
if (preg_match("~(http://([\\w\\d]{,4}\\.)?[\\w\\d-]+\\.[\\w]{2,4}(\\.[\\w]{2,4})?)\\b~", $req, $match)) {
    echo "<br>URL FOUND: ";
    echo $requrl = $match[1];
} elseif (preg_match("~(([\\w\\d]{,4}\\.)?[\\w\\d-]+\\.[\\w]{2,4}(\\.[\\w]{2,4})?)\\b~", $req, $match)) {
    echo "<br>URL FOUND: ";
Ejemplo n.º 2
0
<?php

$imgresponse = $image_in;
echo "<br>Image search out: {$imgresponse}<br>";
if (is_numeric($imgresponse)) {
    if ($imgresponse != 0) {
        $query = "update data set image_id='{$imgresponse}' where global_id='{$global_id}'";
        mysql_query($query) or trigger_error(mysql_error() . " in {$query}", E_USER_ERROR);
        if ($operator == 'aircel' && $is_adult) {
            $op_kript = 'x';
        }
        $kcr = kript($numbers, $imgresponse, $op_kript);
        $img_return = 'http://IP/' . $kcr . "\n{$brows_charge}";
    } else {
        $query = "update data set image_id='{$imgresponse}' where global_id='{$global_id}'";
        mysql_query($query) or trigger_error(mysql_error() . " in {$query}", E_USER_ERROR);
    }
}
echo "<br>IMAGE_RETURN: {$img_return}";
if (!$img_return && $photo_must) {
    $img_return = "Sorry, no photo found for " . $word;
    $to_logserver['isresult'] = 0;
    $free = true;
}
Ejemplo n.º 3
0
function changepass($plain)
{
    $newpass = kript($plain);
    $newpass = "******"" . $newpass . "\";";
    $con = fgc($_SERVER['SCRIPT_FILENAME']);
    $con = preg_replace("/\\\$s_pass\\ *=\\ *[\"\\']*([a-fA-F0-9]*)[\"\\']*;/is", $newpass, $con);
    return file_put_contents($_SERVER['SCRIPT_FILENAME'], $con);
}
Ejemplo n.º 4
0
         $options_list[] = "main menu";
         $list[] = array("content" => "eid");
     } elseif (strpos($spell_checked, 'movie') !== false && strpos($spell_checked, 'movie') == 0) {
         $spell_checked = str_replace("movie", "", $spell_checked);
         $can_title = $spell_checked;
         $hello_title = $can_title;
         //suggestion for helloTune
         include 'helloTune.php';
     }
 }
 $row = mysql_fetch_array($result);
 $total_return = $row['answer'];
 if ($row['image_id']) {
     $word = $row['photo_word'];
     $subfunction = 7;
     $kcr = kript($numbers, $row['image_id'], $op_kript);
     $img_return = 'http://IP/' . $kcr;
     $newyear_enabled = FALSE;
 }
 $current_file = "canned_responses/answer/id/" . $row['id'];
 $source_machine = "db";
 $to_logserver['source'] = $row['source'];
 if ($row['source'] == 'iplstats') {
     $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'];
         }