backup.php 685 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. require_once("util.php");
  3. require_once("NTK/NTK.php");
  4. ?>
  5. <html>
  6. <head>
  7. <title> Index </title>
  8. <?php
  9. echo getHead();
  10. ?>
  11. </head>
  12. <body>
  13. <?php
  14. $main_box = new NTKVBox("main_box", 0, 0, False);
  15. // Toolbar
  16. $page = "sync";
  17. $printfile = "";
  18. include("Modules/toolbar.php");
  19. // $handle = popen("C:\apache\htdocs\bin\backup.bat", "r");
  20. $handle = popen("sudo /var/www/ursprung/bin/backup.sh", "r");
  21. $read = fread($handle, 2096);
  22. pclose($handle);
  23. // main content
  24. $main_box->add(new NTKLabel("", "Datensicherung ".$read), 200, -1, "background-color: #dfe7f3;");
  25. $main_box->add($spacer, -1, -1, "background-color: #dfe7f3;");
  26. echo $main_box->getHtml();
  27. ?>
  28. </body>
  29. </html>