Zadejte hledaný výraz...

Error v subore functions.php

Zdravim.
Vie mi niekto povedat v com je chyba?
Niesom programator takze tápam v tom...
# connect mysql server
function ims_connect_db() {
global $CONFIG, $MX, $ALERT;
if (!isset($MX)) {
$MX = 'Connect to database failed';
$MX = 'Selection of database failed';
$MX = 'Charset query failed';
}
if (!@mysql_connect($CONFIG, $CONFIG, $CONFIG)) {
ims_logs('sql.log', ' - - ');
$ALERT = array('type' => 'warning', 'msg' => $MX); // MX: Pripojenie k databáze zlyhalo
return false;
}
elseif (!@mysql_set_charset($CONFIG)) {die;
ims_logs('sql.log', ' - - ');
$ALERT = array('type' => 'warning', 'msg' => $MX); // MX: Nastavenie charsetu databázy zlyhalo
return false;
}
elseif ($CONFIG == null)
return true;
elseif (!@mysql_select_db($CONFIG)) {
ims_logs('sql.log', ' - - ');
$ALERT = array('type' => 'warning', 'msg' => $MX); // MX: Vyber databázy sa nepodaril
return false;
}
else
return true;
}
# prepare & initialise session
function ims_session() {
global $CONFIG;
ini_set('session.save_handler', 'files');
ini_set('session.save_path', $CONFIG.'/sessions');
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
ini_set('session.name', 'gateway');
ini_set('session.cookie_lifetime', 0);
ini_set('session.cookie_path', '/');
ini_set('session.gc_probability', 1);
ini_set('session.gc_divisor ', 100);
ini_set('session.gc_maxlifetime', 86400);
session_start();
// get IP address
$_SESSION = $_SERVER;
// get host
if (!isset($_SESSION))
$_SESSION = gethostbyaddr($_SERVER);
// user agent
if (!isset($_SESSION))
$_SESSION = $_SERVER;
// os
if (!isset($_SESSION))
$_SESSION = ims_os();
// browser
if (!isset($_SESSION))
$_SESSION = ims_browser();
// old IE
if (!isset($_SESSION))
$_SESSION = (preg_match('/MSIE 7.0|MSIE 6.0/i', $_SESSION)) ? true : false;
// referer url
if (!isset($_SESSION))
$_SESSION = ($_SERVER == null) ? 'none' : $_SERVER;
// zistenie krajiny podla IP adresy
/*if (!isset($_SESSION))
$_SESSION = ims_find_out_country($_SERVER);
// urcenie jazykovej verzie
// 1.) podla parametra v url (/sk, /en, ...)
if (in_array($_GET, $CONFIG))
$_SESSION = $_GET;
// 2.) ak ide o bota, tak default jazykova verzia bude podla config (ak je url param prazdny)
elseif ($_SESSION == 'Search Bot')
$_SESSION = $CONFIG;
// 3.) podla cookie (user moze byt z krajiny X, ale naposledy mal na stranke jazykovu verziu Y, tak mu userfriendly ostane Y)
elseif (in_array($_COOKIE, $CONFIG))
$_SESSION = $_COOKIE;
// 4.) podla krajiny (IP adresa)
elseif (in_array($_SESSION, $CONFIG))
$_SESSION = $_SESSION;
// 5.) nakoniec predvolena jazykova verzia
else
$_SESSION = $CONFIG;
$_COOKIE = $_SESSION;
setcookie('language', $_SESSION, $CONFIG + 2678400, '/'); // nastavenie alebo predlzenie platnosti cookie na 1 mesiac
*/
}
# zistit operacny system resp. bota
function ims_os() {
$os_list = array (
// Match user agent string with operating systems
'Windows 3.11' => 'Win16',
'Windows 95' => '(Windows 95)|(Win95)|(Windows_95)',
'Windows 98' => '(Windows 98)|(Win98)',
'Windows 2000' => '(Windows NT 5.0)|(Windows 2000)',
'Windows XP' => '(Windows NT 5.1)|(Windows XP)',
'Windows Server 2003' => '(Windows NT 5.2)',
'Windows Vista' => '(Windows NT 6.0)',
'Windows 7' => '(Windows NT 6.1)',
'Windows 8' => '(Windows NT 6.2)',
'Windows NT 4.0' => '(Windows NT 4.0)|(WinNT4.0)|(WinNT)',
'Windows ME' => 'Windows ME',
'Open BSD' => 'OpenBSD',
'Sun OS' => 'SunOS',
'Linux' => '(Linux)|(X11)',
'Mac OS' => '(Mac_PowerPC)|(Macintosh)',
'QNX' => 'QNX',
'BeOS' => 'BeOS',
'OS/2' => 'OS/2',
'Search Bot' => '(Ask Jeeves/Teoma)|(bingbot)|(Ezooms)|(facebookexternalhit)|(Googlebot)|(ia_archiver)|(Jyxobot)|(MSNBot)|(nuhk)|(Openbot)|(SeznamBot)|(Slurp)|(YandexBot)|(Yammybot)|(Google Web Preview)'
);
// loop through the array of user agents and matching operating systems
foreach($os_list as $curr_os => $match) {
// find a match
if (preg_match('/'.$match.'/i', $_SERVER))
return $curr_os;
}
}
# zistenie prehliadaca
function ims_browser() {
$browser_list = array (
'Chrome' => 'Chrome',
'Maxthon' => 'Maxthon',
'Firefox' => 'Firefox',
'Safari' => 'Safari',
'Opera' => 'Opera',
'Internet Explorer' => 'MSIE',
'Netscape' => 'Netscape'
);
foreach($browser_list as $curr_browser => $match) {
if (preg_match('/'.$match.'/i', $_SERVER))
return $curr_browser;
}
return 'none';
}
# prevod IP adresy na cislo
/*function ims_anp_ip2long($ip) {
if ($ip == '') {
return false;
}
else {
$ips = explode('.', $ip);
return ($ips + $ips * 256 + $ips * 65536 + $ips * 16777216);
}
}
# zistenie krajiny podla IP adresy
function ims_find_out_country($ip) {
global $SQL, $CONFIG;
$ip_number = ims_anp_ip2long($ip);
$mysql_query = sprintf($SQL, $ip_number);
if (!$mysql_result = @mysql_query($mysql_query))
return 'error';
$row = @mysql_fetch_assoc($mysql_result);
return (!empty($row)) ? $row : 'unknown';
}*/
# cislo mysql chyby a hlaska
function ims_mysql_error() {
return mysql_errno().' -> '.mysql_error();
}
# mysql transakcie
/*function ims_mysql_query_trans($mysql_queries) {
global $CONFIG;
$mysql_query = "SET AUTOCOMMIT = 0;";
if (!@mysql_query($mysql_query)) {
ims_logs('sql_trans.log', ' - .'] - - ');
return false;
}
$mysql_query = "START TRANSACTION;";
if (!@mysql_query($mysql_query)) {
ims_logs('sql_trans.log', ' - .'] - - ');
return false;
}
foreach ($mysql_queries as $mysql_query) {
if (!$mysql_result = @mysql_query($mysql_query)) {
ims_logs('sql_trans.log', ' - .'] - - ');
break;
}
}
if (!$mysql_result) {
$mysql_query = "ROLLBACK;";
if (!@mysql_query($mysql_query))
ims_logs('sql_trans.log', ' - .'] - - ');
return false;
}
else {
$mysql_query = "COMMIT;";
if (!@mysql_query($mysql_query)) {
ims_logs('sql_trans.log', ' - .'] - - ');
return false;
}
@mysql_query("SET AUTOCOMMIT = 1;");
return true;
}
}*/
# gets file of the current working (included) file relative to root
function ims_get_cwf($file) {
$file = str_replace('\', '/', $file);
$file = str_replace($_SERVER, '', $file);
return $file;
}
# gets filename of the current working (included) file relative to root
function ims_get_cwfn($file) {
$file = str_replace('\', '/', $file);
$aFile = explode('/', $file);
$filename = end($aFile);
return $filename;
}
# gets the current working directory
function ims_get_cwd() {
$dir = str_replace('\', '/', getcwd());
return $dir;
}
# gets "back path" (?x ../) relative to root
function ims_get_bck() {
global $CONFIG;
$cwd = ims_get_cwd();
$dif = str_replace($CONFIG, '', $cwd);
$count = count(explode('/', $dif)) - 1;
$back = '';
for ($i = 1; $i <= $count; $i++)
$back .= '../';
return $back;
}
# systemove hlasky
function ims_alert($type, $message, $autocloseoff = 'false') {
global $MX, $ALERT;
if (!$ALERT) {
$ALERT = true;
echo '';
// MX: $MX = 'Oznámenie'; $MX = 'Upozornenie'; $MX = 'Potvrdenie'; $MX = 'Informácia';
// MX: Zatvor
}
}
# wrapper
function ims_wrapper() {
global $URL, $WRAPPER;
if (empty($_GET)) {
$WRAPPER = array('file' => 'index', 'code' => 200);
return;
}
if (!empty($_GET))
$WRAPPER = $_GET;
if (!empty($_GET))
$WRAPPER .= '/'.$_GET;
if (!empty($_GET))
$WRAPPER .= '/'.$_GET;
foreach ($URL as $key => $params) {
if ($WRAPPER == $params && $params != null) {
$WRAPPER = $key;
$WRAPPER = ($params == 'user' && !isset($_SESSION)) ? 403 : 200;
return;
}
}
$WRAPPER = 404;
}
# funkcia pre log subory
function ims_logs($logfile, $message) {
global $CONFIG;
$back = ims_get_bck();
@file_put_contents($back.$CONFIG.'/'.$logfile, '.'] - .'] - .'] - '.$message."n", FILE_APPEND|LOCK_EX);
}
# nastavenie session premennych po prihlaseni pouzivatela
function ims_sess_logon($row, $update_user_logon = true) {
global $CONFIG, $SQL;
null;
}
# zrusenie session premennych po odhlaseni pouzivatela
function ims_sess_logout($type) {
null;
}
# ochrana emailovej adresy proti botom v zdrojovom kode
function ims_encode_email($email) {
$js .= "var e='$email';" ;
$js .= "document.write('
$js .= "+'" title="'+e+'">'+e+'";
$js .= "
')";
$js = chunk_split (bin2hex($js),2, '%');
$js = '%'. substr($js ,0, strlen($js )-1);
$js = chunk_split($js, 54,"'+n'" );
$js = substr($js ,0, strlen($js)-4);
$js = "nn";
return $js;
}
# kontrola spravnosti formatu emailovej adresy
function ims_val_email($email) {
return (preg_match('/^+@+.+$/i', $email)) ? true : false;
}
# sanitize post data to use its in php or insert to DB
function ims_sanit_in($text) {
return trim(strip_tags(addslashes($text)));
}
# sanitize post data to fill text and password fields (from post)
function ims_sanit_out($text) {
return htmlspecialchars(stripslashes($text));
}
# sanitize post data to fill text to JS event handlers ... onclick="somefns('addsleshes this text')"
function ims_sanit_out2($text) {
return addslashes(htmlspecialchars($text));
}
# sanitize internal links
function ims_sanit_url($string) {
$string = mb_strtolower($string, 'UTF-8');
$string = ims_replace_schars($string);
$string = preg_replace('//i', '-', $string);
$string = preg_replace('/+/', '-', $string);
$string = preg_replace('/-$/', '', $string);
$string = preg_replace('/^-/', '', $string);
return $string;
}
# sanitize file name
function ims_sanit_filename($string) {
$search = array('\', '/', ':', '*', '?', '"', '<', '>', '|');
$replace = array('', '', '', '', '', '', '', '', '');
$string = str_replace($search, $replace, $string);
return $string;
}
# sanitize meta tags (description, keywords)
function ims_sanit_meta($string) {
$string = str_replace("n", ' ', $string);
$string = str_replace("r", ' ', $string);
$string = preg_replace('/]{2,}/', ' ', $string);
$string = htmlspecialchars(strip_tags($string));
return $string;
}
# sanitize text in single quotes (JS: var js_var = ' text ... .... text'; PHP: to store generated php code in php file)
function ims_sanit_singquot($string) {
return str_replace(''', '\'', $string);
}
# parse a URL and return certain component
function ims_parse_url($url, $component) { /* available comps: scheme (htpp, ftp), host, port, user, pass, path, query, (after the question mark ?), fragment (after the hashmark #) */
$components = parse_url($url);
// pridat domenu (nie host) ... ak $url je subdomena
$domain = explode('.', $components);
if (count($domain) == 3) /* subdomena, domena, tld */
$components = $domain.'.'.$domain;
return $components;
}
# make links clickable
function ims_links($text) {
$text = preg_replace('(((f|ht){1}tp://)+)', '$0', $text);
return $text;
}
# transform real password to hash
function ims_hash_pass($text) {
$text = 'Et.-z8'.$text.'3,^d!V';
return md5(sha1($text));
}
# generovanie noveho hesla (pri registracii a pod.)
function ims_generate_pwd($length = 8) {
$array = array('a','b','c','d','e','f','g','h','i','j','k','m','n','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7','8','9','+','-','*','.','?','!',',','=',';','%','(',')');
shuffle($array);
return implode('', array_slice($array, 0, $length));
}
# wraps a string to a given number of characters
function ims_wordwrap($string, $max_length) {
return wordwrap($string, $max_length, ' ', true);
}
# removes all new lines
function ims_remove_nl($string) {
$string = preg_replace('/rn/', ' ', $string);
$string = preg_replace('/]+/', ' ', $string);
return $string;
}
function ims_filesize($bytes) {
$result = $bytes / 1024; // kilobajty
$result = $result / 1024; // megabajty
$result = round($result, 1); // zaokruhlit na jednu desatinu ciarku
$result = ($result == 0) ? 0.1 : $result; // ak je vysledok nizsie ako cca 100kB (po zaokruhleni 0) tak vratit aspon 0,1 MB
$result = ims_nf5($result, 1); // fixne jedno desatinne miesto, seperator je ciarka
return $result;
}
# generate option's tags for selectbox (source: array without keys)
function ims_selectbox_array($first_option, $input, $array) {
$options = ($first_option != null) ? '' : null;
foreach ($array as $item) {
$selected = ($input == $item) ? ' selected="selected"' : null;
$options .= '';
}
return $options;
}
# generate option's tags for selectbox (source: array with keys)
function ims_selectbox_arrayk($first_option, $input, $array) {
$options = ($first_option != null) ? '' : null;
foreach ($array as $key => $name) {
$selected = ($input == $key) ? ' selected="selected"' : null;
$options .= '';
}
return $options;
}
# generate option's tags for selectbox (used for day, month or year selectbox)
function ims_selectbox_numeric($first_option, $input, $number_from, $number_to) {
$options = ($first_option != null) ? '' : null;
if ($number_from < $number_to) {
for($i = $number_from; $i <= $number_to; $i++) {
$value = str_pad($i, strlen($number_to), 0, STR_PAD_LEFT);
$selected = ($input == $value) ? ' selected="selected"' : null;
$options .= '';
}
}
else {
for($i = $number_from; $i >= $number_to; $i--) {
$value = str_pad($i, strlen($number_to), 0, STR_PAD_LEFT);
$selected = ($input == $value) ? ' selected="selected"' : null;
$options .= '';
}
}
return $options;
}
# this is a replica of shuffle() but preserving keys (associative and non-associative)
function ims_kshuffle(&$array) {
$keys = array_keys( $array );
shuffle($keys);
foreach ($keys as $key)
$tmp = $array;
$array = $tmp;
return true;
}
# odstranenie diakritiky - pouziva sa napr. pre nice url v ims_sanit_url()
function ims_replace_schars($string) {
$string = mb_strtolower($string, 'UTF-8');
$search = array('á', 'å', 'ä', 'í', 'ý', 'ó', 'é', 'ú', 'ŕ', 'ĺ', 'ô', 'ö', 'ů', 'ü', 'ľ', 'ě', 'š', 'č', 'ť', 'ř', 'ž', 'ň', 'ď');
$replace = array('a', 'a', 'a', 'i', 'y', 'o', 'e', 'u', 'r', 'l', 'o', 'o', 'u', 'u', 'l', 'e', 's', 'c', 't', 'r', 'z', 'n', 'd');
$string = str_replace($search, $replace, $string);
return $string;
}
# pridat prefix & sufix k $substring v $string
function ims_edit_matches($substring, $string, $type) {
$substring_r = ims_replace_schars($substring);
$string_r = ims_replace_schars($string);
if (($pos = stripos($string_r, $substring_r)) !== false) {
$len = mb_strlen($substring, 'UTF-8');
$string = mb_substr($string, 0, $pos, 'UTF-8') . '<'.$type.'>' . mb_substr($string, $pos, $len, 'UTF-8') . '' . mb_substr($string, $pos + $len, 100000, 'UTF-8') ;
}
return $string;
}
# number format function 1 (usually to display price)
function ims_nf1($price) {
return number_format($price, 2, ',', ' ');
}
# number format function 2 (usually for mathematical operations with prices)
function ims_nf2($price) {
$price = str_replace(',', '.', $price);
return (float) number_format($price, 2, '.', '');
}
# number format function 3 (float to str)
function ims_nf3($price) {
return str_replace('.', ',', $price);
}
# number format function 4 (to display integers in thousands)
function ims_nf4($price) {
return number_format($price, 0, '', ' ');
}
# number format function 5 (fixed decimal point as defined)
function ims_nf5($price, $decimals) {
return number_format($price, $decimals, ',', ' ');
}
# left pad a string to a certain length with zeroes
function ims_str_pad1($number, $places) {
return str_pad($number, $places, 0, STR_PAD_LEFT);
}
# vypocet percent zo zakladu (bez zaokruhlovania)
function get_percentage($base, $percent) {
$result = ($base / 100) * $percent;
return $result;
}
# function to calculate price without vat from price with vat (no rounding -> use some ims_nf...() function)
function ims_vat2nonvat($price, $vat) {
global $CONFIG;
return $price * (100 / (100 + $vat));
}
# alternativa k funkcii mb_ucfirst(), ktora v PHP este neexistuje
function ims_mb_ucfirst($string) {
$string = mb_strtoupper(mb_substr($string, 0, 1, 'UTF-8'), 'UTF-8') . mb_substr($string, 1, 1000, 'UTF-8');
return $string;
}
# zoradenie dvojrozmerneho pola
function array_orderby(&$items, $key, $type) {
if (!$items)
return;
foreach ($items as $k => $v)
$temp = $v;
($type == 'SORT_ASC') ? asort($temp) : arsort($temp);
foreach ($temp as $k => $v)
$result = $items;
$items = $result;
unset($result);
}
# overit ci pre danu ajax operaciu je pouzivatel prihlaseny
function ims_check_logged_user_ax() {
global $MX;
if (!isset($_SESSION)) {
$ALERT = array('type' => 'warning', 'msg' => $MX); // MX: Požadovaná operácia je dostupná iba prihláseným používateľom
die($ALERT.''.$ALERT);
}
}
# ziskat kategorie
function ims_get_categories($include_deleted = false) {
global $SQL;
$include_deleted = $include_deleted ? 1 : "`deleted` = 'no'" ;
$mysql_query = sprintf($SQL, $include_deleted);
if (!$mysql_result = @mysql_query($mysql_query)) {
ims_logs('sql.log', ' - - ');
return false;
}
while ($row = @mysql_fetch_assoc($mysql_result))
$data[] = $row;
return $data;
}
# ziskat obrazky pre galeriu
function ims_get_images($path) {
if (!file_exists($path))
return false;
if (!$scandir = @scandir($path))
return false;
sort($scandir);
foreach ($scandir as $file) {
if ($file == '.' || $file == '..' || strpos($file, 'deleted'))
continue;
$items[] = $file;
}
return (array) $items;
}
# vyber kategorie podla url adresy
function ims_check_category_in_url() {
global $SQL, $check_category;
$mysql_query = sprintf($SQL, addslashes($_GET));
if (!$mysql_result = @mysql_query($mysql_query)) {
ims_logs('sql.log', ' - - ');
return false;
}
elseif (@mysql_num_rows($mysql_result) == 0)
return false;
else {
$check_category = @mysql_fetch_assoc($mysql_result);
return true;
}
return false;
}
# vyber produktu podla ID v url adrese
function ims_check_product_in_url() {
global $CONFIG, $SQL, $check_category, $check_product;
$mysql_query = sprintf($SQL, $_GET);
if (!$mysql_result = @mysql_query($mysql_query)) {
ims_logs('sql.log', ' - - ');
return false;
}
elseif (@mysql_num_rows($mysql_result) == 0)
return false;
else {
$row = @mysql_fetch_assoc($mysql_result);
// nazov projektu v url uz nie je aktualny - permanentne presmerovat
$product_url = ims_sanit_url($row);
if ($_GET != $product_url) {
header('HTTP/1.1 301 Moved Permanently');
die(header('Location: '.$CONFIG.'/'.$check_category.'/'.$product_url.'/'.$row));
}
$check_product = $row;
return true;
}
return false;
}
?>
Error logs:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/clients/client0/web1/web/include/functions.php:11nStack trace:n#0 /var/www/clients/client0/web1/web/include/init_web.php(16): ims_connect_db()n#1 /var/www/clients/client0/web1/web/index.php(7): require_once('/var/www/client...')n#2 {main}n thrown in /var/www/clients/client0/web1/web/include/functions.php on line 11n', referer: http://www.vyhrajzasms.sk/
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/clients/client0/web1/web/include/functions.php:11nStack trace:n#0 /var/www/clients/client0/web1/web/include/init_web.php(16): ims_connect_db()n#1 /var/www/clients/client0/web1/web/index.php(7): require_once('/var/www/client...')n#2 {main}n thrown in /var/www/clients/client0/web1/web/include/functions.php on line 11n', referer: http://www.vyhrajzasms.sk/
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/clients/client0/web1/web/include/functions.php:11nStack trace:n#0 /var/www/clients/client0/web1/web/include/init_web.php(16): ims_connect_db()n#1 /var/www/clients/client0/web1/web/index.php(7): require_once('/var/www/client...')n#2 {main}n thrown in /var/www/clients/client0/web1/web/include/functions.php on line 11n', referer: http://www.vyhrajzasms.sk/
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/clients/client0/web1/web/include/functions.php:11nStack trace:n#0 /var/www/clients/client0/web1/web/include/init_web.php(16): ims_connect_db()n#1 /var/www/clients/client0/web1/web/index.php(4): require_once('/var/www/client...')n#2 {main}n thrown in /var/www/clients/client0/web1/web/include/functions.php on line 11n', referer: http://www.vyhrajzasms.sk/
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/clients/client0/web1/web/include/functions.php:11nStack trace:n#0 /var/www/clients/client0/web1/web/include/init_web.php(16): ims_connect_db()n#1 /var/www/clients/client0/web1/web/index.php(4): require_once('/var/www/client...')n#2 {main}n thrown in /var/www/clients/client0/web1/web/include/functions.php on line 11n', referer: http://www.vyhrajzasms.sk/
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/clients/client0/web1/web/include/functions.php:11nStack trace:n#0 /var/www/clients/client0/web1/web/include/init_web.php(16): ims_connect_db()n#1 /var/www/clients/client0/web1/web/index.php(4): require_once('/var/www/client...')n#2 {main}n thrown in /var/www/clients/client0/web1/web/include/functions.php on line 11n', referer: http://www.vyhrajzasms.sk/
AH01071: Got error 'PHP message: PHP Notice: Undefined index: set_timezone in /var/www/clients/client0/web1/web/admin/include/init_web.php on line 25nPHP message: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/clients/client0/web1/web/include/functions.php:11nStack trace:n#0 /var/www/clients/client0/web1/web/admin/include/init_web.php(28): ims_connect_db()n#1 /var/www/clients/client0/web1/web/admin/index.php(3): require_once('/var/www/client...')n#2 {main}n thrown in /var/www/clients/client0/web1/web/include/functions.php on line 11n'
8. 12. 2019 10:27:46
https://webtrh.cz/diskuse/error-v-subore-functions-php#reply1427718
_Antik_
verified
rating uzivatele
(22 hodnocení)
8. 12. 2019 10:38:49
mysql_* funkce jsou odstraněny od php 7.0 a vyšší viz https://www.php.net/manual/en/function.mysql-connect.php
8. 12. 2019 10:38:49
https://webtrh.cz/diskuse/error-v-subore-functions-php#reply1427717
Vteřina na googlu: https://stackoverflow.com/questions/34579099/fatal-error-uncaught-error-call-to-undefined-function-mysql-connect
Ale samozřejmě je to tak, jak píše Antik
8. 12. 2019 10:45:36
https://webtrh.cz/diskuse/error-v-subore-functions-php#reply1427716
Vdaka chlapi...
8. 12. 2019 11:02:09
https://webtrh.cz/diskuse/error-v-subore-functions-php#reply1427715
Pro odpověď se přihlašte.
Přihlásit