Example #1
0
    $ile = 36;
    $start = ($strona - 1) * $ile;
    $wykonaj = db_query($zapytanie) or die("Nie działa zapytanie" . $zapytanie);
    $ile_rek = db_num_rows($wykonaj);
    $podstron = ceil($ile_rek / $ile);
    $zapytanie .= " LIMIT {$start},{$ile}";
    $final = db_query($zapytanie) or die("Nie działa zapytanie końcowe");
    while ($rowe = db_fetch($final)) {
        if (!in_array($rowe['user_id'], $ou_id) and $_SESSION['user_id'] != $rowe['user_id'] and get_user_online($rowe['user_id']) >= 1) {
            $ouab = $ouab + 1;
            $ou_login[] = $rowe['user_login'];
            $ou_loginn[] = namen($rowe['user_login']);
            $ou_wiek[] = get_user_wiek($rowe['user_y']);
            $ou_img[] = $rowe['user_fotka'];
            $ou_id[] = $rowe['user_id'];
            $ou_woj[] = get_user_woj($rowe['user_woj']);
            $ou_miasto[] = $rowe['user_miasto'];
            $ou_plec[] = get_user_plec($rowe['user_plec']);
            $ou_plecnr[] = $rowe['user_plec'];
            $ou_online[] = "1";
            //$ou_id[]=$rowe['user_id'];
        }
    }
}
$smarty->assign("ou_login", $ou_login);
$smarty->assign("ou_loginn", $ou_loginn);
$smarty->assign("ou_wiek", $ou_wiek);
$smarty->assign("ou_img", $ou_img);
$smarty->assign("ou_id", $ou_id);
$smarty->assign("ou_woj", $ou_woj);
$smarty->assign("ou_miasto", $ou_miasto);
Example #2
0
    $ile = 36;
    $start = ($strona - 1) * $ile;
    $wykonaj = db_query($zapytanie) or die("Nie działa zapytanie" . $zapytanie);
    $ile_rek = db_num_rows($wykonaj);
    $podstron = ceil($ile_rek / $ile);
    $zapytanie .= " LIMIT {$start},{$ile}";
    $final = db_query($zapytanie) or die("Nie działa zapytanie końcowe");
    $a = 0;
    while ($row = db_fetch($final)) {
        if ($_SESSION['user_id'] != $row['user_id']) {
            $u_login[] = $row['user_login'];
            $u_loginn[] = namen($row['user_login']);
            $u_wiek[] = get_user_wiek($row['user_y']);
            $u_img[] = $row['user_fotka'];
            $u_id[] = $row['user_id'];
            $u_woj[] = get_user_woj($row['user_woj']);
            $u_miasto[] = $row['user_miasto'];
            $u_plec[] = get_user_plec($row['user_plec']);
            $u_plecnr[] = $row['user_plec'];
            $u_online[] = get_user_online($row['user_id']);
        }
    }
}
$smarty->assign("u_login", $u_login);
$smarty->assign("u_loginn", $u_loginn);
$smarty->assign("u_wiek", $u_wiek);
$smarty->assign("u_img", $u_img);
$smarty->assign("u_id", $u_id);
$smarty->assign("u_woj", $u_woj);
$smarty->assign("u_miasto", $u_miasto);
$smarty->assign("u_plec", $u_plec);
Example #3
0
 $smarty->assign("wiek", get_user_wiek($row['user_y']));
 $smarty->assign("d", $row['user_d']);
 $smarty->assign("m", $row['user_m']);
 $smarty->assign("y", $row['user_y']);
 $smarty->assign("profil_vip", $row['user_vip']);
 $smarty->assign("profil_plec", get_user_plec($row['user_plec']));
 $smarty->assign("user_plec", $row['user_plec']);
 $smarty->assign("profil_wzrost", $row['user_wzrost']);
 $smarty->assign("profil_kolor_oczu", $row['user_kolor_oczu']);
 $smarty->assign("profil_kolor_wlosu", $row['user_kolor_wlosu']);
 $smarty->assign("profil_budowa_ciala", get_dane($row['user_budowa_ciala'], $u_usr['lang'], $row['user_plec']));
 $smarty->assign("profil_pale", $row['user_pale']);
 $smarty->assign("profil_alkochol", $row['user_alkochol']);
 $smarty->assign("profil_miasto", $row['user_miasto']);
 $smarty->assign("profil_wojid", $row['user_woj']);
 $smarty->assign("profil_woj", get_user_woj($row['user_woj']));
 $smarty->assign("profil_dzieci", get_dane($row['user_dzieci'], $u_usr['lang'], $row['user_plec']));
 $smarty->assign("profil_stc", get_dane($row['user_stc'], $u_usr['lang'], $row['user_plec']));
 $smarty->assign("user_img", $row['user_fotka']);
 $smarty->assign("profil_img", $row['user_fotka']);
 $smarty->assign("profil_wyks", get_dane($row['user_wyks'], $u_usr['lang'], $row['user_plec']));
 $smarty->assign("profil_ile_znajomi", get_user_znajomi($row['user_id']));
 $smarty->assign("profil_ile_galeria", get_user_galeria($row['user_id']));
 $smarty->assign("profil_ile_filmy", get_user_filmy($row['user_id']));
 $smarty->assign("profil_ile_imprezy", get_user_imprezy($row['user_id']));
 $smarty->assign("profil_ile_prezenty", get_user_prezenty($row['user_id']));
 $smarty->assign("omnie", nl2br($row['user_omnie']));
 $smarty->assign("img", $row['user_fotka']);
 $smarty->assign("get_user_online", get_user_online($row['user_id']));
 $smarty->assign("profil_szukam", explode("|", $row['user_szukam']));
 $smarty->assign("profil_jestem", explode("|", $row['user_jestem']));