Skip to content
Snippets Groups Projects
Select Git revision
  • 0511d3e59980cce042239402148f4c69fff2610f
  • master default protected
  • rednatco-v2
  • rednatco
  • test
  • ntc-tube-uniform-color
  • ntc-tube-missing-atoms
  • restore-vertex-array-per-program
  • watlas2
  • dnatco_new
  • cleanup-old-nodejs
  • webmmb
  • fix_auth_seq_id
  • update_deps
  • ext_dev
  • ntc_balls
  • nci-2
  • plugin
  • bugfix-0.4.5
  • nci
  • servers
  • v0.5.0-dev.1
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
  • v0.3.12
  • v0.3.11
  • v0.3.10
  • v0.3.9
  • v0.3.8
  • v0.3.7
  • v0.3.6
  • v0.3.5
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
41 results

webpack.config.viewer.js

Blame
  • WardenConf.pm 937 B
    #!/usr/bin/perl -w
    #
    # WardenConf.pm
    #
    # Copyright (C) 2011-2012 Cesnet z.s.p.o
    #
    # Use of this source is governed by a BSD-style license, see LICENSE file.
    
    package WardenConf;
    
    use strict;
    
    our $VERSION = "2.0";
    
    #-------------------------------------------------------------------------------
    # loadConf - load variables from configuration file
    #-------------------------------------------------------------------------------
    sub loadConf
    {
      my $conf_file = shift;
    
      # preset of default variables
      our $URI = undef;
      our $SSL_KEY_FILE = undef;
      our $SSL_CERT_FILE = undef;
      our $SSL_CA_FILE = undef;
    
      # read config file
      if ( ! open( TMP, $conf_file) ) {
        die "Can't read config file '$conf_file': $!\n";
      }
      close TMP;
    
      # load set variables by user
      if ( !do $conf_file ) {
        die("Errors in config file '$conf_file': $@");
      }
    
      return ($URI, $SSL_KEY_FILE, $SSL_CERT_FILE, $SSL_CA_FILE);
    
    } # End of loadConf
    1;