[+] EDITØR MODE [+]
htdocs
>
public
>
www
>
gallery_epi_vd.php
Edit File: gallery_epi_vd.php
<?php include_once 'common.php'; $servername = "hostingmysql323.register.it"; $username = "gregorio"; $password = "fontana2015"; $dbname = "fontanaarchitetti"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent --> <script type="text/javascript"> window.cookieconsent_options = {"message":"Questo sito utilizza cookie di terze parti. Chiudendo questo banner, scorrendo questa pagina, cliccando su un link o proseguendo la navigazione in altra maniera, acconsenti all'uso dei cookie.","dismiss":"Accetta","learnMore":"Maggiori informazioni","link":"http://fontana-architetti.it/crediti.php","theme":"dark-top"}; </script> <script type="text/javascript" src="//s3.amazonaws.com/cc.silktide.com/cookieconsent.latest.min.js"></script> <!-- End Cookie Consent plugin --> <script type="text/javascript"> $(document).ready(function(){ $('img.b').click(function (e) { $('img.d').not(e.target).removeClass('d'); $(this).toggleClass('d'); }); }); </script> <!-- ------------------------------------------------META------------------------------------------------ --> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> <meta http-equiv="pragma" content="no-cache" /> <!-- ------------------------------------------------CSS------------------------------------------------ --> <link rel="stylesheet" href="css/home.css" /> <link rel="stylesheet" href="css/menu.css" /> <link rel="stylesheet" type="text/css" href="css/cookieBar.css" /> </head> <body> <div id='root'> <div class='box_l' id='top_bar'> <div class='box_r' id='cerca'></div> </div> <div id='titoli'> <div id="head_p"> <div id="head_l_text"><h2><?php echo $lang['EPISODI_HEADER']; ?></h2></div> </div> <?php $progetto = $_GET['id_prog']; echo '<a href="episodi.php"><div id="cer"> </div></a> <a href="episodi.php"><div id="dietro"><h3>BACK</h3></div></a>'; ?> <div id="head_r"><a href="index.php"><img src="img/logo_small.jpg" class="r"></a></div> </div> <div id="cont_lungo"> <div id='testo_p'><?php $progetto = $_GET['id_prog']; $sql = 'SELECT * FROM episodi WHERE id = "'.$progetto.'"'; $result = $conn->query($sql); while($row = $result->fetch_assoc()) { echo '<h5><b>' .$row['titolo_'.$lang["LANG"]]. '</b></h5><p>' . $row['testo_'.$lang["LANG"]] . '</p>'; } echo ' <div class="pallini">'; //PALLINI $sql2 = ' SELECT * FROM gallery WHERE cat = "episodi" AND id_gal = "'.$progetto.'" ORDER BY posiz ASC'; //$sql2 = ' SELECT count(*) AS total FROM gallery WHERE cat = "'.$idd.'" AND id_gal = "'.$progetto.'"'; //iframe name="content" src="" width="100%"></iframe> $result2 = $conn->query($sql2); $row_cnt = $result2->num_rows; while($row = $result2->fetch_assoc()) { $img_tp = $row['tipo']; $cat_fld = $row['cat']; $id_fld = $row['id_gal']; $img = $row['path']; $posiz = $row['posiz']; //if ($posiz == "1"){ //echo '<a href="/PHP_script/showimage.php?cat_fld='.$cat_fld.'&id_fld='.$id_fld.'&img='.$img.'" target="content"> <img src="img/button_'.$img_tp.'.jpg" class="d" width="20px"/></a>'; //} else { echo '<a href="/PHP_script/showimage.php?cat_fld=episodi&id_fld='.$id_fld.'&img='.$img.'" target="content"> <img src="img/button_'.$img_tp.'.jpg" class="b" width="20px"/></a>'; }; //} echo '</div> </div> <div id="img_p">'; echo '<iframe name="content" src="/PHP_script/showvideo.php" width="100%"></iframe>'; ?> </div> </div> <div style="clear: both"> <div id='menu'> <ul> <li><a href="chi_siamo.php"><?php echo $lang['MENU_CHISIAMO']; ?></a></li> <li><a href="progetti.php"><?php echo $lang['MENU_PROGETTI']; ?></a></li> <li><a href="concorsi.php"><?php echo $lang['MENU_CONCORSI']; ?></a></li> <li><a href="pubblicazioni.php"><?php echo $lang['MENU_PUBBLICAZIONI']; ?></a></li> <li><a href="episodi.php"><?php echo $lang['MENU_EPISODI']; ?></a></li> <li><a href="clienti.php"><?php echo $lang['MENU_CLIENTI']; ?></a></li> <li><a href="contatti.php"><?php echo $lang['MENU_CONTATTI']; ?></a></li> <li><a href="crediti.php"><?php echo $lang['MENU_CREDITI']; ?></a></li> </ul> </div> </div> </body> </html> <?php $conn->close(); ?>
Method:
fopen()
file_put_contents()
stream_context_create()
Simpan
Rename:
Rename