moving
This commit is contained in:
Regular → Executable
Regular → Executable
+1
-1
@@ -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 });
|
||||||
|
|||||||
Regular → Executable
+19
-28
@@ -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;
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+4
-1
@@ -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 ==============================================================
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
Regular → Executable
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
Regular → Executable
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Regular → Executable
@@ -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
|
||||||
|
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user