Файл: CMS/servis/index.php
Строк: 43
<?php
define('CMS',TRUE);
define('ROOT','../');
include('../core/inc.php');
$id = !empty($_GET['id']) ? (int) $_GET['id'] : 0;
$mod = !empty($_GET['m']) ? (string) $_GET['m'] : '';
$page = !empty($_GET['page']) ? (int) $_GET['page'] : 1;
$is_admin = (bool) is_admin() ? true : false;
switch($mod):
case 'anecdots':
include( MODULES_PATH . 'servis_anecdots.php' );
break;
case 'send_icq':
include( MODULES_PATH . 'servis_send_icq.php' );
break;
case 'send_mail':
include( MODULES_PATH . 'servis_send_mail.php' );
break;
case 'screen':
include( MODULES_PATH . 'servis_screen.php' );
break;
case 'tr':
include( MODULES_PATH . 'servis_tr.php' );
break;
default:
show_header('Сервисы');
?>
<div class="b">
<?=icon('site.png')?><a href="<?=gen_uri('anecdots')?>">Анекдоты</a><br />
<?=icon('site.png')?><a href="<?=gen_uri('tr')?>">Переводчик</a><br />
<?=icon('site.png')?><a href="<?=gen_uri('send_icq')?>">Отправка ICQ</a><br />
<?=icon('site.png')?><a href="<?=gen_uri('send_mail')?>">Отправка E-Mail</a><br />
<?=icon('site.png')?><a href="<?=gen_uri('screen')?>">Скриншот сайта</a><br />
</div>
<?php
break;
endswitch;
show_footer();
?>