• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ossn_site_settings函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: ossn_generate_action_token

/**
 * Generate token using timestamp
 * 
 * @param array $timestamp current timestamp
 * @return string
 */
function ossn_generate_action_token($timestamp)
{
    if (!isset($timestamp) && empty($timestamp)) {
        $timestamp = time();
    }
    $site_screat = ossn_site_settings('site_key');
    $session_id = session_id();
    return md5($timestamp . $site_screat . $session_id);
}
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:15,代码来源:ossn.lib.securitytoken.php


示例2: ossn_view_sections_menu

/**
 * View section base menu;
 * @params: $type = (frontend or backend(
 * @note This will fetch layout from defualt template that how menu should appear; check menu file for more info;
 *
 * @last edit: $arsalanshah
 * @return: mixed data;
 *
 */
function ossn_view_sections_menu($menu, $type = 'frontend')
{
    global $Ossn;
    if (isset($menu) && isset($Ossn->sectionsmenu[$type][$menu])) {
        $active_theme = ossn_site_settings('theme');
        $params['menu'] = $Ossn->sectionsmenu[$type][$menu];
        $params['menuname'] = $menu;
        return ossn_view("themes/{$active_theme}/menus/sections/{$menu}", $params);
    }
}
开发者ID:alibasli,项目名称:Social-Network-PHP-Joomla,代码行数:19,代码来源:ossn.lib.menus.php


示例3: ossn_load_locales

/**
 * Load system locales
 *
 * @return void
 */
function ossn_load_locales()
{
    global $Ossn;
    $active = ossn_site_settings('language');
    if (isset($Ossn->locale[$active])) {
        foreach ($Ossn->locale[$active] as $locales) {
            if (is_file($locales)) {
                include_once $locales;
            }
        }
    }
}
开发者ID:alibasli,项目名称:Social-Network-PHP-Joomla,代码行数:17,代码来源:ossn.lib.languages.php


示例4: ossn_site_js

/**
 * Load css to system
 *
 * @return html.tags
 */
function ossn_site_js()
{
    global $Ossn;
    $url = ossn_site_url();
    if (isset($Ossn->jshead)) {
        foreach ($Ossn->jshead as $js) {
            $src = "{$url}js/view/{$js}.js";
            if (ossn_site_settings('cache') == 1) {
                $src = "{$url}cache/js/view/{$js}.js";
            }
            echo ossn_html_js(array('src' => $src));
        }
    }
}
开发者ID:alibasli,项目名称:Social-Network-PHP-Joomla,代码行数:19,代码来源:ossn.lib.javascripts.php


示例5: NotifiyUser

 /**
  * Send email to user.
  *
  * @parans = $email => user email
  *           $subject => email subject
  *           $body = email body
  *
  * @return (bool)
  */
 public function NotifiyUser($email, $subject, $body)
 {
     $this->setFrom(ossn_site_settings('notification_email'), ossn_site_settings('site_name'));
     $this->addAddress($email);
     $this->Subject = $subject;
     $this->Body = $body;
     $this->CharSet = "UTF-8";
     try {
         if ($this->send()) {
             return true;
         }
     } catch (phpmailerException $e) {
         error_log("Cannot send email " . $e->errorMessage(), 0);
     }
     return false;
 }
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:25,代码来源:OssnMail.php


示例6: NotifiyUser

 /**
  * Send email to user.
  *
  * @param string $email User email address
  * @param string $subject Email subject
  * @param string $body Email body
  *
  * @return boolean
  */
 public function NotifiyUser($email, $subject, $body)
 {
     if (empty($email)) {
         error_log('Can not send email to empty email address', 0);
     }
     $this->setFrom(ossn_site_settings('notification_email'), ossn_site_settings('site_name'));
     $this->addAddress($email);
     $this->Subject = $subject;
     $this->Body = $body;
     $this->CharSet = "UTF-8";
     try {
         $send = ossn_call_hook('email', 'send', $this->send(), $this);
         if ($send) {
             return true;
         }
     } catch (phpmailerException $e) {
         error_log("Cannot send email " . $e->errorMessage(), 0);
     }
     return false;
 }
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:29,代码来源:OssnMail.php


