« Programmation PHP/Exemples/MiniCMS/Premier noyau » : différence entre les versions

Contenu supprimé Contenu ajouté
Ligne 2 227 :
Deux points d'entrées :
Objects/Frontend/admin.inc.php
{{Boîte déroulante|titre= Objects/Frontend/entry.inc.php |contenu =
<source lang="php">
<?php
 
//
</source>
 
require_once CLA . "/utilities.class.php" ;
require_once CLA . "/templateControler.class.php" ;
 
require_once FUN. "/common.inc.php" ;
 
//
$tmp = new templateControler(array("path"=>"./Owners/".(@$_REQUEST["entry"]?@$_REQUEST["entry"]:"Dummy")."/Templates/admin.xml"));
 
# STATE
 
// get the content main page
$tmp->initFrame(
$tmp
->getNode("//template/frameset/content")
) ;
// authentification
$tmp->setTag("customer","<input type='hidden' value='".(@$_REQUEST['entry']?$_REQUEST['entry']:"Root")."' id='customerName' />" );
if(@$_SESSION["autho"]["credit"])
$tmp->setTag("logged","<input type='hidden' value='1' id='iLogged' />" );
$tmp->getAnchors( $tmp->data['feed'][0]->nodeValue ) ;
$tmp->anchorContentReplacer() ;
$tmp->setFrame() ;
 
# OUTPUT
echo $tmp->data['frameset'] ;
 
?>
</source>
}}
 
Objects/Frontend/entry.inc.php dans sa version finale
{{Boîte déroulante|titre= Objects/Frontend/entry.inc.php |contenu =
<source lang="php">
<?php
Ligne 2 312 ⟶ 2 348 :
?>
</source>
}}
 
= Le Troisieme noyau =