Show
Ignore:
Timestamp:
09/17/08 14:29:39 (5 years ago)
Author:
p_lindheimer
Message:

fixes #3209 Reports SECURITY VULNERABILITY by forcing all access to the CDR Reports section to flow through config.php

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/bin/retrieve_conf

    r6601 r6764  
    345345  } 
    346346} 
     347// Now also make sure to symlink the CDR images which is not a proper module 
     348// 
     349symlink_subdirs( $amp_conf['AMPWEBROOT'].'/admin/cdr/'); 
    347350 
    348351// create an object of the extensions class 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/cdr/about.php

    r3052 r6764  
    3535    <title>Asterisk CDR</title> 
    3636    <meta http-equiv="Content-Type" content="text/html"> 
    37     <link rel="stylesheet" type="text/css" media="print" href="/css/print.css"> 
    38     <SCRIPT LANGUAGE="JavaScript" SRC="./encrypt.js"></SCRIPT> 
     37    <link rel="stylesheet" type="text/css" media="print" href="common/print.css"> 
     38    <SCRIPT LANGUAGE="JavaScript" SRC="common/encrypt.js"></SCRIPT> 
    3939    <style type="text/css" media="screen"> 
    40       @import url("css/layout.css"); 
    41       @import url("css/content.css"); 
    42       @import url("css/docbook.css"); 
     40      @import url("common/layout.css"); 
     41      @import url("common/content.css"); 
     42      @import url("common/docbook.css"); 
    4343    </style> 
    4444    <meta name="MSSmartTagsPreventParsing" content="TRUE"> 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/cdr/call-comp.php

    r6491 r6764  
    257257<!-- ** ** ** ** ** Part for the research ** ** ** ** ** --> 
    258258  <center> 
    259   <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
     259  <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
    260260  <INPUT TYPE="hidden" NAME="posted" value=1> 
    261261    <table class="bar-status" width="75%" border="0" cellspacing="1" cellpadding="2" align="center"> 
     
    522522</td></tr></tbody></table> 
    523523  <br> 
    524   <IMG SRC="graph_stat.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
     524  <IMG SRC="common/graph_stat.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
    525525 
    526526<?php  }else{ ?> 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/cdr/call-daily-load.php

    r6491 r6764  
    230230<!-- ** ** ** ** ** Part for the research ** ** ** ** ** --> 
    231231  <center> 
    232   <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
     232  <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
    233233  <INPUT TYPE="hidden" NAME="posted" value=1> 
    234234    <table class="bar-status" width="75%" border="0" cellspacing="1" cellpadding="2" align="center"> 
     
    482482</td></tr></tbody></table> 
    483483  <br> 
    484   <IMG SRC="graph_statbar.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
     484  <IMG SRC="common/graph_statbar.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
    485485 
    486486 
     
    490490<br/> 
    491491  <center>Select the hour interval to see the details 
    492   <FORM METHOD=POST ACTION="graph_hourdetail.php?posted=<?php echo $posted?>&min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" target="superframe">     
     492  <FORM METHOD=POST ACTION="common/graph_hourdetail.php?posted=<?php echo $posted?>&min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" target="superframe">    
    493493  <!-- ** ** ** ** ** HOURLY LOAD ** ** ** ** ** --> 
    494494    <table class="bar-status" width="60%" border="0" cellspacing="1" cellpadding="2" align="center"> 
     
    539539<br> 
    540540<center> 
    541     <iframe name="superframe" src="graph_hourdetail.php?posted=<?php echo $posted?>&min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" BGCOLOR=white  width=770 height=800 marginWidth=0 marginHeight=0  frameBorder=0  scrolling=yes> 
     541    <iframe name="superframe" src="common/graph_hourdetail.php?posted=<?php echo $posted?>&min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" BGCOLOR=white width=770 height=800 marginWidth=0 marginHeight=0  frameBorder=0  scrolling=yes> 
    542542 
    543543    </iframe> 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/cdr/call-last-month.php

    r6491 r6764  
    236236<!-- ** ** ** ** ** Part for the research ** ** ** ** ** --> 
    237237  <center> 
    238   <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
     238  <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
    239239  <INPUT TYPE="hidden" NAME="posted" value=1> 
    240240    <table class="bar-status" width="75%" border="0" cellspacing="1" cellpadding="2" align="center"> 
     
    498498<?php  if ($posted==1){ ?> 
    499499  <center> 
    500   <IMG SRC="graph_pie.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&months_compare=<?php echo $months_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
     500  <IMG SRC="common/graph_pie.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&months_compare=<?php echo $months_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
    501501  </center> 
    502502<?php  } ?> 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/cdr/call-log.php

    r6491 r6764  
    337337<!-- ** ** ** ** ** Part for the research ** ** ** ** ** --> 
    338338  <center> 
    339   <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
     339  <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
    340340  <INPUT TYPE="hidden" NAME="posted" value=1> 
    341341  <INPUT TYPE="hidden" NAME="current_page" value=0>  
     
    601601                    <center><strong>  
    602602                    <?php  if (strtoupper($FG_TABLE_COL[$i][4])=="SORT"){?> 
    603                     <a href="<?php  echo $_SERVER['PHP_SELF']."?s=1&t=$t&stitle=$stitle&atmenu=$atmenu&current_page=$current_page&order=".$FG_TABLE_COL[$i][1]."&sens="; if ($sens=="ASC"){echo"DESC";}else{echo"ASC";}  
     603                    <a href="<?php  echo $_SERVER['PHP_SELF']."?handler=cdr&s=1&t=$t&stitle=$stitle&atmenu=$atmenu&current_page=$current_page&order=".$FG_TABLE_COL[$i][1]."&sens="; if ($sens=="ASC"){echo"DESC";}else{echo"ASC";}  
    604604          echo "&posted=$posted&Period=$Period&frommonth=$frommonth&fromstatsmonth=$fromstatsmonth&tomonth=$tomonth&tostatsmonth=$tostatsmonth&fromday=$fromday&fromstatsday_sday=$fromstatsday_sday&fromstatsmonth_sday=$fromstatsmonth_sday&today=$today&tostatsday_sday=$tostatsday_sday&tostatsmonth_sday=$tostatsmonth_sday&dsttype=$dsttype&srctype=$srctype&clidtype=$clidtype&channel=$channel&resulttype=$resulttype&dst=$dst&src=$src&clid=$clid";?>">  
    605605                    <span class="liens"><?php  } ?> 
     
    727727                  <TD align="right"><SPAN style="COLOR: #ffffff; FONT-SIZE: 11px"><B>  
    728728                    <?php if ($current_page>0){?> 
    729                     <img src="images/fleche-g.gif" width="5" height="10"> <a href="<?php echo $_SERVER['PHP_SELF']?>?s=1&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php  echo ($current_page-1)?><?php  if (!is_null($letter) && ($letter!="")){ echo "&letter=$letter";}  
     729                    <img src="images/fleche-g.gif" width="5" height="10"> <a href="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=1&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php  echo ($current_page-1)?><?php  if (!is_null($letter) && ($letter!="")){ echo "&letter=$letter";}  
    730730          echo "&posted=$posted&Period=$Period&frommonth=$frommonth&fromstatsmonth=$fromstatsmonth&tomonth=$tomonth&tostatsmonth=$tostatsmonth&fromday=$fromday&fromstatsday_sday=$fromstatsday_sday&fromstatsmonth_sday=$fromstatsmonth_sday&today=$today&tostatsday_sday=$tostatsday_sday&tostatsmonth_sday=$tostatsmonth_sday&dsttype=$dsttype&srctype=$srctype&clidtype=$clidtype&channel=$channel&resulttype=$resulttype&dst=$dst&src=$src&clid=$clid&channel=$channel&resulttype=$resulttype&dst=$dst&src=$src&clid=$clid&userfieldtype=$userfieldtype&userfield=$userfield&accountcodetype=$accountcodetype&accountcode=$accountcode&duration1=$duration1&duration1type=$duration1type&duration2=$duration2&duration2type=$duration2type";?>">  
    731731                    Previous </a> -  
     
    733733                    <?php echo ($current_page+1);?> / <?php  echo $nb_record_max;?>  
    734734                    <?php if ($current_page<$nb_record_max-1){?> 
    735                     - <a href="<?php echo $_SERVER['PHP_SELF']?>?s=1&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php  echo ($current_page+1)?><?php  if (!is_null($letter) && ($letter!="")){ echo "&letter=$letter";}  
     735                    - <a href="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=1&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php  echo ($current_page+1)?><?php  if (!is_null($letter) && ($letter!="")){ echo "&letter=$letter";}  
    736736          echo "&posted=$posted&Period=$Period&frommonth=$frommonth&fromstatsmonth=$fromstatsmonth&tomonth=$tomonth&tostatsmonth=$tostatsmonth&fromday=$fromday&fromstatsday_sday=$fromstatsday_sday&fromstatsmonth_sday=$fromstatsmonth_sday&today=$today&tostatsday_sday=$tostatsday_sday&tostatsmonth_sday=$tostatsmonth_sday&dsttype=$dsttype&srctype=$srctype&clidtype=$clidtype&channel=$channel&resulttype=$resulttype&dst=$dst&src=$src&clid=$clid&channel=$channel&resulttype=$resulttype&dst=$dst&src=$src&clid=$clid&userfieldtype=$userfieldtype&userfield=$userfield&accountcodetype=$accountcodetype&accountcode=$accountcode&duration1=$duration1&duration1type=$duration1type&duration2=$duration2&duration2type=$duration2type";?>">  
    737737                    Next </a> <img src="images/fleche-d.gif" width="5" height="10">  
     
    882882<br/> 
    883883<table width="60%"><tr><td> 
    884 <a href="export_pdf.php" target="_blank"><img src="./images/pdf.png  " border="0"/></a> <a href="export_pdf.php" target="_blank">Export PDF file</a> 
     884<a href="config.php?handler=cdr_export_pdf" target="_blank"><img src="./images/pdf.png " border="0"/></a> <a href="config.php?handler=cdr_export_pdf" target="_blank">Export PDF file</a> 
    885885</td> 
    886886<td> 
    887 <a href="export_csv.php" target="_blank" ><img src="./images/excel.png" border="0"/></a> <a href="export_csv.php" target="_blank">Export CSV file</a> 
     887<a href="config.php?handler=cdr_export_csv" target="_blank" ><img src="./images/excel.png" border="0"/></a> <a href="config.php?handler=cdr_export_csv" target="_blank">Export CSV file</a> 
    888888</td></tr></table> 
    889889 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/cdr/cdr.php

    r4993 r6764  
    5050    <title>Asterisk CDR</title> 
    5151    <meta http-equiv="Content-Type" content="text/html"> 
    52     <link rel="stylesheet" type="text/css" media="print" href="/css/print.css"> 
    53     <SCRIPT LANGUAGE="JavaScript" SRC="./encrypt.js"></SCRIPT> 
     52    <link rel="stylesheet" type="text/css" media="print" href="common/print.css"> 
     53    <SCRIPT LANGUAGE="JavaScript" SRC="common/encrypt.js"></SCRIPT> 
    5454    <style type="text/css" media="screen"> 
    55       @import url("css/layout.css"); 
    56       @import url("css/content.css"); 
    57       @import url("css/docbook.css"); 
     55      @import url("common/layout.css"); 
     56      @import url("common/content.css"); 
     57      @import url("common/docbook.css"); 
    5858    </style> 
    5959    <meta name="MSSmartTagsPreventParsing" content="TRUE"> 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/cdr/lib/defines.php

    r6504 r6764  
    33require_once('DB.php'); // PEAR 
    44 
     5if (!function_exists('parse_amportal_conf')) { 
    56function parse_amportal_conf($filename) { 
    67        $file = file($filename); 
     
    1112        } 
    1213        return $conf; 
     14} 
    1315} 
    1416 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/common/graph_hourdetail.php

    r5360 r6764  
    11<?php /* $Id$ */ 
    2 include_once(dirname(__FILE__) . "/lib/defines.php"); 
    3 include_once(dirname(__FILE__) . "/lib/Class.Table.php"); 
    4 include_once(dirname(__FILE__) . "/jpgraph_lib/jpgraph.php"); 
    5 include_once(dirname(__FILE__) . "/jpgraph_lib/jpgraph_line.php"); 
    6 include_once(dirname(__FILE__) . "/jpgraph_lib/jpgraph_bar.php"); 
     2include_once(dirname(__FILE__) . "/../cdr/lib/defines.php"); 
     3include_once(dirname(__FILE__) . "/../cdr/lib/Class.Table.php"); 
     4include_once(dirname(__FILE__) . "/../cdr/jpgraph_lib/jpgraph.php"); 
     5include_once(dirname(__FILE__) . "/../cdr/jpgraph_lib/jpgraph_line.php"); 
     6include_once(dirname(__FILE__) . "/../cdr/jpgraph_lib/jpgraph_bar.php"); 
    77 
    88 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/common/graph_pie.php

    r6272 r6764  
    11<?php /* $Id$ */ 
    2 include_once(dirname(__FILE__) . "/lib/defines.php"); 
    3 include_once(dirname(__FILE__) . "/lib/Class.Table.php"); 
    4 include_once(dirname(__FILE__) . "/jpgraph_lib/jpgraph.php"); 
    5 include_once(dirname(__FILE__) . "/jpgraph_lib/jpgraph_pie.php"); 
    6 include_once(dirname(__FILE__) . "/jpgraph_lib/jpgraph_pie3d.php"); 
     2include_once(dirname(__FILE__) . "/../cdr/lib/defines.php"); 
     3include_once(dirname(__FILE__) . "/../cdr/lib/Class.Table.php"); 
     4include_once(dirname(__FILE__) . "/../cdr/jpgraph_lib/jpgraph.php"); 
     5include_once(dirname(__FILE__) . "/../cdr/jpgraph_lib/jpgraph_pie.php"); 
     6include_once(dirname(__FILE__) . "/../cdr/jpgraph_lib/jpgraph_pie3d.php"); 
    77 
    88 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/common/graph_stat.php

    r5360 r6764  
    11<?php 
    2 include_once(dirname(__FILE__) . "/lib/defines.php"); 
    3 include_once(dirname(__FILE__) . "/lib/Class.Table.php"); 
    4 include_once(dirname(__FILE__) . "/jpgraph_lib/jpgraph.php"); 
    5 include_once(dirname(__FILE__) . "/jpgraph_lib/jpgraph_line.php"); 
     2include_once(dirname(__FILE__) . "/../cdr/lib/defines.php"); 
     3include_once(dirname(__FILE__) . "/../cdr/lib/Class.Table.php"); 
     4include_once(dirname(__FILE__) . "/../cdr/jpgraph_lib/jpgraph.php"); 
     5include_once(dirname(__FILE__) . "/../cdr/jpgraph_lib/jpgraph_line.php"); 
    66 
    77// this variable specifie the debug type (0 => nothing, 1 => sql result, 2 => boucle checking, 3 other value checking) 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/common/graph_statbar.php

    r5360 r6764  
    11<?php /* $Id$ */ 
    2 include_once(dirname(__FILE__) . "/lib/defines.php"); 
    3 include_once(dirname(__FILE__) . "/lib/Class.Table.php"); 
    4 include_once(dirname(__FILE__) . "/jpgraph_lib/jpgraph.php"); 
    5 include_once(dirname(__FILE__) . "/jpgraph_lib/jpgraph_bar.php"); 
     2include_once(dirname(__FILE__) . "/../cdr/lib/defines.php"); 
     3include_once(dirname(__FILE__) . "/../cdr/lib/Class.Table.php"); 
     4include_once(dirname(__FILE__) . "/../cdr/jpgraph_lib/jpgraph.php"); 
     5include_once(dirname(__FILE__) . "/../cdr/jpgraph_lib/jpgraph_bar.php"); 
    66 
    77// this variable specifie the debug type (0 => nothing, 1 => sql result, 2 => boucle checking, 3 other value checking) 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/config.php

    r6551 r6764  
    4242if (isset($_REQUEST['handler'])) { 
    4343  switch ($_REQUEST['handler']) { 
     44    case 'cdr': 
     45      include('cdr/cdr.php'); 
     46      break; 
     47    case 'cdr_export_csv': 
     48      include('cdr/export_csv.php'); 
     49      break; 
     50    case 'cdr_export_pdf': 
     51      include('cdr/export_pdf.php'); 
     52      break; 
    4453    case 'reload': 
    4554      /** AJAX handler for reload event 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/views/reports.php

    r5361 r6764  
    1414$template['content'] .=  
    1515  '<div id="reportframe">'. 
    16   '<iframe width="97%" height="2000" frameborder="0" align="top" scrolling="auto" src="cdr/cdr.php?s='.$display.($display=='1' ? '&posted=1' : '').'"></iframe>'. 
     16  '<iframe width="97%" height="2000" frameborder="0" align="top" scrolling="auto" src="config.php?handler=cdr&s='.$display.($display=='1' ? '&posted=1' : '').'"></iframe>'. 
    1717  '</div>'; 
    1818