当前位置: 首页>>代码示例>>PHP>>正文


PHP ossn_site_url函数代码示例

本文整理汇总了PHP中ossn_site_url函数的典型用法代码示例。如果您正苦于以下问题:PHP ossn_site_url函数的具体用法?PHP ossn_site_url怎么用?PHP ossn_site_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ossn_site_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: severload_init

function severload_init()
{
    ossn_register_page('severload', 'severpages');
    if (ossn_isLoggedin()) {
        $icon = ossn_site_url('components/OssnPhotos/images/photos-ossn.png');
        ossn_register_sections_menu('newsfeed', array('text' => ossn_print('com:ossn:severload'), 'url' => ossn_site_url('severload'), 'icon' => $icon, 'section' => 'links'));
    }
}
开发者ID:alexmwiti,项目名称:componets,代码行数:8,代码来源:ossn_com.php

示例2: ossn_wall_post_menu

/**
 * View post menu
 *
 * @param string $hook Name of hook
 * @param string $type Hook type
 * @param string $return mixed data
 * @param array $params Arrays or Objects
 *
 * @return mixed data
 * @access private
 */
function ossn_wall_post_menu($hook, $type, $return, $params)
{
    if ($params['post']->poster_guid == ossn_loggedin_user()->guid || $params['post']->owner_guid == ossn_loggedin_user()->guid || ossn_isAdminLoggedin()) {
        $deleteurl = ossn_site_url("action/wall/post/delete?post={$params['post']->guid}", true);
        ossn_register_menu_link("delete", ossn_print('ossn:post:delete'), array('class' => 'ossn-wall-post-delete', 'href' => $deleteurl, 'data-guid' => $params['post']->guid), 'wallpost');
    } else {
        ossn_unregister_menu('delete', 'wallpost');
    }
    return ossn_view_menu('wallpost', 'wall/menus/post-controls');
}
开发者ID:sthefanysoares,项目名称:Social-Network,代码行数:21,代码来源:ossn_com.php

示例3: chatroom_init

function chatroom_init()
{
    $chatroom_url = ossn_site_url() . 'chatroom';
    $icon = ossn_site_url('components/chatroom/images/chat.png');
    ossn_register_sections_menu('newsfeed', array('text' => 'Chatroom', 'url' => $chatroom_url, 'section' => 'links', 'icon' => $icon));
    ossn_register_page('chatroom', 'chatroom_page');
}
开发者ID:kreativmind,项目名称:ossn-signup-age-tool,代码行数:7,代码来源:ossn_com.php

示例4: smilify

function smilify($text)
{
    $ascii_pattern = array(':(', ':)', '=D', ';)', ':p', '8|', 'o.O', ':O', ':*', 'a:', ':h:', '3:|', 'u:', ':v', 'g:', '8)', 'c:');
    $icon = ossn_site_url() . 'components/OssnChat/images/emoticons/';
    $smiley_icon = array("<img src='{$icon}ossnchat-sad.gif' />", "<img src='{$icon}ossnchat-smile.gif' />", "<img src='{$icon}ossnchat-happy.gif' />", "<img src='{$icon}ossnchat-wink.gif' />", "<img src='{$icon}ossnchat-tongue.gif' />", "<img src='{$icon}ossnchat-sunglasses.gif' />", "<img src='{$icon}ossnchat-confused.gif' />", "<img src='{$icon}ossnchat-gasp.gif' />", "<img src='{$icon}ossnchat-kiss.gif' />", "<img src='{$icon}ossnchat-angel.gif' />", "<img src='{$icon}ossnchat-heart.gif' />", "<img src='{$icon}ossnchat-devil.gif' />", "<img src='{$icon}ossnchat-upset.gif' />", "<img src='{$icon}ossnchat-pacman.gif' />", "<img src='{$icon}ossnchat-grumpy.gif' />", "<img src='{$icon}ossnchat-glasses.gif' />", "<img src='{$icon}ossnchat-cry.gif' />");
    return str_replace($ascii_pattern, $smiley_icon, $text);
}
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:7,代码来源:smilify.lib.php

示例5: ossn_three_head

function ossn_three_head()
{
    $siteurl = ossn_site_url();
    $head = array();
    $head[] = ossn_html_css(array('href' => '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'));
    $head[] = ossn_html_css(array('href' => '//fonts.googleapis.com/css?family=Roboto+Slab:300,700,400'));
    $head[] = ossn_html_js(array('src' => ossn_theme_url() . 'vendors/bootstrap/js/bootstrap.min.js'));
    return implode('', $head);
}
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:9,代码来源:ossn_theme.php

