<?php
$xa = getenv('REMOTE_ADDR');
$badwords = array(";","'","\"","*","union","del","DEL","insert","update","=","drop","sele","$");

foreach($_POST as $value)
foreach($badwords as $word)
if(substr_count($value, $word) > 0)
die("Security Warning!<br />Forbidden simbols are included, please remove them and try again -> $xa");

//=============IP AND LOGIN SETTINGS OF SQL SERVER==============
                                                                      
// Enter the IP or DSN of the database server to connect to              
$dbhost = "127.0.0.1";                                                   
                                                                      
// Enter the username to connect to the db, default is sa                
$dbuser = "sa";                                                        
                                                                      
// Enter the password for your SQL Server                               
$dbpasswd = "123456";                                                  
                                                                      
// Host. IP If working remotely, usually 127.0.0.1 works                 
$host = "201.27.97.224";                                                     
                                                                      
//============END OF IP AND LOGIN SETTINGS OF SQL SERVER ========

//****************************************************DONT EDIT HERE*********************************************************

//=============== NOT EDITABLE AREA ====================
// DEFAULT SETTINGS DO NOT CHANGE
$popup="<A HREF=javascript:popitup('gallery/";
$popup2="')>";
$image="<img src=gallery/";
$image2=" WIDTH='160' BORDER='0' HEIGHT='120'>";
$alogin = $dbuser;
$apass = $dbpasswd;
$db = 'muonline';
$regsubmit = "regform.submit()";
$msconnect=mssql_connect("$host","$alogin","$apass");
$msdb=mssql_select_db("$db",$msconnect);
$ip = $host;
//========================END===========================



?>