- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
$currN = 0;
$countN = count($news);
$currW = 0;
$countW = count($wall);
$time = time();
$date = date('Y-m-d H:i:s');
// Жестянка в сферическом ваккуме куба
foreach($lenta as $k => &$v)
{
while (($v['DZ'] <= $news[$currN]['DZ']))
{
while (($news[$currN]['DZ'] <= $wall[$currW]['DZ']) && ($currW < $countW))
{
$this->create_time($wall[$currW]['DZ'], $time, $date);
$this->display_wall($wall[$currW]);
++$currW;
}
$this->create_time($news[$currN]['DZ'], $time, $date);
$this->display_news($news[$currN]);
++$currN;
}
$this->create_time($v['DZ'], $time, $date);
$this->display_lenta($v, $usr);
}
while ($currN < $countN)
{
while (($news[$currN]['DZ'] <= $wall[$currW]['DZ']) && ($currW < $countW))
{
$this->create_time($wall[$currW]['DZ'], $time, $date);
$this->display_wall($wall[$currW]);
++$currW;
}
$this->create_time($news[$currN]['DZ'], $time, $date);
$this->display_news($news[$currN]);
++$currN;
}
while ($currW < $countW)
{
$this->create_time($wall[$currW]['DZ'], $time, $date);
$this->display_wall($wall[$currW]);
++$currW;
}