Thread: NUCLEAR WAR
View Single Post
Old 12-12-2005, 09:09 PM  
2HousePlague
CURATOR
 
Join Date: Jul 2004
Location: the attic
Posts: 14,572
It makes sense.

PHP Code:
<?PHP
    $err
=0;
    
$FormDict $HTTP_GET_VARS;
    if (
$HTTP_POST_VARS['_wss']) {
        
$FormDict $HTTP_POST_VARS;
    }
    
$errUrl 'errorPit/signerror.html';
    
$thanksUrl 'putPix.php';
        if (
$FormDict['_wss']) {
        
mysql_pconnect("localhost""root","passwordgoeshere");
        
mysql_select_db("nuke");
        
$stmt "insert into artist_contract_info
(plaversion,email,bandurl,state,plaagree,goldplatflag,city,pwd2,addresssecon
d,bandbio,contactfirstname,shoppingurl,zip,genre,pwd1,country,taxid,contactl
astname,bandname,addressfirst) values ("
;
        
$fields 
array(
"pla","email","band_url","state","pla_agree","gold_record","city","pas
sword_2"
,"address2","band_bio","first_name","ecommerce_url","zip_code","genr
e"
,"password_1","country","tax_id","last_name","band_name","address1");
        
$checks 
array(
"r:-:2:","r:-:2:","-:-:2:","r:-:2:","r:-:1:","-:-:1:","r:-:2:","r:-:2:
"
,"-:-:2:","-:-:2:","r:-:2:","-:-:2:","r:-:2:","r:-:0:","r:-:2:","r:-:2:","r
:-:2:"
,"r:-:2:","r:-:2:","r:-:2:");
        
$mid mysql_insert_id();
        
setcookie ("downslamArtist""$mid");
        for(
$i=0$i 20$i++) {
            
$val $FormDict[$fields[$i]];
            
$c preg_split("/:/"$checks[$i]);
            if ((
strcmp($c[0], 'r'hahahaha 0) && !$val$err++;
            if (
strcmp($c[1], 'l'hahahaha 0$val strtolower($val);
            if (
strcmp($c[1], 'u'hahahaha 0$val strtoupper($val);
            if (
$c[2] && strlen($val) < $c[2]) $err++;
            if (
$c[3] && !$c[3]($val)) $err++;
            if (
$i 0$stmt .= ',';
            
$stmt .= "'" AddSlashes($val) . "'";
        }
        
$stmt .= ')';
        if (!
mysql_query($stmt))
            
$err++;
        if (
$err
            
$thanksUrl $errUrl;
        
header("Location: $thanksUrl");
        exit;
    }
?>
__________________
tada!
2HousePlague is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote