Notice: Undefined variable: HTTP_HOST in D:\xampp\htdocs\tureta\public_html\index.php on line 3

Notice: Undefined variable: PHP_SELF in D:\xampp\htdocs\tureta\public_html\inc.config.php on line 175

Notice: Undefined variable: HTTP_HOST in D:\xampp\htdocs\tureta\public_html\inc.config.php on line 178
change constructor Name //query => table all_caps //table names without prefx??? var $table, //table_name $name, //db_name $conn, //id_conn $type, //db_type $host, //db_host $user, //db_user $pass, //db_pass $pref; //db_pref //CONSTRUCTOR function mysql() { // global $db, $tables; if (!($this->table=@func_get_arg(0))) $this->table=$db["table"]; if (!($this->name =@func_get_arg(1))) $this->name =$db["name"]; if (!($this->conn =@func_get_arg(2))) $this->conn =$db["conn"]; if (!($this->type =@func_get_arg(4))) $this->type =$db["type"]; if (!($this->host =@func_get_arg(5))) $this->host =$db["host"]; if (!($this->user =@func_get_arg(6))) $this->user =$db["user"]; if (!($this->pass =@func_get_arg(7))) $this->pass =$db["pass"]; $this->pref =$db["pref"]; switch ($this->type) { case "oracle": /*dar neaprasyta*/ break; default : if (!$this->conn) //create $db["conn"] !!! in global array $db["conn"]=$this->conn=mysql_pconnect($this->host, $this->user, $this->pass)// or die("Cant connect to hosting - ".$this->host.""); //, with username ".$this->db["user"]." and password ".$this->db["pass"]."
@mysql_select_db($this->name) or die("Can't select DB ".$this->name.""); //Yra trukumu //Create table with prefix!!! @mysql_query(str_replace(" ".$this->table." ", " ".$this->pref.$this->table." ", $tables[$this->table])); //Create tables, if their was droped (less than 0,0001 sek) // mysql_query($tables[$this->table]); //Create tables, if their was droped (less than 0,0001 sek) //echo "
  • ".$this->conn; break; } } //INSERT "what" "values" ["query"] into ["table"] //Can't give array to method!!!!! //Working: 1. ["query"]; 2. insert into ["table"] "id, nr" "$id, $nr" function insert($what, $values, $query="", $table="") { if (!@$table) $table=$this->table; //With default (class) table $pref =$this->pref; switch ($this->type) { case "oracle": /*dar neaprasyta*/ break; default : //Sometimes need to delete before insert if (@$query=str_replace(" $table ", " $pref$table ", $query." ")) @mysql_query($query); // $values="'".str_replace(", ", "', '", $values)."'"; //"$id, $nr" => "'$id', '$nr'" if (@mysql_query("insert into $pref$table ($what) values ($values)")) return true; //Without errors else return false; break; } } //DELETE "where" from ["table"] //Working: delete from ["table"] "where" function delete($where, $table="") { if (!@$table) $table=$this->table; //With default (class) table $pref =$this->pref; switch ($this->type) { case "oracle": /*dar neaprasyta*/ break; default : if (@mysql_query("delete from $pref$table where ($where)")) return true; //Sintax OK else return false; break; } } //SELECT "where" from ["table"] //Working: select * from ["table"] "where" function select($where="", $table="") { if (!@$table) $table=$this->table; //With default (class) table $pref =$this->pref; if ($where) $where="WHERE ($where)"; //galima tuscia perduoti... switch ($this->type) { case "oracle": break; //dar neaprasyta default : if ($r=@mysql_query("SELECT * FROM $pref$table $where")) return $r; else return false; break; } } //QUERY - select, delete, ins - optimalu ir neribotos galimybes function query($query) { global $tables; $pref =$this->pref; //Make prefix to all for (reset($tables); $key=key($tables); next($tables)) { $query=str_replace(" $key ", " $pref$key ", $query." "); //tarpas gale!!! $query=str_replace(" $key.", " $pref$key.", $query); //Su tasku buna table.laukas } switch ($this->type) { case "oracle": /*dar neaprasyta*/ break; default : return $r=@mysql_query($query); break; } } //DESTRUCTOR function destructor() { global $db; //!!! switch ($this->type) { case "oracle": /*dar neaprasyta*/ break; default : if (@mysql_close($this->conn)) unset($this->conn, $db["conn"]); else echo ""; break; } } // --- uzklausos rezultato isvedimas --- function fetch_array($result) { $this->record = mysql_fetch_array($result, MYSQL_ASSOC); return $this->record; } function num_rows($result) { return ($result) ? mysql_num_rows($result) : 0; } function num_fields($result) { return ($result) ? mysql_num_fields($result) : 0; } function affected_rows() { return mysql_affected_rows($this->connection); } } ?>U j ivydau boktus ir namus,
    Mus miestas sveikino irdingai,
    Pakilo mostui mylima ranka,
    Ir vir mans suskambo tvo balsas:
    "Pavelki, vaike - Klaipda!"

    /Agnese Miegel/"; $LANG["words"]["en"] = "A bunch of masts
        was standing above the city,
    I saw the houses
        and the towers behind them,
    The city greeted us sincerely,
    The dearest hand was waving,
    And I heard my father's voice
        which said:
    "Look, child, it's Klaipeda!"

    /Agnese Miegel/"; $LANG["words"]["ru"] = " ,
    ,
    ,

        ,

        :
    ", - !"

    / /"; $LANG["turtas"]["lt"]= "Nekilnojamasis turtas"; $LANG["turtas"]["en"]= "Real estate"; $LANG["turtas"]["ru"]= " "; $LANG["kont"]["lt"]= "Kontaktai"; $LANG["kont"]["en"]= "Contacts"; $LANG["kont"]["ru"]= ""; $LANG["empty"]["lt"]= "Pagal pasirinktus parametrus duomen nerasta."; $LANG["empty"]["en"]= "There are no data found by your query."; $LANG["empty"]["ru"]= " ."; $LANG["adresas"]["lt"]= "UAB \"Tureta\"
    Tils g. 38, Klaipda
    Tel. (8 46) 21 72 19
    (8 46) 21 59 97
    Tel./faks. (8 46) 494578
    El. patas: info@tureta.lt"; $LANG["adresas"]["en"]= "JSC \"Tureta\"
    Tilzes g. 38, Klaipeda
    Tel. (8 46) 21 72 19
    (8 46) 21 59 97
    Phone./fax. (8 46) 494578
    E-mail: info@tureta.lt"; $LANG["adresas"]["ru"]= " \"\"
    . 38,
    . (8 46) 21 72 19
    (8 46) 21 59 97
    ./. (8 46) 494578
    . : info@tureta.lt"; $LANG["new"]["lt"]="Naujienos"; $LANG["new"]["en"]="News"; $LANG["new"]["ru"]=""; $LANG["serv"]["lt"]="Paslaugos"; $LANG["serv"]["en"]="Services"; $LANG["sale"]["lt"]="Pardavimai"; $LANG["sale"]["en"]="Sales"; $LANG["copy"]["lt"]= "2004 © UAB \"Tureta\". Visos teiss saugomos. Sprendimas: "; $LANG["copy"]["en"]= "2004 © JSC \"Tureta\". All rights reserved. Solution: "; $LANG["copy"]["ru"]= "2004 © \"\". . : "; $LANG["find"]["lt"] = "Paieka"; $LANG["find"]["en"] = "Search"; $LANG["find"]["ru"] = ""; $LANG["send"]["lt"] = " sisti "; $LANG["send"]["en"] = " send "; $LANG["print"]["lt"] = "Versija spausdinimui"; $LANG["print"]["en"] = "Print"; $LANG["print"]["ru"] = " "; $LANG["thank"]["lt"] = "Usakymas priimtas. Ai."; $LANG["thank"]["en"] = "Order submited. Thank you."; $LANG["back"]["lt"] = "atgal"; $LANG["back"]["en"] = "back"; $LANG["back"]["ru"] = ""; //BY DIMKA: // Admin labels $LANG["nr"]["lt"] = "Kodas"; $LANG["nr"]["en"] = "ID"; $LANG["nr"]["ru"] = ""; $LANG["city"]["lt"] = "Miestas"; $LANG["city"]["en"] = "City"; $LANG["city"]["ru"] = ""; $LANG["room"]["lt"] = "Kambari kiekis"; $LANG["room"]["en"] = "Number of rooms"; $LANG["room"]["ru"] = " "; $LANG["area"]["lt"] = "Sklypo plotas (a.)"; $LANG["area"]["en"] = "Area of the land (a)"; $LANG["area"]["ru"] = " ()"; $LANG["street"]["lt"] = "Gatv"; $LANG["street"]["en"] = "Street"; $LANG["street"]["ru"] = ""; $LANG["address"]["lt"] = "Adresas"; $LANG["address"]["en"] = "Address"; $LANG["address"]["ru"] = ""; $LANG["floor"]["lt"] = "Auktas/Namas"; $LANG["floor"]["en"] = "Floor/House"; $LANG["floor"]["ru"] = "/"; $LANG["bmetres"]["lt"] = "Bendra kvadratra"; $LANG["bmetres"]["en"] = "General area"; $LANG["bmetres"]["ru"] = " "; $LANG["kmetras"]["lt"] = "Kambari kvadratra"; $LANG["kmetras"]["en"] = "Rooms areas"; $LANG["kmetras"]["ru"] = " "; $LANG["atskiras"]["lt"] = "Atskiras"; $LANG["atskiras"]["en"] = "Separate room"; $LANG["atskiras"]["ru"] = " "; $LANG["pereinamas"]["lt"] = "Pereinamas"; $LANG["pereinamas"]["en"] = "Passed room"; $LANG["pereinamas"]["ru"] = " "; $LANG["wc"]["lt"] = "Tualetas"; $LANG["wc"]["en"] = "Toilet"; $LANG["wc"]["ru"] = ""; $LANG["phone"]["lt"] = "Telefonas"; $LANG["phone"]["en"] = "Phone"; $LANG["phone"]["ru"] = ""; $LANG["corner"]["lt"] = "Kampinis"; $LANG["corner"]["en"] = "Corner"; $LANG["corner"]["ru"] = ""; $LANG["taip"]["lt"] = "Taip"; $LANG["taip"]["en"] = "Yes"; $LANG["taip"]["ru"] = ""; $LANG["ne"]["lt"] = "Ne"; $LANG["ne"]["en"] = "No"; $LANG["ne"]["ru"] = ""; $LANG["price"]["lt"] = "Kaina"; $LANG["price"]["en"] = "Price"; $LANG["price"]["ru"] = ""; $LANG["owner"]["lt"] = "Savininkas"; $LANG["owner"]["en"] = "Owner"; $LANG["owner"]["ru"] = ""; $LANG["rent"]["lt"] = "Nuoma"; $LANG["rent"]["en"] = "For rent"; $LANG["rent"]["ru"] = ""; $LANG["rentsale"]["lt"] = "Nuoma ar pardavimas"; $LANG["rentsale"]["en"] = "For sale or rent"; $LANG["rentsale"]["ru"] = " "; $LANG["sale"]["lt"] = "Pardavimas"; $LANG["sale"]["en"] = "For sale"; $LANG["sale"]["ru"] = ""; $LANG["text"]["lt"] = "Apraymas"; $LANG["text"]["en"] = "Description"; $LANG["text"]["ru"] = ""; $LANG["estate_type"]["lt"] = "N. turto tipas"; $LANG["estate_type"]["en"] = "Real estate type"; $LANG["estate_type"]["ru"] = " "; $LANG["archive"]["lt"] = "Naujien archyvas"; $LANG["archive"]["en"] = "The archive of news"; $LANG["archive"]["ru"] = " "; // $TEXT["results"]["lt"] = "Rezultatai: "; $TEXT["results"]["en"] = "Results: "; $TEXT["results"]["ru"] = ": "; // Menu left $TIPAS[1]["lt"]="Butai"; $TIPAS[1]["en"]="Apartmens"; $TIPAS[1]["ru"]=""; $TIPAS[2]["lt"]="Namai"; $TIPAS[2]["en"]="Houses"; $TIPAS[2]["ru"]=""; $TIPAS[3]["lt"]="Sodai"; $TIPAS[3]["en"]="Gardens"; $TIPAS[3]["ru"]=""; $TIPAS[4]["lt"]="Sodybos"; $TIPAS[4]["en"]="Granges"; $TIPAS[4]["ru"]=""; $TIPAS[5]["lt"]="Sklypai"; $TIPAS[5]["en"]="Sites"; $TIPAS[5]["ru"]=" "; $TIPAS[6]["lt"]="Komercins patalpos"; $TIPAS[6]["en"]="Commerce lodgment"; $TIPAS[6]["ru"]=" "; // Menu right $TIPAS[10]["lt"]="Apie mus"; $TIPAS[10]["en"]="About us"; $TIPAS[20]["lt"]="Paslaugos"; $TIPAS[20]["en"]="Services"; $TIPAS[30]["lt"]="Naujienos"; $TIPAS[30]["en"]="News"; $TIPAS[40]["lt"]="Kontaktai"; $TIPAS[40]["en"]="Contacts"; $TIPAS[50]["lt"]="Silykite"; $TIPAS[50]["en"]="Your offers"; $TIPAS[60]["lt"]="Partneriai"; $TIPAS[60]["en"]="Partners"; $TIPAS[70]["lt"]="emelapis"; $TIPAS[70]["en"]="Map"; //BY DIMKA: // Butai Namai Sodyb Sodai Sklyp KomP $INPUT["nr"] =" + | + | + | + | + | + "; $INPUT["city"] =" + | + | + | + | + | + "; // $INPUT["room"] =" + | + | + | + | | + "; $INPUT["area"] =" | + | + | + | + | "; $INPUT["street"] =" + | + | + | + | + | + "; // $INPUT["address"] =" + | + | + | + | + | + "; $INPUT["floor"] =" + | + | + | + | | + "; $INPUT["bmetres"] =" + | + | + | + | | + "; $INPUT["kmetras"] =" + | + | + | + | | + "; $INPUT["atskiras"] =" + | | | | | + "; $INPUT["wc"] =" + | + | + | + | | + "; $INPUT["phone"] =" + | + | + | + | | + "; $INPUT["corner"] =" + | | | | | + "; $INPUT["price"] =" + | + | + | + | + | + "; $INPUT["owner"] =" + | + | + | + | + | + "; $INPUT["rent"] =" + | + | + | + | + | + "; $INPUT["text"] =" + | + | + | + | + | + "; for (reset($INPUT); $key=key($INPUT); next($INPUT)) { $INPUT[$key]=explode("|", "|".$INPUT[$key]); for ($i=0; $i
    Notice: Undefined variable: HTTP_REFERER in D:\xampp\htdocs\tureta\public_html\index.php on line 14

    Notice: Undefined variable: HTTP_REFERER in D:\xampp\htdocs\tureta\public_html\index.php on line 15

    Notice: Undefined variable: HTTP_GET_VARS in D:\xampp\htdocs\tureta\public_html\index.php on line 18

    Notice: Undefined variable: HTTP_GET_VARS in D:\xampp\htdocs\tureta\public_html\index.php on line 19

    Notice: Undefined variable: HTTP_GET_VARS in D:\xampp\htdocs\tureta\public_html\index.php on line 20

    Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\tureta\public_html\inc.class.mysql.php:153) in D:\xampp\htdocs\tureta\public_html\index.php on line 22

    Notice: Undefined variable: out in D:\xampp\htdocs\tureta\public_html\inc.config.php on line 392
    <br /> <b>Notice</b>: Undefined variable: LANG in <b>D:\xampp\htdocs\tureta\public_html\inc.head.php</b> on line <b>2</b><br /> - UAB "Tureta"
    Fatal error: Class 'mysql' not found in D:\xampp\htdocs\tureta\public_html\index.php on line 69