Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
что тут изменить то?с кодом беда. в файле htacess отключи показ ошибок
AddDefaultCharset WINDOWS-1251
# PHP error handling for production servers
# disable display of startup errors
php_flag display_startup_errors off
# disable display of all other errors
php_flag display_errors off
# disable html markup of errors
php_flag html_errors off
# enable logging of errors
php_flag log_errors on
# disable ignoring of repeat errors
php_flag ignore_repeated_errors off
# disable ignoring of unique source errors
php_flag ignore_repeated_source off
# enable logging of php memory leaks
php_flag report_memleaks on
# preserve most recent error via php_errormsg
php_flag track_errors on
# disable formatting of error reference links
php_value docref_root 0
# disable formatting of error reference links
php_value docref_ext 0
# specify path to php error log
php_value error_log bkwar.r/PHP_errors.log
# specify recording of all php errors
# [see footnote 3] # php_value error_reporting 999999999
# php_value error_reporting 99999999
php_value error_reporting -1
DirectoryIndex index.php
<Files chat.txt>
Order Deny,Allow
Deny from all
</Files>
## USER IP BANNING
<Limit GET POST>
order allow,deny
deny from 62.109.23.92
deny from 136.169.8.96
deny from 87.226.30.101
deny from 83.241.27.83
deny from 195.62.137.42
deny from 95.221.72.129
deny from 178.204.136.206
deny from 178.204.216.146
deny from 188.235.19.100
deny from 5.165.64.30
deny from 5.165.65.94
deny from 188.233.36.226
deny from 128.69.182.221
deny from 95.27.168.43
deny from 95.24.137.153
deny from 95.26.12.35
deny from 176.14.214.10
deny from 217.118.78.46
deny from 217.118.78.46
deny from 46.247.198.197
deny from 95.111.225.118
deny from 109.254.19.254
deny from 95.26.205.80
deny from 89.191.109.117
deny from 92.100.206.130
deny from 94.41.169.189
deny from 46.175.212.0
deny from 82.131.3.187
deny from 188.237.126.13
deny from 78.56.132.142
deny from 178.176.148.93
deny from 65.49.14.93
deny from 65.49.14.59
allow from all
</Limit>
так ты через нотепод ссылки перебей на свои перед заливкой на хостУстановил на хост, возникла такая проблема, когда тыкаю регистрацию выкидывает на сайт bkwar.ru/r.php, та же тема с enter.php, когда тыкаю на "Войти"
Скачал скрипт
1) Вроде все правильно написал коннект но не включается игра. вот код
Connect.php
Код:$mysql = mysql_connect("localhost","Логин БД","Пасс"); if ($_SERVER['REMOTE_ADDR'] == 'localhost') { mysql_select_db ("Логин БД", $mysql); // ТУТ ИМЯ БАЗЫ } else { mysql_select_db ("Логин БД", $mysql); // ТУТ ИМЯ БАЗЫ } mysql_query("SET NAMES CP1251");
Connect1.php
Код:<?php echo "qqq"; if (1) { define("IMGBASE",""); define("IMGNUM",""); } else { define("IMGBASE",""); define("IMGFN","_rm"); } define("CHATROOT","/dev/shm/"); define("APR1", 0); $smalladms=array(250); Error_Reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR); $mysql = mysql_connect("localhost","Логин","Пасс"); echo mysql_error(); if (strpos($_SERVER["HTTP_HOST"],"vasja")!==false) mysql_select_db ("Логин", $mysql); else mysql_select_db ("Логин", $mysql); mysql_query("SET NAMES CP1251"); foreach ($_POST as $k=>$v) { $_POST[$k] = htmlspecialchars(mysql_real_escape_string($v)); } foreach ($_GET as $k=>$v) { $_GET[$k] = htmlspecialchars(mysql_real_escape_string($v)); } foreach ($_REQUEST as $k=>$v) { $_REQUEST[$k] = htmlspecialchars(mysql_real_escape_string($v)); } function mqfa1($sql, $pos=0){ if (strpos($sql,"show fields")===false && strpos($sql," limit ")===false) $sql.=" limit 1"; $a=mysql_fetch_row(mq("$sql")); return $a[$pos]; } function mqfa($sql){ if (strpos($sql,"show fields")===false && strpos($sql," limit ")===false) $sql.=" limit 1"; $a=mysql_fetch_assoc(mq("$sql")); return $a; } function mqfr($sql){ if (strpos($sql,"show fields")===false && strpos($sql," limit ")===false) $sql.=" limit 1"; $a=mysql_fetch_row(mq("$sql")); return $a; } function mq($sql){ $a=mysql_query($sql); return $a; } function remquotes($s) { $ret=str_replace('&','&',$s); $ret=str_replace('"','"',$ret); $ret=str_replace("'",''',$ret); $ret=str_replace(">",'>',$ret); $ret=str_replace("<",'<',$ret); return $ret; } function mnr($q) { return mysql_num_rows(mq($q)); } if(!function_exists("format_string")) { function format_string(&$string) { $string=str_replace("\\n","<BR>",$string); $string = addslashes(preg_replace(array('/\s+/','/,+/','/\-+/','/\0/s','/%00/'), array(' ',',','-',' ',' '),trim(stripcslashes($string)))); $string=str_replace("<BR>","\\n",$string); return $string; }} array_walk($_REQUEST,"format_string"); array_walk($_POST,"format_string"); array_walk($_GET,"format_string"); if(date("w")<6 && date("w")>0){ //define ("proc_exp", "350"); //define ("proc_exp", "181"); define ("proc_exp", "101"); }else{ //define ("proc_exp", "350"); define ("proc_exp", "181"); } $vr_st = mysql_fetch_array(mysql_query("SELECT honorpoints FROM `users` WHERE `id` = 99 LIMIT 1;")); if($vr_st['honorpoints']>0){ define("vrag", "on"); }else{ define("vrag", "off"); } define("MEMCACHE_PATH", "data/memcache"); function trace() { } //define("SELLCOEF", "1"); define("SELLCOEF", "0.6"); ?>
2) не показывает код при регистрации
$mysql = mysql_connect("localhost","Логин БД","Пасс");
if ($_SERVER['REMOTE_ADDR'] == 'localhost')
Иногда некоторые хостинги дают свои хост данные место локалхоста