problem z instalacja
SongBlueX
26.09.2016
Witam Zainstalowałem dzis na stronie AmxBans i pokazało mi sie . co to jest ?
Warning: Creating default object from empty value in /home/p484979/public_html/Bany/include/config.inc.php on line 7
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/p484979/public_html/Bany/include/config.inc.php on line 46
Warning: Cannot modify header information - headers already sent by (output started at /home/p484979/public_html/Bany/include/config.inc.php:7) in/home/p484979/public_html/Bany/index.php on line 38
SongBlueX
26.09.2016
Warning: Creating default object from empty value in /home/p484979/public_html/bany/setup.php on line 12
Warning: Cannot modify header information - headers already sent by (output started at /home/p484979/public_html/bany/setup.php:12) in /home/p484979/public_html/bany/setup.php on line309
SongBlueX
26.09.2016
zrobilem to i tak mam te same błedy
http://www60.zippysh...ZpFhn/file.html
Użytkownik Mlody22 edytował ten post 26.09.2016 11:05
heniu1111
26.09.2016
Zanim przeczytasz to widzę 15 zł przelewem
Otwórz plik index.php
Znajdź
<?php
dopisz pod tym to
ob_start();
powinno to wyglądać tak
<?php ob_start();
następnie znajdź
?>
dopisz przed tym to
ob_end_flush();
powinno to wyglądać tak
ob_end_flush(); ?>
Zapisz plik.
Otwórz plik config.inc.php
znajdź
$config->v_web = "1.6";
dopisz przed tym to
$config = new stdClass();
powinno to wyglądać tak
$config = new stdClass(); $config->v_web = "1.6";
Zapisz plik.
Znajdź w public_html plik .htaccess , i pokaż jego zawartość.
Jak będzie Cie przekierowywać z amxbans to wchodzisz w
/templates/<tutaj_styl_którego_używasz>/js/
Następnie
zwykłym notatnikiem otwierasz plik
amxbans.js.php
I szukasz w nim kodu
/* Version checker */ $(function(){ var chkver = document.createElement("script"); chkver.type = "text/javascript"; chkver.async = true; chkver.src = "//version.gm-community.net/amxbans.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(chkver, s); }); function setLastVersion(ver) { if (parseFloat($('#version').text()) < ver) { $('#version').addClass('MustUpdate').append(' <a href="http://gm-community.net/thread.1851"><img src="../../images/generic/information.png" alt="Download" /></a>'); } }
Możesz go usunąć albo podmienić na zakomentowany
/* Version checker */ /* $(function(){ var chkver = document.createElement("script"); chkver.type = "text/javascript"; chkver.async = true; chkver.src = "//version.gm-community.net/amxbans.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(chkver, s); }); function setLastVersion(ver) { if (parseFloat($('#version').text()) < ver) { $('#version').addClass('MustUpdate').append(' <a href="http://gm-community.net/thread.1851"><img src="../../images/generic/information.png" alt="Download" /></a>'); } } */
Zapisujesz plik.
Po odświeżeniu strony nie powinno być problemów.
Użytkownik heniu1111 edytował ten post 26.09.2016 15:14
SongBlueX
26.09.2016
Options -MultiViews +FollowSymlinks -Indexes
## If mod_security is enabled, attempt to disable it.# - Note, this will work on the majority of hosts but on# MediaTemple, it is known to cause random Internal Server# errors. For MediaTemple, please remove the block below#<IfModule mod_security.c># Turn off mod_security filtering.SecFilterEngine Off# The below probably isn't needed, but better safe than sorry.SecFilterScanPOST Off</IfModule>## MyBB "search engine friendly" URL rewrites# - Note, for these to work with MyBB please make sure you have# the setting enabled in the Admin CP and you have this file# named .htaccess#<IfModule mod_rewrite.c>RewriteEngine onRewriteRule ^dzial-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]RewriteRule ^dzial-([0-9]+)-strona-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]RewriteRule ^watek-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]RewriteRule ^watek-([0-9]+)-strona-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]RewriteRule ^watek-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]RewriteRule ^watek-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]RewriteRule ^watek-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]RewriteRule ^watek-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]RewriteRule ^watek-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]RewriteRule ^ogloszenie-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]RewriteRule ^uzytkownik-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]RewriteRule ^kalendarz-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]RewriteRule ^kalendarz-([0-9]+)-rok-([0-9]+)-miesiac-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]RewriteRule ^kalendarz-([0-9]+)-rok-([0-9]+)-miesiac-([0-9]+)-dzien-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]RewriteRule ^kalendarz-([0-9]+)-rok-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]RewriteRule ^wydarzenie-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]<IfModule mod_env.c>SetEnv SEO_SUPPORT 1</IfModule></IfModule>## If Apache is compiled with built in mod_deflade/GZIP support# then GZIP Javascript, CSS, HTML and XML so they're sent to# the client faster.#<IfModule mod_deflate.c>AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml</IfModule># Note: You are able to choose a different name in the Admin CP. If you've done that you need to change it here too<Files "error.log">Order Deny,AllowDeny from all</Files>
htaccess
SongBlueX
26.09.2016
tego folderu amxbans.js.php nie moge poszukac u siebie na FTP gdzie on sie znajduje ?
heniu1111
26.09.2016
Wchodzisz w główny katalog amxbans a następnie w /templates/<tutaj_styl_którego_używasz>/js/
I jaka wersja php ?
Użytkownik heniu1111 edytował ten post 26.09.2016 15:46
SongBlueX
26.09.2016
<?php session_start(); if(@$_SESSION["loggedin"]) { ?>
function LiveBanCopyVars (name,steamid,ip,userid) {document.getElementById('player_name').value = name;document.getElementById('player_uid').value = userid;document.getElementById('player_steamid').value = steamid;document.getElementById('player_ip').value = ip;}function SetNewPassword(fieldid,lang1,lang2,notmatch) {var pw1 = window.prompt(lang1, '');if(!pw1) return false;var pw2 = window.prompt(lang2, '');if(pw1 != pw2) {alert(notmatch);return false;} else {document.getElementById(fieldid).value = pw1;return true;}}function ToggleMenu_open(obj) {if(obj != 1) { ToggleMenu_close('1'); }if(obj != 2) { ToggleMenu_close('2'); }if(obj != 3) { ToggleMenu_close('3'); }if(obj != 4) { ToggleMenu_close('4'); }if(document.getElementById('menu_'+obj).style.display == 'none') {document.getElementById('menu_'+obj).style.display = 'block';}return false;}$(document).ready(function(){$('a.main-nav_a').click(function(){$('#menu_1').hide();$('#menu_2').hide();$('#menu_3').hide();$('#menu_4').hide();$('#menu_' + $(this).attr('id').substr(6)).show();return false;});});function ToggleMenu_close(obj) {if(document.getElementById('menu_'+obj).style.display == 'block') {document.getElementById('menu_'+obj).style.display = 'none';}return false;}<?php } ?>function ToggleLayer(obj) {if(document.all) {if(document.all[obj].style.display == 'none') {document.all[obj].style.display = 'block';} else {document.all[obj].style.display = 'none';}} else {if(document.getElementById(obj).style.display == 'none') {if(document.getElementById(obj).tagName == 'DIV') {document.getElementById(obj).style.display = 'block';} else {document.getElementById(obj).style.display = 'table-row';}} else {document.getElementById(obj).style.display = 'none';}}}function NewToggleLayer(element) {var e = $('#' + element);if (e.css('display') == 'none') {e.show().find('div').slideDown('slow')} else {e.find('div').slideUp('slow', function() { $(this).parent().parent().hide(); })}}/* Version checker */$(function(){var chkver = document.createElement("script");chkver.type = "text/javascript";chkver.async = true;chkver.src = "//version.gm-community.net/amxbans.js";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(chkver, s);});function setLastVersion(ver){if (parseFloat($('#version').text()) < ver){$('#version').addClass('MustUpdate').append(' <a href="http://gm-community....read.1851"><imgsrc="../../images/generic/information.png" alt="Download" /></a>');}}
heniu1111
26.09.2016
<?php session_start(); if(@$_SESSION["loggedin"]) { ?> function LiveBanCopyVars (name,steamid,ip,userid) { document.getElementById('player_name').value = name; document.getElementById('player_uid').value = userid; document.getElementById('player_steamid').value = steamid; document.getElementById('player_ip').value = ip; } function SetNewPassword(fieldid,lang1,lang2,notmatch) { var pw1 = window.prompt(lang1, ''); if(!pw1) return false; var pw2 = window.prompt(lang2, ''); if(pw1 != pw2) { alert(notmatch); return false; } else { document.getElementById(fieldid).value = pw1; return true; } } function ToggleMenu_open(obj) { if(obj != 1) { ToggleMenu_close('1'); } if(obj != 2) { ToggleMenu_close('2'); } if(obj != 3) { ToggleMenu_close('3'); } if(obj != 4) { ToggleMenu_close('4'); } if(document.getElementById('menu_'+obj).style.display == 'none') { document.getElementById('menu_'+obj).style.display = 'block'; } return false; } $(document).ready(function(){ $('a.main-nav_a').click(function(){ $('#menu_1').hide(); $('#menu_2').hide(); $('#menu_3').hide(); $('#menu_4').hide(); $('#menu_' + $(this).attr('id').substr(6)).show(); return false; }); }); function ToggleMenu_close(obj) { if(document.getElementById('menu_'+obj).style.display == 'block') { document.getElementById('menu_'+obj).style.display = 'none'; } return false; } <?php } ?> function ToggleLayer(obj) { if(document.all) { if(document.all[obj].style.display == 'none') { document.all[obj].style.display = 'block'; } else { document.all[obj].style.display = 'none'; } } else { if(document.getElementById(obj).style.display == 'none') { if(document.getElementById(obj).tagName == 'DIV') { document.getElementById(obj).style.display = 'block'; } else { document.getElementById(obj).style.display = 'table-row'; } } else { document.getElementById(obj).style.display = 'none'; } } } function NewToggleLayer(element) { var e = $('#' + element); if (e.css('display') == 'none') { e.show().find('div').slideDown('slow') } else { e.find('div').slideUp('slow', function() { $(this).parent().parent().hide(); }) } } /* Version checker */ /* $(function(){ var chkver = document.createElement("script"); chkver.type = "text/javascript"; chkver.async = true; chkver.src = "//version.gm-community.net/amxbans.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(chkver, s); }); function setLastVersion(ver) { if (parseFloat($('#version').text()) < ver) { $('#version').addClass('MustUpdate').append(' <a href="http://gm-community.net/thread.1851"><img src="../../images/generic/information.png" alt="Download" /></a>'); } } */
Podmień
Wyskakuje Ci jakiś błąd na amxbans ?
Użytkownik heniu1111 edytował ten post 26.09.2016 15:50
SongBlueX
26.09.2016
dodałem pokazuje mi sie tak i kieruje mnie na http://version.gm-community.net/
SongBlueX
26.09.2016
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in/home/p484979/public_html/bany/include/smarty/Smarty_Compiler.class.php on line 270
ok to działa tylko pokazuje sie
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/p484979/public_html/bany/include/config.inc.php on line 77
Użytkownik Mlody22 edytował ten post 26.09.2016 16:19
heniu1111
26.09.2016
W public_html w pliku .htaccess powinno się znajdować coś takiego
AddHandler application/x-httpd-php54 .php #wersja_php_generowane_automatycznie
Musisz poszukać tego w .htaccess
SongBlueX
26.09.2016
nie widze takiego czegos tylko to jest
Options -MultiViews +FollowSymlinks -Indexes
## If mod_security is enabled, attempt to disable it.# - Note, this will work on the majority of hosts but on# MediaTemple, it is known to cause random Internal Server# errors. For MediaTemple, please remove the block below#<IfModule mod_security.c># Turn off mod_security filtering.SecFilterEngine Off# The below probably isn't needed, but better safe than sorry.SecFilterScanPOST Off</IfModule>## MyBB "search engine friendly" URL rewrites# - Note, for these to work with MyBB please make sure you have# the setting enabled in the Admin CP and you have this file# named .htaccess#<IfModule mod_rewrite.c>RewriteEngine onRewriteRule ^dzial-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]RewriteRule ^dzial-([0-9]+)-strona-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]RewriteRule ^watek-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]RewriteRule ^watek-([0-9]+)-strona-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]RewriteRule ^watek-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]RewriteRule ^watek-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]RewriteRule ^watek-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]RewriteRule ^watek-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]RewriteRule ^watek-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]RewriteRule ^ogloszenie-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]RewriteRule ^uzytkownik-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]RewriteRule ^kalendarz-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]RewriteRule ^kalendarz-([0-9]+)-rok-([0-9]+)-miesiac-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]RewriteRule ^kalendarz-([0-9]+)-rok-([0-9]+)-miesiac-([0-9]+)-dzien-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]RewriteRule ^kalendarz-([0-9]+)-rok-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]RewriteRule ^wydarzenie-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]<IfModule mod_env.c>SetEnv SEO_SUPPORT 1</IfModule></IfModule>## If Apache is compiled with built in mod_deflade/GZIP support# then GZIP Javascript, CSS, HTML and XML so they're sent to# the client faster.#<IfModule mod_deflate.c>AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml</IfModule># Note: You are able to choose a different name in the Admin CP. If you've done that you need to change it here too<Files "error.log">Order Deny,AllowDeny from all</Files>
heniu1111
26.09.2016
Wgraj plik .htacces do głównego katalogu amxbans.
Wgraj najpierw ten pierwszy , i sprawdź czy błąd nie znikł. Jak będzie dalej , to wgraj ten drugi i spróbuj poszukać jaką masz wersje PHP bo w ciemno jadę.