Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7312253
rating_tables.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
rating_tables.phtml
View Options
<?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
Details
Attached
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)
Attached To
Mode
rCDRT CDRTool
Attached
Detach File
Event Timeline
Log In to Comment