Пример #1
0
        $sql->execute();
    }
} else {
    $sql = $OP->dbh->prepare("SELECT id FROM users WHERE id!=:who ORDER BY id LIMIT 10");
    $sql->execute(array(":who" => $who));
}
if ($sql->rowCount() == 0) {
    if ($q == '') {
        $OP->ser("No Person Found !", "No Person was found.");
        exit;
    } else {
        $OP->ser("No Person Found !", "No Person was found with the name you searched for.");
        exit;
    }
}
$OR = new ORep();
while ($r = $sql->fetch()) {
    $id = $r['id'];
    $name = get("name", $id, false);
    $img = get("img", $id);
    $loc = get("ploc", $id);
    $live = get("live", $id);
    $obirth = str_replace("/", "-", get("birth", $id));
    $birth = date("Y-m-d H:i:s", strtotime($obirth));
    $foll = $OP->dbh->prepare("SELECT COUNT(uid) FROM conn WHERE fid=?");
    $foll->execute(array($id));
    $foll = $foll->fetchColumn();
    $rep = $OR->getRep($id);
    ?>
  <div class="blocks">
   <div class="blocks" style="padding:5px;margin:5px 0px;">
Пример #2
0
    $age = $json['birth'] != "" ? age($birthday) : $defaultVal;
    $gender = $json['gen'] == "" ? $defaultVal : $json['gen'];
    $mail = $json['mail'] == "" ? $defaultVal : $json['mail'];
    $address = $json['add'] == "" ? $defaultVal : $json['add'];
    $phone = $json['phone'] == "" ? $defaultVal : $json['phone'];
    $liveIn = $json['live'] == "" ? $defaultVal : $json['live'];
    $work = $json['work'] == "" ? $defaultVal : $json['work'];
    $loves = $json['lve'] == "" ? $defaultVal : $json['lve'];
    $facebook = $json['fb'] == "" ? $defaultVal : $json['fb'];
    $twitter = $json['tw'] == "" ? $defaultVal : $json['tw'];
    $gplus = $json['gplus'] == "" ? $defaultVal : $json['gplus'];
    $pinterest = $json['pin'] == "" ? $defaultVal : $json['pin'];
    $headerIMG = $json['header'] == "" ? HOST . "/cdn/img/headers/00.png" : $json['header'];
}
require_once "{$docRoot}/inc/class.rep.php";
$RP = new ORep();
$Rep = $RP->getRep($id);
// Reputation
?>
<!DOCTYPE html>
<html>
  <head>
    <?php 
$OP->head("", "ac,profile,time,home,gadget", "ac,home,profile,gadget");
?>
    <meta name="oid" value="<?php 
echo $id;
?>
"/>
    <meta name="type" value="profile"/>
  </head>