Hola, para que sirve el 0 en este codigo? Especificamente aqui:
Código:
echo $i_am->GetFriends(0, $TEXT);
Aqui el codigo completo:
Código:
<?php
/*!
* QAScript v1.2.0
* http://ifsoft.com.ua
* [email protected]
*
* Copyright (C) 2012-2014 Demyanchuk Dmitriy (Russian Dimon)
*/
if (!isset($i_am))
{
$app->AddError(5,"friends");
header('Location: /');
}
if (!empty($_POST))
{
$page = (isset($_POST['page'])) ? ($_POST['page']) : 0;
$page = intval($page);
$i_am->GetFriends($page, $page);
exit;
}
$css_files = array("style.css");
$page_title = $TEXT['navi-friends'];
$page_id = "friends";
include_once("../html/common/header.inc.php");
?>
<body class="noface-theme">
<div id="back" class="modal-backdrop hide"></div>
<?php
include_once('../html/common/topbar.inc.php');
?>
<div id="page-outer">
<div class="wrapper-main">
<div class="left-sidebar">
<div class="usermenu">
<?php
include_once("../html/common/leftbar.inc.php");
?>
</div>
</div>
<div class="profile-wrapper noface">
<div class="page-header">
<?php
if ($app->mobiledetect)
{
?>
<a onClick="history.back(); return false;" href="/<?php echo $i_am->login; ?>"><?php echo $TEXT['btn-history-back']; ?></a>
<?php
}
else
{
echo $page_title;
}
?>
</div>
<div class="questions-content">
<?php
if ($i_am->GetFriendsCount() > 0)
{
echo $i_am->GetFriends(0, $TEXT);
}
else
{
?>
<div class="info-block">
<span ><?php echo $TEXT['favorites-no']; ?></span>
</div>
<?php
}
?>
</div>
</div>
<div class="small-footer">
<?php
include_once("../html/common/footer.inc.php");
?>
</div>
</div>
</div>
</body>
</html>