Odyssey
TrustedVendorByCu.prg
1 
2 <?php
3  /*
4  * Purpose: Simple report to show what T.V.'s are used by which CU's.
5  */
6 $monLibrary= dirname(__FILE__) . "/../library";
7 require_once("$monLibrary/cu_top.i");
8 require_once("$monLibrary/ck_hticket.i");
9 require_once("$sharedLibrary/cu_func.i");
10 require_once("$monLibrary/monitorView.i");
11 require_once("$monLibrary/VendorByCu.i");
12 
13 if (!CheckPerm($link, $Hu, basename($_SERVER['SCRIPT_NAME']), $_SERVER['REMOTE_ADDR'])) {
14  // ** Permissions failed
15  // ** redirect to new page
16  header("Location: /hcuadm/hcu_noperm.prg");
17  exit;
18 }
19 
20 try {
21  // IF RUNNING LOCALLY get your my.homecu.net homecu_dev_oauth2_proxy cookie
22  // and drop the value in here; uncomment line 36 below. Otherwise all
23  // the homecu.net CU's will have no trusted vendors.
24  //$dev_cookie = 'YmlsbEBob21lY3UuY29tfEE0OWdpblRneGJLcjFDWXNVMDdGZy9ucldad01BVTBlUnMzd2xrbWl3YnBSTnN2aXZPSVlnRHJjWEVFenFWMHlFWUZVa0ExZTI4ZUFqTUVyaFVoeUtldjhkQWpqSzhURUhUYU9NZWttd3dVMzJ1RGQ4SnNuMnpIVnpEaG5NUWJRaUNVQ0NIMXB5MElGYlI3dld2cHZ1bmhoUVpGWll6SGpTdFc2S2pRSVBZa3lHKzJpY2ttTHNtdHE1WGhUMjFRY1hsN3NWSUdBUmc9PXwxNTcyOTcxOTY5fE1nUFo2YzhPa2lTd3Q4MWFWblFmN3V1ZnhFTzBDWHVoZC81MzBiQ3BoaTh2Z0FUZFU4Wk1KdERzYTcrSHVuTXVLZ2tVdWNZSFQvZ3lpL0dObzdaaWgwUHhxWGxGRXpYa2RGMDZNT3JDckhpbGMvWWpBWVF3SG9ZTXpWc0JiTjBjdmpSSkp6VldEdExxNW9VYTVDQlFrL3BvUDljRjRCcz0=|1572968369|d0ltjAEh1Jr8t7TIXIRrb8r2oqo=';
25  $obj = new VendorByCu();
26 
27  if (! $obj->IsDownload()) {
28  printMonitorPageTop("Trusted Vendor Report By CU", $homecuKendoVersion, $cloudfrontDomainName);
29  printMonitorPageMiddle("Trusted Vendor Report By CU");
30  }
31 
32  echo $obj
33  ->set('dbh', $dbh)
34  ->set('SYS_TYPE_UPG_TEST', $SYS_TYPE_UPG_TEST)
35  ->set('SYS_TYPE_CLOSED', $SYS_TYPE_CLOSED)
36  //->set('dev_oauth', $dev_cookie)
37  ->VendorByCuReport();
38 
39  if (! $obj->IsDownload()) {
40  printMonitorPageBottom();
41  }
42 
43 } catch (Exception $e) {
44  echo "Exception outputting vendor report: {$e->getMessage()}";
45 }