[html changes Adrian Georgescu **20080119113610] hunk ./accounts.phtml 3 + +$title = "Login accounts"; + +if (is_readable("local/header.phtml")) { + include("local/header.phtml"); +} else { + include("header.phtml"); +} + hunk ./accounts.phtml 50 -$title = "Accounts"; - hunk ./accounts.phtml 52 -if (is_readable("local/header.phtml")) { - include("local/header.phtml"); -} else { - include("header.phtml"); -} hunk ./callsearch.phtml 5 +page_open( + array("sess" => "CDRTool_Session", + "auth" => "CDRTool_Auth", + "perm" => "CDRTool_Perm" + )); + hunk ./callsearch.phtml 38 -page_open( - array("sess" => "CDRTool_Session", - "auth" => "CDRTool_Auth", - "perm" => "CDRTool_Perm" - )); - hunk ./header.phtml 7 -printf(" - +printf(" hunk ./index.phtml 2 -$errorReporting = (E_ALL & ~E_NOTICE); -$errorReporting = 1; -error_reporting($errorReporting); - hunk ./index.phtml 26 - if (is_readable("local/header.phtml")) { - include("local/header.phtml"); - } else { - include("header.phtml"); - } - + if (is_readable("local/header.phtml")) { + include_once("local/header.phtml"); + } else { + include_once("header.phtml"); + } + hunk ./index.phtml 39 - $errorReporting = (E_ALL & ~E_NOTICE); - $errorReporting = 1; - error_reporting($errorReporting); - hunk ./phplib/local.inc 44 - $REMOTE_ADDR = $_SERVER["REMOTE_ADDR"]; hunk ./phplib/local.inc 52 - $query="select * from spam where ip = '$REMOTE_ADDR'"; + $query=sprintf("select * from spam where ip = '%s'",$_SERVER['REMOTE_ADDR']); hunk ./phplib/local.inc 74 - + hunk ./phplib/local.inc 77 - if (is_readable("local/header.phtml")) { - include("local/header.phtml"); + if (is_readable("$CDRTool[Path]/local/header.phtml")) { + include("$CDRTool[Path]/local/header.phtml"); hunk ./phplib/local.inc 80 - include("header.phtml"); + include("$CDRTool[Path]/header.phtml"); hunk ./phplib/local.inc 82 + hunk ./phplib/local.inc 84 - //$layout->showHeader(); hunk ./phplib/local.inc 92 - $log_time,addslashes($username),$REMOTE_ADDR,$spam_login_tries,$next_try); + $log_time,addslashes($username),$_SERVER['REMOTE_ADDR'],$spam_login_tries,$next_try); hunk ./phplib/local.inc 99 - $query="update spam + $query=sprintf("update spam hunk ./phplib/local.inc 101 - where ip = '$REMOTE_ADDR' "; + where ip = '%s' ",$_SERVER['REMOTE_ADDR']); hunk ./phplib/local.inc 836 -
+ + + + +
hunk ./phplib/local.inc 846 - You are logged in as $loginname "; - if ($loginName) print "($loginName). "; - print "

+ You are logged in as $loginname + +

hunk ./phplib/local.inc 855 +

+ hunk ./phplib/local.inc 868 - +
hunk ./provisioning.phtml 14 +set_time_limit(600); + +$title="SIP and ENUM provisioning"; hunk ./provisioning.phtml 27 - "perm" => "CDRTool_Perm")); + "perm" => "CDRTool_Perm") + ); hunk ./provisioning.phtml 30 -$title="SIP and ENUM provisioning"; - -set_time_limit(600); hunk ./rating_lib.phtml 1014 - "subscriber"=>array("size"=>15, + "subscriber"=>array("size"=>25, hunk ./rating_lib.phtml 1036 - "subscriber"=>array("size"=>15, + "subscriber"=>array("size"=>25, hunk ./rating_lib.phtml 1079 - "subscriber"=>array("size"=>15, + "subscriber"=>array("size"=>25, hunk ./rating_lib.phtml 1125 - "subscriber"=>array("size"=>15, + "subscriber"=>array("size"=>25, hunk ./rating_lib.phtml 1158 - "subscriber"=>array("size"=>15, + "subscriber"=>array("size"=>25, hunk ./rating_lib.phtml 1197 - "subscriber"=>array("size"=>15, + "subscriber"=>array("size"=>25, hunk ./rating_tables.phtml 3 -page_open( - array("sess" => "CDRTool_Session", - "auth" => "CDRTool_Auth", - "perm" => "CDRTool_Perm")); + +$export= $_REQUEST['export']; +$table = $_REQUEST['table']; hunk ./rating_tables.phtml 7 -$perm->check("rates"); hunk ./rating_tables.phtml 17 +if (!$export) { + $title="Rating tables"; + if (is_readable("local/header.phtml")) { + include("local/header.phtml"); + } else { + include("header.phtml"); + } + + $maxrowsperpage=15; +} else { + if ($table_fname[$table]) { + Header("Content-type: text/plain"); + Header("Content-Disposition: inline; filename=$table_fname[$table]"); + $maxrowsperpage=1000000; + } else { + exit ; + } +} + +page_open( + array("sess" => "CDRTool_Session", + "auth" => "CDRTool_Auth", + "perm" => "CDRTool_Perm")); + +$perm->check("rates"); hunk ./rating_tables.phtml 82 -if (!$export) { - $title="Rating tables"; - if (is_readable("local/header.phtml")) { - include("local/header.phtml"); - } else { - include("header.phtml"); - } - $maxrowsperpage=15; -} else { - if ($table_fname[$table]) { - Header("Content-type: text/plain"); - Header("Content-Disposition: inline; filename=$table_fname[$table]"); - 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"); - $maxrowsperpage=1000000; - } else { - exit ; - } -} - hunk ./rating_tables.phtml 649 -
-

+

+ + +
hunk ./rating_tables.phtml 683 - +
hunk ./sip-trace.phtml 3 - +include("header.phtml"); + hunk ./sip-trace.phtml 43 + hunk ./sip-trace.phtml 52 - include("header.phtml"); - hunk ./status/media_sessions.phtml 3 + hunk ./status/media_sessions.phtml 411 - valign: top; + vertical-align: top; hunk ./status/media_sessions.phtml 418 - valign: bottom; + vertical-align: bottom; hunk ./status/sip_online.phtml 3 + +$title="OpenSER online subscribers"; +include("../header.phtml"); + hunk ./status/sip_online.phtml 17 -$title=$CDRTool['provider']['name']. " - SER Online users"; -include("../header.phtml"); hunk ./status/usage/index.phtml 3 + +$title='Platform usage'; + +include("../../header.phtml"); hunk ./status/usage/index.phtml 26 -include("../../header.phtml"); hunk ./style.css 224 +.extrainfo { + display: none; + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 7pt; + color: black; +} +