Parašė Lordcraft· 2007 Bal. 20 20:04:45
#3
<?php
require_once("sms_config.php");
if (file_exists($file_name)) $sms_array = GetFromFile($file_name);
$sms_count = count($sms_array);
echo $intro_text; //išvedame intro tekstą
if ($sms_count > 0) echo '<table boder=0 cellpadding="2" cellspacing="0" width="100%">'; //lenteles pradzia
for($c=$sms_count;$c>=($sms_count - $sms_to_save);$c--) {
echo '<tr><td><b>'.$sms_array[$c].'</b></td></tr>'; //rodome skelbimus
}
if ($sms_count > 0) echo "</table>"; //lenteles pabaiga
?>
ten yra isviso 4 failai:
sms_config, sms_show, sms_get, sms_log