Page MenuHomePhabricator

prepaid_cards.phtml
No OneTemporary

prepaid_cards.phtml

<?
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

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)

Event Timeline