Skocz do zawartości
Hosting webh.pl - 20%

Biała strona

Rekomendowane odpowiedzi

Opublikowano

Witam, instalowałem pewien skrypt, na jednym serwerze wykupionym i działa poprawnie. Następnie pliki wgrałem już po testach na serwer właściwy i wszystko wydawać by się mogło działa poprawnie, niestety, jeśli chcemy się zalogować do "Strefy Admina" to wywala Blank Page.

www.amxbans.hmhost.pl/

- tutaj działa wszystko

oraz

cmc.cybernet.swidnica.pl/amxbans/

- tutaj nie

Konto testowe do obu (ta sama baza danych)

test/test

Opublikowano
  • Autor

*/ session_start(); if( $_SESSION['level'] == NULL || !$_SESSION['loggedin']==true) { header("Location: index.php"); exit; } require_once("include/config.inc.php"); require_once("include/access.inc.php"); require_once("include/menu.inc.php"); require_once("include/logfunc.inc.php"); require_once("include/functions.inc.php"); require_once("include/sql.inc.php"); if(!$_SESSION["loggedin"]) { header("Location:index.php"); } $site_start = "so_in"; //Admin Start Page //Seiten Verwaltung wm_ms //UserLevel Verwaltung wm_ul //Webadmin Verwaltung wm_wa //AMXX Admin Verwaltung sm_av //Server Verwaltung sm_sv //Server Admins Verwaltung sm_sa //ban reasons verwaltung sm_bg //server info so_in $admin_site = "default"; $user_msg = ""; $smarty = new dynamicPage; //modul page loader $modul=basename($_GET["modul"]); if(isset($_GET["modul"]) && file_exists("include/modules/modul_".$modul.".php")) { include("include/modules/modul_".$modul.".php"); $modul_exists=1; } //admin page loader $site=basename($_GET["site"]); if(!$modul_exists) { if(isset($_GET["site"]) && file_exists("include/admin/admin_".$site.".php")) { include("include/admin/admin_".$site.".php"); } else { include("include/admin/admin_".$site_start.".php"); } } //get module menu (only active) $modules_menu_count=0; $modules_menu=sql_get_modules(1,$modules_menu_count); // Template generieren $smarty->assign("meta",""); $smarty->assign("title",$title2); $smarty->assign("version_web",$config->v_web); $smarty->assign("banner",$config->banner); $smarty->assign("banner_url",$config->banner_url); // amxbans.css available in design? if not, take default one. if(file_exists("templates/".$config->design."/amxbans.css")) { $smarty->assign("design",$config->design); } $smarty->assign("dir",$config->document_root); $smarty->assign("current_lang",$config->default_lang); $smarty->assign("this",$_SERVER['PHP_SELF']); $smarty->assign("menu",$menu); $smarty->assign("modules_menu",$modules_menu); $smarty->assign("modules_menu_count",$modules_menu_count); $smarty->assign("msg",$user_msg); if($modul_exists==1) { $smarty->assign("site",$modul_site); } else { $smarty->assign("site",$admin_site); } $smarty->display('main_header.tpl'); $smarty->display('admin_index.tpl'); if($modul_exists==1) { $smarty->display('modul_'.$modul_site.'.tpl'); } else { $smarty->display('admin_'.$admin_site.'.tpl'); } $smarty->display('main_footer.tpl'); ?>

:o

Edytowane przez Dr R.I.P

Opublikowano
  • Autor

Faktycznie mój błąd, bo nie dałem spacji po ten funkcji którą miałem dodać do pliku. Mimo dodania jej, dalej białą stronę pokazuje.

<?php error_reporting(E_ALL);
/* 	

AMXBans v6.0

Copyright 2009, 2010 by SeToY & |PJ|ShOrTy

This file is part of AMXBans.

AMXBans is free software, but it's licensed under the
Creative Commons - Attribution-NonCommercial-ShareAlike 2.0

AMXBans is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

You should have received a copy of the cc-nC-SA along with AMXBans.  
If not, see <http://creativecommons.org/licenses/by-nc-sa/2.0/>.

*/

session_start();
if( $_SESSION['level'] == NULL || !$_SESSION['loggedin']==true) {
header("Location: index.php"); 
exit;
}

