Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7159871
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
<?
include
(
"global.inc"
);
page_open
(
array
(
"sess"
=>
"CDRTool_Session"
,
"auth"
=>
"CDRTool_Auth"
,
"perm"
=>
"CDRTool_Perm"
)
);
$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
(
"local/header.phtml"
))
{
include
(
"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"
);
}
include
(
"library/prepaid_lib.phtml"
);
$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:18 PM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3409224
Default Alt Text
prepaid_cards.phtml (1 KB)
Attached To
Mode
rCDRT CDRTool
Attached
Detach File
Event Timeline
Log In to Comment