Esempio n. 1
0
function bts_mysqli_VSafe($str, $bts_link_my_i, $safe = 1)
{
    if ($safe != 0) {
        switch ($safe) {
            case "3":
                $str = bts_sqlin_ir($str, $bts_link_my_i);
                break;
            case "2":
                $str = bts_sqlin_ibr($str, $bts_link_my_i);
                break;
            default:
                $str = bts_sqlin_iar($str, $bts_link_my_i);
                break;
        }
    }
    return $str;
}
Esempio n. 2
0
function bts_mysqli_VSafe($str, $bts_link_my_i, $safe = 1)
{
    $out = array("password", "userpassword", "adminpassword", "username", "btspassword");
    if (in_array($str, $out, false)) {
        return $str;
    }
    if ($safe != 0) {
        switch ($safe) {
            case "3":
                $str = bts_sqlin_ir($str, $bts_link_my_i);
                break;
            case "2":
                $str = bts_sqlin_ibr($str, $bts_link_my_i);
                break;
            default:
                $str = bts_sqlin_iar($str, $bts_link_my_i);
                break;
        }
    }
    return $str;
}