Народ, я попробовал перенести все на локальный сервер, перенеслось все кроме статитстики. Ввиду того, что она самопальная, я не знаю что с этим делать.. Раньше ей занимались пользователи Элефант и Прачечная, но теперь я их не вижу.

Если они есть — вот такую ошибину оно выплевывает

[quote:wqzlkv77]assign(‘dates’, $dates); $smarty->assign(‘officers’, $officers); $smarty->assign(‘offices’, $offices); $smarty->assign(‘offices2’, $offices2); $smarty->assign(‘countries’, $countries); $smarty->assign(‘flags’, $flags); $smarty->assign(‘box_months’, $box_months); $of = (int)$_GET[‘of’]; $smarty->assign(‘of’, $of); $mod = $_GET[‘mod’]; if ($mod=="" || !preg_match(‘/^[A-Za-z1-90_]+$/Ui’,$mod)) $mod = "main"; $smarty->assign(‘modname’, $mod); if(!@include ("modules/".$mod.".php")) { include ("modules/blank.php"); } $stats_total = sqlr("SELECT COUNT(*) FROM stats WHERE office=’$of’"); $smarty->assign(‘stats_total’, $stats_total); $stats_descr = sqlr("SELECT COUNT(*) FROM stats WHERE url<>» AND office=’$of’"); $smarty->assign(‘stats_descr’, $stats_descr); $stats_asks = sqlr("SELECT COUNT(*) FROM asks WHERE active=’1’"); $smarty->assign(‘stats_asks’, $stats_asks); $stats_wait2 = sqlr("SELECT COUNT(*) FROM stats WHERE (step=’2′ OR step=’1′) AND status=’0′ AND office=’$of’"); $smarty->assign(‘stats_wait2′, $stats_wait2); $stats_wait3 = sqlr("SELECT COUNT(*) FROM stats WHERE step=’3′ AND status=’0’ AND office=’$of’"); $smarty->assign(‘stats_wait3′, $stats_wait3); $stats_wait6 = sqlr("SELECT COUNT(*) FROM stats WHERE step=’6’ AND office=’$of’"); $smarty->assign(‘stats_wait6’, $stats_wait6); $stats_year_send = sqlr("SELECT COUNT(*) FROM stats WHERE YEAR(`d_send`)=YEAR(now()) AND office=’$of’"); $smarty->assign(‘stats_year_send’, $stats_year_send); $stats_year_visa = sqlr("SELECT COUNT(*) FROM stats WHERE YEAR(`d_visa`)=YEAR(now()) AND d_visa<>» AND office=’$of’"); $smarty->assign(‘stats_year_visa’, $stats_year_visa); $stats_session = ceil((mktime(0, 0, 0, 11, 4, 2008)-time())/86400); $smarty->assign(‘stats_session’, $stats_session); $smarty->display(‘header.tpl’); echo $output; $smarty->display(‘footer.tpl’); ?>[/quote:wqzlkv77]

Что с этим делать? Можно мне интсрукцию, как его переносить на другой хост?

Администрация сайта
Администрация сайта
Статей: 67

Комментариев нет

  1. Нашел..

    [quote:3790gdss]
    <?
    ….
    $title = addslashes(strip_tags(trim($_POST[‘title’])));
    $dtype = addslashes($_POST[‘dtype’]);
    $ddate = $_POST[‘ddate’];
    $output = $smarty->fetch(‘add.tpl’);

    ?>
    [/quote:3790gdss]

    Кто ж так строит.. надо ж <?php начинать а не просто с <?.. Может оно и работало, но похоже что не работает уже. Короче у меня желание сделать статистику в виде таблиц в каком-нибудь cmsimple … что думаете?

Ответить