require_once("include/config.inc.php");
require_once("include/access.inc.php");
require_once("include/menu.inc.php");
require_once("include/logfunc.inc.php");
require_once("include/functions.inc.php");
require_once("include/sql.inc.php");

if(!$_SESSION["loggedin"]) {
header("Location:index.php");
}

$site_start		= "so_in"; //Admin Start Page

//Seiten Verwaltung 		wm_ms
//UserLevel Verwaltung 		wm_ul
//Webadmin Verwaltung 		wm_wa
//AMXX Admin Verwaltung 	sm_av
//Server Verwaltung 		sm_sv
//Server Admins Verwaltung 	sm_sa
//ban reasons verwaltung 	sm_bg
//server info		so_in

$admin_site	= "default";
$user_msg = "";

$smarty = new dynamicPage;

//modul page loader
$modul=basename($_GET["modul"]);
if(isset($_GET["modul"]) && file_exists("include/modules/modul_".$modul.".php")) {
include("include/modules/modul_".$modul.".php");
$modul_exists=1;

}
//admin page loader
$site=basename($_GET["site"]);
if(!$modul_exists) {
if(isset($_GET["site"]) && file_exists("include/admin/admin_".$site.".php")) {
	include("include/admin/admin_".$site.".php");
} else {
	include("include/admin/admin_".$site_start.".php");
}
}

//get module menu (only active)
$modules_menu_count=0;
$modules_menu=sql_get_modules(1,$modules_menu_count);

// Template generieren
$smarty->assign("meta","");
$smarty->assign("title",$title2);
$smarty->assign("version_web",$config->v_web);
$smarty->assign("banner",$config->banner);
$smarty->assign("banner_url",$config->banner_url);

// amxbans.css available in design? if not, take default one.
if(file_exists("templates/".$config->design."/amxbans.css")) {
$smarty->assign("design",$config->design);
}
$smarty->assign("dir",$config->document_root);
$smarty->assign("current_lang",$config->default_lang);
$smarty->assign("this",$_SERVER['PHP_SELF']);
$smarty->assign("menu",$menu);
$smarty->assign("modules_menu",$modules_menu);
$smarty->assign("modules_menu_count",$modules_menu_count);
$smarty->assign("msg",$user_msg);
if($modul_exists==1) {
$smarty->assign("site",$modul_site);
} else {
$smarty->assign("site",$admin_site);
}

$smarty->display('main_header.tpl');
$smarty->display('admin_index.tpl');
if($modul_exists==1) {
$smarty->display('modul_'.$modul_site.'.tpl');
} else {
$smarty->display('admin_'.$admin_site.'.tpl');
}
$smarty->display('main_footer.tpl');


?>

Edytowane przez Dr R.I.P

Opublikowano
  • Autor

Dalej zero komunikatu:

<?php
ini_set('error_reporting', E_ALL);
/* 	

AMXBans v6.0

Copyright 2009, 2010 by SeToY & |PJ|ShOrTy

This file is part of AMXBans.

AMXBans is free software, but it's licensed under the
Creative Commons - Attribution-NonCommercial-ShareAlike 2.0

AMXBans is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

You should have received a copy of the cc-nC-SA along with AMXBans.  
If not, see <http://creativecommons.org/licenses/by-nc-sa/2.0/>.

*/

session_start();
if( $_SESSION['level'] == NULL || !$_SESSION['loggedin']==true) {
header("Location: index.php"); 
exit;
}

require_once("include/config.inc.php");
require_once("include/access.inc.php");
require_once("include/menu.inc.php");
require_once("include/logfunc.inc.php");
require_once("include/functions.inc.php");
require_once("include/sql.inc.php");

if(!$_SESSION["loggedin"]) {
header("Location:index.php");
}

$site_start		= "so_in"; //Admin Start Page

//Seiten Verwaltung 		wm_ms
//UserLevel Verwaltung 		wm_ul
//Webadmin Verwaltung 		wm_wa
//AMXX Admin Verwaltung 	sm_av
//Server Verwaltung 		sm_sv
//Server Admins Verwaltung 	sm_sa
//ban reasons verwaltung 	sm_bg
//server info		so_in

$admin_site	= "default";
$user_msg = "";

