示例#1
0
if ($_GET['religionSave']) {
    $relSaveData = cleanInput(trim($_GET['relSaveData']));
    $pProfile->setRquery("SELECT * FROM amistiPersonal WHERE userID=?", array($UID));
    $res = $pProfile->getRquery();
    if (count($res) > 0) {
        $pProfile->setRquery("UPDATE amistiPersonal SET pReligion=? WHERE userID=?", array($relSaveData, $UID));
        echo $pProfile->getReligion();
    } else {
        $id = autoID();
        $pProfile->setRquery("INSERT INTO amistiPersonal VALUES(?,?,?,?,?,?,?,?,?,?,?)", array($id, $UID, NULL, NULL, NULL, '', '', '', NULL, $relSaveData, ''));
        echo $pProfile->getReligion();
    }
}
//EDIT REIGION
if ($_GET['editReligion']) {
    echo $pProfile->editReligion();
}
//DELETE CHECK
if ($_GET['relDelCheck']) {
    echo 'You are about to delete your Religious view';
}
//DELETE NOW
if ($_GET['reliDelNow']) {
    if ($pProfile->setRquery("UPDATE amistiPersonal SET pReligion=? WHERE userID=?", array('', $UID))) {
        echo $pProfile->getReligion();
    }
}
//=========================== POLITICAL VIEWS ==================================
$regArray = array("Socialist", "Capitalist", "Communinist", "Marxist", "Democratic", "Liberal", "Social-Democrat", "Liberal-Socialist", "Liberal-Capitalist", "Progressive", "Conservative", "Conservative-Democrat");
//KEYUP ON RELVIEW TEXT INPUT
if ($_GET['poliView']) {