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ш iрvydau bokрtus ir namus,
    Mus miestas sveikino рirdingai,
    Pakilo mostui mylima ranka,
    Ir virр manжs suskambo tлvo balsas:
    "Paюvelki, vaike - Klaipлda!"

    /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\"
    Tilюлs g. 38, Klaipлda
    Tel. (8 46) 21 72 19
    (8 46) 21 59 97
    Tel./faks. (8 46) 494578
    El. paрtas: 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 teisлs saugomos. Sprendimas: "; $LANG["copy"]["en"]= "2004 © JSC \"Tureta\". All rights reserved. Solution: "; $LANG["copy"]["ru"]= "2004 © ЗАО \"Турета\". Все права защищены. Решение: "; $LANG["find"]["lt"] = "Paieрka"; $LANG["find"]["en"] = "Search"; $LANG["find"]["ru"] = "Поиск"; $LANG["send"]["lt"] = " siыsti "; $LANG["send"]["en"] = " send "; $LANG["print"]["lt"] = "Versija spausdinimui"; $LANG["print"]["en"] = "Print"; $LANG["print"]["ru"] = "Версия для печати"; $LANG["thank"]["lt"] = "Uюsakymas priimtas. Aиiы."; $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"] = "Aukрtas/Namas"; $LANG["floor"]["en"] = "Floor/House"; $LANG["floor"]["ru"] = "Этаж/Дом"; $LANG["bmetres"]["lt"] = "Bendra kvadratыra"; $LANG["bmetres"]["en"] = "General area"; $LANG["bmetres"]["ru"] = "Общая квадратура"; $LANG["kmetras"]["lt"] = "Kambariш kvadratыra"; $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"] = "Apraрymas"; $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"]="Komercinлs 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"]="Siыlykite"; $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