• 0
sotha sil

en cours problème administration

Question

Bonjour à tous,

 

J'ai un CMS Xnova, tout s'installe bien, mais quand je veux modifier un truc par le biais du panel admin, ça me met ceci :

"You don't have permission to access /admin.php on this server."

 

Pourtant j'ai allow from all partout et mes permissions sont à 0777, je ne vois as où l'erreur se situe :-/

Comment résoudre ce souci SVP.?

 

Merci d'avance pour vos réponses.

Cordialement

 

Sotha Sil

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

bien sur, voilà^^

 

<?php

/**
_  \_/ |\ | /¯¯\ \  / /\    |¯¯) |_¯ \  / /¯¯\ |  |   |´¯|¯` | /¯¯\ |\ |5
¯  /¯\ | \| \__/  \/ /--\   |¯¯\ |__  \/  \__/ |__ \_/   |   | \__/ | \|Core.
* @author: Copyright (C) 2011 by Brayan Narvaez (Prinick) developer of xNova Revolution
* @author web: http://www.bnarvaez.com
* @link: http://www.xnovarev.com

* @package 2Moons
* @author Slaver 
* @copyright 2009 Lucky  (XGProyecto)
* @copyright 2011 Slaver  (Fork/2Moons)
* @license http://www.gnu.org/licenses/gpl.html GNU GPLv3 License
* @version 1.3 (2011-01-21)
* @link http://code.google.com/p/2moons/

* Please do not remove the credits
*/

define('INSIDE'  , true);
define('IN_ADMIN', true);

define('ROOT_PATH', str_replace('\\', '/',dirname(__FILE__)).'/');

require(ROOT_PATH . 'includes/common.php');

if ($USER['authlevel'] == AUTH_USR) redirectTo('game.php');

if(!isset($_SESSION['admin_login']) || $_SESSION['admin_login'] != $USER['password'])
{
include_once(ROOT_PATH . 'includes/pages/adm/ShowLoginPage.php');
ShowLoginPage();
exit;
}

$page = request_var('page', '');
$uni = request_var('uni', 0);

if($USER['authlevel'] == AUTH_ADM && !empty($uni))
$_SESSION['adminuni'] = $uni;
if(empty($_SESSION['adminuni']))
$_SESSION['adminuni'] = $UNI;

switch($page)
{
case 'infos':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowInformationPage.php');
	ShowInformationPage();
break;
case 'rights':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowRightsPage.php');
	ShowRightsPage();
break;
case 'config':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowConfigPage.php');
	ShowConfigPage();
break;
case 'teamspeak':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowTeamspeakPage.php');
	ShowTeamspeakPage();
break;
case 'facebook':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowFacebookPage.php');
	ShowFacebookPage();
break;
case 'module':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowModulePage.php');
	ShowModulePage();
break;
case 'statsconf':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowStatsPage.php');
	ShowStatsPage();
break;
case 'update':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowUpdatePage.php');
	ShowUpdatePage();
break;
case 'create':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowCreatorPage.php');
	ShowCreatorPage();
break;
case 'accounteditor':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowAccountEditorPage.php');
	ShowAccountEditorPage();
break;
case 'active':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowActivePage.php');
	ShowActivePage();
break;
case 'bans':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowBanPage.php');
	ShowBanPage();
break;
case 'messagelist':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowMessageListPage.php');
	ShowMessageListPage();
break;
case 'globalmessage':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowSendMessagesPage.php');
	ShowSendMessagesPage();
break;
case 'fleets':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowFlyingFleetPage.php');
	ShowFlyingFleetPage();
break;
case 'accountdata':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowAccountDataPage.php');
	ShowAccountDataPage();
break;
case 'support':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowSupportPage.php');
	ShowSupportPage();
break;
case 'password':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowPassEncripterPage.php');
	ShowPassEncripterPage();
break;
case 'search':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowSearchPage.php');
	ShowSearchPage();
break;
case 'qeditor':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowQuickEditorPage.php');
	ShowQuickEditorPage();
break;
case 'statsupdate':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowStatUpdatePage.php');
	ShowStatUpdatePage();
break;
case 'reset':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowResetPage.php');
	ShowResetPage();
break;
case 'news':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowNewsPage.php');
	ShowNewsPage();
break;
case 'topnav':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowTopnavPage.php');
	ShowTopnavPage();
break;
case 'mods':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowModVersionPage.php');
	ShowModVersionPage();
break;
case 'overview':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowOverviewPage.php');
	ShowOverviewPage();
break;
case 'menu':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowMenuPage.php');
	ShowMenuPage();
break;
case 'clearcache':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowClearCachePage.php');
	ShowClearCachePage();
break;
case 'universe':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowUniversePage.php');
	ShowUniversePage();
break;
case 'multiips':
	include_once(ROOT_PATH . 'includes/pages/adm/ShowMultiIPPage.php');
	ShowMultiIPPage();
break;
default:
	include_once(ROOT_PATH . 'includes/pages/adm/ShowIndexPage.php');
	ShowIndexPage();
break;
}

?>

Share this post


Link to post
Share on other sites
  • 0

en local, c'est erreur 500, un souci de module je pense, alors je n'ai pas insisté car j'ai vu que en l’hébergeant ça fonctionne, je boss dessus en direct.

Share this post


Link to post
Share on other sites
  • 0

Salut,

 

Tu as beau avoir "allow from all" mais tu peux avoir une règle de ton .htaccess qui limite l'accès à certains fichiers (et heureusement). Donc je pencherai plus sur la vérification de ce fichier en racine et dans le dossier contenu ton admin.php.

Allow from all permet l'accès au site en fait, sinon c'est Error 403, et tu as des règles qui refusent l'accès à certains fichiers, moi par exemple je refuse l'accès à tous mes fichiers sauf "x|Y|z|..." mais je suis en Allow from all partout.

Share this post


Link to post
Share on other sites