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


PHP include_lan函数代码示例

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


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

示例1: __construct

 function __construct()
 {
     include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/lan_notify.php');
     if (empty($this->notify_prefs)) {
         $this->notify_prefs = e107::getConfig('notify')->getPref();
     }
 }
开发者ID:armpit,项目名称:e107,代码行数:7,代码来源:notify_class.php

示例2: listclass

 /**
  * constructor
  *
  * @param string $mode the mode of the caller (default, admin)
  * @return void
  *
  */
 function listclass($mode = '')
 {
     global $TEMPLATE_LIST_NEW, $list_shortcodes;
     $this->plugin_dir = e_PLUGIN . "list_new/";
     $this->e107 = e107::getInstance();
     //language
     include_lan($this->plugin_dir . "languages/" . e_LANGUAGE . ".php");
     //template
     if (is_readable(THEME . "list_template.php")) {
         require_once THEME . "list_template.php";
     } else {
         require_once $this->plugin_dir . "list_template.php";
     }
     $this->template = $TEMPLATE_LIST_NEW;
     //shortcodes
     require_once $this->plugin_dir . "list_shortcodes.php";
     //		$this->shortcodes = $list_shortcodes;
     $this->shortcodes = new list_shortcodes();
     $this->shortcodes->rc = $this;
     if ($mode == 'admin') {
         require_once $this->plugin_dir . "list_admin_class.php";
         $this->admin = new list_admin($this);
     }
     //default sections (present in this list plugin)
     $this->defaultArray = array("news", "comment", "members");
 }
开发者ID:armpit,项目名称:e107,代码行数:33,代码来源:list_class.php

示例3: config

 function config()
 {
     include_lan(e_PLUGIN . "download/languages/" . e_LANGUAGE . "/admin_download.php");
     $cron = array();
     $cron[] = array('name' => "Prune Download Log older than 12 months", 'function' => "pruneLog", 'category' => '', 'description' => "Non functional at the moment");
     return $cron;
 }
开发者ID:notzen,项目名称:e107,代码行数:7,代码来源:e_cron.php

示例4: e_linkwords

 function e_linkwords()
 {
     global $pref, $admin_log;
     /* constructor */
     // Do an auto-update on the variable used to hook parsers - so we should only be called once
     include_lan(e_PLUGIN . "linkwords/languages/" . e_LANGUAGE . ".php");
     $hooks = explode(",", $pref['tohtml_hook']);
     if (($key = array_search('linkwords', $hooks)) !== FALSE) {
         unset($hooks[$key]);
     }
     if (count($hooks) == 0) {
         unset($pref['tohtml_hook']);
     } else {
         $pref['tohtml_hook'] = implode(',', $hooks);
     }
     if (!isset($pref['e_tohtml_list'])) {
         $pref['e_tohtml_list'] = array();
     }
     if (!in_array('linkwords', $pref['e_tohtml_list'])) {
         $pref['e_tohtml_list'][] = 'linkwords';
     }
     save_prefs();
     $admin_log->log_event('LINKWD_05', LWLAN_58 . '[!br!]' . $pref['tohtml_hook'], '');
     // Log that the update was done
     return;
 }
开发者ID:notzen,项目名称:e107,代码行数:26,代码来源:linkwords.php

示例5: forum_post_rep

 function forum_post_rep($data)
 {
     $e107 = e107::getInstance();
     include_lan(e_PLUGIN . 'forum/languages/' . e_LANGUAGE . '/lan_forum_notify.php');
     $message = 'todo';
     $e107->notify->send('forum_post_rep', FORUM_NT_9, $message);
 }
开发者ID:notzen,项目名称:e107,代码行数:7,代码来源:e_notify.php

示例6: __construct

 function __construct()
 {
     if (E107_DEBUG_LEVEL > 0) {
         $this->logging = true;
     }
     include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_image.php');
 }
开发者ID:KonzolozZ,项目名称:e107,代码行数:7,代码来源:media_class.php

示例7: print_item

