data_markup.pl
Copying Source is Forbidden
52 lines of code
1
#!/usr/local/bin/perl
2
3
binmode(STDIN, ":utf8");
4
binmode(STDOUT, ":utf8");
5
6
# must have's!
7
use strict;
8
use warnings;
9
use CGI::Carp qw(fatalsToBrowser);
10
use DBI;
11
use URI::Escape;
12
13
use lib "/var/www/html/Pm";
14
15
use Html qw(pre_html_header header);
16
use Bc_chef qw(cookie_get);
17
use Bc_misc qw(get_param referrer);
18
use Bc_sql qw(
19
get_constant
20
sql_execute
21
user_exists
22
$QUERY_PAGE
23
$QUERY_UID
24
$LOGGEDIN
25
26
$DB
27
);
28
29
use Security qw(banned);
30
31
my $DEBUG = 0;
32
33
my $output;
34
35
############################################################
36
37
$output = <<END;
38
{
39
"\@context" : "http://schema.org",
40
"\@type" : "LocalBusiness",
41
"name" : "Night Stand",
42
"image" : "https://www.night-stand.ca/img.pl?i=site/logo.png&s=logo",
43
"url" : "https://www.night-stand.ca/"
44
}
45
END
46
47
############################################################
48
49
print pre_html_header();
50
print $output;
51
52
exit 1;