Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7159937
prepaid_cards.phtml
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
prepaid_cards.phtml
View Options
<?
require
(
"/etc/cdrtool/global.inc"
);
page_open
(
array
(
"sess"
=>
"CDRTool_Session"
,
"auth"
=>
"CDRTool_Auth"
,
"perm"
=>
"CDRTool_Perm"
)
);
require
(
"prepaid.php"
);
$loginname
=
$auth
->
auth
[
"uname"
];
$perm
->
check
(
"provisioning"
);
$title
=
"Prepaid card generator"
;
$action
=
$_REQUEST
[
'action'
];
$batch
=
$_REQUEST
[
'batch'
];
$confirm
=
$_REQUEST
[
'confirm'
];
if
(
$action
!=
"export"
)
{
if
(
is_readable
(
"/etc/cdrtool/local/header.phtml"
))
{
include
(
"/etc/cdrtool/local/header.phtml"
);
}
else
{
include
(
"header.phtml"
);
}
$layout
=
new
pageLayoutLocal
();
$layout
->
showTopMenu
(
$title
);
}
else
{
Header
(
"Content-type: text/plain"
);
Header
(
"Content-Disposition: inline; filename=
$batch
.txt"
);
header
(
"Last-Modified: "
.
gmdate
(
"D, d M Y H:i:s"
)
.
" GMT"
);
header
(
"Cache-Control: no-cache, must-revalidate"
);
// HTTP/1.1
header
(
"Pragma: no-cache"
);
}
$PrepaidCards
=
new
PrepaidCards
();
if
(
$action
==
"generate"
)
{
$PrepaidCards
->
generate
();
$PrepaidCards
->
showGenerateForm
();
$PrepaidCards
->
showBatches
();
}
elseif
(
$action
==
"delete"
)
{
$PrepaidCards
->
showGenerateForm
();
$PrepaidCards
->
deleteBatch
(
$batch
,
$confirm
);
$PrepaidCards
->
showBatches
();
}
elseif
(
$action
==
"export"
)
{
$PrepaidCards
->
export
(
$batch
);
}
else
{
$PrepaidCards
->
showGenerateForm
();
$PrepaidCards
->
showBatches
();
}
if
(
$action
!=
"export"
)
{
print
"
</body>
</html>
"
;
}
page_close
();
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 23, 2:19 PM (23 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3409277
Default Alt Text
prepaid_cards.phtml (1 KB)
Attached To
Mode
rCDRT CDRTool
Attached
Detach File
Event Timeline
Log In to Comment