j'ai sur mon disque un fichier main.php :
qui génère un code php tel que :
<?php
.........etc.........
include(dirname(__FILE__) . '/bootstrap.inc');
/*
* If they don't have a setup password, we assume that the config.php is empty and this is an
* initial install
*/
if (!@$gallery->getConfig('setup.password')) {
/* May be invalid if a multisite install lost its config.php; galleryBaseUrl unknown */
header('Location: install/');
return;
}
if ($gallery->isEmbedded()) {
require_once(dirname(__FILE__) . '/init.inc');
} else {
/* If this is a request for a public data file, give it to the user immediately */
$unsanitizedView = isset($_GET[GALLERY_FORM_VARIABLE_PREFIX . 'view']) ?
$_GET[GALLERY_FORM_VARIABLE_PREFIX . 'view'] : null;
$itemId = (int)(isset($_GET[GALLERY_FORM_VARIABLE_PREFIX . 'itemId']) ?
$_GET[GALLERY_FORM_VARIABLE_PREFIX . 'itemId'] : null);
if ($unsanitizedView == 'core.DownloadItem' && !empty($itemId)) {
/*
* Our URLs are immutable because they have the serial numbers embedded. If the browser
* presents us with an If-Modified-Since then it has the latest version of the file already.
*/
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])
|| (function_exists('getallheaders')
&& ($headers = getallheaders())
&& (isset($headers['If-Modified-Since'])
|| isset($headers['If-modified-since'])))) {
header('HTTP/1.0 304 Not Modified');
return;
}
/*
* Fast download depends on having data.gallery.cache set, so set it now. If for some
* reason we fail, we'll reset it in init.inc (but that's OK).
*/
$gallery->setConfig(
'data.gallery.cache', $gallery->getConfig('data.gallery.base') . 'cache/');
$path = GalleryDataCache::getCachePath(
array('type' => 'fast-download', 'itemId' => $itemId));
/* We don't have a platform yet so we have to use the raw file_exists */
/* Disable fast-download in maintenance mode, admins still get via core.DownloadItem */
if (file_exists($path) && !$gallery->getConfig('mode.maintenance')) {
include($path);
if (GalleryFastDownload()) {
return;
}
}
}
/* Otherwise, proceed with our regular process */
require_once(dirname(__FILE__) . '/init.inc');
$ret = GalleryInitFirstPass();
if ($ret) {
_GalleryMain_errorHandler($ret, null, false);
return;
}
..............etc.............
?>
Une fois chargé en local par wamp server, il m'affiche une page qui, si j'en obtient le code source sous Internet Explorer donne du html tel que par exemple :Code : Tout sélectionner
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="fr-FR">
<head>
<title>Administration d'Éléments de Gallery</title>
<link rel="stylesheet" type="text/css" href="modules/core/data/gallery.css"/>
<link rel="stylesheet" type="text/css" href="modules/albumselect/dtree.css"/>
<link rel="stylesheet" type="text/css" href="modules/icons/iconpacks/silk/icons.css"/>
<script type="text/javascript" src="modules/albumselect/dtree.js"></script>
<script type="text/javascript" src="modules/search/SearchBlock.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="themes/carbon/theme.css"/>
</head>
<body class="gallery">
<div id="gallery" class="IE">
<div id="gsHeader">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" width="50%">
<a href="main.php">
<img src="images/galleryLogo_sm.gif" alt=""/>
</a>
</td>
<td align="right" valign="top">
</td>
</tr>
</table>
</div>
<div id="gsNavBar" class="gcBorder1">
<div class="gbSystemLinks">
<span class="block-core-SystemLink">
<a href="main.php?g2_view=core.SiteAdmin&g2_return=%2Fgallery2%2Fmain.php%3Fg2_view%3Dcore.ItemAdmin%26g2_subView%3Dcore.ItemAdd%26g2_itemId%3D7%26g2_navId%3Dxbc5040ab&g2_returnName=ajouter+des+%C3%A9l%C3%A9ments&g2_navId=xbc5040ab">Administration du site</a>
</span>
«
<span class="block-core-SystemLink">
<a href="main.php?g2_view=core.UserAdmin&g2_subView=core.UserPreferences&g2_return=%2Fgallery2%2Fmain.php%3Fg2_view%3Dcore.ItemAdmin%26g2_subView%3Dcore.ItemAdd%26g2_itemId%3D7%26g2_navId%3Dxbc5040ab&g2_returnName=ajouter+des+%C3%A9l%C3%A9ments&g2_navId=xbc5040ab">Votre compte</a>
</span>
«
.................etc..........
</head>
</html>
Est-ce possible? Est-ce clair?
[Note : ce message a été posté de manière anonyme avant d'être réattribué à son auteur]