Browse Source

chemin shake

Sniperovitch 8 years ago
parent
commit
6609912ee5
1 changed files with 2 additions and 8 deletions
  1. 2 8
      lib/Bartender.pm

+ 2 - 8
lib/Bartender.pm

@@ -5,11 +5,6 @@ use POSIX ();
 
 
 our $VERSION = '0.1';
 our $VERSION = '0.1';
 
 
-#get '/' => sub {
-#    send_file '/index.html';
-#};
-
-
 get '/shake' => sub {
 get '/shake' => sub {
     my %param = params;
     my %param = params;
 
 
@@ -18,9 +13,8 @@ get '/shake' => sub {
     my $opt_garde  = $param{projetPadGarde};
     my $opt_garde  = $param{projetPadGarde};
     my $opt_projet = $param{projetId};
     my $opt_projet = $param{projetId};
 
 
-    system("/home/sniperovitch/cocktail/cocktail -d $opt_dossier -b '$opt_base' -g '$opt_garde' -p $opt_projet &");
-     redirect request-referer;
-#    send_file '/index.html';
+    system("/home/sniperovitch/cocktail/cocktail -d $opt_dossier -b '$opt_base' -g '$opt_garde' -p $opt_projet");
+     redirect request->referer;
 };
 };