Loading admin/admin_videos.php +2 −2 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ function dispAdminVideosByType($result, $video_type) { '.$video["video_name"].' </TD><TD>'; if ($video["video_path_daily"]) { $str .= '<a href=\'http://eptv.epitech.net/dailymotion.php?q='.$video["video_path_daily"].'\' onclick="return popitup(this, \'EPTV\')" ><img src=\'http://www.dailymotion.com/favicon.ico\' height=15></a>'; $str .= '<a href=\'http://www.eptv.fr/dailymotion.php?q='.$video["video_path_daily"].'\' onclick="return popitup(this, \'EPTV\')" ><img src=\'http://www.dailymotion.com/favicon.ico\' height=15></a>'; } $str .= '</TD> <TD> Loading public/home.php +2 −2 Original line number Diff line number Diff line Loading @@ -186,14 +186,14 @@ function dispHomeLastPhotos(){ // DISP LAST PHOTOS BY TENDU $str .= dispWhenTendu($photo["photo_tendu"]); $str .= '<li><a href="http://eptv.epitech.net/index.php?section=PhotosShow&action='.$photo["photo_path"].'" class="texte_link"'; $str .= '<li><a href="index.php?section=PhotosShow&action='.$photo["photo_path"].'" class="texte_link"'; if ($photo["photo_comment"]) { $str .= 'ONMOUSECLICK="popitup(\'<font>'.$photo["photo_comment"].'</font>\', \'#d3d3df\')"'; } $str .= '>'.$photo["photo_name"].'</a> '; if ($_SESSION["user_right"] >= $GLOBALS["PRIV_GUEST"] && photo_img_path != 0) { $str .= '<a href="http://eptv.epitech.net/"'.$photo["photo_img_path"].'" class="texte_link" >(zip)</a>'; $str .= '<a href="http://www.eptv.fr/"'.$photo["photo_img_path"].'" class="texte_link" >(zip)</a>'; } $str .= ''; $str .= ' <strong>'.$photo["photo_size"]. ' Img</strong> Loading public/photos.phpolddeleted 100644 → 0 +0 −237 Original line number Diff line number Diff line <? function dispPhotos() { $str = ' <table width="100%"> <tr> <td height="100%" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="4"> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="4"> <tr> <td width="15%" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#000000"> <table width="100%" border="0" cellspacing="1" cellpadding="2"> <tr> <td bgcolor="#000000"> <b> <font color="#ffffff"> p h o t o s </font> </b> </td> </tr> <tr> <td bgcolor="#d3d3df"> <table width="100%" cellpadding="2" cellspacing="2" align="center"> '; $str .= dispPhotosMenu(); $str .= ' </table> </td> </tr> </table> </td> </tr> </table> </td> <td width="85%" valign="top"> '; $str .= dispPhotosYear(); $str .= ' </td> </tr> </table> </td> </tr> </table> </td> </tr> </table>'; echo $str; } function dispPhotosMenu(){ $str = ''; $str .= ' <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2006" class="texte_link">2006</a> </TD> </TR> <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2005" class="texte_link">2005</a> </TD> </TR> <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2004" class="texte_link">2004</a> </TD> </TR> <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2003" class="texte_link">2003</a> </TD> </TR> <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2002" class="texte_link">2002</a> </TD> </TR> <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2001" class="texte_link">Avant</a> </TD> </TR> '; $str .= ' <TR><TD> <hr width="90%"> </TD></TR> '; return ($str); } function dispPhotosYear(){ if ($_GET['year_page']) { $year_page = $_GET['year_page']; } else { $year_page = 2006; } $str = '<B>'.$year_page.'</B>'; if ($_SESSION["user_right"] >= $GLOBALS["PRIV_GUEST"] ) { $result_prod = getPhotosByYearAndTypeAndTendu($year_page, "eptvprod", 2); $result_bonus = getPhotosByYearAndTypeAndTendu($year_page, "eptvbonus", 2); $result_adm = getPhotosByYearAndTypeAndTendu($year_page, "eptv.adm", 2); } else if ($_SESSION["user_right"] >= $GLOBALS["GUEST"] ) { $result_prod = getPhotosByYearAndTypeAndTendu($year_page, "eptvprod", 1); $result_bonus = getPhotosByYearAndTypeAndTendu($year_page, "eptvbonus", 1); $result_adm = getPhotosByYearAndTypeAndTendu($year_page, "eptv.adm", 1); } else { $result_prod = getPhotosByYearAndTypeAndTendu($year_page, "eptvprod", 0); $result_bonus = getPhotosByYearAndTypeAndTendu($year_page, "eptvbonus", 0); $result_adm = getPhotosByYearAndTypeAndTendu($year_page, "eptv.adm", 0); } if (mysql_num_rows($result_prod)) { $str .= dispPhotosByType($result_prod, " e p t v p r o d u c t i o n"); } if (mysql_num_rows($result_bonus)) { $str .= dispPhotosByType($result_bonus, " e p t v   b o n u s"); } if (mysql_num_rows($result_adm)) { $str .= dispPhotosByType($result_adm, " e p t v . a d m"); } return ($str); } function dispPhotosByType($result, $photo_type) { $str = ' <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#000000"> <table width="100%" border="0" cellspacing="1" cellpadding="2"> <tr> <td> <b> <font color="#ffffff"> '.$photo_type.' </font> </b> </td> </tr> <tr> <td bgcolor="#d3d3df"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="4"> '; while ($photo = mysql_fetch_array($result)) { $str .= dispWhenTendu($photo["photo_tendu"]); $str .= '<a href="http://eptv.epitech.net/index.php?section=PhotosShow&action= '.$photo["photo_path"].' " class="texte_link" '; if ($photo["photo_comment"]) { $str .= ' ONMOUSEOVER="popup(\'<font>'.$photo["photo_comment"].'</font>\', \'lightgray\')" ONMOUSEOUT="removeBox()"'; } $str .= '> '.$photo["photo_name"].' </a> </TD> <TD> '.$photo["photo_date"].' </TD> <TD align=center> '.$photo["photo_size"].' Img </TD> </TR>'; } $str .= ' </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <br> '; return ($str); } ?> No newline at end of file Loading
admin/admin_videos.php +2 −2 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ function dispAdminVideosByType($result, $video_type) { '.$video["video_name"].' </TD><TD>'; if ($video["video_path_daily"]) { $str .= '<a href=\'http://eptv.epitech.net/dailymotion.php?q='.$video["video_path_daily"].'\' onclick="return popitup(this, \'EPTV\')" ><img src=\'http://www.dailymotion.com/favicon.ico\' height=15></a>'; $str .= '<a href=\'http://www.eptv.fr/dailymotion.php?q='.$video["video_path_daily"].'\' onclick="return popitup(this, \'EPTV\')" ><img src=\'http://www.dailymotion.com/favicon.ico\' height=15></a>'; } $str .= '</TD> <TD> Loading
public/home.php +2 −2 Original line number Diff line number Diff line Loading @@ -186,14 +186,14 @@ function dispHomeLastPhotos(){ // DISP LAST PHOTOS BY TENDU $str .= dispWhenTendu($photo["photo_tendu"]); $str .= '<li><a href="http://eptv.epitech.net/index.php?section=PhotosShow&action='.$photo["photo_path"].'" class="texte_link"'; $str .= '<li><a href="index.php?section=PhotosShow&action='.$photo["photo_path"].'" class="texte_link"'; if ($photo["photo_comment"]) { $str .= 'ONMOUSECLICK="popitup(\'<font>'.$photo["photo_comment"].'</font>\', \'#d3d3df\')"'; } $str .= '>'.$photo["photo_name"].'</a> '; if ($_SESSION["user_right"] >= $GLOBALS["PRIV_GUEST"] && photo_img_path != 0) { $str .= '<a href="http://eptv.epitech.net/"'.$photo["photo_img_path"].'" class="texte_link" >(zip)</a>'; $str .= '<a href="http://www.eptv.fr/"'.$photo["photo_img_path"].'" class="texte_link" >(zip)</a>'; } $str .= ''; $str .= ' <strong>'.$photo["photo_size"]. ' Img</strong> Loading
public/photos.phpolddeleted 100644 → 0 +0 −237 Original line number Diff line number Diff line <? function dispPhotos() { $str = ' <table width="100%"> <tr> <td height="100%" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="4"> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="4"> <tr> <td width="15%" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#000000"> <table width="100%" border="0" cellspacing="1" cellpadding="2"> <tr> <td bgcolor="#000000"> <b> <font color="#ffffff"> p h o t o s </font> </b> </td> </tr> <tr> <td bgcolor="#d3d3df"> <table width="100%" cellpadding="2" cellspacing="2" align="center"> '; $str .= dispPhotosMenu(); $str .= ' </table> </td> </tr> </table> </td> </tr> </table> </td> <td width="85%" valign="top"> '; $str .= dispPhotosYear(); $str .= ' </td> </tr> </table> </td> </tr> </table> </td> </tr> </table>'; echo $str; } function dispPhotosMenu(){ $str = ''; $str .= ' <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2006" class="texte_link">2006</a> </TD> </TR> <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2005" class="texte_link">2005</a> </TD> </TR> <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2004" class="texte_link">2004</a> </TD> </TR> <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2003" class="texte_link">2003</a> </TD> </TR> <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2002" class="texte_link">2002</a> </TD> </TR> <TR> <TD width="100%" align="center"> <a href="index.php?section=Photos&year_page=2001" class="texte_link">Avant</a> </TD> </TR> '; $str .= ' <TR><TD> <hr width="90%"> </TD></TR> '; return ($str); } function dispPhotosYear(){ if ($_GET['year_page']) { $year_page = $_GET['year_page']; } else { $year_page = 2006; } $str = '<B>'.$year_page.'</B>'; if ($_SESSION["user_right"] >= $GLOBALS["PRIV_GUEST"] ) { $result_prod = getPhotosByYearAndTypeAndTendu($year_page, "eptvprod", 2); $result_bonus = getPhotosByYearAndTypeAndTendu($year_page, "eptvbonus", 2); $result_adm = getPhotosByYearAndTypeAndTendu($year_page, "eptv.adm", 2); } else if ($_SESSION["user_right"] >= $GLOBALS["GUEST"] ) { $result_prod = getPhotosByYearAndTypeAndTendu($year_page, "eptvprod", 1); $result_bonus = getPhotosByYearAndTypeAndTendu($year_page, "eptvbonus", 1); $result_adm = getPhotosByYearAndTypeAndTendu($year_page, "eptv.adm", 1); } else { $result_prod = getPhotosByYearAndTypeAndTendu($year_page, "eptvprod", 0); $result_bonus = getPhotosByYearAndTypeAndTendu($year_page, "eptvbonus", 0); $result_adm = getPhotosByYearAndTypeAndTendu($year_page, "eptv.adm", 0); } if (mysql_num_rows($result_prod)) { $str .= dispPhotosByType($result_prod, " e p t v p r o d u c t i o n"); } if (mysql_num_rows($result_bonus)) { $str .= dispPhotosByType($result_bonus, " e p t v   b o n u s"); } if (mysql_num_rows($result_adm)) { $str .= dispPhotosByType($result_adm, " e p t v . a d m"); } return ($str); } function dispPhotosByType($result, $photo_type) { $str = ' <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#000000"> <table width="100%" border="0" cellspacing="1" cellpadding="2"> <tr> <td> <b> <font color="#ffffff"> '.$photo_type.' </font> </b> </td> </tr> <tr> <td bgcolor="#d3d3df"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="4"> '; while ($photo = mysql_fetch_array($result)) { $str .= dispWhenTendu($photo["photo_tendu"]); $str .= '<a href="http://eptv.epitech.net/index.php?section=PhotosShow&action= '.$photo["photo_path"].' " class="texte_link" '; if ($photo["photo_comment"]) { $str .= ' ONMOUSEOVER="popup(\'<font>'.$photo["photo_comment"].'</font>\', \'lightgray\')" ONMOUSEOUT="removeBox()"'; } $str .= '> '.$photo["photo_name"].' </a> </TD> <TD> '.$photo["photo_date"].' </TD> <TD align=center> '.$photo["photo_size"].' Img </TD> </TR>'; } $str .= ' </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <br> '; return ($str); } ?> No newline at end of file