示例6: ossn_components_init

/**
 * Initialize components
 *
 * @return false|null
 * @access private;
 */
function ossn_components_init()
{
    $panels = ossn_registered_com_panel();
    if (!$panels) {
        return false;
    }
    foreach ($panels as $configure) {
        ossn_register_menu_link('configure', $configure, ossn_site_url("administrator/component/{$configure}"), 'topbar_admin');
    }
}
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:16,代码来源:ossn.lib.components.php

示例7: ossn_components_init

/**
 * Initialize components
 *
 * @return false|null
 * @access private;
 */
function ossn_components_init()
{
    $panels = ossn_registered_com_panel();
    if (!$panels) {
        return false;
    }
    foreach ($panels as $configure) {
        ossn_register_menu_item('topbar_admin', array('name' => OssnTranslit::urlize($configure), 'text' => $configure, 'parent' => 'configure', 'href' => ossn_site_url("administrator/component/{$configure}")));
    }
}
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:16,代码来源:ossn.lib.components.php

示例8: ossn_invite_init

/**
 * Initialize Ossn Invite component
 *
 * @note Please don't call this function directly in your code.
 * 
 * @return void
 * @access private
 */
function ossn_invite_init()
{
    ossn_extend_view('css/ossn.default', 'components/OssnInvite/css/invite');
    ossn_register_page('invite', 'ossn_invite_pagehandler');
    if (ossn_isLoggedin()) {
        ossn_register_action('invite/friends', __OSSN_INVITE__ . 'actions/invite.php');
        $icon = ossn_site_url('components/OssnProfile/images/friends.png');
        ossn_register_sections_menu('newsfeed', array('text' => ossn_print('com:ossn:invite:friends'), 'url' => ossn_site_url('invite'), 'section' => 'links', 'icon' => $icon));
    }
}
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:18,代码来源:ossn_com.php

示例9: ossn_user_block_menu

/**
 * User block menu item in profile.
 *
 * @return void;
 * @access private;
 */
function ossn_user_block_menu($name, $type, $params)
{
    $user = ossn_user_by_guid(ossn_get_page_owner_guid());
    if (OssnBlock::isBlocked(ossn_loggedin_user(), $user)) {
        $unblock = ossn_site_url("action/unblock/user?user={$user->guid}", true);
        ossn_register_menu_link('block', ossn_print('user:unblock'), $unblock, 'profile_extramenu');
    } else {
        $block = ossn_site_url("action/block/user?user={$user->guid}", true);
        ossn_register_menu_link('block', ossn_print('user:block'), $block, 'profile_extramenu');
    }
}
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:17,代码来源:ossn_com.php

示例10: ossn_messages

function ossn_messages()
{
    ossn_extend_view('css/ossn.default', 'css/message');
    ossn_register_page('messages', 'ossn_messages_page');
    ossn_extend_view('js/opensource.socialnetwork', 'js/OssnMessages');
    if (ossn_isLoggedin()) {
        ossn_register_action('message/send', __OSSN_MESSAGES__ . 'actions/message/send.php');
        $user_loggedin = ossn_loggedin_user();
        $icon = ossn_site_url('components/OssnMessages/images/messages.png');
        ossn_register_sections_menu('newsfeed', array('text' => ossn_print('user:messages'), 'url' => ossn_site_url('messages/all'), 'section' => 'links', 'icon' => $icon));
    }
}
开发者ID:sthefanysoares,项目名称:Social-Network,代码行数:12,代码来源:ossn_com.php

示例11: ossn_users

/**
 * Initialize library
 *
 * @return bool
 */
function ossn_users()
{
    ossn_register_page('uservalidate', 'ossn_uservalidate_pagehandler');
    /**
     * Logout outuser if user didn't exists
     */
    if (ossn_isLoggedin()) {
        $user = ossn_user_by_guid(ossn_loggedin_user()->guid);
        if (!$user) {
            ossn_logout();
            redirect();
        }
        //register menu item for logout, in topbar dropdown menu
        ossn_register_menu_item('topbar_dropdown', array('name' => 'logout', 'text' => ossn_print('logout'), 'href' => ossn_site_url('action/user/logout'), 'action' => true));
    }
}
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:21,代码来源:ossn.lib.users.php

示例12: ossn_admin

