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


PHP ossn_site_settings函数代码示例

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


在下文中一共展示了ossn_site_settings函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 <info@opensource-socialnetwork.org>
 * @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 <info@opensource-socialnetwork.com>
 * @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


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