IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

EDI, CMS, Outils, Scripts et API PHP Discussion :

Erreur ! [EasyPHP]


Sujet :

EDI, CMS, Outils, Scripts et API PHP

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Inscrit en
    Septembre 2006
    Messages
    13
    Détails du profil
    Informations forums :
    Inscription : Septembre 2006
    Messages : 13
    Par défaut Erreur !
    Salut...

    J'ai codé pas mal des scripts php et je les ai executé sans probleme mais quand je voudrais executé une template PHP il m'affiche ce message "Direct Access to this location is not allowed" D'ou vient ce probleme et comment le resoudre svp !?
    J'ai easyphp 1.8...

    Merci d'avance !

  2. #2
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Par défaut
    surement de la ligne 4 mais le manque d'info notoire me fais dire qu'il va falloir approfondir ce post :

    quel system de template ?
    un bout de code svp ?

    merci
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  3. #3
    Membre averti
    Inscrit en
    Septembre 2006
    Messages
    13
    Détails du profil
    Informations forums :
    Inscription : Septembre 2006
    Messages : 13
    Par défaut
    La template contient index.php + fichier CSS + reprtoire "images" , et je sais pas quel type de tempalte ! (teléchergée d'Emule )
    vs pouvez m'aider svp ?

  4. #4
    Membre émérite
    Avatar de jc_cornic
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    623
    Détails du profil
    Informations personnelles :
    Âge : 50
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 623
    Par défaut
    Sans paraître répétitif, j'appuie le post de RideKick

    Tu nous demandes de t'aider mais on n'a pas ton code, les erreurs peuvent être multiples

    "Direct Access to this location is not allowed"
    Ca peut etre n'importe quel accès à un répertoire ou un fichier ou une url ou autre dont tu n'aurais pas les droits d'accès...

    Si tu veux de l'aide, il faut nous aider à t'aider (dur comme phrase, non?)

    ++
    JC

  5. #5
    Membre averti
    Inscrit en
    Septembre 2006
    Messages
    13
    Détails du profil
    Informations forums :
    Inscription : Septembre 2006
    Messages : 13
    Par défaut
    voici le code et merci d'avance :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    <?php echo "<?xml version=\"1.0\"?>"; 
    defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 
    ?> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <title><?php echo $mosConfig_sitename; ?></title> 
    <?php include ("editor/editor.php"); ?> 
    <?php initEditor(); ?> 
    <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" /> 
    <?php include ("includes/metadata.php"); ?> 
    <script language="JavaScript" type="text/javascript"> 
    <!-- 
    function MM_reloadPage(init) { //reloads the window if Nav4 resized 
    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { 
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} 
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); 
    } 
    MM_reloadPage(true); 
    //--> 
    </script> 
    <link href="templates/hosting/css/template_css.css" rel="stylesheet" type="text/css" /> 
    <link rel="shortcut icon" href="images/favicon.ico" /> 
    <?php // Custom MainMenu extension... 
    $database->setQuery("SELECT * FROM #__menu WHERE menutype = 'mainmenu' AND published ='1' AND parent = '0' ORDER BY ordering"); 
    $mymenu_rows = $database->loadObjectList(); 
    $mymenu_content = ""; 
    foreach($mymenu_rows as $mymenu_row) { 
    // print_r($mymenu_rows); 
    $mymenulink = $mymenu_row->link; 
    if ($mymenu_row->type != "url") { 
    $mymenulink .= "&Itemid=$mymenu_row->id"; 
    } 
    if ($mymenu_row->type != "separator") { 
    $mymenu_content .= "<a href=\"".sefRelToAbs($mymenulink)."\" class=\"bar\">$mymenu_row->name</a><font color=\"#62A1AA\"> | </font>"; 
    } 
    } 
    $mymenu_content = substr($mymenu_content,0,strlen($mymenu_content)-2); 
    ?> 
    </head> 
    <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> 
    <!-- ImageReady Slices (hosting_top.psd) --> 
    <TABLE WIDTH=770 BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor="#FFFFFF" style="border-left:1px solid #62A1AA; border-right:1px solid #62A1AA; "> 
    <TR> 
    <TD COLSPAN=4> 
    <IMG SRC="templates/hosting/images/hosting_top_01.gif" WIDTH=770 HEIGHT=182 ALT=""></TD> 
    </TR> 
    <TR> 
    <TD> 
    <IMG SRC="templates/hosting/images/hosting_top_02.gif" WIDTH=103 HEIGHT=50 ALT=""></TD> 
    <TD background="templates/hosting/images/hosting_top_03.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0"> 
    <tr> 
    <td><form action='<?php echo sefRelToAbs("index.php"); ?>' method='post'> 
    <div align="left"> 
    <input class="searchbox" type="text" name="searchword" height="16" size="15" value="<?php echo _SEARCH_BOX; ?>" onblur="if(this.value=='') this.value='<?php echo _SEARCH_BOX; ?>';" onfocus="if(this.value=='<?php echo _SEARCH_BOX; ?>') this.value='';" /> 
    <input type="hidden" name="option" value="search" /> 
    </div> 
    </td></form> 
    </tr> 
    </table></TD> 
    <TD COLSPAN=2> 
    <IMG SRC="templates/hosting/images/hosting_top_04.gif" WIDTH=496 HEIGHT=50 ALT=""></TD> 
    </TR> 
    <TR> 
    <TD height="95" COLSPAN=3 align="left" valign="bottom" background="templates/hosting/images/hosting_top_05.gif"><span class="pathway"> 
    &nbsp;&nbsp;&nbsp;<?php include "pathway.php"; ?> 
    </span> </TD> 
    <TD align="right" valign="bottom" background="templates/hosting/images/hosting_top_06.gif"><?php echo (strftime (_DATE_FORMAT_LC, time()+($mosConfig_offset*60*60))); ?>&nbsp;&nbsp;</TD> 
    </TR> 
    <TR> 
    <TD> 
    <IMG SRC="templates/hosting/images/spacer.gif" WIDTH=103 HEIGHT=1 ALT=""></TD> 
    <TD> 
    <IMG SRC="templates/hosting/images/spacer.gif" WIDTH=171 HEIGHT=1 ALT=""></TD> 
    <TD> 
    <IMG SRC="templates/hosting/images/spacer.gif" WIDTH=109 HEIGHT=1 ALT=""></TD> 
    <TD> 
    <IMG SRC="templates/hosting/images/spacer.gif" WIDTH=387 HEIGHT=1 ALT=""></TD> 
    </TR> 
    </TABLE> 
    <table width="772" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-left:1px solid #62A1AA; border-right:1px solid #62A1AA; "> 
    <tr> 
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> 
    <tr> 
    <td width="31%" valign="top"><TABLE WIDTH=237 BORDER=0 CELLPADDING=0 CELLSPACING=0> 
    <TR> 
    <TD COLSPAN=3> 
    <IMG SRC="templates/hosting/images/hosting_menu_01.gif" WIDTH=237 HEIGHT=55 ALT=""></TD> 
    </TR> 
    <TR> 
    <TD width="15" background="templates/hosting/images/hosting_menu_02.gif">&nbsp; </TD> 
    <TD width="196" background="templates/hosting/images/hosting_menu_03.gif"><p> 
    <?php mosLoadModules ( 'left' ); ?> 
    </p> 
    <p>&nbsp; </p></TD> 
    <TD width="26" background="templates/hosting/images/hosting_menu_04.gif">&nbsp; </TD> 
    </TR> 
    <TR> 
    <TD COLSPAN=3> 
    <IMG SRC="templates/hosting/images/hosting_menu_05.gif" WIDTH=237 HEIGHT=57 ALT=""></TD> 
    </TR> 
    </TABLE></td> 
    <td width="69%" align="left" valign="top" background="templates/hosting/images/bg.gif"><table width="100%" border="0" cellspacing="3" cellpadding="0"> 
    <tr> 
    <td><?php mosLoadModules ( 'top' ); ?></td> 
    </tr> 
    <tr> 
    <td><?php include ("mainbody.php"); ?></td> 
    </tr> 
    <tr> 
    <td>&nbsp;</td> 
    </tr> 
    </table></td> 
    </tr> 
    </table></td> 
    </tr> 
    <tr> 
    <td align="center" valign="middle" bgcolor="#E4F7FA" style="border-top:1px solid #62A1AA; border-bottom:1px solid #62A1AA "><span class="bar"><?php echo $mymenu_content ?></span></td> 
    </tr> 
    <tr> 
    <td align="center" valign="top"><p> 
    <?php mosLoadComponent( "banners" ); ?> 
    <?php mosLoadModules ( 'inset' ); ?> 
    </td> 
    </tr> 
    </table> 
     
    </BODY> 
    </HTML>

  6. #6
    Membre émérite
    Avatar de jc_cornic
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    623
    Détails du profil
    Informations personnelles :
    Âge : 50
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 623
    Par défaut
    Ok, pourrais-tu utiliser la balise CODE pour afficher ton code plus lisiblement, je suis fatigué et n'arrive pas à lire plus de 3 lignes...

    Pour info, la balise CODE est l'icone # juste au dessus de ton texte auqnd tu le saisi.

    ++
    JC

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Erreur fréquente avec ASP et IIS
    Par Community Management dans le forum ASP
    Réponses: 2
    Dernier message: 11/02/2004, 22h20
  2. Check Url pour savoir si erreur 404 ou si le site existe
    Par Clément[Delphi] dans le forum Composants VCL
    Réponses: 2
    Dernier message: 07/08/2002, 13h49
  3. Réponses: 2
    Dernier message: 27/05/2002, 19h46
  4. erreur IDL:omg.org/CORBA/MARSHAL:1.0
    Par Pinggui dans le forum CORBA
    Réponses: 3
    Dernier message: 13/05/2002, 15h05
  5. [Kylix] Erreur objet
    Par Anonymous dans le forum EDI
    Réponses: 1
    Dernier message: 22/03/2002, 09h41

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo