Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function e_links($env) |
---|
4 | { $env->path = array("root", "links"); |
---|
5 | $env->out["ariane"] = array(); |
---|
6 | if($_GET[$env->param("path")]) |
---|
7 | { $v_path = explode("/", $_GET[$env->param("path")]); |
---|
8 | foreach($v_path as $_path) if($_path) |
---|
9 | { $env->path[] = (int)$_path; |
---|
10 | $env->out["ariane"][$_path] = $env->data->links_categorie($_path); |
---|
11 | } |
---|
12 | } |
---|
13 | if(($env->out["current_categorie"] = $env->data->id_categorie($env->path)) !== false) |
---|
14 | { $env->a = "links"; |
---|
15 | $function = "a_".$env->a; |
---|
16 | if(function_exists($function)) $function($env); |
---|
17 | } |
---|
18 | else $env->erreur = "Impossible de lire le lien courant"; |
---|
19 | } |
---|
20 | |
---|
21 | # ------------------------------------------------------------------------------ |
---|
22 | # actions |
---|
23 | # |
---|
24 | |
---|
25 | function a_links($env) |
---|
26 | { if(($env->out["link"] = $env->data->links_categorie($env->out["current_categorie"])) !== false) |
---|
27 | { if(($env->out["links_categories"] = $env->data->links_categories($env->path)) !== false) |
---|
28 | { |
---|
29 | } |
---|
30 | else $env->erreur = "Impossible de lire les liens"; |
---|
31 | } |
---|
32 | else $env->erreur = "Impossible de lire le lien courant"; |
---|
33 | } |
---|
34 | |
---|
35 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.