Location: PHPKode > projects > PHP Simple FAQ > phpsimplefaq1.1beta/phpsimplefaq/admin.php
<? 

// PHP Simple FAQ Admin page v1.0
include "config.inc.php"; 

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
	<title><? echo "$main_title"; ?></title>
	<link rel="stylesheet" type="text/css" href="main/style.css" />
</head>
<body>

<!-- Start Main Content -->
<center>
<br>
<table border="0" width="100%" cellspacing="2" cellpadding="2" bgcolor="#ffffff">
	<tr>
		<td><center><? echo "<font face=\"$font_face\" size=\"$font_size\" class=\"$font_class\"><b>$main_title $administration_lang:</b></font><br>"; ?>
		<? 
			
			echo "<font face=\"$font_face\" size=\"$font_size\" class=\"$font_class\" color=\"red\">"; 
			$filename = "install.php";
			$fd = @fopen ($filename, "r");
			$contents = @fread ($fd, filesize ($filename));
			@fclose ($fd);
			if ($contents) echo "$install_warn_lang<br>";
			if ($error) 
				
				{
					if ($error == "badpass")
						
						{
							echo "$bad_password_lang";
						} elseif ($error == "notlisted") {
							echo "$was_not_listed_lang";
						}				
				}
			echo "</font>";

		?>
		</center>
		</td>
	</tr>
</table>
<form name="form1" method="post" action="manage_faq.php">
<table width="600" cellpadding="4" cellspacing="2" bgcolor="#333366">
	<tr>
			<td width="170" valign="TOP" align="LEFT" bgcolor="#3366CC"><form name="form1" method="post" action="manage_faq.php">
			<? echo "<font face=\"$font_face\" size=\"$font_size\" class=\"$font_class\" color=\"#ffffff\"><b>$area_select_lang:</b></font></td>"; ?>
			<td valign="TOP" align="LEFT" bgcolor="#CCCCCC">
			<input type="radio" name="action" value="faq" checked><? echo "<font face=\"$font_face\" size=\"$font_size\" class=\"$font_class\">$add_faq_lang</font><br>"; ?>
			<input type="radio" name="action" value="categories"><? echo "<font face=\"$font_face\" size=\"$font_size\" class=\"$font_class\">$add_category_lang</font><br>"; ?>
			<input type="radio" name="action" value="questions"><? echo "<font face=\"$font_face\" size=\"$font_size\" class=\"$font_class\">$add_question_lang</font><br>"; ?>
			<input type="radio" name="action" value="answers"><? echo "<font face=\"$font_face\" size=\"$font_size\" class=\"$font_class\">$add_answer_lang</font><br>"; ?>
			<input type="radio" name="action" value="users"><? echo "<font face=\"$font_face\" size=\"$font_size\" class=\"$font_class\">$add_user_lang</font><br>"; ?>
			</font>
			</td>
	</tr>
	<tr>
		<td width="130" valign="TOP" align="LEFT" bgcolor="#3366CC"><? echo "<font face=\"$font_face\" size=\"$font_size\" class=\"$font_class\" color=\"#ffffff\"><b>$your_email_lang:</b></font></td>"; ?>
		<td valign="TOP" align="LEFT" bgcolor="#CCCCCC"><INPUT TYPE="text" NAME="email" CLASS="add_style" <? if ($php_simplefaq_email) echo "value=\"$php_simplefaq_email\""; ?>></td>
	</tr>
	<tr>
		<td width="130" valign="TOP" align="LEFT" bgcolor="#3366CC"><? echo "<font face=\"$font_face\" size=\"$font_size\" class=\"$font_class\" color=\"#ffffff\"><b>$your_password_lang:</b></font></td>"; ?>
		<td valign="TOP" align="LEFT" bgcolor="#CCCCCC"><INPUT TYPE="password" NAME="password" CLASS="add_style"></td>
	</tr>
	<tr>
		<td width="130" valign="TOP" align="LEFT" bgcolor="#3366CC"></td>
		<td valign="TOP" align="LEFT" bgcolor="#CCCCCC"><input type="submit" name="Submit" value="<? echo "$submit_button_lang"; ?>"></form></td>
	</tr>
</table>


										
<!-- End main content -->
</center>

<? 


$fp = @fopen("http://www.chadsdomain.com/phpsimplefaq/version.file","r"); 
$contents = @fread ($fp, 1024);
if ($phpsf_version != $contents) echo "<center><font face=\"$font_face\" size=\"$font_size\" class=\"$font_class\"><a href=\"http://sourceforge.net/project/showfiles.php?group_id=58858\">PHP Simple FAQ $contents</a> $available_lang</font></center><br>\n";
@fclose ($fp);
include "includes/footer.inc.php"; ?>

</body>
</html>
Return current item: PHP Simple FAQ