/web/htdocs/www.euroroma.net/home/video.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<? include("topvideo.php"); ?>

     
     
     
     
      <!-- start site main content -->
      <section id="mainContent" style='margin-top: 70px;'>
      
      
      
      <? include("scrollnews.php"); ?>

  
          <!-- start main content bottom -->
          <div class="content_bottom">
            <div class="col-lg-8 col-md-8">
            <!-- start content bottom left -->
              <div class="content_bottom_left">
                <div class="single_page_area">
                  <ol class="breadcrumb">
                    <li><a href="http://www.euroroma.net">HOME</a></li>
                    <li><a href="http://www.euroroma.net/galleriavideo.php">GALLERIA VIDEO</a></li>
                  </ol>
                  <h2 class="post_titile"><? echo $titolo?></h2>
                  <div class="single_page_content">
                    <div class="post_commentbox">
                      <a href="#"><i class="fa fa-tags"></i>Notizie video</a>
                    </div>
                    
                    
                    
                     <?
                        
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']." ORDER BY aaaa DESC, mm DESC, gg DESC, ID DESC";
                        
$result mysql_db_query($namedb$sql$db);
                        
$i=0;
                        while(
$results mysql_fetch_array($result)){
                            
$ID $results["ID"];
                            
$titolo $special->specialChars($results["titolo"]);
                            
$url $results["url"];
                            
$descrizione $special->specialChars($results["descrizione"]);
                            
                            
$url str_replace('style="width:632px; height:355px;"'" "$url);
                            
                            echo 
"<div class='rwd-video'>".$url."</div>";
                            echo 
"<p>".$descrizione."</p>";
                            
$i++;
                        }
            
                        
mysql_close($db);
            
                    
?>
                    <div style='overflow: auto;'>
                    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                        <!-- Responsive orizzontale 1 -->
                        <ins class="adsbygoogle"
                             style="display:block"
                             data-ad-client="ca-pub-5549117216645456"
                             data-ad-slot="5436023121"
                             data-ad-format="auto"></ins>
                        <script>
                        (adsbygoogle = window.adsbygoogle || []).push({});
                        </script>
                        <br>
                    </div> 
                  </div>                 
                </div>

              </div><!--End content_bottom_left-->     
              
                
              
              <!-- start share post -->
              <div class="share_post">
              <h1>Ti è piaciuto il video?<br>Condividi <i class="fa fa-thumbs-o-up"></i></h1>
                <?
                
echo "<div style='float:left;'></div>";
                echo 
"<div style='float:left;'>";
                echo 
"<div><a href='https://twitter.com/share' class='twitter-share-button' data-url='http://www.euroroma.net/video.php?ID=".$_GET['ID']."' >Tweet </a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></div>"
;
                echo 
"</div>";
                echo 
"<div style='float:left; padding: 0px 5px 0px 5px;'>";
                
//FB
                
echo "<div class='fb-like'  data-href='http://www.euroroma.net/video.php?ID=".$_GET['ID']."'  data-action='like' data-send='true' data-layout='button' data-share='false'></div></div>";
                echo 
"<div style='float:left;'>";
                echo 
"<div class='fb-share-button'  data-href='http://www.euroroma.net/video.php?ID=".$_GET['ID']."' data-layout='button'></div></div>";
                echo 
"<br clear='all'/><br>";
                
?>
                
                <br>
                    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                    <!-- Responsive orizzontale 1 -->
                    <ins class="adsbygoogle"
                         style="display:block"
                         data-ad-client="ca-pub-5549117216645456"
                         data-ad-slot="5436023121"
                         data-ad-format="auto"></ins>
                    <script>
                    (adsbygoogle = window.adsbygoogle || []).push({});
                    </script>
                    <br>
                    
              </div><!-- End share post -->
              
              <!-- start similar post-->
              <div class="similar_post">
                <h2>Ti potrebbero interessare</h2>
                
                    <div class="archive_style_1">
                    <?
                    
                    
                    
include("admin/setConn.php");
                    
$special = new class_utility();
                    if (
$db == FALSE)
                            die (
"Errore nella connessione.");
                    
$sql "SELECT * FROM galleriavideo ORDER BY ID DESC, Data_e_ora DESC LIMIT 2";
                    
$result mysql_db_query("Sql603025_1"$sql$db);
                    
$i=1;
                    
$p=1;
                    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"];

                        
$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;
                        
                        echo 
"<div class='business_category_left wow fadeInDown'>";
                        echo 
"<ul class='fashion_catgnav'>";
                        echo 
" <li>";
                        echo 
"    <div class='catgimg2_container'>";
                        echo 
"      <a href='video.php?ID=".$ID."'>";
                        
                        
$verificastrstr ($thumb'hqdefault');
                        if(
$verifica){
                            echo 
"<img src='".$thumb."' alt='I video più recenti di Euroroma' class='img-responsive'>";
                        }else{ 
                            echo 
"<img src='".$urlimage."' alt='Le video notizie online' class='img-responsive'>";
                        }
                        echo 
"</a>";
                            
                        echo 
"    </div>";
                        echo 
"    <h2 class='catg_titile'><a href='video.php?ID=".$ID."'>".$titolo."</a></h2>";
                        echo 
" </li>";
                  
                        echo 
"</ul>";
                        echo 
" </div>";
                            
                            
                            
                         
                        }
                        
$i++;
                    
                    
mysql_close($db);
                    
?>

                    </div>
                    
                   
              </div>
              <!-- End similar post-->
              
                          
            </div>
            
            <? include("menudx.php");?>
        </div><!-- end main content bottom -->  
           
      </section><!-- End site main content -->
    </div> <!-- /.container -->
    
    <? include("foot.php");?>