Odyssey
cuindex.prg
1 <?php
2  $monLibrary= dirname(__FILE__) . "/../library";
3  require_once("$monLibrary/cu_top.i");
4  require_once("$monLibrary/ck_hticket.i");
5 
6 
7  if (!CheckPerm($link, $Hu, basename($_SERVER['SCRIPT_NAME']), $_SERVER['REMOTE_ADDR'])) {
8  // ** Permissions failed
9  // ** redirect to new page
10  header("Location: /hcuadm/hcu_noperm.prg");
11  exit;
12  }
13 
14 $dms_ok=array('vc'=>'string','wc'=>'string','lb'=>'string','rowid'=>'string');
15 dms_import($dms_ok);
16 
17 $vc = isset($vc) ? trim($vc) : "";
18 $wc = isset($wc) ? trim($wc) : "";
19 $lb = isset($lb) ? trim($lb) : "";
20 
21 $vend_show = ("$vc" == "" ? "" : "&vc=$vc");
22 $www_show = ("$wc" == "" ? "" : "&wc=$wc");
23 $lb_show = ("$lb" == "" ? "" : "&lb=$lb");
24 $action = isset($action) ? trim($action) : "";
25 ?>
26 <html>
27  <head>
28  <title>HomeCU Credit Union Maintenance</title>
29  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
30  </head>
31  <frameset cols="220,*" frameborder="YES" border="1" framespacing="0" rows="*">
32  <frame name="menu" src="mcu_menu.prg?action=<?php echo $action; ?>&rowid=<?php echo $rowid; ?><?php echo "$vend_show$www_show$lb_show"; ?>">
33  <frame name="CONTENT" src="cuview.prg?user_name=<?php echo "$rowid$www_show" ?>">
34  </frameset>
35  <noframes>
36  <body bgcolor="#FFFFFF" text="#000000">
37  </body>
38  </noframes>
39 </html>
40