本文整理汇总了PHP中getinfo函数的典型用法代码示例。如果您正苦于以下问题:PHP getinfo函数的具体用法?PHP getinfo怎么用?PHP getinfo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getinfo函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: parser_simple_post_edit
function parser_simple_post_edit($text = '')
{
// глюк FireFox исправлем замену абсолютного пути src на абсолютный
$text = str_replace('src="../../', 'src="' . getinfo('site_url'), $text);
$text = str_replace('src="../', 'src="' . getinfo('site_url'), $text);
return $text;
}
示例2: get_num_pos
/**
* Get the number of pos block in the last @param hours
*
* @param int $hours
*
* @return int
*/
function get_num_pos($hours)
{
$network_info = getinfo();
$currentblock = $network_info["blocks"];
$iblock = intval($currentblock) - 6 * $hours;
$POScoins = 0;
$POWcoins = 0;
$POS = 0;
$POW = 0;
$avgPOScoins = 0;
$avgPOWcoins = 0;
while ($iblock != intval($currentblock)) {
$flag = block_flag($iblock);
$coins = block_mint($iblock);
if (strpos($flag, "proof-of-stake") !== false) {
$POS++;
$POScoins += $coins;
} else {
$POW++;
$POWcoins += $coins;
}
$iblock++;
}
if ($POS > 0) {
$avgPOScoins = $POScoins / $POS;
}
if ($POW > 0) {
$avgPOWcoins = $POWcoins / $POW;
}
return array($POS, $POW, $POScoins, $POWcoins, $avgPOScoins, $avgPOWcoins);
}
示例3: smiles_custom
function smiles_custom($content)
{
$CI =& get_instance();
$CI->load->helper('smiley');
$content = parse_smileys($content, getinfo('uploads_url') . 'smiles/');
return $content;
}
示例4: login_form_widget
function login_form_widget($num = 1)
{
$out = '';
$widget = 'login_form_widget_' . $num;
// имя для опций = виджет + номер
$options = mso_get_option($widget, 'plugins', array());
// получаем опции
if (is_login()) {
$out = '<p><strong>' . t('Привет,') . ' ' . getinfo('users_nik') . '!</strong><br>
[<a href="' . getinfo('siteurl') . 'admin">' . t('управление') . '</a>]
[<a href="' . getinfo('siteurl') . 'logout' . '">' . t('выйти') . '</a>]
</p>';
} elseif ($comuser = is_login_comuser()) {
if (!$comuser['comusers_nik']) {
$cun = t('Привет!');
} else {
$cun = t('Привет,') . ' ' . $comuser['comusers_nik'] . '!';
}
$out = '<p><strong>' . $cun . '</strong><br>
[<a href="' . getinfo('siteurl') . 'users/' . $comuser['comusers_id'] . '">' . t('своя страница') . '</a>]
[<a href="' . getinfo('siteurl') . 'logout' . '">' . t('выйти') . '</a>]
</p>';
} else {
$after_form = isset($options['after_form']) ? $options['after_form'] : '';
$out = mso_login_form(array('login' => t('Логин (email):') . ' ', 'password' => t('Пароль:') . ' ', 'submit' => '', 'form_end' => $after_form), getinfo('siteurl') . mso_current_url(), false);
}
if ($out) {
if (isset($options['header']) and $options['header']) {
$out = mso_get_val('widget_header_start', '<h2 class="box"><span>') . $options['header'] . mso_get_val('widget_header_end', '</span></h2>') . $out;
}
}
return $out;
}
示例5: audioplayer_content_callback
function audioplayer_content_callback($matches)
{
$url = $matches[1];
$id = md5($url);
$out = '<p id="' . $id . '" class="audioplayer"></p><script>AudioPlayer.setup("' . getinfo('plugins_url') . 'audioplayer/player.swf", {width: 350}); AudioPlayer.embed("' . $id . '", {soundFile: "' . $url . '"}); </script>';
return $out;
}
示例6: editor_digraph
function editor_digraph($args = array())
{
$editor_config['url'] = getinfo('plugins_url') . 'editor_digraph/';
$editor_config['dir'] = getinfo('plugins_dir') . 'editor_digraph/';
if (isset($args['content'])) {
$editor_config['content'] = $args['content'];
} else {
$editor_config['content'] = '';
}
if (isset($args['do'])) {
$editor_config['do'] = $args['do'];
} else {
$editor_config['do'] = '';
}
if (isset($args['posle'])) {
$editor_config['posle'] = $args['posle'];
} else {
$editor_config['posle'] = '';
}
if (isset($args['action'])) {
$editor_config['action'] = ' action="' . $args['action'] . '"';
} else {
$editor_config['action'] = '';
}
if (isset($args['height'])) {
$editor_config['height'] = (int) $args['height'];
} else {
$editor_config['height'] = (int) mso_get_option('editor_height', 'general', 400);
if ($editor_config['height'] < 100) {
$editor_config['height'] = 400;
}
}
require $editor_config['dir'] . 'digraph.php';
}
示例7: bbcode_custom
function bbcode_custom($text = '')
{
$text = preg_replace_callback('~\\[pre(.*?)\\](.*?)\\[\\/pre\\]~si', 'bbcode_pre_callback', $text);
$preg = array('~\\[b (.*?)\\](.*?)\\[\\/b\\]~si' => '<strong $1>$2</strong>', '~\\[b\\](.*?)\\[\\/b\\]~si' => '<strong>$1</strong>', '~\\[bold (.*?)\\](.*?)\\[\\/bold\\]~si' => '<b $1>$2</b>', '~\\[bold\\](.*?)\\[\\/bold\\]~si' => '<b>$1</b>', '~\\[i (.*?)\\](.*?)\\[\\/i\\]~si' => '<em$1>$2</em>', '~\\[i\\](.*?)\\[\\/i\\]~si' => '<em>$1</em>', '~\\[italic (.*?)\\](.*?)\\[\\/italic\\]~si' => '<i$1>$2</i>', '~\\[italic\\](.*?)\\[\\/italic\\]~si' => '<i>$1</i>', '~\\[del (.*?)\\](.*?)\\[\\/del\\]~si' => '<del $1>$2</del>', '~\\[del\\](.*?)\\[\\/del\\]~si' => '<del>$1</del>', '~\\[s (.*?)\\](.*?)\\[\\/s\\]~si' => '<s $1>$2</s>', '~\\[s\\](.*?)\\[\\/s\\]~si' => '<s>$1</s>', '~\\[u (.*?)\\](.*?)\\[\\/u\\]~si' => '<u $1>$2</u>', '~\\[u\\](.*?)\\[\\/u\\]~si' => '<u>$1</u>', '~\\[sub\\](.*?)\\[\\/sub\\]~si' => '<sub>$1</sub>', '~\\[sup\\](.*?)\\[\\/sup\\]~si' => '<sup>$1</sup>', '~\\[small\\](.*?)\\[\\/small\\]~si' => '<small>$1</small>', '~\\[color=(.*?)\\](.*?)\\[\\/color\\]~si' => '<span style="color:$1">$2</span>', '~\\[size=(.*?)\\](.*?)\\[\\/size\\]~si' => '<span style="font-size:$1">$2</span>', '~\\[div=(.*?)\\](.*?)\\[\\/div\\]~si' => '<div style="$1">$2</div>', '~\\[span=(.*?)\\](.*?)\\[\\/span\\]~si' => '<span style="$1">$2</span>', '~\\[left (.*?)\\](.*?)\\[\\/left\\]~si' => '<div style="text-align: left; $1">$2</div>', '~\\[left\\](.*?)\\[\\/left\\]~si' => '<div style="text-align: left;">$1</div>', '~\\[right (.*?)\\](.*?)\\[\\/right\\]~si' => '<div style="text-align: right; $1">$2</div>', '~\\[right\\](.*?)\\[\\/right\\]~si' => '<div style="text-align: right;">$1</div>', '~\\[center (.*?)\\](.*?)\\[\\/center\\]~si' => '<div style="text-align: center; $1">$2</div>', '~\\[center\\](.*?)\\[\\/center\\]~si' => '<div style="text-align: center;">$1</div>', '~\\[justify (.*?)\\](.*?)\\[\\/justify\\]~si' => '<div style="text-align: justify; $1">$2</div>', '~\\[justify\\](.*?)\\[\\/justify\\]~si' => '<div style="text-align: justify;">$1</div>', '~\\[p\\](.*?)\\[\\/p\\]~si' => '<p>$1</p>', '~\\[p=(.*?)\\](.*?)\\[\\/p\\]~si' => '<p style="$1">$2</p>', '~\\[p (.*?)\\](.*?)\\[\\/p\\]~si' => '<p $1>$2</p>', '~\\[p\\((.*?)\\)\\](.*?)\\[\\/p\\]~si' => '<p class="$1">$2</p>', '~\\[pleft\\](.*?)\\[\\/pleft\\]~si' => '<p style="text-align: left;">$1</p>', '~\\[pright\\](.*?)\\[\\/pright\\]~si' => '<p style="text-align: right;">$1</p>', '~\\[pcenter\\](.*?)\\[\\/pcenter\\]~si' => '<p style="text-align: center;">$1</p>', '~\\[pjustify\\](.*?)\\[\\/pjustify\\]~si' => '<p style="text-align: justify;">$1</p>', '~\\[abbr\\](.*?)\\[\\/abbr\\]~si' => '<abbr>$1</abbr>', '~\\[abbr (.*?)\\](.*?)\\[\\/abbr\\]~si' => '<abbr title="$1">$2</abbr>', '~\\[q\\](.*?)\\[\\/q\\]~si' => '<q>$1</q>', '~\\[q (.*?)\\](.*?)\\[\\/q\\]~si' => '<q $1">$2</q>', '~\\[cite\\](.*?)\\[\\/cite\\]~si' => '<cite>$1</cite>', '~\\[cite (.*?)\\](.*?)\\[\\/cite\\]~si' => '<cite $1">$2</cite>', '~\\[address\\](.*?)\\[\\/address\\]~si' => '<address>$1</address>', '~\\[address (.*?)\\](.*?)\\[\\/address\\]~si' => '<address $1">$2</address>', '~\\[dfn\\](.*?)\\[\\/dfn\\]~si' => '<dfn>$1</dfn>', '~\\[dfn (.*?)\\](.*?)\\[\\/dfn\\]~si' => '<dfn $1">$2</dfn>', '~\\[dl\\](.*?)\\[\\/dl\\]~si' => '<dl>$1</dl>', '~\\[dl (.*?)\\](.*?)\\[\\/dl\\]~si' => '<dl $1">$2</dl>', '~\\[dt\\](.*?)\\[\\/dt\\]~si' => '<dt>$1</dt>', '~\\[dt (.*?)\\](.*?)\\[\\/dt\\]~si' => '<dt $1">$2</dt>', '~\\[dd\\](.*?)\\[\\/dd\\]~si' => '<dd>$1</dd>', '~\\[dd (.*?)\\](.*?)\\[\\/dd\\]~si' => '<dd $1">$2</dd>', '~\\[ins\\](.*?)\\[\\/ins\\]~si' => '<ins>$1</ins>', '~\\[ins (.*?)\\](.*?)\\[\\/ins\\]~si' => '<ins $1">$2</ins>', '~\\[hr\\]~si' => '<hr>', '~\\[line\\]~si' => '<hr>', '~\\[table\\]~si' => '<table>', '~\\[table (.*?)\\]~si' => '<table $1>', '~\\[\\/table\\]~si' => '</table>', '~\\[tr\\]~si' => '<tr>', '~\\[tr (.*?)\\]~si' => '<tr $1>', '~\\[\\/tr\\]~si' => '</tr>', '~\\[td\\]~si' => '<td>', '~\\[td (.*?)\\]~si' => '<td $1>', '~\\[\\/td\\]~si' => '</td>', '~\\[th\\]~si' => '<th>', '~\\[th (.*?)\\]~si' => '<th $1>', '~\\[\\/th\\]~si' => '</th>', '~\\[\\*\\](.*?)\\[\\/\\*\\]~si' => '<li>$1</li>', '~\\[\\*\\]~si' => '<li>', '~\\[ul\\](.*?)\\[\\/ul\\]~si' => "<ul>\$1</li></ul>", '~\\[list\\](.*?)\\[\\/list\\]~si' => "<ul>\$1</li></ul>", '~\\[ol\\](.*?)\\[\\/ol\\]~si' => '<ol>$1</li></ol>', '~\\[li\\]~si' => '<li>', '~\\[li (.*?)\\]~si' => '<li $1>', '~\\[\\/li\\]~si' => '</li>', '~\\[h1\\](.*?)\\[\\/h1\\]~si' => '<h1>$1</h1>', '~\\[h1\\((.[^ ]*?)\\)\\](.*?)\\[\\/h1\\]~si' => '<h1 class="$1">$2</h1>', '~\\[h1 (.*?)\\](.*?)\\[\\/h1\\]~si' => '<h1 $1>$2</h1>', '~\\[h2\\](.*?)\\[\\/h2\\]~si' => '<h2>$1</h2>', '~\\[h2\\((.[^ ]*?)\\)\\](.*?)\\[\\/h2\\]~si' => '<h2 class="$1">$2</h2>', '~\\[h2 (.*?)\\](.*?)\\[\\/h2\\]~si' => '<h2 $1>$2</h2>', '~\\[h3\\](.*?)\\[\\/h3\\]~si' => '<h3>$1</h3>', '~\\[h3\\((.[^ ]*?)\\)\\](.*?)\\[\\/h3\\]~si' => '<h3 class="$1">$2</h3>', '~\\[h3 (.*?)\\](.*?)\\[\\/h3\\]~si' => '<h3 $1>$2</h3>', '~\\[h4\\](.*?)\\[\\/h4\\]~si' => '<h4>$1</h4>', '~\\[h4\\((.[^ ]*?)\\)\\](.*?)\\[\\/h4\\]~si' => '<h4 class="$1">$2</h4>', '~\\[h4 (.*?)\\](.*?)\\[\\/h4\\]~si' => '<h4 $1>$2</h4>', '~\\[h5\\](.*?)\\[\\/h5\\]~si' => '<h5>$1</h5>', '~\\[h5\\((.[^ ]*?)\\)\\](.*?)\\[\\/h5\\]~si' => '<h5 class="$1">$2</h5>', '~\\[h5 (.*?)\\](.*?)\\[\\/h5\\]~si' => '<h5 $1>$2</h5>', '~\\[h6\\](.*?)\\[\\/h6\\]~si' => '<h6>$1</h6>', '~\\[h6\\((.[^ ]*?)\\)\\](.*?)\\[\\/h6\\]~si' => '<h6 class="$1">$2</h6>', '~\\[h6 (.*?)\\](.*?)\\[\\/h6\\]~si' => '<h6 $1>$2</h6>', '~\\[code\\](.*?)\\[\\/code\\]~si' => '<code>$1</code>', '~\\[url\\](.*?)\\[\\/url\\]~si' => '<a href="$1">$1</a>', '~\\[url=(.[^ ]*?)\\](.*?)\\[\\/url\\]~si' => '<a href="$1">$2</a>', '~\\[url=(.[^\\s]*?) (.*?)\\](.*?)\\[\\/url\\]~si' => '<a href="$1" $2>$3</a>', '~\\[url (.*?)\\](.*?)\\[\\/url\\]~si' => '<a href="$2" $1>$2</a>', '~\\[imgleft=(.*?)x(.*?)\\](.*?)\\[\\/imgleft\\]~si' => '<img src="$3" style="float: left; margin: 0 10px 0 0; width: $1px; height: $2px">', '~\\[imgleft\\](.*?)\\[\\/imgleft\\]~si' => '<img src="$1" style="float: left; margin: 0 10px 0 0;">', '~\\[imgleft (.*?)\\](.*?)\\[\\/imgleft\\]~si' => '<img src="$2" title="$1" alt="$1" style="float: left; margin: 0 10px 0 0;">', '~\\[imgright=(.*?)x(.*?)\\](.*?)\\[\\/imgright\\]~si' => '<img src="$3" style="float: right; margin: 0 0 0 10px; width: $1px; height: $2px">', '~\\[imgright\\](.*?)\\[\\/imgright\\]~si' => '<img src="$1" style="float: right; margin: 0 0 0 10px;">', '~\\[imgright (.*?)\\](.*?)\\[\\/imgright\\]~si' => '<img src="$2" title="$1" alt="$1" style="float: right; margin: 0 0 0 10px;">', '~\\[imgcenter\\](.*?)\\[\\/imgcenter\\]~si' => '<div style="text-align: center"><img src="$1"></div>', '~\\[imgcenter (.*?)\\](.*?)\\[\\/imgcenter\\]~si' => '<div style="text-align: center"><img src="$2" title="$1" alt="$1"></div>', '~\\[imgmini=_(.*?)\\](.*?)\\[\\/imgmini\\]~si' => '<a href="$2" target="_blank" class="lightbox"><img src="$1"></a>', '~\\[imgmini=(.*?)\\](.*?)\\[\\/imgmini\\]~si' => '<a href="$2"><img src="$1" class="lightbox"></a>', '~\\[img=(.*?)x(.*?)\\](.*?)\\[\\/img\\]~si' => '<img src="$3" style="width: $1px; height: $2px">', '~\\[img (.*?)\\](.*?)\\[\\/img\\]~si' => '<img src="$2" title="$1" alt="$1">', '~\\[img\\](.*?)\\[\\/img\\]~si' => '<img src="$1" title="" alt="">', '~\\[img\\((.[^ ]*?)\\)\\](.*?)\\[\\/img\\]~si' => '<img src="$2" alt="" class="$1">', '~\\[img\\((.[^ ]*?)\\) (.*?)\\](.*?)\\[\\/img\\]~si' => '<img src="$3" alt="$2" title="$2" class="$1">', '~\\[quote\\](.*?)\\[\\/quote\\]~si' => '<blockquote>$1</blockquote>', '~\\[quote=(?:"|"|\')?(.*?)["\']?(?:"|"|\')?\\](.*?)\\[\\/quote\\]~si' => '<blockquote><strong class="src">$1:</strong>$2</blockquote>', '~\\[div\\((.*?)\\)\\](.*?)\\[\\/div\\]~si' => '<div class="$1">$2</div>', '~\\[div (.*?)\\](.*?)\\[\\/div\\]~si' => '<div $1>$2</div>', '~\\[div\\((.*?)\\) (.*?)\\](.*?)\\[\\/div\\]~si' => '<div class="$1" $2>$3</div>', '~\\[span\\((.*?)\\)\\](.*?)\\[\\/span\\]~si' => '<span class="$1">$2</span>', '~\\[span (.*?)\\](.*?)\\[\\/span\\]~si' => '<span $1>$2</span>', '~\\[span\\((.*?)\\) (.*?)\\](.*?)\\[\\/span\\]~si' => '<span class="$1" $2>$3</span>', '~\\[getinfo siteurl\\]~si' => getinfo('siteurl'), '~\\[getinfo template_url\\]~si' => getinfo('template_url'), '~\\[getinfo uploads_url\\]~si' => getinfo('uploads_url'), '~\\[getinfo shared_url\\]~si' => getinfo('shared_url'));
if (strpos($text, '[text-demo]') !== false) {
if (file_exists(getinfo('plugins_dir') . 'bbcode/text-demo.txt')) {
$text_demo = file_get_contents(getinfo('plugins_dir') . 'bbcode/text-demo.txt');
$text = str_replace('[text-demo]', $text_demo, $text);
}
}
if (strpos($text, '[text-normalize]') !== false) {
if (file_exists(getinfo('plugins_dir') . 'bbcode/text-normalize.txt')) {
$text_normalize = file_get_contents(getinfo('plugins_dir') . 'bbcode/text-normalize.txt');
$text = str_replace('[text-normalize]', $text_normalize, $text);
}
}
$text = preg_replace(array_keys($preg), array_values($preg), $text);
# другие сложные патерны и замены
// создание ul/li списка по принципу меню
$pattern = '~\\[create_list\\((.*?)\\)\\](.*?)\\[/create_list\\]~si';
// с указаным css-классом
$text = preg_replace_callback($pattern, 'bbcode_create_list_callback', $text);
$pattern = '~\\[create_list\\](.*?)\\[/create_list\\]~si';
// без класса
$text = preg_replace_callback($pattern, 'bbcode_create_list_callback', $text);
// [show Вопрос] текст [/show]
$pattern = '~\\[show (.*?)\\](.*?)\\[\\/show\\]~si';
$text = preg_replace_callback($pattern, 'bbcode_show_callback', $text);
// по хуку bbcode можно выполнить свои замены
$text = mso_hook('bbcode', $text);
// pr($text, 1);
return $text;
}
示例8: lightbox_content
function lightbox_content($text = '')
{
$url = getinfo('plugins_url') . 'lightbox/images/';
$preg = array('~<p>\\[gal=(.*?)\\[\\/gal\\]</p>~si' => '[gal=$1[/gal]', '~<p>\\[gallery(.*?)\\](\\s)*</p>~si' => '[gallery$1]', '~<p>\\[\\/gallery\\](\\s)*</p>~si' => '[/gallery]', '~<p>\\[gallery(.*?)\\](\\s)*~si' => '[gallery$1]', '~\\[\\/gallery\\](\\s)*</p>~si' => '[/gallery]', '~\\[gallery=(.*?)\\](.*?)\\[\\/gallery\\]~si' => '<div class="gallery$1">$2</div><script>\\$(function() { lburl = \'' . $url . '\'; \\$(\'div.gallery$1 a\').lightBox({imageLoading: lburl+\'lightbox-ico-loading.gif\', imageBtnClose: lburl+\'lightbox-btn-close.gif\', imageBtnPrev: lburl+\'lightbox-btn-prev.gif\', imageBtnNext: lburl+\'lightbox-btn-next.gif\'});});</script>
', '~\\[gallery\\](.*?)\\[\\/gallery\\]~si' => '<div class="gallery">$1</div>', '~\\[gal=(.[^\\s]*?) (.*?)\\](.*?)\\[\\/gal\\]~si' => '<a href="$3" title="$2"><img src="$1" alt="$2"></a>', '~\\[gal=(.*?)\\](.*?)\\[\\/gal\\]~si' => '<a href="$2"><img src="$1" alt=""></a>', '~\\[image\\](.*?)\\[\\/image\\]~si' => '<a href="$1" class="lightbox"><img src="$1" alt=""></a>', '~\\[image=(.[^\\s]*?) (.*?)\\](.*?)\\[\\/image\\]~si' => '<a href="$3" class="lightbox" title="$2"><img src="$1" alt="$2"></a>', '~\\[image=(.[^ ]*?)\\](.*?)\\[\\/image\\]~si' => '<a href="$2" class="lightbox"><img src="$1" alt=""></a>', '~\\[image\\((.[^\\s]*?)\\)=(.[^\\s]*?) (.*?)\\](.*?)\\[\\/image\\]~si' => '<a href="$4" class="lightbox" title="$3"><img src="$2" alt="$3" class="$1"></a>', '~\\[image\\((.[^ ]*?)\\)=(.[^ ]*?)\\](.*?)\\[\\/image\\]~si' => '<a href="$3" class="lightbox"><img src="$2" alt="" class="$1"></a>', '~\\[image\\((.[^ ]*?)\\)\\](.*?)\\[\\/image\\]~si' => '<a href="$2" class="lightbox"><img src="$2" alt="" class="$1"></a>', '~\\[galname\\](.*?)\\[\\/galname\\]~si' => '<div>$1</div>');
return preg_replace(array_keys($preg), array_values($preg), $text);
}
示例9: auth_content_head
function auth_content_head($args = array())
{
# стили пользователя
if (file_exists(getinfo('plugins_dir') . basename(dirname(__FILE__)) . '/custom.css')) {
echo '<link rel="stylesheet" href="' . getinfo('plugins_url') . basename(dirname(__FILE__)) . '/custom.css" type="text/css" media="screen">' . NR;
}
return $args;
}
示例10: colorbox_head_css
function colorbox_head_css($args = array())
{
$url = getinfo('plugins_url') . 'colorbox/';
$options = mso_get_option('plugin_colorbox', 'plugins', array());
if (!isset($options['style'])) {
$options['style'] = '1';
}
echo '<link rel="stylesheet" href="' . $url . 'style/' . $options['style'] . '/colorbox.css">';
}
示例11: admin_files_admin_head
function admin_files_admin_head($args = array())
{
#echo mso_load_jquery('ui/ui.core.packed.js');
#echo mso_load_jquery('ui/ui.draggable.packed.js');
echo mso_load_jquery('alerts/jquery.alerts.js');
//echo mso_load_jquery('cornerz.js');
echo ' <link href="' . getinfo('common_url') . 'jquery/alerts/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen">';
return $args;
}
示例12: antispam_log
function antispam_log($file = '', $msg = '')
{
if ($file) {
$fn = getinfo('uploads_dir') . $file;
$fp = fopen($fn, "a+");
fwrite($fp, '====================' . "\n" . $msg . "\n\n");
fclose($fp);
}
}
示例13: guestbook_css
function guestbook_css($a = array())
{
if (file_exists(getinfo('template_dir') . 'guestbook.css')) {
$css = getinfo('stylesheet_url') . 'guestbook.css';
} else {
$css = getinfo('plugins_url') . 'guestbook/guestbook.css';
}
echo '<link rel="stylesheet" href="' . $css . '" type="text/css" media="screen">' . NR;
return $a;
}
示例14: default_profiles
function default_profiles()
{
$all = mso_get_path_files(getinfo('template_dir') . 'assets/css/profiles/', getinfo('template_url') . 'assets/css/profiles/', false, array('css'));
if ($all) {
$all = ' ||Нет #' . implode($all, '#');
} else {
$all = ' ||Нет';
}
return $all;
}
示例15: captcha_go
function captcha_go($args = array())
{
global $MSO;
# сама картинка формируется в img.php
# в ней мы передаем сессию, текущую страницу и время (против кэширования)
echo '
<div class="captcha"><label for="comments_captha">' . tf('Введите нижние символы') . '</label>
<input type="text" name="comments_captha" id="comments_captha" value="" maxlength="4" class="comments_captha"> <img src="' . getinfo('plugins_url') . 'captcha/img.php?image=' . $MSO->data['session']['session_id'] . '&page=' . mso_slug(mso_current_url()) . '&code=' . time() . '" alt="" title="' . tf('Защита от спама: введите только нижние символы') . '"> <span>' . t('(обязательно)') . '</span><br><br></div>
';
}