$smarty = new dynamicPage;

//modul page loader
$modul=basename($_GET["modul"]);
if(isset($_GET["modul"]) && file_exists("include/modules/modul_".$modul.".php")) {
include("include/modules/modul_".$modul.".php");
$modul_exists=1;

}
//admin page loader
$site=basename($_GET["site"]);
if(!$modul_exists) {
if(isset($_GET["site"]) && file_exists("include/admin/admin_".$site.".php")) {
	include("include/admin/admin_".$site.".php");
} else {
	include("include/admin/admin_".$site_start.".php");
}
}

//get module menu (only active)
$modules_menu_count=0;
$modules_menu=sql_get_modules(1,$modules_menu_count);

// Template generieren
$smarty->assign("meta","");
$smarty->assign("title",$title2);
$smarty->assign("version_web",$config->v_web);
$smarty->assign("banner",$config->banner);
$smarty->assign("banner_url",$config->banner_url);

// amxbans.css available in design? if not, take default one.
if(file_exists("templates/".$config->design."/amxbans.css")) {
$smarty->assign("design",$config->design);
}
$smarty->assign("dir",$config->document_root);
$smarty->assign("current_lang",$config->default_lang);
$smarty->assign("this",$_SERVER['PHP_SELF']);
$smarty->assign("menu",$menu);
$smarty->assign("modules_menu",$modules_menu);
$smarty->assign("modules_menu_count",$modules_menu_count);
$smarty->assign("msg",$user_msg);
if($modul_exists==1) {
$smarty->assign("site",$modul_site);
} else {
$smarty->assign("site",$admin_site);
}

$smarty->display('main_header.tpl');
$smarty->display('admin_index.tpl');
if($modul_exists==1) {
$smarty->display('modul_'.$modul_site.'.tpl');
} else {
$smarty->display('admin_'.$admin_site.'.tpl');
}
$smarty->display('main_footer.tpl');


?>

Opublikowano
  • Manager

require_once("include/config.inc.php");
require_once("include/access.inc.php");
require_once("include/menu.inc.php");
require_once("include/logfunc.inc.php");
require_once("include/functions.inc.php");
require_once("include/sql.inc.php");

Te pliki masz na FTP?

intermedia - profesjonalne rozwiązania Invision Power Board, IC5

Opublikowano
  • Autor

Tak, sprawdziłem i mam.

Bardzo dziwne. Dawałem Ci kiedyś dane do ftp DawPi na gg, pamiętasz ten skrypt do demek? :) To było w nocy. Jak znajdziesz czas to rzuć okiem, bo wtedy był problem ze skróconym znacznikiem php.

Opublikowano
  • Autor

Mnie też to dziwi, bo wszystko poza tym panelem działa.

Zauważyłem coś. Biała strona pokazuje się tylko na "Informacje o systemie".

czyli,

http://cmc.cybernet.swidnica.pl/amxbans/admin.php

a na przykład:

http://cmc.cybernet.swidnica.pl/amxbans/admin.php?site=sm_bg#

działa. :)

Edytowane przez Dr R.I.P

Opublikowano
  • Autor

Doszedłem do czegoś nowego, wywala takie coś.

Notice: A session had already been started - ignoring session_start() in /home/hltv/amxbans/include/access.inc.php on line 23

Notice: A session had already been started - ignoring session_start() in /home/hltv/amxbans/include/menu.inc.php on line 23

Notice: A session had already been started - ignoring session_start() in /home/hltv/amxbans/include/logfunc.inc.php on line 23

Notice: Undefined index: modul in /home/hltv/amxbans/admin.php on line 58

Notice: Undefined variable: modul_exists in /home/hltv/amxbans/admin.php on line 66

Notice: A session had already been started - ignoring session_start() in /home/hltv/amxbans/include/admin/admin_ban_add.php on line 23

Notice: Undefined variable: modul_exists in /home/hltv/amxbans/admin.php on line 96

Any ideas?

Edytowane przez Dr R.I.P

Opublikowano
  • Autor

Dobra czyli nie wiem co jest grane, jak napisałem 2 posty wcześniej tylko admin.php nie ogarnia serwer, ale dalsze już tak.

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Szukaj

Szukaj

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.