Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/www/include/radius/SqlCounter.php
<?php
if(!isset($msg)){
if ($buttonID=="save_sql_counterf" or $buttonID=="mod_sql_counterf") {
 
	//GENERAL
  $opt['name']=$_POST['name'];
  $opt['description']=$_POST['description'];
  $opt['sckey']=$_POST['sckey'];
  $opt['file_name']=$_POST['file_name'];
  $opt['count_attribute']=$_POST['count_attribute'];
  $opt['reset']=$_POST['reset'];
  $opt['check_name']=$_POST['check_name'];
  $opt['query']=$_POST['query'];
  $opt['reply']=$_POST['reply'];
  $opt['location_id']=$_SESSION['locID'];
  print $oreon->database->saveSqlCounter($opt);
  
}
else 

    include 'include/radius/SqlCounter_html.php';
}
else echo $msg;
Return current item: phpMyPrepaid