Exemple #1
0
<?php

$Username = $_POST['username'];
$Email = $_POST['email'];
$Password = $_POST['passwd'];
$Password = PbEncrypt($key, $Password);
$Info['access'] = $_POST['access'];
$Info['phone'] = $_POST['phone'];
$Info['address'] = $_POST['address'];
$Info['alias'] = $_POST['alias'];
$Info['personalinfo'] = $_POST['peronalinfo'];
$Info['firstname'] = $_POST['firstname'];
$Info['lastname'] = $_POST['lastname'];
$Info['company'] = $_POST['company'];
$Info['gender'] = $_POST['gender'];
$Info['days'] = $_POST['days'];
$Info['months'] = $_POST['months'];
$Info['years'] = $_POST['years'];
if ($Info['access'] == "") {
    $Info['access'] = "4";
}
$Info = serialize($Info);
$Other['website'] = $_POST['website'];
$Other['optin'] = $_POST['optin'];
$Other['newsletter'] = $_POST['newsletter'];
$Other = serialize($Other);
$query = "SELECT * FROM users WHERE email='{$Email}'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
if ($row['id'] == "") {
    $Ar = "0";
Exemple #2
0
     $Info['first_name'] = $_POST["first_name"];
     $Img = $_POST['img'];
     $Array["profilepic"]["img"] = $Img;
     $ImgArray = CwProfilePic($Array, $files, $Rand);
     $Info['img'] = $ImgArray["file"];
     if ($Info['first_name'] == "") {
         $Info['firstname'] = $SplitName['0'];
     }
     if ($Info['last_name'] == "") {
         $Info['lastname'] = $SplitName['1'];
     }
     $pword = $_POST["pword"];
     if ($pword['1'] == "" or $pword['2'] == "") {
     } else {
         if ($pword['1'] == $pword['2']) {
             $Password = PbEncrypt($key, $pword['1']);
         }
     }
     $Redirect = "My-Info";
 }
 if ($_POST["ref"] == "my-address") {
     $Info['address'] = $_POST["address"];
     $Info['home_phone'] = $_POST["home_phone"];
     $Info['mobile_phone'] = $_POST["mobile_phone"];
     $Info['notes'] = $_POST["notes"];
     $Info['company'] = $_POST["company"];
     $Redirect = "My-Address";
 }
 $Info = serialize($Info);
 if (isset($Info)) {
     $result = mysql_query("UPDATE users SET info='{$Info}' WHERE id='{$Id}'") or die(mysql_error());
Exemple #3
0
<?php

$Request['website'] = $Website_Url_Auth;
$Request['api'] = $Pblast_Api;
$Secured['type'] = "settings";
$Secured = PbEncrypt($Pblast_Secret, $Secured);
$Request['secured'] = $Secured;
$Request = OtarEncrypt($PB_Access, $Request);
#    $body ="?request=$Request";
#    $url = 'http://www.pblast.in/';
#    $ch = curl_init();
#    curl_setopt($ch, CURLOPT_URL, $url . $body);
#    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
#    curl_setopt($ch, CURLOPT_TIMEOUT, '3');
#    $content = trim(curl_exec($ch));
#    curl_close($ch);
#    $content = OtarDecrypt($key,$content);
$ColdWeb_Control = "0";