iputuhariyadi

pve-php-api

Apr 30th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2. require("pve2_api.class.php");
  3. $pve2 = new PVE2_API("192.168.169.1", "putu", "pam", "12345678");
  4. if ($pve2->login())
  5. {
  6. $pve2->setCookie();
  7. echo '<iframe src="https://192.168.169.1:8006/?console=kvm&novnc=1&vmid=100&node=pve" frameborder="0" scrolling="no" width="1024px" height="100%"></iframe>';
  8. }
  9. else
  10. {
  11. die("Login to Proxmox Host failed.\n");
  12. }
Add Comment
Please, Sign In to add comment