// Language file // Language strings used throughout the site are contained // in a single string key-based array. $t = array(); $t["blip"] = " - "; $t["meta_title"] = "cdn.livetv.rs"; $t["keywords"] = "live-e.tv"; $t["copyright"] = "© ".date("Y")." live-e.tv. All rights reserved."; $t["404_h1"] = "Error 404!"; $t["404_body"] = "Page not found."; ?> #$mysql_link = null; function sql_query($query, $dbase="") { global $mysql_srv, $mysql_user, $mysql_pass, $mysql_dbase; if ($dbase=="") $dbase = $mysql_dbase; if (($dbase == 'basket') && ($_ENV['APPLICATION_ENV'] == 'development')) { $dbase = 'livetv_basket'; } $mysql_link = mysql_connect($mysql_srv, $mysql_user, $mysql_pass) or die("Could not connect to the MySQL server!"); mysql_select_db($dbase) or die("Error selecting database!"); mysql_query("SET NAMES utf8") or die("Set query failed!"); $result = mysql_query($query, $mysql_link) or die("Select query failed: $query!"); if (is_resource($result)) { $table = array(); while ($row = mysql_fetch_array($result, MYSQL_BOTH)) $table[] = $row; return $table; } else { return $result; } mysql_free_result($result); mysql_close($mysql_link); } ?> switch ($page) { case "homepage": $meta_title = ""; $meta_description = ""; $meta_keywords = strtolower(@$t["meta_title"]); break; case "404": $meta_title = @$t["404_h1"]; $meta_description = @$t["404_body"]; $meta_keywords = "404, error 404"; break; } ?>