/**
 * Initialize the admin library
 *
 * @return void
 */
function ossn_admin()
{
    ossn_register_admin_sidemenu('admin/sidemenu', 'admin:components', ossn_site_url('administrator/components'), ossn_print('admin:sidemenu:components'));
    ossn_register_admin_sidemenu('admin/sidemenu', 'admin:install', ossn_site_url('administrator/com_installer'), ossn_print('admin:sidemenu:components'));
    ossn_register_admin_sidemenu('admin/sidemenu', 'admin:themes', ossn_site_url('administrator/themes'), ossn_print('admin:sidemenu:themes'));
    ossn_register_admin_sidemenu('admin/sidemenu', 'admin:install', ossn_site_url('administrator/theme_installer'), ossn_print('admin:sidemenu:themes'));
    ossn_register_admin_sidemenu('admin/sidemenu', 'admin:basic', ossn_site_url('administrator/settings/basic'), ossn_print('admin:sidemenu:settings'));
    ossn_register_admin_sidemenu('admin/sidemenu', 'admin:cache', ossn_site_url('administrator/cache'), ossn_print('admin:sidemenu:settings'));
    //ossn_register_admin_sidemenu('admin/sidemenu', 'admin:mode', ossn_site_url('administrator/theme_installer'), ossn_print('admin:sidemenu:settings'));
    ossn_register_admin_sidemenu('admin/sidemenu', 'admin:users', ossn_site_url('administrator/users'), ossn_print('admin:sidemenu:usermanager'));
    ossn_register_admin_sidemenu('admin/sidemenu', 'admin:add:user', ossn_site_url('administrator/adduser'), ossn_print('admin:sidemenu:usermanager'));
    ossn_register_admin_sidemenu('admin/sidemenu', 'admin:users:unvalidated', ossn_site_url('administrator/unvalidated_users'), ossn_print('admin:sidemenu:usermanager'));
    ossn_register_menu_link('home', 'admin:dashboard', ossn_site_url('administrator'), 'topbar_admin');
    ossn_register_menu_link('configure', 'Configure', '#', 'topbar_admin');
    ossn_register_menu_link('help', 'admin:help', 'http://community.opensource-socialnetwork.org', 'topbar_admin');
    ossn_register_menu_link('support', 'admin:support', 'http://community.opensource-socialnetwork.org', 'topbar_admin');
    ossn_register_menu_link('viewsite', 'admin:view:site', ossn_site_url(), 'topbar_admin');
    ossn_register_action('admin/login', ossn_route()->actions . 'administrator/login.php');
    ossn_register_action('admin/logout', ossn_route()->actions . 'administrator/logout.php');
    if (ossn_isAdminLoggedin()) {
        ossn_register_site_settings_page('account', 'pages/account');
        ossn_register_action('component/enable', ossn_route()->actions . 'administrator/component/enable.php');
        ossn_register_action('component/disable', ossn_route()->actions . 'administrator/component/disable.php');
        ossn_register_action('component/delete', ossn_route()->actions . 'administrator/component/delete.php');
        ossn_register_action('theme/enable', ossn_route()->actions . 'administrator/theme/enable.php');
        ossn_register_action('theme/delete', ossn_route()->actions . 'administrator/theme/delete.php');
        ossn_register_action('admin/add/user', ossn_route()->actions . 'administrator/user/add.php');
        ossn_register_action('admin/edit/user', ossn_route()->actions . 'administrator/user/edit.php');
        ossn_register_action('admin/delete/user', ossn_route()->actions . 'administrator/user/delete.php');
        ossn_register_action('admin/validate/user', ossn_route()->actions . 'administrator/user/validate.php');
        ossn_register_action('admin/com_install', ossn_route()->actions . 'administrator/component/com_install.php');
        ossn_register_action('admin/theme_install', ossn_route()->actions . 'administrator/theme/theme_install.php');
        ossn_register_action('admin/settings/save/basic', ossn_route()->actions . 'administrator/settings/save/basic.php');
        ossn_register_action('admin/cache/create', ossn_route()->actions . 'administrator/cache/create.php');
        ossn_register_action('admin/cache/flush', ossn_route()->actions . 'administrator/cache/flush.php');
    }
    /*
     * Register login and backend pages
     */
    if (ossn_isAdminLoggedin()) {
        ossn_register_page('administrator', 'ossn_administrator_pagehandler');
        ossn_register_site_settings_page('basic', 'settings/admin/basic_settings');
        ossn_register_menu_item('topbar_dropdown', array('name' => 'administration', 'text' => ossn_print('admin'), 'href' => ossn_site_url('administrator')));
    } else {
        ossn_register_page('administrator', 'ossn_administrator_login_pagehandler');
    }
}
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:52,代码来源:ossn.lib.admin.php

