예제 #1
0
if ($_GET['politicsSave']) {
    $relSaveData = cleanInput(trim($_GET['poliSaveData']));
    $pProfile->setRquery("SELECT * FROM amistiPersonal WHERE userID=?", array($UID));
    $res = $pProfile->getRquery();
    if (count($res) > 0) {
        $pProfile->setRquery("UPDATE amistiPersonal SET pPolitics=? WHERE userID=?", array($relSaveData, $UID));
        echo $pProfile->getPolitics();
    } else {
        $id = autoID();
        $pProfile->setRquery("INSERT INTO amistiPersonal VALUES(?,?,?,?,?,?,?,?,?,?,?)", array($id, $UID, NULL, NULL, NULL, '', '', '', NULL, '', $relSaveData));
        echo $pProfile->getPolitics();
    }
}
//EDIT REIGION
if ($_GET['editPolitics']) {
    echo $pProfile->editPolitics();
}
//DELETE CHECK
if ($_GET['polilDelCheck']) {
    echo 'You are about to delete your Political view';
}
//DELETE NOW
if ($_GET['poliDelNow']) {
    if ($pProfile->setRquery("UPDATE amistiPersonal SET pPolitics=? WHERE userID=?", array('', $UID))) {
        echo $pProfile->getPolitics();
    }
}
//=======================LOCATION ADDRESS ========================================
//SHOW ADDRESS
if ($_GET['gAddressAdd']) {
    $pProfile->getUserAddress(true);