Re: Код безопасности
This is logic, because script gets $ GET ['id'].
And if the templates for $ template = 'headlines'; prescribe only headlines? For the active and full template news.
Демо площадка Strawberry 1.2 - заходим и тестируем!
Вы не вошли. Пожалуйста, войдите или зарегистрируйтесь.
Чтобы отправить ответ, вы должны войти или зарегистрироваться
This is logic, because script gets $ GET ['id'].
And if the templates for $ template = 'headlines'; prescribe only headlines? For the active and full template news.
It means that i cant display only full story news with comments from one template if i use more templates on page?
Отредактировано jasamja (12 Sep 2010 18:16:33)
try this construction:
$static['number'] = 6;
//$number= 6;
$static['category'] = '1';
//$category = '1';
$static['template'] = 'news';
//$template = 'news';
include root_directory.'/show_news.php';
$static['number'] = 2;
//$number= 2;
$static['category'] = '1';
//$category = '1';
$static['template'] = 'headlines';
//$template = 'headlines';
include root_directory.'/show_news.php';But I do not remember how much I fixed the variable static, in beta 2.
If anything - send me an email at miksar [a] mail.ru - and I will send you the updated files to display information.
With those code all is the static. When i click on the title to they show me full story they show me page like front page. Nothing is happened. Only url is changed
I'm trying but I cant managed to send you mail. I have message Mail delivery failed: returning message to sender
Please send me files on my mail cecaidejan@yahoo.com
3 дня, 13 часов и 17 минут спустя:
I cant display news on index page and have this message:
Информация не найдена
I have created categories id 1 and 2 and news with both categories.
Отредактировано jasamja (12 Sep 2010 22:45:40)
Have you tried the new version of itself that I sent or only copied the files?
I am deleted all files from old version and then copied files from version that you are sent me. Do i need to create new database and use setup to install version b4?
Of course you need!
I created database and set it on config.php, but i get this message:
Ошибка подключения к базе MySQL!
Системе не удалось подключиться к базе данных MySQL.
Возможно вы не правильно указали данные для подключения.
Так же может быть, что на сервере могут быть технические проблемы.
Проверте настройки или обратитесь в техподдержку хостинговой компании.
'dbname' => '++++',
'dbuser' => '++++',
'dbpassword' => '++++',
'dbprefix' => 'strwb_',
In datebase all 19 tables is set with prefix strwb_
I dont know what is problem.
Отредактировано jasamja (17 Sep 2010 11:41:16)
'dbname' => '++++',
'dbuser' => '++++',
'dbpassword' => '++++',Here you must specify the database name, user name and password to connect to the database ...
I know that.
It is example that i am do everything correctly and that cant find where i am mistake.
And the tables themselves were created during installation?
33 секунды спустя:
In this version, they have updated with respect to the beta 3
I created the tables manualy with My PHP Admin.
I use this SQL from setup\sql folder: table.sql
Can you describe me in detail how to install this?
and what server addres you chise? Localhost or something wrong?
I don`t know. ( Trables in settings or in connection.
I use localhost.
Only problem is in dbname.
When i set dbname on database for version 3 then working. Only dont work with version 4.
21 час, 58 минут и 40 секунд спустя:
I think that problem is in tables.sql from version 4. This file from version 3 work fine
Чтобы отправить ответ, вы должны войти или зарегистрироваться