Location: PHPKode > scripts > Linker IMG > linker-img/manage/set_userfield.php
<?php

//=====================================
// LINKER Category Engine
//=====================================
// Filename : set_userfield.php
// Path  : Manage directory
// last update : 2002/03/13
// Desc : User filed configuration
//=====================================

//=====================================
// File include part
//=====================================

include ("./authen.php");
include ("../function/userfield_info.php");
include ("../$Slang/m_common.php"); 

//=====================================
// User input Form parts
//=====================================


if (!$switch) { 

print <<<EOF

<html>
<head>
<LINK rel='stylesheet' type='text/css' href='./linker.css'>
<meta http-equiv='Content-Type' content='text/html; charset=$Scharset'>
</head>

<body bgcolor="#E9E9E9">
<form action='set_userfield.php' method='post' name='myform'>
<input type="hidden" name="switch" value="conf">

<div align='left'>
<table border=0 cellpadding=0 cellspacing=1>
<tr>
<td colspan=2>

	<table width="100%" border="1"><tr><td bgcolor="#000066" align="center">
	<b><font color="white" size="2">$l_use_userfield</font></b>
	</td></tr></table>

</td>	</tr>

<tr><td colspan=2 width=500>&nbsp;</td>	</tr>

<tr>
<td width='150' bgcolor='#F6F6F6' ><font size='2'>&nbsp;USER1</font></td>
<td width='350' bgcolor='#F6F6F6'>&nbsp;<input type='text' name='user1' value="$u_user1"> </td>
</tr>

<tr>
<td width='150' bgcolor='#F6F6F6' ><font size='2'>&nbsp;USER2</font></td>
<td bgcolor='#F6F6F6'>&nbsp;<input type='text' name='user2' value="$u_user2"> </td>
</tr>

<tr>
<td width='150' bgcolor='#F6F6F6' ><font size='2'>&nbsp;USER3</font></td>
<td bgcolor='#F6F6F6'>&nbsp;<input type='text' name='user3' value="$u_user3"> </td>
</tr>

<tr>
<td width='150' bgcolor='#F6F6F6' ><font size='2'>&nbsp;USER4</font></td>
<td bgcolor='#F6F6F6'>&nbsp;<input type='text' name='user4' value="$u_user4"> </td>
</tr>

<tr>
<td width='150' bgcolor='#F6F6F6' ><font size='2'>&nbsp;USER5</font></td>
<td bgcolor='#F6F6F6'>&nbsp;<input type='text' name='user5' value="$u_user5"> </td>
</tr>

<tr bgcolor='#E0E0E0'>
<td colspan='3' align=center>
<input type='submit' value=' $l_submit ' class=cinput>
<input type='reset' value=' $l_reset ' class=cinput></td>
</tr>
</table></div></form>

</body>
</html>   
EOF;

}


//=====================================
// Write file parts
//=====================================


if ($switch=="conf") {


// set_search.php content

$config = <<<EOF

<?

\$u_user1 = "$user1";
\$u_user2 = "$user2";
\$u_user3 = "$user3";
\$u_user4 = "$user4";
\$u_user5 = "$user5";

?>
EOF;


$fp=fopen("../function/userfield_info.php",w);
fputs($fp,$config);
fclose($fp);
echo("<meta http-equiv='refresh' content='0; url=set_userfield.php'>");
}

?>
Return current item: Linker IMG