示例7: sendInvitation

 /**
  * Send emails to provided addresses
  *
  * @return bool;
  */
 public function sendInvitation()
 {
     $email = $this->address;
     $message = strip_tags($this->message);
     $message = html_entity_decode($message, ENT_QUOTES, "UTF-8");
     $message = ossn_restore_new_lines($message);
     $user = ossn_loggedin_user();
     if (!isset($user->guid) || empty($email)) {
         return false;
     }
     $site = ossn_site_settings('site_name');
     $url = ossn_site_url();
     if (empty($message)) {
         $params = array($url, $user->profileURL(), $user->fullname);
         $message = ossn_print('com:ossn:invite:mail:message:default', $params);
     } else {
         $params = array($site, $user->fullname, $message, $url, $user->profileURL());
         $message = ossn_print("com:ossn:invite:mail:message", $params);
     }
     $subject = ossn_print("com:ossn:invite:mail:subject", array($site));
     return $this->NotifiyUser($email, $subject, $message);
 }
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:27,代码来源:OssnInvite.php


示例8: ossn_trigger_upgrades

/**
 * Trigger upgrade / Run upgrade
 *
 * @return void;
 * @access private
 */
function ossn_trigger_upgrades()
{
    if (!ossn_isAdminLoggedin()) {
        ossn_error_page();
    }
    $upgrades = ossn_get_process_upgrade_files();
    if (!is_array($upgrades) || empty($upgrades)) {
        ossn_trigger_message(ossn_print('upgrade:not:available'), 'error', 'admin');
        redirect('administrator');
        return false;
    }
    foreach ($upgrades as $upgrade) {
        $file = ossn_route()->upgrade . "upgrades/{$upgrade}";
        if (!(include_once $file)) {
            throw new exception(ossn_print('upgrade:file:load:error'));
        }
    }
    //need to reset cache files
    if (ossn_site_settings('cache') !== 0) {
        ossn_trigger_css_cache();
        ossn_trigger_js_cache();
    }
    return true;
}
开发者ID:alibasli,项目名称:Social-Network-PHP-Joomla,代码行数:30,代码来源:ossn.lib.upgrade.php


示例9: ossn_load_json_locales

/**
 * Load json locales.
 *
 * @return string|false or false
 */
function ossn_load_json_locales()
{
    global $Ossn;
    $code = ossn_site_settings('language');
    $json = json_encode($Ossn->localestr[$code]);
    if ($json) {
        return $json;
    }
    return false;
}
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:15,代码来源:ossn.lib.languages.php


示例10: ossn_jquery_add

/**
function ossn_jquery_add() {
    echo ossn_html_js(array('src' => ossn_site_url('vendors/jquery/jquery-1.11.1.min.js')));
} **/
function ossn_languages_js()
{
    $lang = ossn_site_settings('language');
    $cache = ossn_site_settings('cache');
    $last_cache = ossn_site_settings('last_cache');
    if ($cache == true) {
        $js = "ossn.{$lang}.language";
        $url = "cache/js/{$last_cache}/view/{$js}.js";
        ossn_new_external_js($js, $url);
        ossn_load_external_js($js, 'site');
        ossn_load_external_js($js, 'admin');
    } else {
        ossn_new_js('ossn.language', 'javascripts/libraries/languages');
        ossn_load_js('ossn.language');
        ossn_load_js('ossn.language', 'admin');
    }
}
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:21,代码来源:ossn.lib.javascripts.php


示例11: ossn_fetch_extend_views

    <script>
        <?php 
