Survey JS original import
This commit is contained in:
parent
89eba42f0b
commit
9ce0bd80fd
23 changed files with 3827 additions and 0 deletions
15
www/extras/wobject/loadTemplate.pl
Executable file
15
www/extras/wobject/loadTemplate.pl
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
|
||||
use strict;
|
||||
|
||||
use DBI;
|
||||
use File::Slurp;
|
||||
my $dbh = DBI->connect("DBI:mysql:database=www_norman_com;host=localhost;port=3306", "webgui", "webgui", { RaiseError => 1, AutoCommit => 1 }) or die $!;
|
||||
|
||||
my $file = read_file("template.html");
|
||||
|
||||
my $sth = $dbh->prepare(qq{ UPDATE template SET template = ?,revisionDate = ? WHERE assetid = ? });
|
||||
$sth->execute($file, time(),"M3RkJY763xgE1SLYQ4pBqA");
|
||||
$dbh->disconnect();
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue