source: trunk/web/app/mods/e_playlist.php @ 1

Last change on this file since 1 was 1, checked in by dj3c1t, 13 years ago

import initial

File size: 788 bytes
Line 
1<?php
2
3  function e_playlist($env)
4  { if($_GET[$env->param("action")])
5    { $env->a = $_GET[$env->param("action")];
6      $function = "a_".$env->a;
7      if(function_exists($function))
8      { if(($env->out["licences"] = $env->data->licences()) !== false)
9        { $function($env);
10        }
11        else $env->erreur = "Impossible de lire la liste des licences";
12      }
13    }
14  }
15
16  function a_last_downloads($env)
17  { if(($env->out["downloads"] = $env->data->pl_last_downloads(10)) !== false)
18    {
19    }
20    else $env->erreur = "Impossible de lire la liste des downloads.";
21  }
22
23  function a_rand_downloads($env)
24  { if(($env->out["downloads"] = $env->data->pl_rand_downloads(10)) !== false)
25    {
26    }
27    else $env->erreur = "Impossible de lire la liste des downloads.";
28  }
29
30?>
Note: See TracBrowser for help on using the repository browser.