HELP SOS probleme accé refusé
Bonjour et merci à ceux qui veulent bien m'aider,
Développeur récent j'ai une cliente qui m' a confié la gestion de son site
réalisé en 2006.
Il posséde une fonction backoffice
Le backoffice fonctionne sans soucis pour charger vidéo, photo et mise à jour de certains rubriques et textes.
Depuis quelques jours la fonction de mise à jour pour certaines rubriques ne fonctionne plus, on saisie les mises à jour mais quand nous confirmons nous avons le message d'erreur suivant :
You don't have permission to access /back_office/change_content_standard.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Rien n'a été changé voici le code de la page
<?PHP
// on ouvre la session
session_start();
//conf sql/php
require("conf.inc.php"wink;
$connexion = mysql_connect("$dbhost","$user","$password"wink;
if ( !$connexion ) { echo "Impossible d'effectuer la connexion"; exit; }
// sélection de la base de données
$db = mysql_select_db("$usebdd", $connexion);
if ( !$db ) { echo "Impossible de sélectionner cette base de données"; exit; }
// *****************************
// variables transmises
// $_GET['id'] -> variable de l'identité du contenu concerné
// *****************************
if(isset($_POST['validation'])){
// on valide le formulaire donc on exécute UPDATE ou INSERT
if($_POST['id']==""wink{
//ici id est null donc c'est un INSERT
$req = "INSERT INTO `contenu_texte_V2` ( `id` , `pourMoi` , `identifiant` , `date` , `titre_fr` , `titre_1` , `titre_2` , `titre_3` , `description_fr` , `description_1` , `description_2` , `description_3` , `fichierp` , `fichierg` , `cadre` , `position` , `active` ) VALUES ('','','".$_POST['key']."',NOW(),'".$_POST['titre_fr']."','".$_POST['titre_1']."','".$_POST['titre_2']."','".$_POST['titre_3']."','".$_POST['description_fr']."','".$_POST['description_1']."','".$_POST['description_2']."','".$_POST['description_3']."','".$_POST['photoChoix']."','".$_POST['photoChoix2']."','".$_POST['cadrePhoto']."','".$_POST['position']."','1')";
}else{
// si les champs pour la photo sont vide on ne les mets pas dans la requete
if($_POST['photoChoix']!="" and $_POST['photoChoix2']!="" and $_POST['cadrePhoto']!=""wink{
$addReqPhoto = "fichierp='".$_POST['photoChoix']."',fichierg='".$_POST['photoChoix2']."',";
}
// ici id vaut quu chose donc c'est un UPDATE
$req = "UPDATE contenu_texte_V2 SET titre_fr='".$_POST['titre_fr']."',titre_1='".$_POST['titre_1']."',titre_2='".$_POST['titre_2']."',titre_3='".$_POST['titre_3']."',description_fr='".$_POST['description_fr']."',description_1='".$_POST['description_1']."',description_2='".$_POST['description_2']."',description_3='".$_POST['description_3']."',cadre='".$_POST['cadrePhoto']."',".$addReqPhoto." position=".$_POST['position']." where id='".$_POST['id']."'";
$id = $_POST['id'];
}
// on copie l'image si partie gratuite dans le dossier image
if($_SESSION['partie']=="gratuit" and $_POST['photoChoix']!=""wink{
//$repertoire="/var/www/crazymouse/bara/membre/galerie".$_POST['photoChoixType']."/";
//$repertoireWeb="http://www.crazy-mouse.com/bara/membre/galerie".$type."/";
//suppresion si demandé
//$repertoire="/var/www/bara/membre/galerie".$_POST['photoChoixType']."/";
//$repertoireWeb="http://www.agnes-nue.com/membre/gal
$fileToCopy = "/var/www/bara/membre/galerie".$_POST['photoChoixType']."/".$_POST['photoChoix'];
$fileDest = "/var/www/bara/image/".$_POST['photoChoix'];
if(!copy($fileToCopy,$fileDest)){echo "échec de la copie";}
}
mysql_query($req,$connexion);
if($_POST['supPhoto']=="ok"wink{// on supprime le lien vers la photo d'illustration
$req2 = "UPDATE contenu_texte_V2 SET fichierp='".$_POST['photoChoix']."',fichierg='".$_POST['photoChoix2']."',cadre='".$_POST['cadrePhoto']."' where id='".$_POST['id']."'";
mysql_query($req2,$connexion);
}
if($_POST['id']==""wink{$id = mysql_insert_id();}
//requete ---------------
// on retoure au formulaire
//header("location:change_content_standard.php?id=".$id."&key=".$_POST['key']);
//exit;
}
if(isset($_GET['id'])){
// requete ---------------
$req = mysql_query("SELECT * FROM contenu_texte_V2 WHERE id='".$_GET['id']."'"wink;
$ligne = mysql_fetch_array($req);
$titre_fr = $ligne['titre_fr'];
/*$titre_1 = $ligne['titre_1'];
$titre_2 = $ligne['titre_2'];
$titre_3 = $ligne['titre_3'];*/
$description_fr = $ligne['description_fr'];
/*$description_1 = $ligne['description_1'];
$description_2 = $ligne['description_2'];
$description_3 = $ligne['description_3'];*/
$position = $ligne['position'];
$photo = $ligne['fichierp'];
if($ligne['cadre']=="video"wink{ $selection1=" selected";}elseif($ligne['cadre']=="photo"wink{ $selection2=" selected";}
}else{}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Contenu de la rubrique</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="lien_or.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data" name="form1">
<table width="600" border="0" cellspacing="1" cellpadding="0">
<tr align="center">
<td colspan="2" class="bmauve">ajouter/changer le contenu</td>
</tr>
<tr>
<td><font size="6">1.</font><span class="textnoirgpetit">(changer le titre)</span></td>
<td> </td>
</tr>
<tr>
<td colspan="2"><p><span class="textnoirg">titre du paragraphe : </span><br>
<input name="titre_fr" type="text" class="textnoirgpetit" id="titre_fr" value="<? echo $titre_fr; ?>" size="50" maxlength="100">
<br>
<br>
</p>
</td>
</tr>
<tr>
<td colspan="2"><hr noshade class="champ">
</td>
</tr>
<tr>
<td colspan="2" class="textnoirg"><table width="600" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFEA">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><font size="6">2.</font><span class="textnoirgpetit">(changer
le texte)</span></td>
<td> </td>
</tr>
<tr>
<td colspan="2"><p><span class="textnoirg">Texte du paragraphe
:<br>
<textarea name="description_fr" cols="100" rows="6" class="textnoirgpetit" id="description_fr"><? echo $description_fr; ?></textarea>
</span><span class="textnoirg"></span><br>
</p>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><span class="textnoirg">Position :</span>
<input name="position" type="text" class="textnoirgpetit" id="position" value="<? echo $position;?>" size="3">
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><input name="validation" type="hidden" id="validation" value="ok">
<input name="id" type="hidden" id="id" value="<? echo $_GET['id'];?>">
<input name="key" type="hidden" id="key" value="<? echo $_GET['key'];?>">
<input name="key" type="hidden" id="key" value="<? echo $_POST['key'];?>">
</td>
</tr>
<tr>
<td colspan="2"><table width="600" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#FFFFFF">
<td colspan="2" align="center" class="bmauve"><br>
Photo illustrative du paragraphe</td>
</tr>
<tr>
<td width="243"><font size="6">3.</font><span class="textnoirgpetit">(partie
photo)</span></td>
<td width="354"> </td>
</tr>
<tr>
<td colspan="2"><p><br>
</p>
</td>
</tr>
<tr>
<td colspan="2"><hr noshade class="champ">
</td>
</tr>
<tr>
<td colspan="2" class="textnoirg">Photo d illustration (a)</td>
</tr>
<tr>
<td valign="top"><span class="textnoirgpetit">Actuellement -></span> <span class="b_o">
<? if($photo==""wink{echo "aucune photo";}else{echo $photo;} ?>
<br>
</span> <? if($photo!=""wink{ ?><input name="supPhoto" type="checkbox" id="supPhoto" value="ok">
<span class="textnoirgpetit">supprimer la photo </span><? } ?> </td>
<td align="center"><p><a href="#" class="b_o" onClick="MM_openBrWindow('photo_selection.php','photo','status=yes,scrollbars=yes,resizable=yes,width=450,height=400')">Insérer
une photo</a></p>
<p align="right"><span class="textnoirgpetit"> <strong>votre
choix</strong> -> </span> <br>
<span class="textnoirgpetit">Nom de l image illustrative
:</span> <input name="photoChoix" type="text" class="textnoirgpetit" id="photoChoix">
<span class="textnoirgpetit"><br>
Nom du fichier lié (photo ou vidéo) :</span>
<input name="photoChoix2" type="text" class="textnoirgpetit" id="photoChoix3">
<span class="textnoirgpetit"></span><span class="textnoirgpetit"> <br>
Type du fichier :</span> <input name="photoChoixType" type="text" class="textnoirgpetit" id="photoChoixType">
<br>
<span class="textnoirgpetit"><em>***Laisser les 3 champs
ci-dessus se remplir automatiquement à l aide de la sélection
que
vous
ferez
sur la fenêtre que vous
avez ouverte (cliquez sur "insérer une photo"wink.</em></span></p></td>
</tr>
<tr>
<td colspan="2" class="textnoirgpetit">Cadre de décoration
de la photo <strong>(b)</strong> :
<select name="cadrePhoto" id="cadrePhoto">
<option value="video"<? echo $selection1;?>>vidéo</option>
<option value="photo"<? echo $selection2;?>>photo</option>
</select></td>
</tr>
<tr>
<td colspan="2" class="textnoirgpetit"><em>Cette photo doit faire
maxi 200 px de large et 300 px de hauteur</em></td>
</tr>
<tr>
<td colspan="2"><hr noshade class="champ">
</td>
</tr>
<tr>
<td colspan="2" class="textnoirgpetit"><p><strong>Aide :</strong></p>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td colspan="2" class="textnoirgpetit"><strong>Aide HTML</strong></td>
</tr>
<tr>
<td width="50%" class="textnoirgpetit">Saut de ligne</td>
<td class="textnoirg"><br></td>
</tr>
<tr>
<td width="50%" class="textnoirgpetit">Italic</td>
<td class="textnoirg"><i>texte</i></td>
</tr>
<tr>
<td width="50%" class="textnoirgpetit">Gras</td>
<td class="textnoirg"><b>texte</b></td>
</tr>
<tr>
<td width="50%" class="textnoirgpetit">Souligné</td>
<td class="textnoirg"><u>texte</u></td>
</tr>
<tr>
<td width="50%" class="textnoirgpetit">trait de séparation</td>
<td class="textnoirg"><hr size="1" noshade
class="hr"></td>
</tr>
<tr>
<td colspan="2" class="textnoirgpetit"><p>Vous pouvez faire
des liens interactifs dans vos paragraphes partie membre
et visiteur.<br>
Exemple : vous pouvez dans le partie membre dans le premier
paragraphe de la rubrique vidéo faire un lien "téléchargez
un extrait" qui pointera sur la page "galerie vidéo".<br>
1/ repérez l identifiant de la page que vous souhaitez
cibler (en allant sur le site éxaminez dans l url la
valeur de "idNav=". ex -> la galerie photo a pour identifiant
"9", <strong>?idNav=9<br>
</strong>Reste à faire le lien URL comme suit -><br>
<strong><a href="?idNav=9" class="blanc">Téléchargez
un extrait</a><br>
</strong>ou<br>
<strong><a href="?idNav=9" class="bleu">Téléchargez
un extrait</a></strong></p></td>
</tr>
</table>
<p><strong>a/
</strong>ce
panneau vous permet de créer des paragraphes attachés aux rubriques
que vous avez préalablement créés.<br>
Ces paragraphes fonctionnent aussi bien pour la partie membre
que pour la partie gratuite (visite).<br>
La gestion côté visiteur se fera automatiquement.<br>
Exemple : si vous créez un paragraphe dans la rubrique "accueil"
de la partie gratuite, la photo illustrative, que vous choisirez,
sera cliquable mais redirigera l internaute sur le module d accès
(paiement).<br>
Ci ce paragraphe est créé dans la partie membre cette même
image sera elle aussi cliquable mais ouvrira le fichier lié
(image grand format ou vidéo)</p>
<p><strong>b/</strong> ce champ d option vous permet de faire un choix au niveau
design (présentation de la photo)<br>
En sélectionnant "photo" un encadré de photo entourera l image.<br>
En sélectionnant "vidéo"
un encadré de vidéo entourera l image.</p>
</td>
</tr>
<tr>
<td colspan="2" align="center"><input name="cat" type="hidden" id="cat" value="<? echo $_GET['cat']; ?>">
<input name="key2" type="hidden" id="key2" value="<? echo $_GET['key']; ?>">
<input name="validation" type="hidden" id="validation" value="ok">
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><hr noshade class="champ">
</td>
</tr>
<tr align="center">
<td colspan="2"><input name="Submit" type="submit" class="textnoirgpetit" value="--> Valider <--">
</td>
</tr>
</table>
</form>
<form name="form1" method="post" action="view_menu.php">
<input name="Submit2" type="submit" class="textnoirgpetit" value="<< retour à la page des menus">
</form>
<p> </p>
</body>
</html>
Quelqu'un aurez t'il SVP une idée de piste?
Serveur APACHE2 sous Cpanel
Merci beaucoup
Reply
Liens - Qui sommes-nous ? - Informations légales - Contact - © viaPHP.net
viaPHP, cours PHP

Bonjour et merci à ceux qui veulent bien m'aider,
Développeur récent j'ai une cliente qui m' a confié la gestion de son site
réalisé en 2006.
Il posséde une fonction backoffice
Le backoffice fonctionne sans soucis pour charger vidéo, photo et mise à jour de certains rubriques et textes.
Depuis quelques jours la fonction de mise à jour pour certaines rubriques ne fonctionne plus, on saisie les mises à jour mais quand nous confirmons nous avons le message d'erreur suivant :
You don't have permission to access /back_office/change_content_standard.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Rien n'a été changé voici le code de la page
<?PHP
// on ouvre la session
session_start();
//conf sql/php
require("conf.inc.php"wink;
$connexion = mysql_connect("$dbhost","$user","$password"wink;
if ( !$connexion ) { echo "Impossible d'effectuer la connexion"; exit; }
// sélection de la base de données
$db = mysql_select_db("$usebdd", $connexion);
if ( !$db ) { echo "Impossible de sélectionner cette base de données"; exit; }
// *****************************
// variables transmises
// $_GET['id'] -> variable de l'identité du contenu concerné
// *****************************
if(isset($_POST['validation'])){
// on valide le formulaire donc on exécute UPDATE ou INSERT
if($_POST['id']==""wink{
//ici id est null donc c'est un INSERT
$req = "INSERT INTO `contenu_texte_V2` ( `id` , `pourMoi` , `identifiant` , `date` , `titre_fr` , `titre_1` , `titre_2` , `titre_3` , `description_fr` , `description_1` , `description_2` , `description_3` , `fichierp` , `fichierg` , `cadre` , `position` , `active` ) VALUES ('','','".$_POST['key']."',NOW(),'".$_POST['titre_fr']."','".$_POST['titre_1']."','".$_POST['titre_2']."','".$_POST['titre_3']."','".$_POST['description_fr']."','".$_POST['description_1']."','".$_POST['description_2']."','".$_POST['description_3']."','".$_POST['photoChoix']."','".$_POST['photoChoix2']."','".$_POST['cadrePhoto']."','".$_POST['position']."','1')";
}else{
// si les champs pour la photo sont vide on ne les mets pas dans la requete
if($_POST['photoChoix']!="" and $_POST['photoChoix2']!="" and $_POST['cadrePhoto']!=""wink{
$addReqPhoto = "fichierp='".$_POST['photoChoix']."',fichierg='".$_POST['photoChoix2']."',";
}
// ici id vaut quu chose donc c'est un UPDATE
$req = "UPDATE contenu_texte_V2 SET titre_fr='".$_POST['titre_fr']."',titre_1='".$_POST['titre_1']."',titre_2='".$_POST['titre_2']."',titre_3='".$_POST['titre_3']."',description_fr='".$_POST['description_fr']."',description_1='".$_POST['description_1']."',description_2='".$_POST['description_2']."',description_3='".$_POST['description_3']."',cadre='".$_POST['cadrePhoto']."',".$addReqPhoto." position=".$_POST['position']." where id='".$_POST['id']."'";
$id = $_POST['id'];
}
// on copie l'image si partie gratuite dans le dossier image
if($_SESSION['partie']=="gratuit" and $_POST['photoChoix']!=""wink{
//$repertoire="/var/www/crazymouse/bara/membre/galerie".$_POST['photoChoixType']."/";
//$repertoireWeb="http://www.crazy-mouse.com/bara/membre/galerie".$type."/";
//suppresion si demandé
//$repertoire="/var/www/bara/membre/galerie".$_POST['photoChoixType']."/";
//$repertoireWeb="http://www.agnes-nue.com/membre/gal
$fileToCopy = "/var/www/bara/membre/galerie".$_POST['photoChoixType']."/".$_POST['photoChoix'];
$fileDest = "/var/www/bara/image/".$_POST['photoChoix'];
if(!copy($fileToCopy,$fileDest)){echo "échec de la copie";}
}
mysql_query($req,$connexion);
if($_POST['supPhoto']=="ok"wink{// on supprime le lien vers la photo d'illustration
$req2 = "UPDATE contenu_texte_V2 SET fichierp='".$_POST['photoChoix']."',fichierg='".$_POST['photoChoix2']."',cadre='".$_POST['cadrePhoto']."' where id='".$_POST['id']."'";
mysql_query($req2,$connexion);
}
if($_POST['id']==""wink{$id = mysql_insert_id();}
//requete ---------------
// on retoure au formulaire
//header("location:change_content_standard.php?id=".$id."&key=".$_POST['key']);
//exit;
}
if(isset($_GET['id'])){
// requete ---------------
$req = mysql_query("SELECT * FROM contenu_texte_V2 WHERE id='".$_GET['id']."'"wink;
$ligne = mysql_fetch_array($req);
$titre_fr = $ligne['titre_fr'];
/*$titre_1 = $ligne['titre_1'];
$titre_2 = $ligne['titre_2'];
$titre_3 = $ligne['titre_3'];*/
$description_fr = $ligne['description_fr'];
/*$description_1 = $ligne['description_1'];
$description_2 = $ligne['description_2'];
$description_3 = $ligne['description_3'];*/
$position = $ligne['position'];
$photo = $ligne['fichierp'];
if($ligne['cadre']=="video"wink{ $selection1=" selected";}elseif($ligne['cadre']=="photo"wink{ $selection2=" selected";}
}else{}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Contenu de la rubrique</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="lien_or.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data" name="form1">
<table width="600" border="0" cellspacing="1" cellpadding="0">
<tr align="center">
<td colspan="2" class="bmauve">ajouter/changer le contenu</td>
</tr>
<tr>
<td><font size="6">1.</font><span class="textnoirgpetit">(changer le titre)</span></td>
<td> </td>
</tr>
<tr>
<td colspan="2"><p><span class="textnoirg">titre du paragraphe : </span><br>
<input name="titre_fr" type="text" class="textnoirgpetit" id="titre_fr" value="<? echo $titre_fr; ?>" size="50" maxlength="100">
<br>
<br>
</p>
</td>
</tr>
<tr>
<td colspan="2"><hr noshade class="champ">
</td>
</tr>
<tr>
<td colspan="2" class="textnoirg"><table width="600" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFEA">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><font size="6">2.</font><span class="textnoirgpetit">(changer
le texte)</span></td>
<td> </td>
</tr>
<tr>
<td colspan="2"><p><span class="textnoirg">Texte du paragraphe
:<br>
<textarea name="description_fr" cols="100" rows="6" class="textnoirgpetit" id="description_fr"><? echo $description_fr; ?></textarea>
</span><span class="textnoirg"></span><br>
</p>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><span class="textnoirg">Position :</span>
<input name="position" type="text" class="textnoirgpetit" id="position" value="<? echo $position;?>" size="3">
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><input name="validation" type="hidden" id="validation" value="ok">
<input name="id" type="hidden" id="id" value="<? echo $_GET['id'];?>">
<input name="key" type="hidden" id="key" value="<? echo $_GET['key'];?>">
<input name="key" type="hidden" id="key" value="<? echo $_POST['key'];?>">
</td>
</tr>
<tr>
<td colspan="2"><table width="600" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#FFFFFF">
<td colspan="2" align="center" class="bmauve"><br>
Photo illustrative du paragraphe</td>
</tr>
<tr>
<td width="243"><font size="6">3.</font><span class="textnoirgpetit">(partie
photo)</span></td>
<td width="354"> </td>
</tr>
<tr>
<td colspan="2"><p><br>
</p>
</td>
</tr>
<tr>
<td colspan="2"><hr noshade class="champ">
</td>
</tr>
<tr>
<td colspan="2" class="textnoirg">Photo d illustration (a)</td>
</tr>
<tr>
<td valign="top"><span class="textnoirgpetit">Actuellement -></span> <span class="b_o">
<? if($photo==""wink{echo "aucune photo";}else{echo $photo;} ?>
<br>
</span> <? if($photo!=""wink{ ?><input name="supPhoto" type="checkbox" id="supPhoto" value="ok">
<span class="textnoirgpetit">supprimer la photo </span><? } ?> </td>
<td align="center"><p><a href="#" class="b_o" onClick="MM_openBrWindow('photo_selection.php','photo','status=yes,scrollbars=yes,resizable=yes,width=450,height=400')">Insérer
une photo</a></p>
<p align="right"><span class="textnoirgpetit"> <strong>votre
choix</strong> -> </span> <br>
<span class="textnoirgpetit">Nom de l image illustrative
:</span> <input name="photoChoix" type="text" class="textnoirgpetit" id="photoChoix">
<span class="textnoirgpetit"><br>
Nom du fichier lié (photo ou vidéo) :</span>
<input name="photoChoix2" type="text" class="textnoirgpetit" id="photoChoix3">
<span class="textnoirgpetit"></span><span class="textnoirgpetit"> <br>
Type du fichier :</span> <input name="photoChoixType" type="text" class="textnoirgpetit" id="photoChoixType">
<br>
<span class="textnoirgpetit"><em>***Laisser les 3 champs
ci-dessus se remplir automatiquement à l aide de la sélection
que
vous
ferez
sur la fenêtre que vous
avez ouverte (cliquez sur "insérer une photo"wink.</em></span></p></td>
</tr>
<tr>
<td colspan="2" class="textnoirgpetit">Cadre de décoration
de la photo <strong>(b)</strong> :
<select name="cadrePhoto" id="cadrePhoto">
<option value="video"<? echo $selection1;?>>vidéo</option>
<option value="photo"<? echo $selection2;?>>photo</option>
</select></td>
</tr>
<tr>
<td colspan="2" class="textnoirgpetit"><em>Cette photo doit faire
maxi 200 px de large et 300 px de hauteur</em></td>
</tr>
<tr>
<td colspan="2"><hr noshade class="champ">
</td>
</tr>
<tr>
<td colspan="2" class="textnoirgpetit"><p><strong>Aide :</strong></p>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td colspan="2" class="textnoirgpetit"><strong>Aide HTML</strong></td>
</tr>
<tr>
<td width="50%" class="textnoirgpetit">Saut de ligne</td>
<td class="textnoirg"><br></td>
</tr>
<tr>
<td width="50%" class="textnoirgpetit">Italic</td>
<td class="textnoirg"><i>texte</i></td>
</tr>
<tr>
<td width="50%" class="textnoirgpetit">Gras</td>
<td class="textnoirg"><b>texte</b></td>
</tr>
<tr>
<td width="50%" class="textnoirgpetit">Souligné</td>
<td class="textnoirg"><u>texte</u></td>
</tr>
<tr>
<td width="50%" class="textnoirgpetit">trait de séparation</td>
<td class="textnoirg"><hr size="1" noshade
class="hr"></td>
</tr>
<tr>
<td colspan="2" class="textnoirgpetit"><p>Vous pouvez faire
des liens interactifs dans vos paragraphes partie membre
et visiteur.<br>
Exemple : vous pouvez dans le partie membre dans le premier
paragraphe de la rubrique vidéo faire un lien "téléchargez
un extrait" qui pointera sur la page "galerie vidéo".<br>
1/ repérez l identifiant de la page que vous souhaitez
cibler (en allant sur le site éxaminez dans l url la
valeur de "idNav=". ex -> la galerie photo a pour identifiant
"9", <strong>?idNav=9<br>
</strong>Reste à faire le lien URL comme suit -><br>
<strong><a href="?idNav=9" class="blanc">Téléchargez
un extrait</a><br>
</strong>ou<br>
<strong><a href="?idNav=9" class="bleu">Téléchargez
un extrait</a></strong></p></td>
</tr>
</table>
<p><strong>a/
</strong>ce
panneau vous permet de créer des paragraphes attachés aux rubriques
que vous avez préalablement créés.<br>
Ces paragraphes fonctionnent aussi bien pour la partie membre
que pour la partie gratuite (visite).<br>
La gestion côté visiteur se fera automatiquement.<br>
Exemple : si vous créez un paragraphe dans la rubrique "accueil"
de la partie gratuite, la photo illustrative, que vous choisirez,
sera cliquable mais redirigera l internaute sur le module d accès
(paiement).<br>
Ci ce paragraphe est créé dans la partie membre cette même
image sera elle aussi cliquable mais ouvrira le fichier lié
(image grand format ou vidéo)</p>
<p><strong>b/</strong> ce champ d option vous permet de faire un choix au niveau
design (présentation de la photo)<br>
En sélectionnant "photo" un encadré de photo entourera l image.<br>
En sélectionnant "vidéo"
un encadré de vidéo entourera l image.</p>
</td>
</tr>
<tr>
<td colspan="2" align="center"><input name="cat" type="hidden" id="cat" value="<? echo $_GET['cat']; ?>">
<input name="key2" type="hidden" id="key2" value="<? echo $_GET['key']; ?>">
<input name="validation" type="hidden" id="validation" value="ok">
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><hr noshade class="champ">
</td>
</tr>
<tr align="center">
<td colspan="2"><input name="Submit" type="submit" class="textnoirgpetit" value="--> Valider <--">
</td>
</tr>
</table>
</form>
<form name="form1" method="post" action="view_menu.php">
<input name="Submit2" type="submit" class="textnoirgpetit" value="<< retour à la page des menus">
</form>
<p> </p>
</body>
</html>
Quelqu'un aurez t'il SVP une idée de piste?
Serveur APACHE2 sous Cpanel
Merci beaucoup
Reply
Liens - Qui sommes-nous ? - Informations légales - Contact - © viaPHP.net
viaPHP, cours PHP