Location: PHPKode > projects > OpenDomains > admin/options.php
<?
if(define("opendomains", false)) die("Hacking System");
if($_POST['sssubmit']) {
	$query=mysql_query("select * from cl_options where 1 order by 'opt' asc");
	while($ht=mysql_fetch_array($query)) {
	 	eval("\$".$ht[opt]."=\$_POST['".$ht[opt]."'];");
	 	eval("\$".$ht[opt]."=kiemtra(1,\$".$ht[opt].",0,0,250,\"Options must dont have special characters !\",0);");
	 	
		eval("\$q=mysql_query(\"update cl_options set vl='\$".$ht[opt]."' where opt='".$ht[opt]."' \")or die(\"Error in \$".$ht[opt]." <-- ".$ht[opt]."\");");

	}
		alert("Refesh Pages !");
		goto("?act=opt");	
}
$url=str_replace("admin/index.php","",$_SERVER['PHP_SELF']);
echo "
<table width=100% >
<tr><td colspan=10 align=center > <b>---------- [ Website Information ] ----------</b> </td></tr>
<form action='?act=opt' method='post' >
<tr>
<td width=30% > &raquo; E-Mail:  </td>
<td><input type='text' name='email' value='".$web[config][email]."'></td>
</tr>
<tr>
<td> &raquo; URL Install Scripts:  </td>
<td><input type='text' name='website' value='".$web[config][website]."'> <b>http://".$_SERVER['HTTP_HOST']."/".$url." </b> </td>
</tr>
<tr>
<td> &raquo; Active Account By:  </td>
<td>";

$k=$web[config][active];
$s[$k]="checked";

echo "
<input type='radio' name='active' value='admin' $s[admin] > Admin
<input type='radio' name='active' value='email' $s[email] > E-Mail
<input type='radio' name='active' value='none'  $s[none] > None
</td>
</tr>
<tr>
<td>
&raquo; Language: 
</td>
<td>
<select name='language' >
";
$dir=opendir("../lang/");
$k=$web[config][language];
$sel[$k]="selected";
while($file=readdir($dir)) {
  	$l=$file;
 	if(($file<>".")and($file<>"..")) 
	echo "
	<option value='$file' $sel[$l] >$file</option>
	"		;
}
echo "
</select>
</td>
</tr>
<tr>
<td>&raquo; Template:</td>
<td>
<select name='template' >
";
$dir=opendir("../template/");
$k=$web[config][template];
$sel[$k]="selected";
while($file=readdir($dir)) {
 	$l=$file;
 	if(($file<>".")and($file<>".."))  
	echo "
	<option value='$file' $sel[$l] >$file</option>
	"		;
}
echo "
</select>
</td>
</tr>
<tr><td colspan=10 align=center > <b>---------- [ DNS Account - <a href='http://opendomains.vnn.bz/'>Click Here</a> ] ----------</b> </td></tr>
<tr><td>&raquo; DNS Username:</td>
<td><input type='text' name='dnsuser' value='".$web[config][dnsuser]."'></td></tr>
<tr><td>&raquo; DNS Password:</td>
<td><input type='text' name='dnspass' value='".$web[config][dnspass]."'></td></tr>

<tr><td colspan=10 align=center > <b>---------- [ Custome Options For Sign Up ] ----------</b> </td></tr>
";

for($i=1;$i<=4;$i++) {
eval("\$l=\$web[config][cus".$i."require];");
eval("\$s[".$i."][\$l]=\"checked\";");
eval("echo \"
<tr><td >&raquo; Custome ".$i.": </td>
<td><input type='text' name='cus".$i."' value='\".\$web[config][cus".$i."].\"' ></td></tr>
<tr><td >&raquo; Require ".$i.": </td>
<td><input type='radio' name='cus".$i."require' value='yes' \".\$s[".$i."][yes].\" > Yes 
<input type='radio' name='cus".$i."require' value='no' \".\$s[".$i."][no].\" > No
 </td></tr> \";");
 }
echo "
<tr>
<td></td>
<td>
<input type='submit' name='sssubmit' value='Update' >
</td>
</tr>
</form>
</table>
";
?>
Return current item: OpenDomains