5 * @author Cristian NAVALICI
6 * @version 1.0 feb 2008
10 require_once("../globals.php");
11 require_once("$srcdir/acl.inc");
13 // Check authorization.
14 $thisauth = acl_check('admin', 'dbc');
15 if (!$thisauth) die("Not authorized.");
22 <link rel
=stylesheet href
='<?php echo $css_header ?>' type
='text/css'>
23 <LINK href
="<?php echo $css_dbc ?>" rel
="stylesheet" type
="text/css">
24 <title
>DBC Generation
</title
>
27 <body
<?php
echo $top_bg_line;?
>>
29 <form enctype
="multipart/form-data" action
="<?echo $_SERVER['PHP_SELF'] ?>" method
="POST">
30 <input type
="radio" name
="resim" value
="1" checked
="checked" />Simulation
<br
/>
31 <input type
="radio" name
="resim" value
="0" />Real <br
/>
33 <input type
="submit" value
="Generate the zip file" name
="submitfile" />
37 if ( $_POST['submitfile'] ) {
38 $option = (int)$_POST['resim'];
39 $archive = dbc_generatefile('all', $option);
40 echo 'The resulted archive file is <a href="'. DB_WORKINGLNK
. basename($archive) .'">' .$archive. '</a>' ;