예제 #1
0
}
// DELETE LANGUAGE
if ($_GET['delLang']) {
    $langID = $_GET['langID'];
    $pProfile->setRquery("DELETE FROM amistiLanguage WHERE languageID=? AND userID=?", array($langID, $UID));
    $pProfile->setRquery("SELECT * FROM amistiLanguage WHERE userID=?", array($UID));
    $res = $pProfile->getRquery();
    if (count($res) > 0) {
        return 0;
    } else {
        $pProfile->getlanguage();
    }
}
//EDIT LANGUAGE
if ($_GET['editLang']) {
    $pProfile->editlanguge();
}
//DONE CLICK
if ($_GET['doneLang']) {
    $pProfile->getlanguage();
}
//======================================= RELIGIOUS VIEWS =================================//
$regArray = array("Christian", "Muslim", "Athiest", "Universalist", "Witchcraft", "Zoroast", "Agnostic", "Ancestor worship", "Buddhist", "Hare Krishna", "Salvation Army", "New Age", "Yoga", "Satanism", "Hindu", "Pagan", "Scientologist", "Rastafarian");
//KEYUP ON RELVIEW TEXT INPUT
if ($_GET['relView']) {
    $relData = trim($_GET['relData']);
    for ($x = 0; $x < count($regArray); $x++) {
        if (startsWith($regArray[$x], $relData)) {
            ?>
		 <li class="regPAutoPick"> <?php 
            echo $regArray[$x];