#!/usr/bin/perl

#use utf8;
use strict;
use CGI;
use Digest::SHA qw(
    sha1_base64
    sha1_hex
);

use Opals::Context;

my $dbh = Opals::Context->dbh();
END { $dbh->disconnect(); }

my $cgi      = CGI->new;
my $input    = $cgi->Vars();


    my $sth=$dbh->prepare("select fileData from opl_file where fileName='portalJson'");
    $sth->execute();
    my ($data)=$sth->fetchrow_array;
print "Content-type: text/plain\n\n";

#print "{\"tabs\":$data}";
print $data;
#------------------------------------------------------------------------------



