Пример #1
0
function livily_dashboard()
{
    $Path = livily_get_blog_url();
    $cdURL = LIVILY_DASHBOARD_URL . $Path;
    $cdwidgetid = $_GET["cdwidgetid"];
    if (strlen($cdwidgetid) != 0) {
        $result = livily_livechat_save_options($cdwidgetid);
        $mssg = urlencode("Plugin has been installed successfully.");
        $cdURL = $cdURL . "&mssg=" . $mssg;
    }
    echo '<div id="dashboarddiv"><iframe id="dashboardiframe" src=' . $cdURL . '' . ' height=2000 width=100% scrolling="yes"></iframe></div>';
}
Пример #2
0
function livily_dashboard()
{
    $cdwidgetid = $_GET["cdwidgetid"];
    $blogURL = get_bloginfo('url');
    $lastindex = lastIndexOf($blogURL, "/");
    $requestURI = $_SERVER['REQUEST_URI'];
    if ($lastindex > 8) {
        $blogURL = substr($blogURL, 0, $lastindex);
    }
    $Path = $blogURL . $requestURI;
    $Path = urlencode($Path);
    $cdURL = LIVILY_DASHBOARD_URL . $Path;
    if (strlen($cdwidgetid) != 0) {
        $result = livily_livechat_save_options($cdwidgetid);
        $mssg = urlencode("Plugin has been installed successfully.");
        $cdURL = $cdURL . "&mssg=" . $mssg;
        echo '<div id="dashboarddiv"><iframe id="dashboardiframe" src=' . $cdURL . '' . ' height=2000 width=100% scrolling="yes"></iframe></div>';
    } else {
        echo '<div id="dashboarddiv"><iframe id="dashboardiframe" src=' . $cdURL . '' . ' height=2000 width=100% scrolling="yes"></iframe></div>';
    }
}