Location: PHPKode > projects > PHP My Ring > webring/admin/modif_msg.php
<?
/* ----------------------------------------------------------------------------
                   M O D I F CA T I O N   D U   M E S S A G E
                             D ' A C C U E I L
         PHPMyRing (4.0) dernière modification du fichier [16-11-02]
   ---------------------------------------------------------------------------- */
session_start();
// Accès par session

require('../include/config.php');
require('../include/fonctions.php');
$conf=config();
InsertLang('../',$conf['lang']);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>PHP My Ring <?  echo $conf['version']." - "._("Adminisitration"); ?></title>
  <meta http-equiv="Content-Type" content="text/html; charset=<? echo _("iso-8859-15"); ?>" />
  <link rel="StyleSheet" type="text/css" href="styles.css" />
  <script type="text/javascript" src="../script.js"></script>
</head>
<body>
<?
if (session_is_registered('idadm'))
   {
if (!$action)
   {
   ?>
<form method="post" action="">
  <table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
      <td> 
        <div align="center"><b><font face="Arial, Helvetica, sans-serif"><? echo _("Message d'accueil"); //msg_acc ?></font></b></div>
      </td>
    </tr>
    <tr> 
      <td align="center"> 
        <p>
          <input type="hidden" name="action" value="modif" />
          <textarea name="msg" cols="50" rows="10"><?
           $fp=fopen("../include/msg.txt","r");
           fpassthru($fp);
        ?></textarea>
        </p>
        <p> 
          <input type="submit" name="Submit" value="Ok">
          <input type="reset" name="Submit2" value="<? echo _("RAZ"); ?>">
        </p>
      </td>
    </tr>
  </table>
</form>
<?
}
elseif ($action =="modif")
       {
       // Modification du fichier
       $fp=fopen("../include/msg.txt","w+");
       fwrite($fp,StripSlashes($msg));
       fclose($fp);
       echo "<div class=\"message-info-actions\">"._("Modification du message effectu&eacute;e")."</div>";
       }
   }
else
    {
    // login incorrect!!!!
    echo _("La session a &eacute;t&eacute; ferm&eacute;e par mesure de s&eacute;curit&eacute;."); //session_ferm
    }
?>
<p style="text-align:center">
  [ <a href="JavaScript:window.close();" onclick="JavaScript:opener.location.reload(true);"><? echo _("Fermer la fen&ecirc;tre"); ?></a> ]
</p>
</body>
</html>
Return current item: PHP My Ring