echo ossn_fetch_extend_views('ossn/admin/js/head');
?>

    </script>
    <script>
        tinymce.init({
            toolbar: "bold italic underline alignleft aligncenter alignright bullist numlist image media link unlink emoticons autoresize fullscreen insertdatetime print spellchecker preview",
            selector: '.ossn-editor',
            plugins: "code image media link emoticons fullscreen insertdatetime print spellchecker preview",
            convert_urls: false,
            relative_urls: false,
            language: "<?php 
echo ossn_site_settings('language');
?>
",
        });
    </script>

</head>
<body>
	<div class="header">
    	<div class="container">
        
        	<div class="row">
            
        		<div class="col-md-6">
            		<img src="<?php 
echo ossn_theme_url();
开发者ID:atlantidaformacion,项目名称:nestheme,代码行数:30,代码来源:administrator.php


示例12: ossn_css_admin

/**
 * Load registered css to system for admin
 *
 * @return html.tag
 */
function ossn_css_admin()
{
    global $Ossn;
    $url = ossn_site_url();
    if (isset($Ossn->csshead['admin'])) {
        foreach ($Ossn->csshead['admin'] as $css) {
            $href = "{$url}css/view/{$css}.css";
            if (ossn_site_settings('cache') == 1) {
                $href = "{$url}cache/css/view/{$css}.css";
            }
            echo ossn_html_css(array('href' => $href));
        }
    }
}
开发者ID:alibasli,项目名称:Social-Network-PHP-Joomla,代码行数:19,代码来源:ossn.lib.css.php


示例13: ossn_print

 * @author    OSSN Core Team <[email protected]>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
?>
<div class="home-left-contents">
    <h1><?php 
echo ossn_print('home:top:heading', array(ossn_site_settings('site_name')));
?>
 </h1>
    <img src="<?php 
echo ossn_site_url();
?>
themes/<?php 
echo ossn_site_settings('theme');
?>
/images/home-people.png"/>
</div>
<div class="home-right-contents">
    <h1> <?php 
echo ossn_print('create:account');
?>
 </h1>

    <div class="h1-bottom"> <?php 
echo ossn_print('its:free');
?>
 </div>
    <br/>
    <?php 
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:31,代码来源:index.php


示例14: ossn_print

						<canvas id="users-classified-graph"></canvas>
                        <div id="userclassified-lineLegend"></div>                         
           	 	</div>
            </div>
        </div>       
    
          <div class="col-md-4 admin-dashboard-item">
        	<div class="admin-dashboard-box">
        		<div class="admin-dashboard-title"><?php 
echo ossn_print('my:version');
?>
</div>
            	<div class="admin-dashboard-contents center admin-dashboard-fixed-height">
                        <div class="text center">
                            <?php 
echo ossn_site_settings('site_version');
?>
                        </div>
						<canvas id="users-classified-graph"></canvas>
                        <div id="userclassified-lineLegend"></div>                         
           	 	</div>
            </div>
        </div>     
          <div class="col-md-4 admin-dashboard-item">
        	<div class="admin-dashboard-box">
        		<div class="admin-dashboard-title"><?php 
echo ossn_print('admin:cache');
?>
</div>
            	<div class="admin-dashboard-contents center admin-dashboard-fixed-height">
                        <div class="text center">
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:31,代码来源:dashboard.php


示例15: ossn_site_settings

<?php

/**
 * 	OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <[email protected]>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence 
 * @link      http://www.opensource-socialnetwork.com/licence
 */
$site_name = ossn_site_settings('site_name');
if (isset($params['title'])) {
    $title = $params['title'] . ' : ' . $site_name;
} else {
    $title = ossn_site_settings('site_name');
}
if (isset($params['contents'])) {
    $contents = $params['contents'];
} else {
    $contents = '';
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
echo $title;
?>
</title>
开发者ID:c0d3r-Sunny,项目名称:ossnfacebook,代码行数:31,代码来源:administrator.php


示例16: ossn_site_url

						<a role="button" data-target="#"> <i class="fa fa-th-list"></i></a>
					</li>
				</div>
				<?php 
}
?>
			</div>
			<div class="col-md-7 site-name text-center <?php 
