pgupgrade.cgi 532 B

123456789101112131415161718192021222324252627
  1. #!/usr/local/cpanel/3rdparty/bin/perl
  2. #WHMADDON:better_postgres:PostgreSQL Upgrade:troglophant.png
  3. #ACLS:all
  4. package Troglodyne::CGI::PgUpgrade;
  5. # TODO move to lib/ and just symlink it into cgi? lol
  6. use strict;
  7. use warnings;
  8. use Cpanel::Template ();
  9. run() unless caller();
  10. sub run {
  11. print "Content-type: text/html\r\n\r\n";
  12. Cpanel::Template::process_template(
  13. 'whostmgr',
  14. {
  15. 'template_file' => 'troglodyne/pgupgrade.tmpl',
  16. 'print' => 1,
  17. }
  18. );
  19. exit;
  20. }
  21. 1;