Просмотр файла template/localbook.php

Размер файла: 675B
<?php
//-------------------------------------//
//------Mod by Energetik------//
//--http://energetik.h2m.ru--//
//-------------------------------------//

if (!defined("BASEDIR")){header("Location:../index.php");exit;}

$total = 0;
$new = 0;

if (file_exists(BASEDIR."local/book.dat")){

$file = file(BASEDIR."local/book.dat");
$total = count($file);

for ($i = 0; $i < $total; $i++){
$data = explode("|", $file[$i]);
if (date("d.m.y") == date("d.m.y", $data[3])){$new++;}}}

echo'('.($new > 0 ? (int)$total.'<font color="#FF0000">+'.(int)$new.'</font>': (int)$total).'/';
  
include_once BASEDIR."pages/bookchet.php";
echo')<br>';

unset($total, $new, $file, $data, $i);
?>