示例13: ossn_sitepages

function ossn_sitepages()
{
    //css
    ossn_extend_view('css/ossn.default', 'components/OssnSitePages/css/pages');
    //register pages
    ossn_register_page('site', 'ossn_site_pages');
    //register admin panel page
    ossn_register_com_panel('OssnSitePages', 'settings');
    //actions
    ossn_register_action('sitepage/edit/terms', __OSSN_SITE_PAGES__ . 'actions/edit/terms.php');
    ossn_register_action('sitepage/edit/about', __OSSN_SITE_PAGES__ . 'actions/edit/about.php');
    ossn_register_action('sitepage/edit/privacy', __OSSN_SITE_PAGES__ . 'actions/edit/privacy.php');
    //register menu links in footer
    ossn_register_menu_link('about', ossn_print('site:about'), ossn_site_url('site/about'), 'footer');
    ossn_register_menu_link('site', ossn_print('site:terms'), ossn_site_url('site/terms'), 'footer');
    ossn_register_menu_link('privacy', ossn_print('site:privacy'), ossn_site_url('site/privacy'), 'footer');
}
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:17,代码来源:ossn_com.php

示例14: ossn_poke_notification

/**
 * User notification menu item
 *
 * @return void;
 * @access private;
 */
function ossn_poke_notification($name, $type, $return, $params)
{
    $notif = $params;
    $baseurl = ossn_site_url();
    $user = ossn_user_by_guid($notif->poster_guid);
    $user->fullname = "<strong>{$user->fullname}</strong>";
    $img = "<div class='notification-image'><img src='{$baseurl}avatar/{$user->username}/small' /></div>";
    $type = 'poke';
    $type = "<div class='ossn-notification-icon-poke'></div>";
    if ($notif->viewed !== NULL) {
        $viewed = '';
    } elseif ($notif->viewed == NULL) {
        $viewed = 'class="ossn-notification-unviewed"';
    }
    $url = $user->profileURL();
    $notification_read = "{$baseurl}notification/read/{$notif->guid}?notification=" . urlencode($url);
    return "<a href='{$notification_read}'>\n\t       <li {$viewed}> {$img} \n\t\t   <div class='notfi-meta'> {$type}\n\t\t   <div class='data'>" . ossn_print("ossn:notifications:{$notif->type}", array($user->fullname)) . '</div>
		   </div></li>';
}
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:25,代码来源:ossn_com.php

示例15: ossn_initialize

function ossn_initialize()
{
    $url = ossn_site_url();
    $icon = ossn_site_url('components/OssnWall/images/news-feed.png');
    ossn_register_sections_menu('newsfeed', array('text' => ossn_print('news:feed'), 'url' => "{$url}home", 'section' => 'links', 'icon' => $icon));
    ossn_extend_view('ossn/js/head', 'javascripts/head');
    //actions
    ossn_register_action('user/login', ossn_route()->actions . 'user/login.php');
    ossn_register_action('user/register', ossn_route()->actions . 'user/register.php');
    ossn_register_action('user/logout', ossn_route()->actions . 'user/logout.php');
    ossn_register_action('friend/add', ossn_route()->actions . 'friend/add.php');
    ossn_register_action('friend/remove', ossn_route()->actions . 'friend/remove.php');
    ossn_register_action('resetpassword', ossn_route()->actions . 'user/resetpassword.php');
    ossn_register_action('resetlogin', ossn_route()->actions . 'user/resetlogin.php');
    ossn_register_page('index', 'ossn_index_pagehandler');
    ossn_register_page('home', 'ossn_user_pagehandler');
    ossn_register_page('login', 'ossn_user_pagehandler');
    ossn_register_page('registered', 'ossn_user_pagehandler');
    ossn_register_page('syserror', 'ossn_system_error_pagehandler');
    ossn_register_page('resetlogin', 'ossn_user_pagehandler');
    ossn_add_hook('newsfeed', "left", 'newfeed_menu_handler');
}
开发者ID:alibasli,项目名称:Social-Network-PHP-Joomla,代码行数:22,代码来源:ossn.lib.initialize.php


注:本文中的ossn_site_url函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。