echo $hide_loggedin;
?>
">
				<span><a href="<?php 
echo ossn_site_url();
?>
"><?php 
echo ossn_site_settings('site_name');
?>
</a></span>
			</div>
			<div class="col-md-3 text-right right-side">
				<div class="topbar-menu-right">
					<li class="ossn-topbar-dropdown-menu">
						<div class="dropdown">
						<?php 
if (ossn_isLoggedin()) {
    echo ossn_plugin_view('output/url', array('role' => 'button', 'data-toggle' => 'dropdown', 'data-target' => '#', 'text' => '<i class="fa fa-sort-desc"></i>'));
    echo ossn_view_menu('topbar_dropdown');
}
?>
						</div>
					</li>                
开发者ID:atlantidaformacion,项目名称:nestheme,代码行数:31,代码来源:topbar.php


示例17: ossn_css_admin

/**
 * Load registered css to system for admin
 *
 * @return html.tag
 */
function ossn_css_admin()
{
    global $Ossn;
    $url = ossn_site_url();
    //load external css
    $external = $Ossn->cssheadExternal['admin'];
    if (!empty($external)) {
        foreach ($external as $item) {
            echo ossn_html_css(array('href' => $Ossn->cssExternal[$item]));
        }
    }
    //load internal css
    if (isset($Ossn->csshead['admin'])) {
        foreach ($Ossn->csshead['admin'] as $css) {
            $href = "{$url}css/view/{$css}.css";
            if (ossn_site_settings('cache') == 1) {
                $cache = ossn_site_settings('last_cache');
                $href = "{$url}cache/css/{$cache}/view/{$css}.css";
            }
            echo ossn_html_css(array('href' => $href));
        }
    }
}
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:28,代码来源:ossn.lib.css.php


示例18: ossn_errros

/**
 * Ossn php display erros settings
 *
 * @return (void);
 * @access pritvate;
 */
function ossn_errros()
{
    $settings = ossn_site_settings('display_errors');
    if ($settings == 'on' || is_file(ossn_route()->www . 'DISPLAY_ERRORS')) {
        error_reporting(E_NOTICE ^ ~E_WARNING);
        ini_set('log_errors', 1);
        ini_set('error_log', ossn_route()->www . 'error_log');
        set_error_handler('_ossn_php_error_handler');
    } elseif ($settings !== 'on') {
        ini_set("log_errors", 0);
        ini_set('display_errors', 'off');
    }
}
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:19,代码来源:ossn.lib.system.php


示例19: input

<?php

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <[email protected]>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
$disable = input('disabled');
if (ossn_site_settings('cache') == true || !empty($disable)) {
    if (ossn_disable_cache() && empty($disable)) {
        //flush cache didn't flush the plugins path #460
        $action = ossn_add_tokens_to_url("action/admin/cache/flush?disabled=disabled");
        redirect($action);
    } elseif ($disable == 'disabled') {
        if (ossn_create_cache()) {
            ossn_trigger_message(ossn_print('cache:flushed'));
            redirect(REF);
        }
    }
}
ossn_trigger_message(ossn_print('cache:flush:error'), 'error');
redirect(REF);
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:26,代码来源:flush.php


示例20: ossn_view_admin_sidemenu

/**
 * View admin sidebar menu
 *
 * @return html
 */
function ossn_view_admin_sidemenu()
{
    global $Ossn;
    $params['menu'] = $Ossn->menu['admin/sidemenu'];
    $active_theme = ossn_site_settings('theme');
    return ossn_view("themes/{$active_theme}/menus/admin_sidemenu", $params);
}
开发者ID:alibasli,项目名称:Social-Network-PHP-Joomla,代码行数:12,代码来源:ossn.lib.admin.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ossn_site_url函数代码示例发布时间:2022-05-15
下一篇:
PHP ossn_set_page_layout函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap