moving
This commit is contained in:
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
2
lib/Dojo.pm
Normal file → Executable file
2
lib/Dojo.pm
Normal file → Executable file
@@ -8,7 +8,7 @@ use Dojo::Model::Users;
|
|||||||
sub startup {
|
sub startup {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $config = $self->plugin('Config'); #Config hash dojo.conf
|
my $config = $self->plugin('Config'); #Config hash dojo.conf
|
||||||
$self->plugin('PODRenderer') if $config->{perldoc}; #doc
|
# $self->plugin('PODRenderer') if $config->{perldoc}; #doc
|
||||||
$self->secrets(['Mojojojo jojo']); #cookies
|
$self->secrets(['Mojojojo jojo']); #cookies
|
||||||
|
|
||||||
$self->helper(dbv => sub { state $dbv = Dojo::Model::Vuelo->new });
|
$self->helper(dbv => sub { state $dbv = Dojo::Model::Vuelo->new });
|
||||||
|
|||||||
47
lib/Dojo/Conf.pm.example
Normal file → Executable file
47
lib/Dojo/Conf.pm.example
Normal file → Executable file
@@ -3,42 +3,33 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
#Paths
|
#Paths
|
||||||
use constant {
|
use constant {
|
||||||
MOD => "public", #location of modules
|
MOD => "public",
|
||||||
SERVER_NAME => "localhost:3000",
|
|
||||||
CHAT_SRV => "chat.vuelodegrulla.com",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# database access
|
# database access
|
||||||
use constant {
|
use constant {
|
||||||
VUELODB => "dbname",
|
VUELODB => "vuelo",
|
||||||
VUELODB_H => "localhost",
|
VUELODB_H => "localhost",
|
||||||
VUELODB_UW => "writtername",
|
VUELODB_UW => "root",
|
||||||
VUELODB_UWP => "writterpass",
|
VUELODB_UWP => "passwd",
|
||||||
VUELODB_UR => "readername",
|
VUELODB_UR => "root",
|
||||||
VUELODB_URP => "readerpass",
|
VUELODB_URP => "passwd",
|
||||||
|
GRULLADB_H => "localhost",
|
||||||
|
GRULLADB => "grulla",
|
||||||
|
GRULLADB_UR => "root",
|
||||||
|
GRULLADB_URP=> "passwd",
|
||||||
|
GRULLADB_UW => "root",
|
||||||
|
GRULLADB_UWP=> "passwd",
|
||||||
|
MSGDB => "mensaje",
|
||||||
|
MSGDB_H => "localhost",
|
||||||
|
MSGDB_UW => "root",
|
||||||
|
MSGDB_UWP => "passwd",
|
||||||
|
MSGDB_UR => "root",
|
||||||
|
MSGDB_URP => "passwd",
|
||||||
};
|
};
|
||||||
|
|
||||||
our $radio ={ #hash to configure icecast radio
|
|
||||||
server_name => SERVER_NAME,
|
|
||||||
radio_server =>"https://myradio.com",
|
|
||||||
channel => "/test",
|
|
||||||
listen_url =>"http://radio:8000/test",
|
|
||||||
};
|
|
||||||
|
|
||||||
our $chat={ #hash to configure chat (candy prodody) server
|
|
||||||
chat_addr => "https://".CHAT_SRV,
|
|
||||||
chat_srv => CHAT_SRV,
|
|
||||||
chat_channel => 'Users@radio.'.CHAT_SRV,
|
|
||||||
};
|
|
||||||
our %rtmp={ #hash ro configure rtpm video server
|
|
||||||
rtmp_server =>"rtmp://myserver.com/steam",
|
|
||||||
rtmp_channel =>"channel",
|
|
||||||
};
|
|
||||||
|
|
||||||
our %def=( #some other global configuration
|
|
||||||
modules => MOD,
|
|
||||||
# layout => "default"
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|||||||
0
lib/Dojo/Controller/Data.pm
Normal file → Executable file
0
lib/Dojo/Controller/Data.pm
Normal file → Executable file
0
lib/Dojo/Controller/Example.pm
Normal file → Executable file
0
lib/Dojo/Controller/Example.pm
Normal file → Executable file
0
lib/Dojo/Controller/Home.pm
Normal file → Executable file
0
lib/Dojo/Controller/Home.pm
Normal file → Executable file
0
lib/Dojo/Controller/Users.pm
Normal file → Executable file
0
lib/Dojo/Controller/Users.pm
Normal file → Executable file
0
lib/Dojo/Model/Users.pm
Normal file → Executable file
0
lib/Dojo/Model/Users.pm
Normal file → Executable file
5
lib/Dojo/Model/Vuelo.pm
Normal file → Executable file
5
lib/Dojo/Model/Vuelo.pm
Normal file → Executable file
@@ -93,7 +93,10 @@ sub new { bless {}, shift };
|
|||||||
sub contact{
|
sub contact{
|
||||||
my $c=shift;
|
my $c=shift;
|
||||||
my $q="insert into entrada (nombre,correo,pagina,texto,fecha) values(?,?,?,?,now() )" ;
|
my $q="insert into entrada (nombre,correo,pagina,texto,fecha) values(?,?,?,?,now() )" ;
|
||||||
return _writemsg($q,@_);
|
my @a=@_;
|
||||||
|
#simple method to ignore spam
|
||||||
|
return _writemsg($q,@a) unless $a[3]=~m/html|website|\<a/;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
# Write vdg admin ==============================================================
|
# Write vdg admin ==============================================================
|
||||||
|
|||||||
0
lib/Dojo/Support.pm
Normal file → Executable file
0
lib/Dojo/Support.pm
Normal file → Executable file
0
public/home/bcast/jsFlowpl.js
Normal file → Executable file
0
public/home/bcast/jsFlowpl.js
Normal file → Executable file
0
public/home/bcast/noise.jpg
Normal file → Executable file
0
public/home/bcast/noise.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
0
public/home/cal/img/Tepoztlan.jpg
Normal file → Executable file
0
public/home/cal/img/Tepoztlan.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
0
public/home/tst/tst.css
Normal file → Executable file
0
public/home/tst/tst.css
Normal file → Executable file
2
readme
Normal file → Executable file
2
readme
Normal file → Executable file
@@ -3,5 +3,7 @@ Text::Markdown
|
|||||||
Net::Telnet
|
Net::Telnet
|
||||||
DBI
|
DBI
|
||||||
Hash::Merge
|
Hash::Merge
|
||||||
|
Path::Class
|
||||||
|
DBD::Mysql
|
||||||
djavu sans mono book 10
|
djavu sans mono book 10
|
||||||
|
|
||||||
|
|||||||
0
templates/home/contact2.html.ep
Normal file → Executable file
0
templates/home/contact2.html.ep
Normal file → Executable file
0
templates/home/htmlNav.html.ep
Normal file → Executable file
0
templates/home/htmlNav.html.ep
Normal file → Executable file
0
templates/home/htmlSide.html.ep
Normal file → Executable file
0
templates/home/htmlSide.html.ep
Normal file → Executable file
0
templates/home/pang.html.ep
Normal file → Executable file
0
templates/home/pang.html.ep
Normal file → Executable file
0
templates/home/tst.html.ep
Normal file → Executable file
0
templates/home/tst.html.ep
Normal file → Executable file
0
templates/layouts/admin.html.ep
Normal file → Executable file
0
templates/layouts/admin.html.ep
Normal file → Executable file
0
templates/layouts/clean.html.ep
Normal file → Executable file
0
templates/layouts/clean.html.ep
Normal file → Executable file
0
templates/layouts/default.html.ep
Normal file → Executable file
0
templates/layouts/default.html.ep
Normal file → Executable file
0
templates/layouts/defaultContact.html.ep
Normal file → Executable file
0
templates/layouts/defaultContact.html.ep
Normal file → Executable file
Reference in New Issue
Block a user