Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
394 B

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. $NN = './data/'.md5(time()).'.db';
  3. $COM = "sqlite3 ./data/mysqlitedb.db '.clone {$NN}'";
  4. $JUJA = `$COM`;
  5. if( file_exists( $NN ) ){
  6. $FD = fopen( $NN , "r" );
  7. if( $FD ){
  8. header( 'Content-Type: application/vnd.sqlite3;' );
  9. while(!feof( $FD ) ){
  10. echo fread( $FD, 2048 );
  11. };
  12. fclose( $FD );
  13. };
  14. unlink( $NN );
  15. } else {
  16. echo "Error!";
  17. };
  18. ?>