Page MenuHomePhabricator

rating_tables.phtml
No OneTemporary

rating_tables.phtml

<?php
require("/etc/cdrtool/global.inc");
require('cdr_generic.php');
page_open(
array(
"sess" => "CDRTool_Session",
"auth" => "CDRTool_Auth",
"perm" => "CDRTool_Perm"
)
);
$perm->check("rates");
include("rating.php");
if ($perm->have_perm("readonly")) {
$RatingTables = new RatingTables('readonly');
} else {
$RatingTables = new RatingTables();
}
if (!$_REQUEST['export']) {
$title="Rating tables";
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 {
print $RatingTables->table_to_csv_name[$_REQUEST['table']];
Header("Content-type: text/csv");
$h = sprintf("Content-Disposition: inline; filename=%s", $RatingTables->csv_export[$_REQUEST['table']]);
Header($h);
}
if ($_REQUEST['import'] && $_REQUEST['table']) {
$RatingTables->importTable($_REQUEST['table']);
}
$RatingTables->updateTable();
$RatingTables->showTable();
if (!$_REQUEST['export']) {
$layout->showFooter();
print "
</body>
</html>
";
}
page_close();
?>

File Metadata

Mime Type
text/x-php
Expires
Sat, Feb 1, 5:33 AM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3488694
Default Alt Text
rating_tables.phtml (1 KB)

Event Timeline