PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- ...
- <?PHP
- ?>
- ...
- <? if ($DOCUMENT_URI == '/')
- {
- $number = '1';
- include rootpath.'/show_news.php';
- }
- else if ($DOCUMENT_URI == "/index.php")
- {
- $number = '1';
- include rootpath.'/show_news.php';
- }
- else if ($DOCUMENT_URI == "/mini-games/")
- {
- $number = '6';
- include rootpath.'/show_news.php';
- }
- else if ($DOCUMENT_URI == "/mini-games")
- {
- $number = '10';
- include rootpath.'/show_news.php';
- }
- else
- {
- $number = '5';
- include rootpath.'/show_news.php';
- }
- ?>
- ...