Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/editnews.php
<? 
include('dbconn.php');
include('flagchk.php');
$result = mysql_query("SELECT usrname, usrflags FROM ".$OekakiPoteto_MemberPrefix."oekaki WHERE usrname='$OekakiU'");
extract(mysql_fetch_array($result));
if ((!check_flag('O')) && (!check_flag('S')) && (!check_flag('A'))) {
	header('Location: error.php?error='.urlencode("You do not have the credentials to edit news."));
exit;
}
mysql_close($dbconn);
$fd = fopen ("announce.php", "r");
$contents = fread ($fd, filesize ("announce.php"));
fclose ($fd);
?>
<html>
<?
include('header.php');
?>
<p></p>
<br>
<br>
<table width="<?=$hWidth?>" cellpadding="<?=$hCellPadding?>" align="center" cellspacing="2" class="infotable">
  <tr> 
    <td> 
      <form name="form1" method="post" action="functions.php">
        <table width="75%" border="0" cellspacing="0" cellpadding="0" align="center" class="infotable">
          <tr> 
            <td class="header"><?=$langop_enews_title?></td>
          </tr>
          <tr> 
            <td> 
              <div align="center"><?=$langop_enews_dir?><br>
                <textarea name="newsedit" cols="80" rows="10" class="multiline">---<?=$langop_enews_dir2?>--- <br><br><?=$contents?></textarea>
                <br>
                <input type="submit" name="newssub" value="Edit" class="submit">
              </div>
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
</table>
</body>
<? include('footer.php'); ?>
Return current item: OekakiPoteto