Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   dbconn error (http://www.bvlist.com/showthread.php?t=11254)

succka 19th October 2017 09:26

dbconn error
 
Hy/ Üdv


I would like to have 1 small help asking why you write this and how can I fix it? Please help who helps

Call to undefined function dbconn() in login.php on line 12




Code:

ob_start();
/*
if (!defined("FOOLDAL")){
  die("Ne kutakodj olyan helyen ahol nem kéne... a főoldalon tudsz bejelentkezni!");
}
*/

require_once ("include/functions.php");
require_once ("include/config.php");

dbconn();

function login(){
global $PRIVATE_TRACKER, $STYLEPATH;
?>


//Invalid Login System Hack Start - 10:35 12/23/2006
if ($GLOBALS["inv_login"]==true){
        $real_ip = $_SERVER["REMOTE_ADDR"];
        $db_ip = sprintf("%u", ip2long($real_ip));

        $resource = mysql_query("SELECT * FROM invalid_logins WHERE ip ='".$db_ip."'") or die(mysql_error());
        $result = mysql_fetch_array($resource);

        if (!$result){
                $logins_left = $GLOBALS["login_attempts"];
        }else{
                $logins_left = $result["remaining"];
        }
       
        if ($result["remaining"] == "0"){
                //find remaining minutes untill next sanity
                //current time
                $now = time("d/m/Y H:i:s");

                //last sanity
                $res = mysql_query("SELECT last_time FROM tasks WHERE task='sanity' ") or mysqlerr();
                $sanity = mysql_fetch_assoc($res);
                $last_sanity = $sanity["last_time"];

                //next sanity
                $next_sanity = $last_sanity+$GLOBALS["clean_interval"];

                //minutes untill next sanity
                $ban_time = ($next_sanity-$now)/60;

                $ban = round($ban_time);

                if ("$ban" >= "2" || "$ban" == "0"){
                        $s="s";
                }elseif ("$ban" == 1){
                        $s="";
                }
    echo "";
    szovegdoboz1("433px", "center", "justify");
                ?>
   
Figyelem!

    Ez az utoljára megmaradó bejelentkezési kísérleted.
    Ha most is rosszul jelentkeznél be, akkor percre tiltani fog az oldal...
                    szovegdoboz2();
        }
}
//Invalid Login System Hack Stop


if(!isset ($user)){
        $user="";
}
?>


">
 
   
        if ($GLOBALS["inv_login"]==true){
      if ("$logins_left" >= "2" || "$logins_left" == "0"){
        $ss = "s";
      }elseif ("$logins_left" == "1"){
        $ss = "";
      }
     
      print("");
    }
    ?>
   
   
     
     
     
   
   
     
     
   
   
     
   
   
     
   
   
     
   
 
Hátravan még ".$logins_left." bejelentkezési kísérleted!
Név:
        ") ?>
       
       
     

       
     
Jelszó:
        ") ?>
       
       
     
Megjegyzés: Engedélyezned kell a cookiekat a bejelentkezéshez.

        Automatikus kiléptetés 15 perc inaktívitás után!
     

                if ($PRIVATE_TRACKER){
          print("".RECOVER_PWD."");
        }else{
          print("".ACCOUNT_CREATE."   ".RECOVER_PWD."");
        }
        ?>
     





}

if (!$CURUSER || $CURUSER["uid"]==1) {
        if (isset($_POST["uid"]) && $_POST["uid"]){
                $user=$_POST["uid"];
        }else{
                $user='';
        }
        if (isset($_POST["pwd"]) && $_POST["pwd"]){
                $pwd=$_POST["pwd"];
        }else{
                $pwd='';
        }
       
        //Invalid Login System Hack Start - 18:32 12/27/2006
        $ip = $_SERVER["REMOTE_ADDR"];
        $attempts = $GLOBALS["login_attempts"];
        //Invalid Login System Hack Stop

        if (isset($_POST["uid"]) && isset($_POST["pwd"])){
                $res = mysql_query("SELECT * FROM users WHERE username ='".AddSlashes($user)."'") or die(mysql_error());
                $row = mysql_fetch_array($res);
               
                //Invalid Login System Hack Start - 18:32 12/27/2006
                $resource = mysql_query("SELECT * FROM invalid_logins WHERE ip='".sprintf("%u", ip2long($ip))."'") or die(mysql_error());
                $results = mysql_fetch_array($resource);
                //Invalid Login System Hack Stop

                        //User Warning System Hack Start - 11:17 01.08.2006
                        if ($row["disabled"] == "yes"){
                                //standardheader("Login");
        echo "";
        szovegdoboz1("433px", "center", "center");
                                print("Hiba! Ez az account tiltva van!Oka: ".$row["disabledreason"]."");
        szovegdoboz2();
                                login();
                       
                        //User Warning System Hack Stop
                       
                        }elseif (!$row){
                                //standardheader("Login");
        echo "";
        szovegdoboz1("433px", "center", "center");
                                print("Hibás felhasználónév!");
                                szovegdoboz2();
                                //Invalid Login System Hack Start - 18:04 12/27/2006
                                if (!$results)
                                        mysql_query("INSERT INTO invalid_logins SET ip='".sprintf("%u", ip2long($ip))."', userid='".$row['id']."', username='".$row['username']."', failed=failed+1, remaining=$attempts-1") or die(mysql_error());
                                elseif ($results["failed"] < "$attempts")
                                        mysql_query("UPDATE invalid_logins SET ip='".sprintf("%u", ip2long($ip))."', failed=failed+1, remaining=$attempts-failed WHERE ip='".sprintf("%u", ip2long($ip))."'") or die(mysql_error());
                                elseif ($results["failed"] == "$attempts" && $results["remaining"] == "0")
                                        {
                                        $firstip = $ip;
                                        $lastip = $ip;
                                        $comment = "max number of invalid logins reached";
                                        $firstip = sprintf("%u", ip2long($firstip));
                                        $lastip = sprintf("%u", ip2long($lastip));
                                        $comment = sqlesc($comment);
                                        $added = sqlesc(time());
                                        mysql_query("INSERT INTO bannedip (added, addedby, first, last, comment) VALUES($added, '2', $firstip, $lastip, $comment)") or die(mysql_error());
                                        mysql_query("DELETE FROM invalid_logins WHERE ip='".sprintf("%u", ip2long($ip))."' LIMIT 1") or sqlerr();
                                        }
                                        //Invalid Login System Hack Stop
                                       
                                login();
                               
                        }elseif (md5($row["random"].$row["password"].$row["random"]) != md5($row["random"].md5($pwd).$row["random"])){
                                                                //standardheader("Login");
                echo "";
                szovegdoboz1("433px", "center", "center");
                                                                print("Hibás jelszó!");
                                                                szovegdoboz2();
                                                                //Invalid Login System Hack Start - 18:04 12/27/2006
                                                                if (!$results)
                                                                        mysql_query("INSERT INTO invalid_logins SET ip='".sprintf("%u", ip2long($ip))."', userid='".$row['id']."', username='".$row['username']."', failed=failed+1, remaining=$attempts-1") or die(mysql_error());
                                                                elseif ($results["failed"] < "$attempts" && $results["remaining"] != "0")
                                                                        mysql_query("UPDATE invalid_logins SET ip='".sprintf("%u", ip2long($ip))."', failed=failed+1, remaining=$attempts-failed WHERE ip='".sprintf("%u", ip2long($ip))."'") or die(mysql_error());
                                                                elseif ($results["failed"] == "$attempts" && $results["remaining"] == "0")
                                                                        {
                                                                        $firstip = $ip;
                                                                        $lastip = $ip;
                                                                        $comment = "max number of invalid logins reached";
                                                                        $firstip = sprintf("%u", ip2long($firstip));
                                                                        $lastip = sprintf("%u", ip2long($lastip));
                                                                        $comment = sqlesc($comment);
                                                                        $added = sqlesc(time());
                                                                        mysql_query("INSERT INTO bannedip (added, addedby, first, last, comment) VALUES($added, '2', $firstip, $lastip, $comment)") or die(mysql_error());
                                                                        mysql_query("DELETE FROM invalid_logins WHERE ip='".sprintf("%u", ip2long($ip))."' LIMIT 1") or sqlerr();
                                                                        }
                                                                //Invalid Login System Hack Stop
                                                               
                                                                login();
                        }elseif($row['id_level'] == 2){
                                //standardheader("Login");
        echo "";
        szovegdoboz1("433px", "center", "justify");
                                print("
Még nincs aktiválva ez az account!
Regisztráció illetve e-mail cím módosítás után kapnod kellett egy e-mailt, amiben elküdtük neked az aktivációs linket. Arra kattintva aktiválhatod a regisztrációs fiókodat és beléphetsz az oldalra. Amennyiben nem kaptál ilyen levelet, írj nekünk erre a címre: ".$SITEEMAIL."");
                                szovegdoboz2();
        login();
                        }else{
     
                                if ((isset ($_POST['logout']) AND $_POST['logout'] == 'yes')){
          mysql_query("UPDATE users SET 15_perc_inaktiv = 'igen' WHERE id = ".$row['id']."");
          logincookie($row["id"],md5($row["random"].$row["password"].$row["random"]), 15);
        }else{
          logincookie($row["id"],md5($row["random"].$row["password"].$row["random"]));
          mysql_query("UPDATE users SET 15_perc_inaktiv = 'nem' WHERE id = ".$row['id']."");
        }

                                if (isset($_GET["returnto"]))
                                        $url=urldecode($_GET["returnto"]);
                                else
                                                $url="index.php";
                                               
                                //Invalid Login System Hack Start - 10:55 12/23/2006
                                mysql_query("DELETE FROM invalid_logins WHERE ip='".sprintf("%u", ip2long($ip))."' LIMIT 1") or sqlerr();
                                //Invalid Login System Hack Stop
       
        echo "Bejelentkezés folyamatban...";
        //echo '';
        header("Location:".$url);
        //redirect($url);
                        }

        }else{
          //standardheader("Login");
          login();
          //exit;
        }
       
 
}else{

  if (isset($_GET["returnto"]))
    $url=urldecode($_GET["returnto"]);
  else
      $url="index.php";

  redirect($url);
}
ob_end_flush();
?>



Szeretnék 1 kis segítséget kérni hogy miért írja ezt és hogyan tudnám javítani ? Legyen szíves aki ért hozzá segítsen

DND 19th October 2017 11:02

english ?
p.s do you have the dbconn function in your functions file or any other file ?
p.s2 i love that from 2010 till now you have written only in 4 topics :|

Chez 19th October 2017 11:21

On line 12 you call a function named dbconn() but you don't have that function that's why you get that error.


All times are GMT +2. The time now is 00:34.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.