/web/htdocs/www.euroroma.net/home/topvideo.php


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
<? include("admin/class_utility.php"); ?>
<? 
include("classvideo.php"); ?>

<?
    
include("admin/setConn.php");
    
$special = new class_utility();
    
$namedb "Sql603025_1";
    if (
$db == FALSE)
        die (
"Errore nella connessione.");
    
$sql "SELECT * FROM galleriavideo WHERE ID = ".$_GET['ID'];
    
$result mysql_db_query($namedb$sql$db);

    while(
$results mysql_fetch_array($result)){
        
$ID $results["ID"];
        
$titolo $special->specialChars($results["titolo"]);
        
$url $results["url"];
        
$descrizione $special->specialChars($results["descrizione"]);
        
$urlimage $results["URLimg"];
        
        
$url str_replace('style="width:632px; height:355px;"'" "$url);
        
        
$IDvideo estraiCodice($url);
        
# call youtube api function
        
$youtube youtube("https://www.youtube.com/watch?v=".$IDvideo."");
        
# title
        
$youtube->title;
        
# duration in seconds
        #video description
        
$youtube->description;
        
# thumbnail url High Quality
        
$youtube->thumbnail->hqDefault;
        
# thumbnail url Small Quality
        
$youtube->thumbnail->sqDefault;
        
# video rating out of five
        
$youtube->rating;
        
# total likes
        
$youtube->likeCount;
        
# video category
        
$youtube->category;
        
# total view
        
$youtube->viewCount;
        
# time upload time
        
$youtube->uploaded;

        
        
$thumb =  $youtube->thumbnail->hqDefault;
            
    }
    
mysql_close($db);
    
?>  


<!DOCTYPE html>
<html lang="it">
  <head>
  
  
  
    <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 property="og:title" content="<? echo strip_tags($titolo); ?>" />
    <meta property="og:type" content="article" />
    
    <?
    $verifica
strstr ($thumb'hqdefault');
    if(
$verifica){
        echo 
"<meta property='og:image' content='".$thumb."' />";
    }else{ 
        echo 
"<meta property='og:image' content='".$urlimage."' />";
    }
    
?>
    
    <meta property="og:url" content="<? echo "http://" $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>" />
    <meta property="og:description" content="<? echo strip_tags($descrizione); ?>" />
    <meta property="og:site_name" content="Euroroma.net" />
    <meta property="fb:admins" content="EmilianoAntonelli79" />
    <meta property="fb:app_id" content="1524559287862119" />


    <title>Euroroma.net Le ultime notizie su politica, economia, scienza e tecnologia, arte e cultura. Cronaca di Roma e sport</title>
    <meta http-equiv="Content-Type" content="text/php; charset=utf-8" />
    
    <meta http-equiv="Content-Language" content="it" />

    <meta name="description" content="Per noi di Euroroma si tratta di un viaggio, perché come tutti i viaggi rappresenta l'impresa di qualcosa che non si conosce compiutamente al momento della partenza e perché, grazie alle piattaforme digitali, al web, navigheremo nel mare dell'informazione virtuale cercando dei punti di orientamento nella complessità della contemporaneità. Ma l'informazione che vi proporremo non sarà un immagine virtuale dalla vita reale perché la redazione si impegnerà per essere presente nel vivo dei fatti, per capirli e raccontarli." />

    <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">
 

    <!-- 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"); ?>