function print_item($id)
{
    global $tp, $pref;
    global $content_pref, $mainparent, $aa, $row, $content_image_path;
    $con = new convert();
    require_once e_PLUGIN . "content/handlers/content_class.php";
    $aa = new content();
    require_once e_PLUGIN . "content/content_shortcodes.php";
    include_lan(e_PLUGIN . "content/languages/" . e_LANGUAGE . "/lan_content.php");
    if (!is_object($sql)) {
        $sql = new db();
    }
    $sql->db_Select($plugintable, "content_id, content_heading, content_subheading, content_text, content_author, content_image, content_parent, content_datestamp, content_class", "content_id='" . intval($id) . "' ");
    $row = $sql->db_Fetch();
    if (!check_class($row['content_class'])) {
        header("location:" . e_PLUGIN . "content/content.php");
        exit;
    }
    $row['content_heading'] = $tp->toHTML($row['content_heading']);
    $row['content_subheading'] = $tp->toHTML($row['content_subheading']);
    $row['content_text'] = $tp->replaceConstants($row['content_text']);
    $row['content_text'] = preg_replace("/\\{EMAILPRINT\\}|\\[newpage(?:\\=.*?){0,1}\\]/", "", $tp->toHTML($row['content_text'], TRUE));
    $authordetails = $aa->getAuthor($row['content_author']);
    $row['content_datestamp'] = $con->convert_date($row['content_datestamp'], "long");
    $mainparent = $aa->getMainParent($id);
    $content_pref = $aa->getContentPref($mainparent);
    $content_icon_path = $tp->replaceConstants($content_pref["content_icon_path"]);
    $content_image_path = $tp->replaceConstants($content_pref["content_image_path"]);
    $img = $tp->parseTemplate('{CONTENT_PRINT_IMAGES}', FALSE, $content_shortcodes);
    $text = "\n\t\t<b>" . $row['content_heading'] . "</b>\n\t\t<br />\n\t\t" . $row['content_subheading'] . "\n\t\t<br />\n\t\t" . $authordetails[1] . ", " . $row['content_datestamp'] . "\n\t\t<br /><br />\n\t\t<div style='float:left; padding-right:10px;'>" . $img . "</div>\n\t\t" . $row['content_text'] . "\n\t\t<br /><br /><hr />\n\t\t" . CONTENT_EMAILPRINT_LAN_1 . " " . SITENAME . "\n\t\t<br />\n\t\t( " . SITEURLBASE . e_PLUGIN_ABS . "content/content.php?content." . $row['content_id'] . " )        \n\t\t";
    require_once e_HANDLER . 'bbcode_handler.php';
    $e_bb = new e_bbcode();
    $text = $e_bb->parseBBCodes($text, '');
    return $text;
}
开发者ID:Jimmi08,项目名称:content,代码行数:35,代码来源:e_emailprint.php

示例8: notify_cboxpost

 function notify_cboxpost($data)
 {
     global $nt;
     include_lan(e_PLUGIN . "chatbox_menu/languages/" . e_LANGUAGE . "/" . e_LANGUAGE . ".php");
     $message = NT_LAN_CB_3 . ': ' . USERNAME . ' (' . NT_LAN_CB_4 . ': ' . $data['ip'] . ' )<br />';
     $message .= NT_LAN_CB_5 . ':<br />' . $data['cmessage'] . '<br /><br />';
     $nt->send('cboxpost', NT_LAN_CB_6, $message);
 }
开发者ID:notzen,项目名称:e107,代码行数:8,代码来源:e_notify.php

示例9: notify_ecaledit

 function notify_ecaledit($data)
 {
     global $nt;
     include_lan(e_PLUGIN . 'calendar_menu/languages/' . e_LANGUAGE . '.php');
     $message = NT_LAN_EC_3 . ': ' . USERNAME . ' (' . NT_LAN_EC_4 . ': ' . $data['ip'] . ' )<br />';
     $message .= NT_LAN_EC_5 . ':<br />' . $data['cmessage'] . '<br /><br />';
     $nt->send('ecaledit', NT_LAN_EC_8, $message);
 }
开发者ID:notzen,项目名称:e107,代码行数:8,代码来源:e_notify.php

