Location: PHPKode > projects > Phpqadmin > phpqadmin-0.4/show_list_file.php
<?php

require_once('include/functions.php');
@include('include/top.php');

$company = $_GET['company'];

if (!is_company($company))
	die('Not a real company...');
	
$user = $_GET['user'];

if (!is_user($company,$user))
	die('Not a real user');
	
if (!is_user_mailinglist($company,$user))
	die('Not a real mailinglist');

$file = $_GET['file'];
	
?>
<form action="update_list_file.php" method="POST"><input type="hidden" name="file" value="<?php echo($file); ?>"><input type="hidden" name="company" value="<?php echo($company); ?>"><input type="hidden" name="user" value="<?php echo($user);?>">
File: <?php echo $file; ?>


<textarea name="text" rows="15" cols="80"><?php echo(get_user_file($company,$user,'text'.DIR_SLASH.$file)); ?></textarea>
<input type="submit" value="Save"><input type="button" onclick="document.location='show_user.php?company=<?php echo $company; ?>&user=<?php echo $user; ?>';" value="Cancel">
</form>
explanations:
<b>!A</b> : The persons mail that has sent the message
<b>!R</b> : The address that the user shall send the message to
<?
@include('include/bottom.php');
?>
Return current item: Phpqadmin