tbrehm
2011-04-06 d84fa49820fb70591967455966563cdd9b67f159
interface/lib/classes/functions.inc.php
@@ -87,6 +87,23 @@
      return $out;
   }
   
   public function currency_format($number) {
      global $app;
      $number_format_decimals = (int)$app->lng('number_format_decimals');
      $number_format_dec_point = $app->lng('number_format_dec_point');
      $number_format_thousands_sep = $app->lng('number_format_thousands_sep');
      if($number_format_thousands_sep == 'number_format_thousands_sep') $number_format_thousands_sep = '';
      return number_format((double)$number, $number_format_decimals, $number_format_dec_point, $number_format_thousands_sep);
   }
   public function get_ispconfig_url() {
      $url = (stristr($_SERVER['SERVER_PROTOCOL'],'HTTPS'))?'https':'http';
      $url .= '://'.$_SERVER['SERVER_NAME'];
      if($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443) {
         $url .= ':'.$_SERVER['SERVER_PORT'];
      }
      return $url;
   }
   
      
}