1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
<? include("admin/class_utility.php"); ?> <? include("classvideo.php"); ?>
<!DOCTYPE html> <html lang="it"> <head> <? //Apertura include("admin/setConn.php"); $special = new class_utility(); if ($db == FALSE) die ("Errore nella connessione."); $sql = "SELECT * FROM risultati WHERE ID=".$_GET['ID']; $result = mysql_db_query("Sql603025_1", $sql, $db); while($results = mysql_fetch_array($result)){ $ID = $results["ID"]; $rubrica = $special->specialChars($results["Rubrica"]); $autore = $special->specialChars($results["Autore"]); $titolo = $special->specialChars($results["Titolo"]); $titoloFB = $special->specialChars($results["Titolo"]); $sottotitolo = $special->specialChars($results["Sottotitolo"]); $sottotitoloFB = $special->specialChars($results["Sottotitolo"]); $testo = $special->specialChars($results["Testo"]); $url = $results["URLimg"]; $data = $special->specialChars($results["Data_e_ora"]); $video = $results["Video"]; $tags = $special->specialChars($results["Tags"]); $ID_photogallery = $results["ID_photogallery"]; $video = str_replace('style="width:632px; height:355px;"', " ", $video);
if($url !=""){ $dimensioni = getimagesize($url); $larghezza = $dimensioni[0]; $altezza = $dimensioni[1]; if($altezza >= $larghezza){ $ogimage = "<meta property='og:image' content='http://www.pontilenews.it/images/logo_fbno.jpg' />"; }else{ $ogimage = "<meta property='og:image' content='".$url."' />"; } }else{ $ogimage = "<meta property='og:image' content='http://www.pontilenews.it/images/logo_fbno.jpg' />"; } }
$search = array(chr(145), chr(146), chr(134), chr(96), chr(132), chr(147), chr(148), chr(133), chr(150)); $replace = array( "'", "'", "'", "'", "'", "'", "'", '...', '-'); $titoloFB = str_replace($search, $replace, $titoloFB); $sottotitoloFB = str_replace($search, $replace, $sottotitoloFB);
$titoloFB = $special->specialChars($titoloFB); $sottotitoloFB = $special->specialChars($sottotitoloFB); $titoloFB = str_replace("\"", "'", $titoloFB);
mysql_close($db); ?> <LINK REL="shortcut icon" HREF="http://www.euroroma.net/favicon.ico" type="image/x-icon" /> <link rel="icon" href="http://www.euroroma.net/favicon.ico" type="image/x-icon" >
<meta http-equiv="Content-Language" content="it" />
<meta property="og:title" content="<? echo strip_tags($titoloFB); ?>" /> <meta property="og:type" content="article" /> <meta property="og:image" content="<? echo $url; ?>" /> <meta property="og:url" content="<? echo "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>" /> <meta property="og:description" content="<? echo strip_tags($sottotitoloFB); ?>" /> <meta property="og:site_name" content="Euroroma.net" /> <meta property="fb:admins" content="EmilianoAntonelli79" /> <meta property="fb:app_id" content="1524559287862119" />
<title><? echo strip_tags($titolo)." ".strip_tags($sottotitolo); ?> - Leggi Euroroma.net</title>
<meta http-equiv="Content-Type" content="text/php; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/php; charset=utf-8" /> <meta name="description" content="<? echo strip_tags($testo); ?>" /> <meta name="keywords" content="Giornale, giornali, online, telematico, telematici, settimanale, settimanali, notizia, notizie, news, breaking, politica, interna, interni, esteri, estero, economia, welfare, cultura, società , scienza, scienze, tecnologia, tecnologie, occidente, oriente, ambiente, roma, lettore, lettori, italia, europa, usa, germania, francia, spagna, gran bretagna, articolo, articoli, foto, video, archivio, mailinglist, capitale, crisi, affari, cronaca, cronache, rubrica, rubriche" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap --> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> <link rel="stylesheet" href="http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css"> <link href="http://www.euroroma.net/css/bootstrap.css" rel="stylesheet"> <!-- for fontawesome icon css file --> <link href="http://www.euroroma.net/css/font-awesome.min.css" rel="stylesheet"> <!-- for content animate css file --> <link rel="stylesheet" href="http://www.euroroma.net/css/animate.css"> <!-- google fonts --> <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'> <!-- slick slider css file --> <link href="http://www.euroroma.net/css/slick.css" rel="stylesheet"> <!-- <link href="css/theme-red.css" rel="stylesheet"> --> <link href="http://www.euroroma.net/css/theme.css" rel="stylesheet"> <!-- main site css file --> <link href="http://www.euroroma.net/style.css" rel="stylesheet"> <!-- galleria foto --> <link rel="stylesheet" type="text/css" href="http://www.euroroma.net/cssgallery/style.css" /> <link rel="stylesheet" type="text/css" href="http://www.euroroma.net/cssgallery/elastislide.css" /> <link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&v1' rel='stylesheet' type='text/css' /> <link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css' />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]-->
</head> <?php function permalink($string) { $string = strtolower($string); $string = preg_replace("/[^0-9A-Za-z ]/", "", $string); $string = str_replace(" ", "-", $string); while (strstr($string, "--")) { $string = preg_replace("/--/", "-", $string); } return($string); } ?>
<body>
<!-- Facebook like page--> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<? include("topmenu.php"); include("admin/cut-html-text.php"); ?>
|