Esempio n. 1
0
     $user_id = $_POST['user_id'];
     $email = $_POST['email'];
     $secondary_email = $_POST['secondary_email'];
     $fname = $_POST['fname'];
     $lname = $_POST['lname'];
     $gender = $_POST['gender'];
     $location = $_POST['location'];
     $dob = $_POST['dob'];
     $age = $_POST['age'];
     $socialnetwork = $_POST['socialnetwork'];
     $socialnetworkid = $_POST['socialnetworkid'];
     $usertypeid = $_POST['usertypeid'];
     $status = $_POST['status'];
     $zipcode = $_POST['zipcode'];
     $uname = $_POST['uname'];
     editprofile($user_profile_msg, $user_location, $profile_image, $profile_bg_image, $profile_status_Ispublic, $updatedby, $mystory, $iscompleted, $user_id, $email, $secondary_email, $fname, $lname, $gender, $location, $dob, $age, $socialnetwork, $socialnetworkid, $usertypeid, $status, $zipcode, $uname);
     break;
 case "uploadvideoorimage_old":
     $response = $v->viddler_videos_prepareUpload(array('sessionid' => $viddler_session_id));
     $videostatus = $_POST['videostatus'];
     $id = $_POST['id'];
     $user_id = $_POST['user_id'];
     $caption = $_POST['caption'];
     $type = $_POST['type'];
     uploadvideoorimage_old($response, $videostatus, $id, $user_id, $caption, $type);
     break;
 case "uploadvideoorimage":
     $response = $v->viddler_videos_prepareUpload(array('sessionid' => $viddler_session_id));
     $id = $_POST['id'];
     $user_id = $_POST['user_id'];
     $type = $_POST['type'];
     editcomments();
     break;
 case 'deletecomment':
     deletecomment();
     break;
 case 'getvideocomments':
     getvideocomments();
     break;
 case 'changerating':
     changerating();
     break;
 case 'addpeoplenode':
     addpeoplenode();
     break;
 case 'editprofile':
     editprofile();
     break;
 case 'chPwd':
     chPwd();
     break;
 case 'addscraps':
     addscraps();
     break;
 case 'editscraps':
     editscraps();
     break;
 case 'getscraps':
     getscraps();
     break;
 case 'deletescrap':
     deletescrap();
Esempio n. 3
0
    $mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
    if (mysqli_connect_errno()) {
        errorpage("MYSQL DATABASE ERROR", mysqli_connect_error(), $charset, CMUM_TITLE, $_SERVER["REQUEST_URI"], CMUM_VERSION, CMUM_BUILD, CMUM_MOD);
        exit;
    }
    $sql = $mysqli->query("SELECT id,name,cspvalue,comment FROM profiles WHERE id='" . $mysqli->real_escape_string($_GET["pid"]) . "'");
    $ep_res = $sql->fetch_array();
    $ep_id = $ep_res["id"];
    $ep_name = $ep_res["name"];
    $ep_cspvalue = $ep_res["cspvalue"];
    $ep_comment = $ep_res["comment"];
    mysqli_close($mysqli);
    $notice = "\$('#modalEditProfile').modal({ show: true });";
}
if (isset($_POST["value"]) && $_POST["value"] == "beditprf") {
    $status = editprofile($_POST["pid"], $_POST["name"], $_POST["cspvalue"], $_POST["comment"]);
    if ($status == "0") {
        $notice = "toastr.success('Changes successfully saved');";
    } elseif ($status == "1") {
        $ep_id = $_POST["pid"];
        $ep_name = $_POST["name"];
        $ep_cspvalue = $_POST["cspvalue"];
        $ep_comment = $_POST["comment"];
        $notice = "toastr.error('You must enter a profile name'); \$('#modalEditProfile').modal({ show: true });";
    } elseif ($status == "2") {
        $ep_id = $_POST["pid"];
        $ep_name = $_POST["name"];
        $ep_cspvalue = $_POST["cspvalue"];
        $ep_comment = $_POST["comment"];
        $notice = "toastr.error('Profile already exists'); \$('#modalEditProfile').modal({ show: true });";
    }