Location: PHPKode > projects > PHP My Ring > webring/admin/voir.php
<?
/* ---------------------------------------------------------------------------- 
         V O I R   U N E   D E M A N D E  D ' I N S C R I P T I O N 
         PHPMyRing (4.0) dernière modification du fichier [16-11-02] 
   ---------------------------------------------------------------------------- */ 
 
session_start(); 
 
require('../include/config.php'); 
require('../include/fonctions.php'); 
InsertLang('../',$conf['lang']);
 
// VERIFICATION DE L'ACCES 
if (!session_is_registered('idadm')) 
   { 
   //echo $L['session_ferm'];
   $url="Location: index.php?message=".html_entity_decode(_("La session a &eacute;t&eacute; ferm&eacute;e par mesure de s&eacute;curit&eacute;."))."&viensde=voir.php";
   header($url);
   exit;
   } 
 
require ("haut.php"); 
 
$conn=connecte(); 
$rqt="SELECT idsite, site_nom, url, description, webmaster, email FROM webring WHERE idsite='$idsite'"; 
$res=requete($rqt); 
$row=mysql_fetch_array($res); 
mysql_close($conn);

?> 
<div class="titre-section">
  <? echo _("Ce site demande &agrave; rejoindre le webring"); ?>
</div>

<form name="accept" action="accepter.php" method="post">
<div class="fiche-site">
  <input type="hidden" name="idsite" value="<? echo $row['idsite']; ?>">
  <div class="item-liste-site">
    <div class="item-liste-site-titre"><? echo _("Le nom du site"); ?></div>
    <? echo html_entity_decode(stripslashes($row['site_nom'])); ?>
    <div class="item-liste-site-titre"><? echo _("URL"); ?></div>
    <input type="text" name="url" value="<? echo $row['url']; ?>" size="40">
    <a href="<? echo $row['url']; ?>" target="_blank"><? echo _("Voir"); ?></a>
    <div class="item-liste-site-titre"><? echo _("Description"); ?></div>
    <textarea name="description" cols="45" rows="5">
       <? echo stripslashes($row['description']); ?>
    </textarea>
    <div class="item-liste-site-titre"><? echo _("Webmaster"); ?></div>
    <a href="msg_mbres.php?envoyera=membre&amp;idsite=<? echo $row['idsite']; ?>"><? echo $row['webmaster']; ?></a>
  </div>
</div>
<div class="fiche-site">
   [ <a href="JavaScript:document.accept.submit();"><? echo _("Accepter"); ?></a> ]
   [ <a href="refus.php?idsite=<? echo $row['idsite']; ?>"><? echo _("Refuser"); ?></a> ]
   [ <a href="index.php"><? echo _("Ne rien faire"); ?></a> ]
</div>  
</form> 
<? require('bas.php'); ?>
Return current item: PHP My Ring