2 $monLibrary= dirname(__FILE__) .
"/../library";
3 require_once(
"$monLibrary/cu_top.i");
4 require_once(
"$monLibrary/ck_hticket.i");
23 $file_list[] = array(
"script"=>
"alertfrag.html",
"call_from"=>
"Alerts",
"desc"=>
"Alerts Terms of Use",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
24 $file_list[] = array(
"script"=>
"nobillpayfrag.html",
"call_from"=>
"Scout",
"desc"=>
"Bill Pay ID not Found",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
25 $file_list[] = array(
"script"=>
"agreefrag.html",
"call_from"=>
"Agree",
"desc"=>
"E-Statement START",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
26 $file_list[] = array(
"script"=>
"unagreefrag.html",
"call_from"=>
"Agree",
"desc"=>
"E-Statement STOP",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
27 $file_list[] = array(
"script"=>
"noestmntfrag.html",
"call_from"=>
"EStatement",
"desc"=>
"E-Statement Flag Not Set",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
28 $file_list[] = array(
"script"=>
"EStatement.html",
"call_from"=>
"Tellme",
"desc"=>
"E-Statement Message",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
29 $file_list[] = array(
"script"=>
"disclosure.html",
"call_from"=>
"Home Page",
"desc"=>
"Home Banking Terms (BATCH)",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
30 $file_list[] = array(
"script"=>
"signupfrm.html",
"call_from"=>
"Home Page",
"desc"=>
"Home Banking Signup Form",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
31 $file_list[] = array(
"script"=>
"onlinereply.html",
"call_from"=>
"Home Page",
"desc"=>
"Home Banking Signup Reply",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
32 $file_list[] = array(
"script"=>
"ipayenrollfrag.html",
"call_from"=>
"Astro",
"desc"=>
"iPay SSO Auto-Enroll Message",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
33 $file_list[] = array(
"script"=>
"LoginNotice.html",
"call_from"=>
"cu_login",
"desc"=>
"Login NCUA Notice",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
34 $file_list[] = array(
"script"=>
"Promo.html",
"call_from"=>
"Promo",
"desc"=>
"Login Promo Page",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
35 $file_list[] = array(
"script"=>
"NDTPromo.html",
"call_from"=>
"Promo",
"desc"=>
"CU-Dismissable Login Promo Page",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
36 $file_list[] = array(
"script"=>
"memsettingsfrag.html",
"call_from"=>
"MemberSettings",
"desc"=>
"Member Settings (BATCH)",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
37 $file_list[] = array(
"script"=>
"addchangefrm.html",
"call_from"=>
"Home Page",
"desc"=>
"Member Address Change Form",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
38 $file_list[] = array(
"script"=>
"addchangefrm2.html",
"call_from"=>
"Home Page",
"desc"=>
"Member Address Change Secure Form output",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
39 $file_list[] = array(
"script"=>
"thanks_ac.html",
"call_from"=>
"Home Page",
"desc"=>
"Member Address Change Thanks page",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
40 $file_list[] = array(
"script"=>
"MemberActfrag.html",
"call_from"=>
"ActivateMember",
"desc"=>
"Member Auto-Activate authentication form",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
41 $file_list[] = array(
"script"=>
"MemberActThxfrag.html",
"call_from"=>
"ActivateMember",
"desc"=>
"Member Auto-Activate Display new Password",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
42 $file_list[] = array(
"script"=>
"unlockfrag.html",
"call_from"=>
"UnlockMember",
"desc"=>
"Member Password Reset",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
43 $file_list[] = array(
"script"=>
"lmenu.html",
"call_from"=>
"Mobile Banking",
"desc"=>
"Mobile Banking Embedded Menu",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
44 $file_list[] = array(
"script"=>
"onldepositdisclosure.html",
"call_from"=>
"OnLineDeposit",
"desc"=>
"On-Line Deposit Terms of Use",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
45 $file_list[] = array(
"script"=>
"onldepositaddr.html",
"call_from"=>
"OnLineDeposit",
"desc"=>
"On-Line Deposit Deposit Address",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
46 $file_list[] = array(
"script"=>
"lnappCuPortal.html",
"call_from"=>
"AppMain",
"desc"=>
"On-Line Loan App Portal Menu",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
47 $file_list[] = array(
"script"=>
"pwdRules.html",
"call_from"=>
"MemberSettings_MemberSetCfg",
"desc"=>
"Password selection hints",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
50 $file_list[] = array(
"script"=>
"repeattxfrag.html",
"call_from"=>
"RecurTx",
"desc"=>
"Repeating Transfers Terms of Use",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
51 $file_list[] = array(
"script"=>
"noRDCfrag.html",
"call_from"=>
"RemoteDep",
"desc"=>
"Remote Deposit Capture Terms of Use / Enroll Request",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
52 $file_list[] = array(
"script"=>
"sms_agree.html",
"call_from"=>
"Cellsms",
"desc"=>
"SMS Terms of Use",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
53 $file_list[] = array(
"script"=>
"sms_helpfrag.html",
"call_from"=>
"Cellsms",
"desc"=>
"SMS User Help Fragment",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
54 $file_list[] = array(
"script"=>
"Stopformfrag.html",
"call_from"=>
"Stopform",
"desc"=>
"Stop Payment terms",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
55 $file_list[] = array(
"script"=>
"TxnDownloadHelp.html",
"call_from"=>
"Tellme",
"desc"=>
"Transaction Download Help",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
56 # $file_list[] = array("script"=>"WebConnect.html", "call_from"=>"Tellme", "desc"=>"Transaction Download Quicken Help", "odd"=>"#eeeeee", "even"=>"#dddddd", "perm"=>0644); 57 # $file_list[] = array("script"=>"IntuitDownload.html", "call_from"=>"Tellme", "desc"=>"Transaction Download Intuit Message", "odd"=>"#eeeeee", "even"=>"#dddddd", "perm"=>0644); 58 $file_list[] = array(
"script"=>
"Transfer.html",
"call_from"=>
"Tellme",
"desc"=>
"Transfer Message",
"odd"=>
"#eeeeee",
"even"=>
"#dddddd",
"perm"=>0644);
59 $file_list[] = array(
"script"=>
"appconfig.xml",
"call_from"=>
"OFXRequest",
"desc"=>
"App Config file for mobile devices",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
60 $file_list[] = array(
"script"=>
"mblnav.html",
"call_from"=>
"",
"desc"=>
"MBL Navigation Menu",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
61 $file_list[] = array(
"script"=>
"mblnav_test.html",
"call_from"=>
"",
"desc"=>
"MBL Navigation Menu TEST",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
62 $file_list[] = array(
"script"=>
"mblfooter.html",
"call_from"=>
"",
"desc"=>
"MBL Footer Content",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
63 $file_list[] = array(
"script"=>
"mblEStatement.html",
"call_from"=>
"Tellme",
"desc"=>
"MBL E-Statement Message",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
64 $file_list[] = array(
"script"=>
"mblLoginNotice.html",
"call_from"=>
"cu_login",
"desc"=>
"MBL Login NCUA Notice",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
65 $file_list[] = array(
"script"=>
"mblPromo.html",
"call_from"=>
"Promo",
"desc"=>
"MBL Login Promo Page",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
66 $file_list[] = array(
"script"=>
"mblNDTPromo.html",
"call_from"=>
"Promo",
"desc"=>
"MBL CU-Dismissable Login Promo Page",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
67 $file_list[] = array(
"script"=>
"mblpwdRules.html",
"call_from"=>
"MemberSettings_MemberSetCfg",
"desc"=>
"MBL Password selection hints",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
68 $file_list[] = array(
"script"=>
"mblTxnDownloadHelp.html",
"call_from"=>
"Tellme",
"desc"=>
"MBL Transaction Download Help",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
69 $file_list[] = array(
"script"=>
"mblTransfer.html",
"call_from"=>
"Tellme",
"desc"=>
"MBL Transfer Message",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
70 $file_list[] = array(
"script"=>
"mblnobillpayfrag.html",
"call_from"=>
"paybills",
"desc"=>
"Bill Pay ID not Found",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
71 $file_list[] = array(
"script"=>
"alertfrag_es.html",
"call_from"=>
"Alerts",
"desc"=>
"(Spanish) Alerts Terms of Use",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
72 $file_list[] = array(
"script"=>
"agreefrag_es.html",
"call_from"=>
"Agree",
"desc"=>
"(Spanish) E-Statement START",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
73 $file_list[] = array(
"script"=>
"unagreefrag_es.html",
"call_from"=>
"Agree",
"desc"=>
"(Spanish)E-Statement STOP",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
74 $file_list[] = array(
"script"=>
"noestmntfrag_es.html",
"call_from"=>
"EStatement",
"desc"=>
"(Spanish) E-Statement Flag Not Set",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
75 $file_list[] = array(
"script"=>
"EStatement_es.html",
"call_from"=>
"Tellme",
"desc"=>
"(Spanish) E-Statement Message",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
76 $file_list[] = array(
"script"=>
"mmenu_es.html",
"call_from"=>
"Home Page",
"desc"=>
"(Spanish) Home Banking Menu",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
77 $file_list[] = array(
"script"=>
"mindex_es.html",
"call_from"=>
"Home Page",
"desc"=>
"(Spanish) Home Banking mindex_es.html",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
78 $file_list[] = array(
"script"=>
"disclosure_es.html",
"call_from"=>
"Home Page",
"desc"=>
"(Spanish) Home Banking Terms (BATCH)",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
79 $file_list[] = array(
"script"=>
"signupfrm_es.html",
"call_from"=>
"Home Page",
"desc"=>
"(Spanish) Home Banking Signup Form",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
80 $file_list[] = array(
"script"=>
"onlinereply_es.html",
"call_from"=>
"Home Page",
"desc"=>
"(Spanish) Home Banking Signup Reply",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
81 $file_list[] = array(
"script"=>
"LoginNotice_es.html",
"call_from"=>
"cu_login",
"desc"=>
"(Spanish) Login NCUA Notice",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
82 $file_list[] = array(
"script"=>
"Promo_es.html",
"call_from"=>
"Promo",
"desc"=>
"(Spanish) Login Promo Page",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
83 $file_list[] = array(
"script"=>
"NDTPromo_es.html",
"call_from"=>
"Promo",
"desc"=>
"(Spanish) CU-Dismissable Login Promo Page",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
84 $file_list[] = array(
"script"=>
"memsettingsfrag_es.html",
"call_from"=>
"MemberSettings",
"desc"=>
"(Spanish) Member Settings (BATCH)",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
85 $file_list[] = array(
"script"=>
"addchangefrm_es.html",
"call_from"=>
"Home Page",
"desc"=>
"(Spanish) Member Address Change Form (uses English output)",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
86 $file_list[] = array(
"script"=>
"thanks_ac_es.html",
"call_from"=>
"Home Page",
"desc"=>
"(Spanish) Member Address Change Thanks page",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
87 $file_list[] = array(
"script"=>
"MemberActfrag_es.html",
"call_from"=>
"ActivateMember",
"desc"=>
"(Spanish) Member Auto-Activate authentication form",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
88 $file_list[] = array(
"script"=>
"MemberActThxfrag_es.html",
"call_from"=>
"ActivateMember",
"desc"=>
"(Spanish) Member Auto-Activate Display new Password",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
89 $file_list[] = array(
"script"=>
"unlockfrag_es.html",
"call_from"=>
"UnlockMember",
"desc"=>
"(Spanish) Member Password Reset",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
90 $file_list[] = array(
"script"=>
"lmenu_es.html",
"call_from"=>
"Mobile Banking",
"desc"=>
"(Spanish) Mobile Banking Embedded Menu",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
91 $file_list[] = array(
"script"=>
"pwdRules_es.html",
"call_from"=>
"MemberSettings_MemberSetCfg",
"desc"=>
"(Spanish) Password selection hints",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
92 $file_list[] = array(
"script"=>
"repeattxfrag_es.html",
"call_from"=>
"RecurTx",
"desc"=>
"(Spanish) Repeating Transfers Terms of Use",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
93 $file_list[] = array(
"script"=>
"sms_agree_es.html",
"call_from"=>
"Cellsms",
"desc"=>
"(Spanish) SMS Terms of Use",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
94 $file_list[] = array(
"script"=>
"sms_helpfrag_es.html",
"call_from"=>
"Cellsms",
"desc"=>
"(Spanish) SMS User Help Fragment",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
95 $file_list[] = array(
"script"=>
"TxnDownloadHelp_es.html",
"call_from"=>
"Tellme",
"desc"=>
"(Spanish) Transaction Download Help",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
96 $file_list[] = array(
"script"=>
"Transfer_es.html",
"call_from"=>
"Tellme",
"desc"=>
"(Spanish) Transfer Message",
"odd"=>
"#d7e1cc",
"even"=>
"#f0f0e2",
"perm"=>0644);
97 $file_list[] = array(
"script"=>
"mblnav_es.html",
"call_from"=>
"",
"desc"=>
"(Spanish) MBL Navigation Menu",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
98 $file_list[] = array(
"script"=>
"mblnav_es_test.html",
"call_from"=>
"",
"desc"=>
"(Spanish) MBL Navigation Menu TEST",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
99 $file_list[] = array(
"script"=>
"mblfooter_es.html",
"call_from"=>
"",
"desc"=>
"(Spanish) MBL Footer Content",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
100 $file_list[] = array(
"script"=>
"mblEStatement_es.html",
"call_from"=>
"Tellme",
"desc"=>
"(Spanish) MBL E-Statement Message",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
101 $file_list[] = array(
"script"=>
"mblLoginNotice_es.html",
"call_from"=>
"cu_login",
"desc"=>
"(Spanish) MBL Login NCUA Notice",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
102 $file_list[] = array(
"script"=>
"mblPromo_es.html",
"call_from"=>
"Promo",
"desc"=>
"(Spanish) MBL Login Promo Page",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
103 $file_list[] = array(
"script"=>
"mblNDTPromo_es.html",
"call_from"=>
"Promo",
"desc"=>
"(Spanish) MBL CU-Dismissable Login Promo Page",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
104 $file_list[] = array(
"script"=>
"mblpwdRules_es.html",
"call_from"=>
"MemberSettings_MemberSetCfg",
"desc"=>
"(Spanish) MBL Password selection hints",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
105 $file_list[] = array(
"script"=>
"mblTxnDownloadHelp_es.html",
"call_from"=>
"Tellme",
"desc"=>
"(Spanish) MBL Transaction Download Help",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
106 $file_list[] = array(
"script"=>
"mblTransfer_es.html",
"call_from"=>
"Tellme",
"desc"=>
"(Spanish) MBL Transfer Message",
"odd"=>
"#d5dfe8",
"even"=>
"#dfe3e7",
"perm"=>0644);
108 if (!CheckPerm($link, $Hu, basename($_SERVER[
'SCRIPT_NAME']), $_SERVER[
'REMOTE_ADDR'])) {
111 header(
"Location: /hcuadm/hcu_noperm.prg");
115 $dms_ok=array(
'user_name'=>
'string',
'cu_name'=>
'string',
'act'=>
'string',
'f'=>
'string',
'cu_mxcu'=>
'string',
'script_doc'=>
'string');
119 $self = $_SERVER[
'SCRIPT_NAME'] .
"?user_name={$user_name}&cu_name=" . urlencode($cu_name);
123 where user_name = '{$user_name}'";
124 $result = db_query($query, $link);
126 $cuinfo_row = db_fetch_object($result);
127 $num_rows = db_num_rows($result);
131 $user_name = trim($cuinfo_row->user_name);
132 $cu_name = trim($cu_name);
133 $cu_mxcu = trim($cuinfo_row->mxcu);
134 $hcu_dir = ($cuinfo_row->livebatch ==
'L' ?
'hculive7' :
'hcubin7');
135 switch (strtoupper($act)):
139 $file_key = search_files($f, $file_list);
140 echo
"<table align=center width=\"70%\" border=0 cellpadding=0 cellspacing=1 class=\"dmsbg\"><tr><td>";
141 if ($file_key != -1) {
142 $file_info = $file_list[$file_key];
144 <form action=
"$self&act=New" method=
"post">
145 <input type=
"hidden" name=
"f" value=
"{$f}">
146 <input type=
"hidden" name=
"user_name" value=
"$user_name">
147 <input type=
"hidden" name=
"cu_name" value=
"$cu_name">
148 <input type=
"hidden" name=
"cu_mxcu" value=
"$cu_mxcu">
149 <input type=
"hidden" name=
"hcu_dir" value=
"$hcu_dir">
150 <table width=
"100%" border=0 cellpadding=0 cellspacing=1>
152 <td
class=
"bar" align=
"center">
153 Fragment Confirmation
158 This will create the fragment
'{$file_info['script
']}'<br>
159 this is used
for {$file_info[
'desc']}.<br><br>
160 Are you sure
this is what you want to
do?
165 <input type=
"submit" name=
"btnSub" value=
"Create this">
166 <input type=
"button" name=
"btnCan" value=
"I changed my mind" onclick=
"document.location='$self'">
173 <table border=0 cellpadding=0 cellspacing=0 width="100%"> 176 An incorrect selection was made, please go back to the <a href="' . $self .
'">menu</a><br> 183 echo
"</td></tr></table></form>";
189 $file_key = search_files($f, $file_list);
190 echo
"<table align=center width=\"70%\" border=0 cellpadding=0 cellspacing=1 class=\"dmsbg\"><tr><td>";
191 if ($file_key != -1) {
192 $file_info = $file_list[$file_key];
194 <form action=
"$self&act=CreateScript" method=
"post">
195 <input type=
"hidden" name=
"f" value=
"{$f}">
196 <input type=
"hidden" name=
"user_name" value=
"$user_name">
197 <input type=
"hidden" name=
"cu_name" value=
"$cu_name">
198 <input type=
"hidden" name=
"cu_mxcu" value=
"$cu_mxcu">
199 <input type=
"hidden" name=
"hcu_dir" value=
"$hcu_dir">
200 <table width=
"100%" border=0 cellpadding=0 cellspacing=1>
202 <td
class=
"bar" align=
"center">
203 Refresh Fragment Confirmation
208 This will overwrite the existing fragment
'{$file_info['script
']}'<br>
209 that is used
for {$file_info[
'desc']}.<br><br>
210 Are you sure
this is what you want to
do?
215 <input type=
"submit" name=
"btnSub" value=
"Overwrite file">
216 <input type=
"button" name=
"btnCan" value=
"I changed my mind" onclick=
"document.location='$self'">
223 <table border=0 cellpadding=0 cellspacing=0 width="100%"> 226 An incorrect selection was made, please go back to the <a href="' . $self .
'">menu</a><br> 233 echo
"</td></tr></table></form>";
239 $file_key = search_files($f, $file_list);
240 echo
"<table align=center width=\"70%\" border=0 cellpadding=0 cellspacing=1 class=\"dmsbg\"><tr><td>";
241 if ($file_key != -1) {
242 $file_info = $file_list[$file_key];
243 $skel_file =
"skel_" . $file_info[
'script'];
246 $infourl = str_replace(
"//",
"//nobody:no1home@",$infourl);
249 if ($fp = fopen(
"$infourl/hcuadm/$skel_file",
"r")) {
251 $contents .= fread($fp, 1024);
257 $contents = str_replace(
"CULOGIN", $user_name, $contents);
258 $contents = str_replace(
"CUNAME", $cu_name, $contents);
259 $contents = str_replace(
"CUSERVER", $home_host, $contents);
260 $contents = str_replace(
"CUMXCU",
"$cu_mxcu", $contents);
261 $contents = str_replace(
"DBPREFIX", strtoupper(
"$user_name"), $contents);
262 $contents = str_replace(
"HCUDIR", $hcu_dir, $contents);
264 $save_as =
"/home/$user_name/public_html/{$file_info['script']}";
268 if (file_exists($save_as))
269 chmod($save_as, 0666);
273 if ($save_fp = fopen($save_as,
"w")) {
274 if (fwrite($save_fp, $contents)) {
279 chmod($save_as, 0444);
283 <table width=
"100%" border=0 cellpadding=0 cellspacing=1>
285 <td
class=
"bar" align=
"center">
286 Fragment Script Confirmation
292 if ($file_save ==
true) {
294 The script {$file_info[
'script']} was saved <b>successfully</b>.<br><br>
295 <font color=
'red'>NOTE:For some scripts you may need to edit to the credit unions liking.<br></font>
296 To
do this choose the edit option from the <a href=
"$self">menu</a>
301 An error occurred, the script was NOT saved successfully.<br>
302 Please
try again, before screaming.
312 <table border=0 cellpadding=0 cellspacing=0 width="100%"> 315 An incorrect selection was made, please go back to the <a href="' . $self .
'">menu</a><br> 322 echo
"</td></tr></table>";
328 $file_key = search_files($f, $file_list);
329 echo
"<table align=center width=\"70%\" border=0 cellpadding=0 cellspacing=1 class=\"dmsbg\"><tr><td>";
330 if ($file_key != -1) {
331 $file_info = $file_list[$file_key];
333 <form action=
"$self&act=FileDelete" method=
"post">
334 <input type=
"hidden" name=
"f" value=
"{$f}">
335 <input type=
"hidden" name=
"user_name" value=
"$user_name">
336 <input type=
"hidden" name=
"cu_name" value=
"$cu_name">
337 <input type=
"hidden" name=
"cu_mxcu" value=
"$cu_mxcu">
338 <input type=
"hidden" name=
"hcu_dir" value=
"$hcu_dir">
339 <table width=
"100%" border=0 cellpadding=0 cellspacing=1>
341 <td
class=
"bar" align=
"center">
342 Delete Fragment Confirmation
347 This will
delete the existing fragment
'{$file_info['script
']}'<br>
348 that is used
for {$file_info[
'desc']}.<br><br>
349 Are you sure
this is what you want to
do?
354 <input type=
"submit" name=
"btnSub" value=
"Please Delete">
355 <input type=
"button" name=
"btnCan" value=
"I changed my mind" onclick=
"document.location='$self'">
362 <table border=0 cellpadding=0 cellspacing=0 width="100%"> 365 An incorrect selection was made, please go back to the <a href="' . $self .
'">menu</a><br> 372 echo
"</td></tr></table></form>";
378 $file_key = search_files($f, $file_list);
379 echo
"<table align=center width=\"70%\" border=0 cellpadding=0 cellspacing=1 class=\"dmsbg\"><tr><td>";
380 if ($file_key != -1) {
381 $file_info = $file_list[$file_key];
382 $skel_file =
"skel_" . $file_info[
'script'];
384 $delete =
"/home/$user_name/public_html/{$file_info['script']}";
388 if (file_exists($delete)) {
389 if (unlink($delete)) {
395 <table width=
"100%" border=0 cellpadding=0 cellspacing=1>
397 <td
class=
"bar" align=
"center">
398 Delete Fragment Script
404 if ($file_del ==
true) {
406 The script {$file_info[
'script']} was deleted <b>successfully</b>.<br><br>
411 An error occurred, the script was NOT deleted successfully.<br>
412 Please
try again, before screaming.
422 <table border=0 cellpadding=0 cellspacing=0 width="100%"> 425 An incorrect selection was made, please go back to the <a href="' . $self .
'">menu</a><br> 431 echo
"</td></tr></table>";
435 $file_key = search_files($f, $file_list);
437 if ($file_key != -1) {
438 $file_info = $file_list[$file_key];
440 $cu_file =
"/home/$user_name/public_html/{$file_info['script']}";
441 $file_opened =
false;
442 if (file_exists($cu_file)) {
450 <table align=center border=0 cellpadding=0 cellspacing=0 width="60%" class="dmsbg"><tr><td> 451 <table border=0 cellpadding=0 cellspacing=0 width="100%"> 454 An incorrect selection was made, please go back to the <a href="' . $self .
'">menu</a><br> 466 if (strtoupper($act) ==
"NEW") {
468 $file_key = search_files($f, $file_list);
471 $file_key = search_files($f, $file_list);
474 if ($file_key != -1) {
475 $file_info = $file_list[$file_key];
476 if (strtoupper($act) ==
"NEW") {
477 $skel_file =
"skel_" . $file_info[
'script'];
480 $infourl = str_replace(
"//",
"//nobody:no1home@",$infourl);
482 if ($fp = fopen(
"$infourl/hcuadm/$skel_file",
"r")) {
484 $contents .= fread($fp, 1024);
489 $contents = str_replace(
"CULOGIN", $user_name, $contents);
490 $contents = str_replace(
"CUNAME", $cu_name, $contents);
491 $contents = str_replace(
"CUSERVER", $home_host, $contents);
492 $contents = str_replace(
"CUMXCU",
"$cu_mxcu", $contents);
493 $contents = str_replace(
"DBPREFIX", strtoupper(
"$user_name"), $contents);
494 $contents = str_replace(
"HCUDIR", $hcu_dir, $contents);
499 $cu_file =
"/home/$user_name/public_html/{$file_info['script']}";
500 $file_opened =
false;
501 if (file_exists($cu_file)) {
502 if ($fp = fopen($cu_file,
"r")) {
504 $contents = fread($fp, filesize($cu_file));
509 if ($file_opened ==
true) {
510 $showcontents=htmlspecialchars($contents);
512 <script language=
"javascript">
516 win = window.open(
"",
"htmlWin",
"scrollbars=1,menubar=1,status=1")
518 win.document.write(
"<P>")
519 win.document.write(document.preview.script_doc.value)
520 win.document.write(
"</P>")
524 <form name=
"preview" action=
"$self&act=SaveEdit" method=
"post">
525 <input type=
"hidden" name=
"act" value=
"SaveEdit">
526 <input type=
"hidden" name=
"f" value=
"$set_file">
527 <input type=
"submit" name=
"btnSubmit" value=
"Save my Changes">
528 <input type=
"button" name=
"btnPrev" value=
"Preview my Changes" onclick=
"Preview();">
529 <input type=
"button" name=
"btnCanc" value=
"Don't save my Changes" onclick=
"document.location='$self'">
531 <textarea name=
"script_doc" rows=50 cols=90>$showcontents</textarea>
537 <table align=center border=0 cellpadding=0 cellspacing=0 width="60%" class="dmsbg"><tr><td> 538 <table border=0 cellpadding=0 cellspacing=0 width="100%"> 541 An incorrect selection was made, please go back to the <a href="' . $self .
'">menu</a><br> 551 <table align=center border=0 cellpadding=0 cellspacing=0 width="60%" class="dmsbg"><tr><td> 552 <table border=0 cellpadding=0 cellspacing=0 width="100%"> 555 An incorrect selection was made, please go back to the <a href="' . $self .
'">menu</a><br> 567 $file_key = search_files($f, $file_list);
568 echo
"<table align=center width=\"70%\" border=0 cellpadding=0 cellspacing=1 class=\"dmsbg\"><tr><td>";
569 if ($file_key != -1) {
570 $file_info = $file_list[$file_key];
571 $skel_file =
"skel_" . $file_info[
'script'];
574 $file_perm = $file_info[
'perm'];
576 $contents = $script_doc;
578 $save_as =
"/home/$user_name/public_html/{$file_info['script']}";
582 if (file_exists($save_as))
583 chmod($save_as, 0666);
587 if ($save_fp = fopen($save_as,
"w")) {
588 if (fwrite($save_fp, $contents)) {
595 chmod($save_as, $file_perm);
599 <table width=
"100%" border=0 cellpadding=0 cellspacing=1>
601 <td
class=
"bar" align=
"center">
602 Fragment Script Confirmation
608 if ($file_save ==
true) {
610 The script {$file_info[
'script']} was saved <b>successfully</b>.<br><br>
611 <font color=
'red'>NOTE:For some scripts you may need to edit to the credit unions liking.<br></font>
612 To
do this choose the edit option from the <a href=
"$self">menu</a>
617 An error occurred, the script was NOT saved successfully.<br>
618 Please
try again, before screaming.
628 <table border=0 cellpadding=0 cellspacing=0 width="100%"> 631 An incorrect selection was made, please go back to the <a href="' . $self .
'">menu</a><br> 637 echo
"</td></tr></table>";
643 <form action=
"<?php echo $self ?>" method=
"post">
644 <input type=
"hidden" name=
"user_name" value=
"<?php echo $user_name; ?>">
645 <input type=
"hidden" name=
"cu_name" value=
"<?php echo $cu_name; ?>">
646 <input type=
"hidden" name=
"cu_mxcu" value=
"<?php echo $cu_mxcu; ?>">
647 <input type=
"hidden" name=
"hcu_dir" value=
"<?php echo $hcu_dir; ?>">
648 <table align=center width=
"95%" cellpadding=1 cellspacing=1 border=0
class=
"dmsbg"><tr><td>
649 <table width=
"100%" cellpadding=1 cellspacing=1 border=0>
651 <td
class=
"bar" align=
"center"><?php echo $cuinfo_row->cu;?> Fragment Maintenance</td>
655 <table border=0 width=
"100%" cellpadding=1 cellspacing=1 align=
"center">
657 <td
class=
"hdr" width=
"20%">File</td>
658 <td
class=
"hdr" width=
"10%" align=
'center'>Status</td>
659 <td
class=
"hdr" width=
"40%" >Used In</td>
660 <td
class=
"hdr" width=
"30%" align=
'center'>Action</td>
663 foreach ($file_list as $key=>$file_array) {
664 $rgb = ($rgb ==
"odd" ?
"even" :
"odd");
665 $rcolor = ($rgb ==
"odd" ? $file_array[
'odd'] : $file_array[
'even']);
669 $frag_exists = file_exists(
"/home/$user_name/public_html/{$file_array['script']}");
675 <a class=\"link\" href=\"$self&act=Refresh&f={$file_array['script']}\">Refresh</a> | 676 <a class=\"link\" href=\"$self&act=Edit&f={$file_array['script']}\">Edit</a> | 677 <a class=\"link\" href=\"$self&act=Preview&f={$file_array['script']}\" target=\"_NEW\">Preview</a> | 678 <a class=\"link\" href=\"$self&act=Delete&f={$file_array['script']}\">Delete</a> ";
680 $status =
"<font color='red'>NOT Found</font>";
681 $file_link =
"<a class=\"link\" href=\"$self&act=Create&f={$file_array['script']}\">Create</a>";
686 <tr bgcolor=
"$rcolor">
687 <td
class=
"usu">{$file_array[
'script']}</td>
688 <td
class=
"usuc">$status</td>
689 <td
class=
"usul">{$file_array[
'desc']}</td>
713 function print_top() {
724 cu_header(
'Home CU - Credit Union Information');
727 function print_bottom() {
733 function search_files($search_for, &$file_array) {
735 foreach ($file_array as $key=>$value) {
736 if ($value[
'script'] == $search_for) {