Esempio n. 1
0
{
    //	require_once(BASE_DIR . '/modules/recommend/class.recommend.php');
    //	require_once(BASE_DIR . '/functions/func.modulglobals.php');
    //
    //	set_modul_globals('recommend');
    //	$recommend = new Recommend;
    //	$recommend->displayLink();
    ?>
<a href="javascript:void(0);" onclick="popup('<?php 
    echo ABS_PATH;
    ?>
index.php?module=recommend&amp;action=form&amp;pop=1&amp;theme_folder=ave&amp;page=<?php 
    echo base64_encode(get_redirect_link());
    ?>
','recommend','500','380','1');">Рекомендовать сайт</a>
<?php 
}
if (isset($_REQUEST['module']) && $_REQUEST['module'] == 'recommend' && isset($_REQUEST['action'])) {
    require_once BASE_DIR . '/modules/recommend/class.recommend.php';
    require_once BASE_DIR . '/functions/func.modulglobals.php';
    set_modul_globals('recommend');
    $recommend = new Recommend();
    switch ($_REQUEST['action']) {
        case 'form':
            $recommend->displayForm($_REQUEST['theme_folder']);
            break;
        case 'recommend':
            $recommend->sendForm($_REQUEST['theme_folder']);
            break;
    }
}