Помощь по скриптам | Помогите сделать!!
Тема закрыта by
DELETED
Причина: Исправил самостоятельно!
Причина: Исправил самостоятельно!
DELETED
Автор
3 марта 2017, в 8:59
Delete
Я запустил игру заварушка и почему у меня в игре не все ББ коды не роботают!
Можете помочь исправить!
Кто поможет с меня +
________
посл. ред. 03.03.2017 в 09:04; всего 1 раз(а); by Bilihost
DELETED
3 марта 2017, в 9:18
Delete
DELETED
Автор
3 марта 2017, в 9:22
Delete
Работает а эта нет
имя ссылки
Bilihost , [url=http: / / сайт.ру/forum/sub/541]имя ссылки[/url]
С тебя плюс .зы.
________
посл. ред. 03.03.2017 в 09:26; всего 1 раз(а); by Ruzon
С тебя плюс .зы.
________
посл. ред. 03.03.2017 в 09:26; всего 1 раз(а); by Ruzon
DELETED
Автор
3 марта 2017, в 9:33
Delete
Not Found
The requested URL /forum/sub/<img src="/images/smiles/mini_blush.gif" alt="*"/>bili<img src="/images/smiles/mini_diablo.gif" alt="*"/>.<img src="/images/smiles/mini_heart.gif" alt="*"/>/fo<img src="/images/smiles/mini_heart.gif" alt="*"/>m/sub/541 was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
DELETED
3 марта 2017, в 10:07
Delete
Александр Сергеевич (03.03.2017 в 10:05)
Bilihost , foRUm возможно RU запрещено в чате
Bilihost , foRUm возможно RU запрещено в чате
а то, что он в url тег картинки прописывает не смущает?
DELETED
Автор
3 марта 2017, в 10:36
Delete
$mc = mysql_connect('localhost', 'база', 'пасс') or die('<center>Сайт будет доступен через минут 5)Всё нормально)просто убираем 1 баг!)</center>');
mysql_query('SET NAMES `utf8`', $mc);
mysql_select_db('база', $mc) or die('Указанная таблица не найдена');
##################
##### СЕССИИ #####
##################
session_start();
ob_start();
######################
##### ФИЛЬТРАЦИИ #####
######################
function text($m){
$m = htmlspecialchars($m);
$m = mysql_escape_string($m);
$m = trim($m);
return $m;
} /* Фильтрует текст */
function num($m){
$m = intval($m);
$m = abs($m);
return $m;
} /* Фильтрует цифры */
################
##### КУКИ #####
################
if (isset($_COOKIE['login']) and isset($_COOKIE['password'])) {
$login = text($_COOKIE['login']);
$password = text($_COOKIE['password']);
$dbs = mysql_query("SELECT * FROM `users` WHERE `login` = '".$login."' and `password` = '".$password."' LIMIT 1");
$user = mysql_fetch_assoc($dbs);
if (isset($user['id'])) {
if ($user['login'] != $login or $user['password'] != $password) {
setcookie('login', '', time() - 86400*31);
setcookie('password', '', time() - 86400*31);
}
}
$users = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `login` = '".$login."' and `password`='".$password."' LIMIT 1"));
if(isset($user['id']) && $users['login']!=$login or $users['password']!=$password) {
setcookie('login', '', time() - 86400*31);
setcookie('password', '', time() - 86400*31);
}
}
if (isset($_COOKIE['uid']) && isset($_COOKIE['is_soc_key'])){
$is_uid = num($_COOKIE['uid']);
$is_soc_key = text($_COOKIE['is_soc_key']);
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '".$is_uid."' AND `is_soc_key` = '".(md5($is_soc_key))."' "));
if($user == null){
setcookie('uid', '', time()+86400*365, '/');
setcookie('is_soc_key', '', time()+86400*365, '/');
}
}
$auction = 0;
$myLogin = $user['login'];
$myID = $user['id'];
$__str = round($user['str']/6);
$___str = round($user['str']/4);
$_str = rand($__str, $___str);
$__def = round($user['def']/12);
$___def = round($user['def']/7);
$_def = rand($__def, $___def);
if($user['health'] < 0)$user['health'] = 0;
if($user['energy'] < 0)$user['energy'] = 0;
define('H', $_SERVER['DOCUMENT_ROOT']);
require_once H.'/system/effects.php';
require_once H.'/system/duel.php';
require_once H.'/system/gold.php';
require_once H.'/system/limit_clan_kazna.php';
require_once H.'/system/MySQL_Zapros.php';
require_once H.'/system/clan_bonus.php';
require_once H.'/system/auction.php';
###########################
##### Инергия и Жизнь #####
###########################
$be = mysql_fetch_array(mysql_query("SELECT * FROM hp_mp WHERE id_user = '".$user['id']."' LIMIT 1"));
if($be['id_user'] != $user['id']){
mysql_query("UPDATE users SET health = '".num($user[max_health])."', energy = '$user[max_energy]' WHERE id = '".$user['id']."' LIMIT 1");
mysql_query("INSERT INTO `hp_mp` SET `id_user` = '$user[id]', `last` = '".time()."'");
}else{
$k_point = intval((time()-$be['last'])/10);
if($effect_4[on] == 1)$k_point = intval((time()-$be['last'])/5);
if($k_point >= 1 && isset($user)){
$hp = $user['health']+(3*$k_point);
$mp = $user['energy']+(1*$k_point);
mysql_query("UPDATE users SET health = '$hp', energy = '$mp' WHERE id = '".$user['id']."' LIMIT 1");
mysql_query("UPDATE hp_mp SET last = '".time()."' WHERE id_user = '$user[id]' LIMIT 1");
}
}
if($user['health'] > num($user['max_health']))$user['health'] = num($user['max_health']);
if($user['energy'] > $user['max_energy'])$user['energy'] = $user['max_energy'];
mysql_query("update `users` set `online` = '".time()."', `ip` = '".$_SERVER['REMOTE_ADDR']."' where (`id` = '".$myID."')");
###################
##### ФУНКЦИИ #####
###################
function exp_koll($exp){
global $user;
global $auction;
$koll = mysql_num_rows(mysql_query("SELECT * FROM `bashna`"));
$good = mysql_num_rows(mysql_query("SELECT * FROM `bashna` WHERE `side` = 'good'"));
$evil = mysql_num_rows(mysql_query("SELECT * FROM `bashna` WHERE `side` = 'evil'"));
if($user['side'] == 'good'){
$my = $good;
}else{
$my = $evil;
}
$domination = round($my/$koll*100);
if($domination > 50){
$exp = $exp+ceil($exp*35/100);
}
if($domination == 50){
$exp == $exp+ceil($exp*25/100);
}
return $exp;
}
function rez_text( $text, $maxwords = 40, $maxchar = 45 ){
$sep=' ';
$words = explode($sep,$text);
$char = iconv_strlen($text,'utf-8');
if (count($words) > $maxwords){
$text = join($sep, array_slice($words, 0, $maxwords));
}
if ( $char > $maxchar ){
$sep2='...';
$text = iconv_substr( $text, 0, $maxchar, 'utf-8' );
}
return $text.$sep2;
}
function icons_user($user){
$user = mysql_query("SELECT * FROM `users` WHERE `id` = '".$user."' LIMIT 1");
$user = mysql_fetch_assoc($user);
if($user['online'] > time()-300){
$image = "<img src='/images/icons/".($user['sex'] == 'w' ? 'w' : '')."$user[side].png' width='15px'>";
}else{
$image = "<img src='/images/icons/".($user['sex'] == 'w' ? 'w' : '')."$user[side].png' style='opacity: 0.3;' width='15px'>";
}
return $image;
}
function text_msg($msg){
$bbcode=array();
$bbcode['/\n/isU']='<br>';
global $ank;
if($ank['access'] >= 2){
$bbcode['/\[url=(.+)\](.+)\[\/url\]/isU'] = "<a href='$1'>$2</a>";
}
if($ank['access'] >= 0){
$bbcode['/\[img=(.*)](.*)\[\/img\]/isU'] = "<img src='$1'/>";
}
if($ank['access'] >= 0){
$bbcode['/\[center\](.+