示例10: notify_linksub

 function notify_linksub($data)
 {
     global $nt, $_lanfile;
     include_lan(e_PLUGIN . "links_page/languages/" . e_LANGUAGE . ".php");
     foreach ($data as $key => $value) {
         $message .= $key . ': ' . $value . '<br />';
     }
     $nt->send('linksub', NT_LAN_LP_3, $message);
 }
开发者ID:notzen,项目名称:e107,代码行数:9,代码来源:e_notify.php

示例11: notify

 function notify()
 {
     global $e_event;
     $this->notify_prefs = e107::getConfig("notify")->getPref();
     if (varset($this->notify_prefs['event'])) {
         foreach ($this->notify_prefs['event'] as $id => $status) {
             if ($status['class'] != 255) {
                 $e_event->register($id, 'notify_' . $id);
             }
         }
     }
     include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/lan_notify.php');
 }
开发者ID:notzen,项目名称:e107,代码行数:13,代码来源:notify_class.php

示例12: e_userprofile_links_page

 function e_userprofile_links_page()
 {
     global $qs, $sql, $tp;
     $id = intval($qs[1]);
     include_lan(e_PLUGIN . "links_page/languages/" . e_LANGUAGE . ".php");
     // Need the LAN file in some places even if no links found
     $qry = "\n\t\tSELECT l.*, lc.*\n\t\tFROM #links_page AS l\n\t\tLEFT JOIN #links_page_cat AS lc ON lc.link_category_id = l.link_category\n\t\tWHERE l.link_author = '" . $id . "'\n\t\tORDER BY l.link_name";
     $qry1 = $qry . " LIMIT 0,3";
     $text = '';
     $total = $sql->db_Select_gen($qry);
     if ($sql->db_Select_gen($qry1)) {
         while ($row = $sql->db_Fetch()) {
             $LINK_APPEND = "<a class='linkspage_url' href='" . $row['link_url'] . "' onclick=\"open_window('" . e_PLUGIN . "links_page/links.php?view." . $row['link_id'] . "','full');return false;\" >";
             $icon = $LINK_APPEND . "<img class='linkspage_button' style='width:50px; height:50px;' src='" . e_PLUGIN . "links_page/images/blank.gif' alt='' /></a>";
             if ($row['link_button']) {
                 if (strpos($row['link_button'], "http://") !== FALSE) {
                     $icon = $LINK_APPEND . "<img class='linkspage_button' src='" . $row['link_button'] . "' alt='' /></a>";
                 } else {
                     if (strstr($row['link_button'], "/")) {
                         if (is_readable(e_BASE . $row['link_button'])) {
                             $icon = $LINK_APPEND . "<img class='linkspage_button' style='width:50px; height:50px;' src='" . e_BASE . $row['link_button'] . "' alt='' /></a>";
                         }
                     } else {
                         if (is_readable(e_PLUGIN . "links_page/link_images/" . $row['link_button'])) {
                             $icon = $LINK_APPEND . "<img class='linkspage_button' style='width:50px; height:50px;' src='" . e_PLUGIN . "links_page/link_images/" . $row['link_button'] . "' alt='' /></a>";
                         }
                     }
                 }
             }
             $date = strftime("%d %b %Y", $row['link_datestamp']);
             $heading = $row['link_name'] ? $LINK_APPEND . $tp->toHTML($row['link_name'], TRUE) . "</a><br />" : '';
             $text .= "\n\t\t\t\t<div style='clear:both; padding-bottom:10px;'>\n\t\t\t\t\t<div style='float:left; padding-bottom:10px;'>" . $icon . "</div> \n\t\t\t\t\t<div style='margin-left:60px; padding-bottom:10px;'>\n\t\t\t\t\t\t" . $heading . "\n\t\t\t\t\t\t<span class='smalltext'>" . $date . "</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>";
         }
         $text .= "<div style='clear:both; padding-bottom:10px;'><a href='" . e_PLUGIN . "links_page/links.php'>" . LCLAN_USERPROFILE_1 . "</a></div>";
     }
     $caption = str_replace('{total}', $total, LCLAN_USERPROFILE_2);
     return array('caption' => $caption, 'text' => $text);
 }
