本文整理汇总了PHP中e107::js方法的典型用法代码示例。如果您正苦于以下问题:PHP e107::js方法的具体用法?PHP e107::js怎么用?PHP e107::js使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类e107
的用法示例。
在下文中一共展示了e107::js方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
function init()
{
if (E107_DEBUG_LEVEL > 0) {
$this->adminMenu['ranks/list'] = array('caption' => LAN_USER_RANKS . " (experimental)", 'perm' => '4|U3');
}
$JS = <<<JS
\t\t\t//\t\$('#user-action-indicator-'+user).html('<i class="fa fa-cog"></i>'); //
\t\t\t\$(document).on('click', ".user-action", function(e){
\t\t\t\t// e.stopPropagation();
\t\t\t\tvar action = \$(this).attr('data-action-type');
\t\t\t\tvar user = \$(this).attr('data-action-user');
\t\t\t//\t\$('#user-action-indicator-'+user).html('<i class="fa fa-spin fa-spinner"></i>'); //
\t\t\t\t\$('.user-action-hidden').val(''); // clear all, incase of back-button or auto-fill.
\t\t\t\t\$('#user-action-'+ user).val(action);
\t\t\t\t\$('#core-user-list-form').submit();
\t\t\t\t});
JS;
e107::js('footer-inline', $JS);
e107::css('inline', '
.user-action { cursor: pointer }
.btn-user-action { margin-right:15px}
');
}
示例2: loadJSAddons
function loadJSAddons()
{
if (e_PAGE == 'menus.php' && vartrue($_GET['configure'])) {
return;
}
// e107::js('core', 'bootstrap/js/bootstrap-modal.js', 'jquery', 2); // Special Version see: https://github.com/twitter/bootstrap/pull/4224
e107::css('core', 'bootstrap-select/bootstrap-select.min.css', 'jquery');
e107::js('core', 'bootstrap-select/bootstrap-select.min.js', 'jquery', 2);
e107::css('core', 'bootstrap-multiselect/css/bootstrap-multiselect.css', 'jquery');
e107::js('core', 'bootstrap-multiselect/js/bootstrap-multiselect.js', 'jquery', 2);
// TODO: remove typeahead.
e107::js('core', 'bootstrap-jasny/js/jasny-bootstrap.js', 'jquery', 2);
e107::css('core', 'bootstrap-datetimepicker/css/datetimepicker.css', 'jquery');
e107::js('core', 'bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js', 'jquery', 2);
e107::js('core', 'jquery.h5validate.min.js', 'jquery', 2);
e107::js('core', 'jquery.elastic.js', 'jquery', 2);
e107::js('core', 'jquery.at.caret.min.js', 'jquery', 2);
// e107::js('core', 'jquery-ui-timepicker-addon.js', 'jquery', 2);
//e107::css('core', 'chosen/chosen.css', 'jquery');
//e107::js('core', 'chosen/chosen.jquery.min.js', 'jquery', 2);
// e107::js('core', 'password/jquery.pwdMeter.js', 'jquery', 2); // loaded in form-handler.
// e107::css('core', 'bootstrap-tag/bootstrap-tag.css', 'jquery');
// e107::js('core', 'bootstrap-tag/bootstrap-tag.js', 'jquery', 2);
// e107::js("core", "tags/jquery.tagit.js","jquery",3);
// e107::css('core', 'tags/jquery.tagit.css', 'jquery');
e107::css('core', 'core/admin.jquery.css', 'jquery');
e107::js("core", "core/admin.jquery.js", "jquery", 4);
// Load all default functions.
e107::css('core', 'core/all.jquery.css', 'jquery');
e107::js("core", "core/all.jquery.js", "jquery", 4);
// Load all default functions.
}
示例3: sc_featurebox
/**
* Available parameters (GET string format)
* - cols (integer): number of items per column, default 1
* - no_fill_empty (boolean): don't fill last column with empty items (if required), default 0
* - tablestyle (string): mode to be used with <code>tablerender()</code>, default 'featurebox'
* - notablestyle (null): if isset - disable <code>tablerender()</code>
* - force (boolean): force category model load , default false
* - ids (string): comma separated id list - load specific featurebox items, default empty
*
* @param string $parm parameters
* @param string $mod category template
* @example {FEATUREBOX=cols=2|tabs}
*/
function sc_featurebox($parm = null, $mod = '')
{
if ($parm == null && $mod == '') {
$type = vartrue(e107::getPlugPref('featurebox', 'menu_category'), 'bootstrap_carousel');
$text = e107::getParser()->parseTemplate("{FEATUREBOX|" . $type . "}");
return $text;
}
// TODO cache
if (!e107::isInstalled('featurebox')) {
return '';
}
if (!$mod) {
$ctemplate = 'default';
} else {
$ctemplate = $mod;
}
parse_str($parm, $parm);
$category = $this->getCategoryModel($ctemplate, vartrue($parm['force']) ? true : false);
$defopt = array('force' => 0, 'no_fill_empty' => 0, 'tablestyle' => 'featurebox', 'cols' => 1, 'ids' => '', 'notablestyle' => null);
// reset to default, update current
$category->setParams($defopt)->updateParams($parm);
if (!$category->hasData()) {
return '';
}
$tmpl = $this->getFboxTemplate($ctemplate);
$type = vartrue($tmpl['js_type'], '');
// Legacy support (prototype.js)
if (vartrue($tmpl['js'])) {
$tmp = explode(',', $tmpl['js']);
foreach ($tmp as $file) {
e107::js('footer', $file, $type);
}
}
$tp = e107::getParser();
if (vartrue($tmpl['js_inline'])) {
$data = $tp->toText($category->getData('fb_category_parms'));
$jsInline = str_replace("{FEATUREBOX_PARMS}", "{" . trim($data) . "}", $tmpl['js_inline']);
e107::js('footer-inline', $jsInline, $type, 3);
}
// Fix - don't use tablerender if no result (category could contain hidden items)
$ret = $this->render($category, $ctemplate, $parm);
if (empty($ret)) {
e107::getMessage()->addDebug('Featurebox returned nothing.')->addDebug('Category: ' . print_a($category, true))->addDebug('Template: ' . $ctemplate)->addDebug('Param: ' . print_a($parm, true));
return '';
}
$ret = $tp->parseTemplate($tmpl['list_start'], true, $category) . $ret . $tp->parseTemplate($tmpl['list_end'], true, $category);
if (isset($parm['notablestyle'])) {
return $ret;
}
return e107::getRender()->tablerender(LAN_PLUGIN_FEATUREBOX_NAME, $ret, vartrue($parm['tablestyle'], 'featurebox'), true);
}
示例4: facebook
function facebook($data)
{
if (!deftrue('SOCIAL_FACEBOOK_INIT')) {
return "<div class='alert alert-important alert-danger'>Unable to render comments. Missing Facebook appID.</div>";
}
e107::js('footer-inline', SOCIAL_FACEBOOK_INIT);
if (E107_DEBUG_LEVEL > 0) {
$link = "http://developers.facebook.com/docs/plugins/comments/";
} else {
$link = e_REQUEST_URL;
}
$pref = e107::pref('social');
$limit = vartrue($pref['facebook_comments_limit'], 10);
$theme = vartrue($pref['facebook_comments_theme'], 'light');
$loading = vartrue($pref['facebook_comments_loadingtext'], 'Loading...');
$text = '<div class="fb-comments" data-href="' . $link . '" data-width="100%" data-numposts="' . $limit . '" data-colorscheme="' . $theme . '">' . $loading . '</div>';
return $text;
}
示例5: __construct
function __construct()
{
e107::js('core', 'zrssfeed/jquery.zrssfeed.min.js');
// http://www.zazar.net/developers/jquery/zrssfeed/
$code = "\n\t\t\n\t\t\n\t\tjQuery(function(\$){\n\t\t \$('#e-adminfeed').rssfeed('" . ADMINFEED . "', {\n \t\tlimit: 3,\n \t\theader: false,\n \t\tlinktarget: '_blank'\n \t\t\t});\n\t\t});\n";
global $user_pref;
// quick fix.
$pref = e107::getPref();
e107::js('inline', $code, 'jquery');
if (isset($_POST['submit-mye107']) || varset($_POST['submit-mymenus'])) {
$user_pref['core-infopanel-mye107'] = $_POST['e-mye107'];
save_prefs('user');
$pref['core-infopanel-menus'] = $_POST['e-mymenus'];
save_prefs();
}
// $array_functions_assoc = e107::getNav()->adminLinks('assoc');
// $this->iconlist = array_merge($array_functions_assoc, e107::getNav()->pluginLinks(E_16_PLUGMANAGER, "array"));
$this->iconlist = e107::getNav()->adminLinks();
}
示例6: init
public function init()
{
e107::plugLan('gallery', 'front');
e107::js('gallery', 'jslib/prettyPhoto/js/jquery.prettyPhoto.js', 'jquery');
e107::css('gallery', 'jslib/prettyPhoto/css/prettyPhoto.css', 'jquery');
e107::css('gallery', 'gallery_style.css');
$prettyPhoto = <<<JS
\$(document).ready(function(){
\$("a[data-gal^='prettyPhoto']").prettyPhoto(
\t {
\t \thook: 'data-gal',
\t \ttheme: 'pp_default',
\t \toverlay_gallery: false,
\t \tdeeplinking: false
\t }
);
});
JS;
e107::js('footer-inline', $prettyPhoto, 'jquery');
$this->catList = e107::getMedia()->getCategories('gallery');
}
示例7: loadJSAddons
function loadJSAddons()
{
if (e_PAGE == 'menus.php' && vartrue($_GET['configure'])) {
return;
}
// e107::js('core', 'bootstrap/js/bootstrap-modal.js', 'jquery', 2); // Special Version see: https://github.com/twitter/bootstrap/pull/4224
e107::css('core', 'bootstrap-editable/css/bootstrap-editable.css', 'jquery');
e107::js('core', 'bootstrap-editable/js/bootstrap-editable.min.js', 'jquery', 2);
// e107::css('url', "//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap-editable/css/bootstrap-editable.css");
// e107::js('url', "//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap-editable/js/bootstrap-editable.min.js");
e107::css('core', 'bootstrap-select/bootstrap-select.min.css', 'jquery');
e107::js('core', 'bootstrap-select/bootstrap-select.min.js', 'jquery', 2);
e107::css('core', 'bootstrap-multiselect/css/bootstrap-multiselect.css', 'jquery');
e107::js('core', 'bootstrap-multiselect/js/bootstrap-multiselect.js', 'jquery', 2);
// TODO: remove typeahead.
e107::js('core', 'bootstrap-jasny/js/jasny-bootstrap.js', 'jquery', 2);
e107::css('core', 'bootstrap-datetimepicker/css/datetimepicker.css', 'jquery');
e107::js('core', 'bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js', 'jquery', 2);
e107::js('core', 'jquery.h5validate.min.js', 'jquery', 2);
if (e_LAN != 'en') {
e107::js('inline', buildDateLocale(), 'jquery', 2);
}
e107::js('core', 'jquery.elastic.js', 'jquery', 2);
e107::js('core', 'jquery.at.caret.min.js', 'jquery', 2);
// e107::js('core', 'jquery-ui-timepicker-addon.js', 'jquery', 2);
//e107::css('core', 'chosen/chosen.css', 'jquery');
//e107::js('core', 'chosen/chosen.jquery.min.js', 'jquery', 2);
e107::js('core', 'password/jquery.pwdMeter.js', 'jquery', 2);
// e107::css('core', 'bootstrap-tag/bootstrap-tag.css', 'jquery');
e107::js('core', 'bootstrap-tag/bootstrap-tag.js', 'jquery', 2);
// e107::js("core", "tags/jquery.tagit.js","jquery",3);
// e107::css('core', 'tags/jquery.tagit.css', 'jquery');
e107::css('core', 'core/admin.jquery.css', 'jquery');
e107::js("core", "core/admin.jquery.js", "jquery", 4);
// Load all default functions.
e107::css('core', 'core/all.jquery.css', 'jquery');
e107::js("core", "core/all.jquery.js", "jquery", 4);
// Load all default functions.
}
示例8: includePrivateComponents
/**
* Include necessary CSS and JS files.
*/
function includePrivateComponents()
{
$eufPrefix = 'user_plugin_nodejs_comment_';
$defs = $this->defaultValues;
// User defined settings.
$alert_comment_any = isset($defs[$eufPrefix . 'alert_comment_any']) ? intval($defs[$eufPrefix . 'alert_comment_any']) : 1;
$sound_comment_any = isset($defs[$eufPrefix . 'sound_comment_any']) ? intval($defs[$eufPrefix . 'sound_comment_any']) : 1;
$alert_comment_own = isset($defs[$eufPrefix . 'alert_comment_own']) ? intval($defs[$eufPrefix . 'alert_comment_own']) : 1;
$sound_comment_own = isset($defs[$eufPrefix . 'sound_comment_own']) ? intval($defs[$eufPrefix . 'sound_comment_own']) : 1;
// If admin disabled it globally.
if ((int) $this->plugPrefs['disable_alerts'] === 1) {
$alert_comment_any = 0;
$alert_comment_own = 0;
}
// If admin disabled it globally.
if ((int) $this->plugPrefs['disable_sounds'] === 1) {
$sound_comment_any = 0;
$sound_comment_own = 0;
}
$js_options = array('current_user' => USERID, 'alert_comment_any' => (int) $alert_comment_any, 'sound_comment_any' => (int) $sound_comment_any, 'alert_comment_own' => (int) $alert_comment_own, 'sound_comment_own' => (int) $sound_comment_own);
e107::js('settings', array('nodejs_comment' => $js_options));
e107::js('footer', '{e_PLUGIN}nodejs_comment/js/nodejs_comment.js', 'jquery', 5);
}
示例9: customPage
public function customPage()
{
// TODO: Utilize the URL instead of the local file.
// First, I have to figure out why it won't load!
e107::js('forecasty', 'assets/googlemaps.js', 'jquery');
// e107::js('url', 'http://maps.googleapis.com/maps/api/js?sensor=false');
e107::js('forecasty', 'assets/jquery-gmaps-latlon-picker.js', 'jquery');
e107::css('forecasty', 'assets/jquery-gmaps-latlon-picker.css');
$text = '
The below accepts many different formats of locations:
<ul>
<li>Zip Codes</li>
<li>City, State</li>
<li>City, Country</li>
<li>State</li>
<li>.. etc.</li>
</ul>
You can also fine tune your location by dragging and double clicking the map.
<br /><br />
<fieldset class="gllpLatlonPicker">
<input type="text" class="gllpSearchField">
<input type="button" class="gllpSearchButton" value="Search">
<div class="gllpMap">Google Maps</div>
Latitude: <input type="text" class="gllpLatitude" value="-76.61483160837915">
<br />
Longitude: <input type="text" class="gllpLongitude" value="19.218757152557373">
<input type="hidden" class="gllpZoom" value="3">
</fieldset>
<br /><br />
For your Fallback Location you need Latitude,Longitude in that exact format.<br /><br />
This page will be updated to work, flow, and look better in the future.
';
return $text;
}
示例10: addtext_us
$template = e107::getCoreTemplate('usersettings', '', true, true);
// always merge
$USERSETTINGS_MESSAGE = "{MESSAGE}";
$USERSETTINGS_MESSAGE_CAPTION = LAN_OK;
$USERSETTINGS_EDIT_CAPTION = LAN_USET_39;
// 'Update User Settings'
$USERSETTINGS_EDIT = $template['edit'];
$usersettings_shortcodes = e107::getScBatch('usersettings');
$usersettings_shortcodes->wrapper('usersettings/edit');
} else {
include_once e107::coreTemplatePath('usersettings');
//correct way to load a core template.
e107::scStyle($sc_style);
$usersettings_shortcodes = e107::getScBatch('usersettings');
}
e107::js('footer-inline', "\n\tfunction addtext_us(sc)\n\t{\n\t\tdocument.getElementById('dataform').image.value = sc;\n\t}\n\t");
$photo_to_delete = '';
$avatar_to_delete = '';
$ue_fields = '';
$promptPassword = false;
$error = FALSE;
$extraErrors = array();
$eufVals = array();
$savePassword = '';
$inp = USERID;
// Initially assume that user is modifying their own data.
$_uid = false;
// FALSE if user modifying their own data; otherwise ID of data being modified
$adminEdit = FALSE;
// FALSE if editing own data. TRUE if admin edit
if (is_numeric(e_QUERY)) {
示例11: google_analytics_visibility_roles
$script .= $custom_var;
}
if (!empty($url_custom)) {
$script .= 'ga("set", "page", ' . $url_custom . ');';
}
$script .= 'ga("send", "pageview");';
if (!empty($message_events)) {
$script .= $message_events;
}
if ((int) varset($prefs['track_adsense'], 0)) {
// Custom tracking. Prepend before all other JavaScript.
// @TODO: https://support.google.com/adsense/answer/98142
// sounds like it could be appended to $script.
e107::js('inline', $googleanalytics_adsense_script, null, 1);
}
e107::js('inline', $script, null, 2);
}
/**
* Based on visibility setting this function returns TRUE if GA code should be added to the current user class and
* otherwise FALSE.
*/
function google_analytics_visibility_roles()
{
$prefs = e107::getPlugConfig('google_analytics')->getPref();
$class = (int) varset($prefs['visibility_roles'], 0);
return check_class($class);
}
/**
* Based on visibility setting this function returns TRUE if GA code should be added to the current page and otherwise
* FALSE.
*/
示例12: view_all_query
function view_all_query($srch = '')
{
$sql = e107::getDb();
$tp = e107::getParser();
$text = "";
$insert = "";
$item = false;
$removeUrl = e107::url('faqs', 'index');
if (!empty($srch)) {
$srch = $tp->toDB($srch);
$insert = " AND (f.faq_question LIKE '%" . $srch . "%' OR f.faq_answer LIKE '%" . $srch . "%' OR FIND_IN_SET ('" . $srch . "', f.faq_tags) ) ";
$message = "<span class='label label-lg label-info'>" . $srch . " <a class='e-tip' title='Remove' href='" . $removeUrl . "'>×</a></span>";
e107::getMessage()->setClose(false, E_MESSAGE_INFO)->setTitle(LAN_FAQS_FILTER_ACTIVE, E_MESSAGE_INFO)->addInfo($message);
$text = e107::getMessage()->render();
}
if (!empty($_GET['id'])) {
$srch = intval($_GET['id']);
// $insert = " AND (f.faq_id = ".$srch.") ";
$item = $srch;
}
if (!empty($_GET['cat'])) {
$srch = $tp->toDB($_GET['cat']);
$insert = " AND (cat.faq_info_sef = '" . $srch . "') ";
}
if (!empty($_GET['tag'])) {
$srch = $tp->toDB($_GET['tag']);
$insert = " AND FIND_IN_SET ('" . $srch . "', f.faq_tags) ";
$message = "<span class='label label-lg label-info'>" . $srch . " <a class='e-tip' title='Remove' href='" . $removeUrl . "'>×</a></span>";
e107::getMessage()->setClose(false, E_MESSAGE_INFO)->setTitle(LAN_FAQS_FILTER_ACTIVE, E_MESSAGE_INFO)->addInfo($message);
$text = e107::getMessage()->render();
}
list($orderBy, $ascdesc) = explode('-', vartrue($this->pref['orderby'], 'faq_order-ASC'));
$query = "SELECT f.*,cat.* FROM #faqs AS f LEFT JOIN #faqs_info AS cat ON f.faq_parent = cat.faq_info_id WHERE cat.faq_info_class IN (" . USERCLASS_LIST . ") " . $insert . " ORDER BY cat.faq_info_order, f." . $orderBy . " " . $ascdesc . " ";
if (!$sql->gen($query)) {
$message = !empty($srch) ? "<b>" . $srch . "</b> was not found in search results. <a class='e-tip' title='Reset' href='" . $removeUrl . "'>Reset</a>" : LAN_FAQS_NONE_AVAILABLE;
return "<div class='alert alert-warning alert-block'>" . $message . "</div>";
//TODO LAN
}
// -----------------
$FAQ_LISTALL = e107::getTemplate('faqs', true, 'all');
$prevcat = "";
$sc = e107::getScBatch('faqs', true);
$sc->counter = 1;
$sc->tag = htmlspecialchars($tag, ENT_QUOTES, 'utf-8');
$sc->category = $category;
if (!empty($_GET['id'])) {
$sc->item = intval($_GET['id']);
$js = "\n\t\t\t\t\$( document ).ready(function() {\n \$('html, body').animate({ scrollTop: \$('div#faq_" . $sc->item . "').offset().top - 300 }, 4000);\n\t\t\t\t});\n\n\t\t\t\t";
e107::js('footer-inline', $js);
}
// $text = $tp->parseTemplate($FAQ_START, true, $sc);
// $text = "";
if ($this->pref['list_type'] == 'ol') {
$reversed = $ascdesc == 'DESC' ? 'reversed ' : '';
$tsrch = array('<ul ', '/ul>');
$trepl = array('<ol ' . $reversed, '/ol>');
$FAQ_LISTALL['start'] = str_replace($tsrch, $trepl, $FAQ_LISTALL['start']);
$FAQ_LISTALL['end'] = str_replace($tsrch, $trepl, $FAQ_LISTALL['end']);
}
while ($rw = $sql->fetch()) {
$rw['faq_sef'] = eHelper::title2sef($tp->toText($rw['faq_question']), 'dashl');
$sc->setVars($rw);
if ($sc->item == $rw['faq_id']) {
$this->pageTitle = $rw['faq_question'];
$this->pageDescription = $rw['faq_answer'];
}
if ($rw['faq_info_order'] != $prevcat) {
if ($prevcat != '') {
$text .= $tp->parseTemplate($FAQ_LISTALL['end'], true, $sc);
}
$text .= "\n\n<!-- FAQ Start " . $rw['faq_info_order'] . "-->\n\n";
$text .= $tp->parseTemplate($FAQ_LISTALL['start'], true, $sc);
$start = TRUE;
}
$text .= $tp->parseTemplate($FAQ_LISTALL['item'], true, $sc);
$prevcat = $rw['faq_info_order'];
$sc->counter++;
}
$text .= $start ? $tp->parseTemplate($FAQ_LISTALL['end'], true, $sc) : "";
// $text .= $tp->parseTemplate($FAQ_END, true, $sc);
return $text;
}
示例13: header
require_once '../class2.php';
/*
@todo should this be here?
if(count($_POST) && !varset($_POST['e-token']))
{
die('Access denied - bl');
}
*/
if (!getperms('4')) {
header('location:' . e_BASE . 'index.php');
exit;
}
require_once e_HANDLER . 'iphandler_class.php';
// This is probably already loaded in class2.php
include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE);
e107::js('footer-inline', "\n\n\t\t\$('#useip').click(function (event) {\n\n\t\t\tvar id = \$(this).attr('data-ip');\n\t\t\t\$('#banlist-ip').val(id);\n\t\t\tevent.preventDefault();\n\t\t});\n\n\n");
class banlist_admin extends e_admin_dispatcher
{
protected $modes = array('main' => array('controller' => 'banlist_ui', 'path' => null, 'ui' => 'banlist_form_ui', 'uipath' => null), 'white' => array('controller' => 'banlist_ui', 'path' => null, 'ui' => 'banlist_form_ui', 'uipath' => null), 'failed' => array('controller' => 'failed_ui', 'path' => null, 'ui' => 'failed_form_ui', 'uipath' => null));
protected $adminMenu = array('main/list' => array('caption' => "Blacklist", 'perm' => '4'), 'main/create' => array('caption' => "Add to Blacklist", 'perm' => '4'), 'other' => array('divider' => true), 'white/list' => array('caption' => BANLAN_52, 'perm' => '4'), 'white/create' => array('caption' => BANLAN_53, 'perm' => '4'), 'other1' => array('divider' => true), 'failed/list' => array('caption' => 'Failed logins', 'perm' => '4'), 'other2' => array('divider' => true), 'main/transfer' => array('caption' => BANLAN_35, 'perm' => '4'), 'main/times' => array('caption' => BANLAN_15, 'perm' => '0'), 'main/options' => array('caption' => LAN_OPTIONS, 'perm' => '0'));
protected $adminMenuAliases = array('main/edit' => 'main/list');
protected $menuTitle = BANLAN_16;
}
class banlist_ui extends e_admin_ui
{
protected $pluginTitle = BANLAN_16;
protected $eventName = 'ban';
protected $table = 'banlist';
protected $pid = 'banlist_id';
protected $perPage = 10;
protected $listQry = "SELECT * FROM `#banlist` WHERE banlist_bantype != 100 ";
示例14: rstr2b64
{
var b64pad = \"=\"; // base-64 pad character. \"=\" for strict RFC compliance
var tab = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";
var output = \"\";
var len = input.length;
for(var i = 0; i < len; i += 3)
{
var triplet = (input.charCodeAt(i) << 16)
| (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0)
| (i + 2 < len ? input.charCodeAt(i+2) : 0);
for(var j = 0; j < 4; j++)
{
if(i * 8 + j * 6 > input.length * 8) output += b64pad;
else output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F);
}
}
return output;
}
var ref=\"\"+escape(top.document.referrer);
var colord = window.screen.colorDepth;
var res = window.screen.width + \"x\" + window.screen.height;
var logString = 'referer=' + ref + '&colour=' + colord + '&eself=' + eself + '&res=' + res + '".$err_flag."';
logString = rstr2b64(logString);
document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"".e_PLUGIN_ABS."log/log.php?lv='+logString + '\">' );
";
*/
if (USER_AREA) {
$logJS = "\r\n\r\n\t\t\$(function() {\r\n\r\n\t\t\tfunction rstr2b64(input)\r\n\t\t\t{\r\n\t\t\t\tvar b64pad = \"=\"; /* base-64 pad character. \"=\" for strict RFC compliance */\r\n\t\t\t\tvar tab = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\r\n\t\t\t\tvar output = \"\";\r\n\t\t\t\tvar len = input.length;\r\n\t\t\t\tfor(var i = 0; i < len; i += 3)\r\n\t\t\t\t{\r\n\t\t\t\t\tvar triplet = (input.charCodeAt(i) << 16)\r\n\t\t\t | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0)\r\n\t\t\t | (i + 2 < len ? input.charCodeAt(i+2) : 0);\r\n\t\t\t\t\tfor(var j = 0; j < 4; j++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i * 8 + j * 6 > input.length * 8) output += b64pad;\r\n\t\t\t\t\t\telse output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn output;\r\n\t\t\t}\r\n\r\n\r\n\r\n\r\n\r\n\t\t\tvar ref\t\t\t=\"\"+escape(top.document.referrer);\r\n\t\t\tvar colord \t\t= window.screen.colorDepth;\r\n\t\t\tvar res \t\t= window.screen.width + \"x\" + window.screen.height;\r\n\t\t\tvar logString \t= 'referer=' + ref + '&colour=' + colord + '&eself=' + eself + '&res=' + res + '" . $err_flag . "';\r\n\t\t\tlogString \t\t= rstr2b64(logString);\r\n\r\n\t\t\tvar url = '" . SITEURLBASE . e_PLUGIN_ABS . "log/log.php';\r\n\t\t\tvar dataText = 'lv='+logString;\r\n\r\n\t\t\t\$.ajax({\r\n\t\t\t\ttype: 'get',\r\n\t\t\t\turl: url,\r\n\t\t\t\tdata: {'lv' :logString},\r\n\t\t\t\tsuccess: function(e) {\r\n\t\t\t\t\tif(e)\r\n\t\t\t\t\t{\r\n\t\t\t\t//\t\talert(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t";
e107::js('footer-inline', $logJS, 'jquery');
}
}
示例15: include_components
/**
* Include necessary CSS and JS files
*/
function include_components()
{
e107::css('nodejs_online', 'css/nodejs_online.css');
e107::js('footer', '{e_PLUGIN}nodejs_online/js/nodejs_online.js', 'jquery', 5);
}