Example #1
0
/*
*	Created by Kolerts
*/
if (!isset($_REQUEST['func'])) {
    echo "Error: bad request!";
    exit;
}
switch ($_REQUEST['func']) {
    case 'detail_xml':
        if (isset($_REQUEST['record'])) {
            $path = "custom/kXML/xml/{$_REQUEST['path']}/{$_REQUEST['record']}.xml";
            if (file_exists($path)) {
                echo "<b>Имя файла</b>: {$_REQUEST['record']}.xml";
                echo "<br/><b>Размер файла</b>: " . file_size($path);
                if (!$_REQUEST['custom_generate']) {
                    echo "<br/><b>Кол-во элементов</b>: " . count_elements("{$_REQUEST['path']}/{$_REQUEST['record']}");
                }
                echo "<br/><b>Дата изменения файла</b>: " . date("d/m/Y H:i:s.", filemtime($path));
            } else {
                echo "Error: can't access to file!";
            }
        } else {
            echo "Error: bad request!";
        }
        break;
    case 'delete_xml':
        include_once 'modules/kXML/add_functions.php';
        $_REQUEST['record'] = str_replace('.php', '', $_REQUEST['record']);
        $path = "custom/kXML/xml/{$_REQUEST['path']}/{$_REQUEST['record']}.xml";
        if (file_exists($path)) {
            if (unlink($path)) {
Example #2
0
    ?>
 
   <td class="integer"><?php 
    echo $line['landings_day'];
    ?>
</td>
   <td class="integer"><?php 
    echo $line['landings_night'];
    ?>
</td>
   <td class="integer"><?php 
    echo $line['instrument_approach'];
    ?>
</td>
   <td class="integer"><?php 
    echo count_elements($line['passengers']);
    ?>
</td>
   <td><?php 
    echo $line['remarks'];
    ?>
&nbsp;</td
  </tr>
<?php 
}
?>
   <tr class="totals">
    <td colspan="<?php 
echo $launch ? 10 : 6;
?>
">Page <?php