Subversion Repositories Applications.framework

Rev

Rev 261 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 261 Rev 262
Line 1... Line 1...
1
 <?php 
1
 <?php 
2
 	session_start();
-
 
3
	//Inclusion du framework
2
 	//Inclusion du framework
4
	//TODO : n'inclure que si nécessaire
-
 
5
	require '/home/greg/web/framework_trunk/framework/Framework.php';
3
	require '../../framework/Framework.php';
Line 6... Line 4...
6
 
4
 
7
	// Ajout d'information concernant cette application
5
	// Ajout d'information concernant cette application
8
	Framework::setCheminAppli(__FILE__);// Obligatoire
6
	Framework::setCheminAppli(__FILE__);// Obligatoire
Line 9... Line -...
9
	Framework::setInfoAppli(Config::get('info'));// Optionnel
-
 
10
	
-
 
11
	//FIXME : voir pourquoi ca ne marche pas automatiquement avec le framework ...
-
 
12
	function __autoload($nom_classe) {
-
 
13
	// Tableau des chemins à inclure pour trouver une classe relatif à ce fichier
-
 
14
	    $chemins = array(
-
 
15
	        '/home/greg/web/framework_trunk/framework', '/home/greg/web/tela_open_id/lib/Storage',
-
 
16
	     '/home/greg/web/tela_open_id/lib/');
-
 
17
	    foreach ($chemins as $chemin) {
-
 
18
	        $fichier_a_inclure = $chemin.'/'.$nom_classe.'.php';
-
 
19
	       
-
 
20
	        if (file_exists($fichier_a_inclure)) {
-
 
21
	            include_once $fichier_a_inclure;
-
 
22
	            return null;
-
 
23
	        }
-
 
24
	    }
-
 
25
	}
-
 
26
	
-
 
27
	echo var_dump($_REQUEST);
-
 
28
	
-
 
29
	include 'lib/OpenIdClient.php';
7
	Framework::setInfoAppli(Config::get('info'));// Optionnel
Line 30... Line 8...
30
		 
8
	
31
	$status = "";
9
	$status = "";
32
	
10
	
Line 48... Line 26...
48
              }
26
              }
49
          } else if ($_GET['openid_mode'] == "cancel") {
27
          } else if ($_GET['openid_mode'] == "cancel") {
50
              $status = "CANCELLED";
28
              $status = "CANCELLED";
51
          }
29
          }
52
      }
30
      }
53
      
-
 
54
      
-
 
55
?>
31
?>
Line 56... Line 32...
56
 
32
 
57
<!DOCTYPE html>
33
<!DOCTYPE html>
58
	<html lang="fr">
34
	<html lang="fr">