开发者ID:notzen,项目名称:e107,代码行数:38,代码来源:e_userprofile.php

示例13: include_lan

/*
 * e107 website system
 *
 * Copyright (C) 2008-2009 e107 Inc (e107.org)
 * Released under the terms and conditions of the
 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
 *
 *
 *
 * $URL$
 * $Id$
 */
$eplug_admin = true;
require_once '../../class2.php';
include_lan(e_PLUGIN . 'forum/languages/' . e_LANGUAGE . '/lan_forum_admin.php');
if (!getperms('P')) {
    header('location:' . e_BASE . 'index.php');
    exit;
}
$e_sub_cat = 'forum';
require_once e_ADMIN . 'auth.php';
require_once e_HANDLER . 'userclass_class.php';
require_once e_HANDLER . 'form_handler.php';
require_once e_HANDLER . 'ren_help.php';
require_once e_PLUGIN . 'forum/forum_class.php';
require_once e_PLUGIN . 'forum/forum_admin_class.php';
$emessage = eMessage::getInstance();
$rs = new form();
$for = new e107forum();
$forum = new forumAdmin();
开发者ID:notzen,项目名称:e107,代码行数:30,代码来源:forum_admin.php

示例14: include_lan

*/
/**
 *	@package    e107
 *	@subpackage	admin
 *	@version 	$Id$;
 *
 *	Update routines from older e107 versions to current.
 *
 *	Also links to plugin update routines.
 *
 *	2-stage process - routines identify whether update is required, and then execute as instructed.
 */
// [debug=8] shows the operations on major table update
require_once '../class2.php';
require_once e_HANDLER . 'db_table_admin_class.php';
include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_e107_update.php');
// Modified update routine - combines checking and update code into one block per function
//		- reduces code size typically 30%.
//		- keeping check and update code together should improve clarity/reduce mis-types etc
// @todo: how do we handle update of multi-language tables?
// If following line uncommented, enables a test routine
// define('TEST_UPDATE',TRUE);
$update_debug = TRUE;
// TRUE gives extra messages in places
//$update_debug = TRUE;			// TRUE gives extra messages in places
if (defined('TEST_UPDATE')) {
    $update_debug = TRUE;
}
if (!defined('LAN_UPDATE_8')) {
    define('LAN_UPDATE_8', '');
}
开发者ID:hgz5w,项目名称:e107,代码行数:31,代码来源:update_routines.php

示例15: show_tools

function show_tools()
{
    $frm = e107::getForm();
    $mes = e107::getMessage();
    include_lan(e_LANGUAGEDIR . e_LANGUAGE . "/admin/lan_lancheck.php");
    show_packs();
    //return;
    if (e_DEVELOPER !== true) {
        return false;
    }
    lanDeveloper::form();
    /*
    	$text = "
    <form id='core-language-lancheck-form' method='post' action='".e_SELF."?tools'>
    	<fieldset id='core-language-lancheck'>
    		<legend class='e-hideme'>".LAN_CHECK_1."</legend>
    		<table class='table adminform'>
    			<colgroup>
    				<col class='col-label' />
    				<col class='col-control' />
    			</colgroup>
    			<tbody>
    				<tr>
    					<td>".LAN_CHECK_1."</td>
    					<td class='form-inline'>
    						<select name='language'>
    							<option value=''>".LAN_SELECT."</option>";
    						$languages = explode(",", e_LANLIST);
    						sort($languages);
    						foreach ($languages as $lang)
    						{
    							if ($lang != "English")
    							{
    								$text .= "
    														<option value='{$lang}' >{$lang}</option>
    								";
    							}
    						}
    						$text .= "</select>".
    						$frm->admin_button('language_sel','no-value','other',LAN_CHECK_2)."
    					</td>
    				</tr>
    			</tbody>
    		</table>
    	</fieldset>
    </form>";
    */
}
开发者ID:gitye,项目名称:e107,代码行数:48,代码来源:language.php


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