<?php /* * 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) * * Plugin - newsfeeds * * $Source: /cvs_backup/e107_0.8/e107_plugins/newsfeed/e_frontpage.php,v $ * $Revision$ * $Date$ * $Author$ * */ if (!defined('e107_INIT')) { exit; } if (!plugInstalled('newsfeed')) { return; } include_lan(e_PLUGIN . 'newsfeed/languages/' . e_LANGUAGE . '_frontpage.php'); $front_page['newsfeed']['title'] = NWSF_FP_1 . ': ' . $row['content_heading']; $front_page['newsfeed']['page'][] = array('page' => $PLUGINS_DIRECTORY . 'newsfeed/newsfeed.php', 'title' => NWSF_FP_2); if ($sql->db_Select("newsfeed", "newsfeed_id, newsfeed_name")) { while ($row = $sql->db_Fetch()) { $front_page['newsfeed']['page'][] = array('page' => $PLUGINS_DIRECTORY . 'newsfeed/newsfeed.php?show.' . $row['newsfeed_id'], 'title' => $row['newsfeed_name']); } }
* Links plugin * * $URL$ * $Revision$ * $Date$ * $Author$ */ /** * e107 Links plugin * * @package e107_plugins * @subpackage links * @version $Id$; */ require_once '../../class2.php'; if (!getperms('P') || !plugInstalled('links_page')) { header('location:' . e_BASE . 'index.php'); exit; } require_once e_PLUGIN . 'links_page/link_shortcodes.php'; require_once e_PLUGIN . 'links_page/link_defines.php'; require_once e_ADMIN . 'auth.php'; require_once e_HANDLER . 'userclass_class.php'; require_once e_HANDLER . 'form_handler.php'; $rs = new form(); require_once e_HANDLER . 'file_class.php'; $fl = new e_file(); e107_require_once(e_HANDLER . 'arraystorage_class.php'); $eArrayStorage = new ArrayData(); require_once e_PLUGIN . 'links_page/link_class.php'; $lc = new linkclass();
<?php /* * e107 website system * * Copyright (C) 2008-2011 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * * Poll plugin main page display * * $URL$ * $Id$ */ require_once '../../class2.php'; if (!plugInstalled('poll')) { header('Location: ' . e_BASE . 'index.php'); exit; } require_once HEADERF; require e_PLUGIN . 'poll/poll_menu.php'; require_once FOOTERF; exit;
* 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) * * Plugin administration - newsfeeds * * $Source: /cvs_backup/e107_0.8/e107_plugins/trackback/admin_config.php,v $ * $Revision$ * $Date$ * $Author$ * */ require_once "../../class2.php"; if (!getperms("P") || !plugInstalled('trackback')) { header("location:" . e_BASE . "index.php"); exit; } include_lan(e_PLUGIN . "trackback/languages/" . e_LANGUAGE . "_admin_trackback.php"); require_once e_ADMIN . "auth.php"; if (isset($_POST['updatesettings'])) { $temp = array(); if ($pref['trackbackEnabled'] != $_POST['trackbackEnabled']) { $temp['trackbackEnabled'] = $_POST['trackbackEnabled']; $e107cache->clear('news.php'); } $temp['trackbackString'] = $tp->toDB($_POST['trackbackString']); if ($admin_log->logArrayDiffs($temp, $pref, 'TRACK_01')) { save_prefs(); // Only save if changes
<?php /* * 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) * * Plugin administration - newsfeeds * * $Source: /cvs_backup/e107_0.8/e107_plugins/trackback/trackback.php,v $ * $Revision$ * $Date$ * $Author$ * */ require_once "../../class2.php"; if (!plugInstalled('trackback')) { exit; } header('Content-Type: text/xml'); include e_PLUGIN . "trackback/trackbackClass.php"; $trackback = trackbackClass::respondTrackback();
* 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) * * * * $Source: /cvs_backup/e107_0.8/e107_plugins/chatbox_menu/admin_chatbox.php,v $ * $Revision$ * $Date$ * $Author$ */ require_once "../../class2.php"; $frm = e107::getForm(); if (!plugInstalled('chatbox_menu') || !getperms("P")) { header("Location: " . e_BASE . "index.php"); exit; } include_lan(e_PLUGIN . "chatbox_menu/languages/" . e_LANGUAGE . "/admin_chatbox_menu.php"); require_once e_ADMIN . "auth.php"; require_once e_HANDLER . "userclass_class.php"; if (isset($_POST['updatesettings'])) { $temp = array(); $temp['chatbox_posts'] = min(intval($_POST['chatbox_posts']), 5); $temp['cb_layer'] = intval($_POST['cb_layer']); $temp['cb_layer_height'] = max(varset($_POST['cb_layer_height'], 200), 150); $temp['cb_emote'] = intval($_POST['cb_emote']); $temp['cb_mod'] = intval($_POST['cb_mod']); if ($admin_log->logArrayDiffs($temp, $pref, 'CHBLAN_01')) { save_prefs();
* 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) * * Plugin Administration - gsitemap * * $Source: /cvs_backup/e107_0.8/e107_plugins/tinymce/admin_config.php,v $ * $Revision$ * $Date$ * $Author$ * */ require_once "../../class2.php"; if (!getperms("P") || !plugInstalled('tinymce')) { header("location:" . e_BASE . "index.php"); exit; } require_once e_HANDLER . "form_handler.php"; require_once e_HANDLER . 'message_handler.php'; $frm = new e_form(true); $ef = new tinymce(); //TODO save prefs to separate config row. // List all forms of access, and allow the user to choose between simple/advanced or 'custom' settings. if (varset($_POST['update']) || varset($_POST['create'])) { $id = intval($_POST['record_id']); $ef->submitPage($id); } if (varset($_POST['delete'])) { $id = key($_POST['delete']);
* $Source: /cvs_backup/e107_0.8/e107_plugins/list_new/list_new_menu.php,v $ * $Revision$ * $Date$ * $Author$ * */ /** * Menu for list_new plugin * * @package e107_plugins * @subpackage list_new */ if (!defined('e107_INIT')) { exit; } if (!plugInstalled('list_new')) { return; } unset($text); global $rc; if (!is_object($rc)) { require_once e_PLUGIN . "list_new/list_class.php"; $rc = new listclass(); } //set mode $rc->mode = "new_menu"; //parse menu $text = $rc->displayMenu(); $caption = varsettrue($rc->list_pref[$rc->mode . "_caption"], LIST_MENU_1); $caption = $rc->e107->tp->toHtml($caption, FALSE, 'USER_TITLE'); $text = $rc->e107->tp->toHtml($text, TRUE, 'USER_BODY');
}*/ } $core_pref->save(false); // special case, do session cleanup, logout, redirect to login screen if ($sessionRegenerate) { // reset cookie cookie($core_pref->get('cookie_name'), $_COOKIE[e_COOKIE], time() + 3600 * 24 * 30, e_HTTP, e107::getLanguage()->getCookieDomain()); cookie(e_COOKIE, null, null); // regenerate session $s = $_SESSION; e107::getSession()->destroy(); $session = new e_core_session(array('name' => $core_pref->get('cookie_name'))); $_SESSION = $s; } } if (plugInstalled('alt_auth')) { $authlist[] = "e107"; $handle = opendir(e_PLUGIN . "alt_auth"); while ($file = readdir($handle)) { if (preg_match("/^(.*)_auth\\.php/", $file, $match)) { $authlist[] = $match[1]; } } } /* if(isset($message)) { $ns->tablerender("", "<div style='text-align:center'><b>".$message."</b></div>"); } if(e_QUERY == "u")
* 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) * * Plugin administration - newsfeeds * * $Source: /cvs_backup/e107_0.8/e107_plugins/newsfeed/admin_config.php,v $ * $Revision$ * $Date$ * $Author$ * */ require_once "../../class2.php"; if (!getperms("P") || !plugInstalled('newsfeed')) { header("location:" . e_BASE . "index.php"); exit; } require_once e_ADMIN . "auth.php"; define('NEWSFEED_LIST_CACHE_TAG', 'nomd5_newsfeeds'); $frm = e107::getForm(); $mes = e107::getMessage(); if (e_QUERY) { list($action, $id) = explode(".", e_QUERY); $id = intval($id); } else { $action = FALSE; $id = FALSE; } if (isset($_POST['createFeed']) || isset($_POST['updateFeed'])) {
function renderPlugins($pluginOpts) { global $frm, $sql; // if there is 1 entry, then it's not the same array. $tmp = varset($pluginOpts['plugin'][1]) ? $pluginOpts['plugin'] : $pluginOpts; $text = ""; foreach ($tmp as $p) { $plug = trim($p['@attributes']['name']); if (plugInstalled($plug)) { $text .= $plug . " " . ADMIN_TRUE_ICON; } else { // echo $plug; if ($sql->db_Select("plugin", "plugin_id", " plugin_path = '" . $plug . "' LIMIT 1 ")) { $row = $sql->db_Fetch(MYSQL_ASSOC); $name = "installplugin[" . $row['plugin_id'] . "]"; $text .= $this->frm->admin_button($name, ADLAN_121 . " " . $plug . "", 'delete'); } else { $text .= varset($p['@attributes']['url']) && $p['@attributes']['url'] != 'core' ? "<a rel='external' href='" . $p['@attributes']['url'] . "'>" . $plug . "</a> " : "<i>" . $plug . "</i>"; $text .= ADMIN_FALSE_ICON; } } $text .= " "; } return $text; }
* * 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) * * * * $Source: /cvs_backup/e107_0.8/e107_plugins/featurebox/featurebox.php,v $ * $Revision$ * $Date$ * $Author$ */ if (!defined('e107_INIT')) { exit; } if (!plugInstalled('featurebox')) { return ''; } if ($sql->db_Select("featurebox", "*", "fb_mode=1 AND fb_class IN (" . USERCLASS_LIST . ") ORDER BY fb_class ASC")) { while ($row = $sql->db_Fetch()) { if ($row['fb_class'] > 0 && $row['fb_class'] < 251) { extract($row); continue; } else { $xentry = $row; } } if (!isset($fb_title)) { extract($xentry); } } else {
<?php /* * 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) * * Plugin administration - newsfeeds * * $Source: /cvs_backup/e107_0.8/e107_plugins/trackback/e_meta.php,v $ * $Revision$ * $Date$ * $Author$ * */ if (!defined('e107_INIT')) { exit; } if (plugInstalled('trackback') && isset($pref['trackbackEnabled'])) { echo "<link rel='pingback' href='" . SITEURLBASE . e_PLUGIN_ABS . "trackback/trackback.php' />"; }
function importSme() { global $PLUGINS_DIRECTORY; $ns = e107::getRender(); $sql = e107::getDb(); $sql2 = e107::getDb('sql2'); $frm = e107::getForm(); $mes = e107::getMessage(); $importArray = array(); /* sitelinks ... */ $sql->db_Select("links", "*", "ORDER BY link_order ASC", "no-where"); $nfArray = $sql->db_getList(); foreach ($nfArray as $row) { if (!$sql->db_Select("gsitemap", "*", "gsitemap_name='" . $row['link_name'] . "' ")) { $importArray[] = array('name' => $row['link_name'], 'url' => $row['link_url'], 'type' => GSLAN_1); } } /* custom pages ... */ $sql->db_Select("page", "*", "ORDER BY page_datestamp ASC", "no-where"); $nfArray = $sql->db_getList(); foreach ($nfArray as $row) { if (!$sql->db_Select("gsitemap", "*", "gsitemap_name='" . $row['page_title'] . "' ")) { $importArray[] = array('name' => $row['page_title'], 'url' => "page.php?" . $row['page_id'], 'type' => "Custom Page"); } } /* forums ... */ if (plugInstalled('forum')) { $sql->db_Select("forum", "*", "forum_parent!='0' ORDER BY forum_order ASC"); $nfArray = $sql->db_getList(); foreach ($nfArray as $row) { if (!$sql->db_Select("gsitemap", "*", "gsitemap_name='" . $row['forum_name'] . "' ")) { $importArray[] = array('name' => $row['forum_name'], 'url' => $PLUGINS_DIRECTORY . "forum/forum_viewforum.php?" . $row['forum_id'], 'type' => "Forum"); } } } /* content pages ... */ if (plugInstalled('content')) { $sql->db_Select("pcontent", "content_id, content_heading", "LEFT(content_parent,1) = '0' ORDER BY content_heading"); $nfArray = $sql->db_getList(); foreach ($nfArray as $row) { $sql2->db_Select("pcontent", "content_id, content_heading", "content_parent = '" . $row['content_id'] . "' AND content_refer != 'sa' ORDER BY content_heading"); $nfArray2 = $sql2->db_getList(); foreach ($nfArray2 as $row2) { if (!$sql->db_Select("gsitemap", "*", "gsitemap_name='" . $row2['content_heading'] . "' ")) { $importArray[] = array('name' => $row2['content_heading'], 'url' => $PLUGINS_DIRECTORY . "content/content.php?content." . $row2['content_id'], 'type' => $row['content_heading']); } } } } $text = "\n\t\t<form action='" . e_SELF . "' id='form' method='post'>\n\t\t<table class='table adminlist'>\n\t\t<colgroup>\n\t\t\t<col class='center' style='width:5%;' />\n\t\t\t<col style='width:15%' />\n\t\t\t<col style='width:40%' />\n\t\t\t<col style='width:40%' />\n\t\t</colgroup>\n\t\t<thead>\n\t\t<tr>\n\t\t<td>" . GSLAN_2 . "</td>\n\t\t<td>" . GSLAN_3 . "</td>\n\t\t<td>" . GSLAN_4 . "</td>\n\t\t<td>" . GSLAN_5 . "</td>\n\t\t</tr>\n\t\t</thead>\n\t\t<tbody>\n\t\t"; foreach ($importArray as $ia) { $text .= "\n\t\t\t<tr>\n\t\t\t<td><input type='checkbox' name='importid[]' value='" . $ia['name'] . "^" . $ia['url'] . "^" . $ia['type'] . "' /></td>\n\t\t\t<td>" . $ia['type'] . "</td>\n\t\t\t<td>" . $ia['name'] . "</td>\n\t\t\t<td><span class='smalltext'>" . str_replace(SITEURL, "", $ia['url']) . "</span></td>\n\t\t\t</tr>\n\t\t\t"; } $text .= "\n\t\t<tr>\n\t\t<td colspan='4' class='center'>\n\t\t<div> " . GSLAN_8 . " " . GSLAN_9 . " : <select class='tbox' name='import_priority' >\n"; for ($i = 0.1; $i < 1.0; $i = $i + 0.1) { $sel = $editArray['gsitemap_priority'] == number_format($i, 1) ? "selected='selected'" : ""; $text .= "<option value='" . number_format($i, 1) . "' {$sel}>" . number_format($i, 1) . "</option>\n"; } $text .= "</select> " . GSLAN_10 . "\n\n\n\t\t<select class='tbox' name='import_freq' >\n"; foreach ($this->freq_list as $k => $fq) { $sel = $editArray['gsitemap_freq'] == $k ? "selected='selected'" : ""; $text .= "<option value='{$k}' {$sel}>{$fq}</option>\n"; } $text .= "</select> <br /><br />\n\n\t\t</div>\n\t\t\n\t\t</td>\n\t\t</tr>\n\t\t</tbody>\n\t\t</table>\n\t\t<div class='buttons-bar center'>\n\t\t" . $frm->admin_button('import_links', GSLAN_18, 'submit') . "\n\t\t</div>\n\t\t</form>\n\t\t"; $ns->tablerender(GSLAN_7, $mes->render() . $text); }
* 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) * * * * $Source: /cvs_backup/e107_0.8/e107_plugins/download/admin_download.php,v $ * $Revision: 12639 $ * $Date: 2012-04-20 00:28:53 -0700 (Fri, 20 Apr 2012) $ * $Author: e107coders $ */ $eplug_admin = true; require_once "../../class2.php"; if (!getperms("P") || !plugInstalled('gallery')) { header("location:" . e_BASE . "index.php"); exit; } $e_sub_cat = 'gallery'; class plugin_gallery_admin extends e_admin_dispatcher { /** * Format: 'MODE' => array('controller' =>'CONTROLLER_CLASS'[, 'index' => 'list', 'path' => 'CONTROLLER SCRIPT PATH', 'ui' => 'UI CLASS NAME child of e_admin_ui', 'uipath' => 'UI SCRIPT PATH']); * Note - default mode/action is autodetected in this order: * - $defaultMode/$defaultAction (owned by dispatcher - see below) * - $adminMenu (first key if admin menu array is not empty) * - $modes (first key == mode, corresponding 'index' key == action) * @var array */ protected $modes = array('main' => array('controller' => 'gallery_cat_admin_ui', 'path' => null, 'ui' => 'gallery_cat_admin_form_ui', 'uipath' => null), 'cat' => array('controller' => 'gallery_cat_ui', 'path' => null, 'ui' => 'gallery_cat_form_ui', 'uipath' => null));
/** * load_elist loads and checks all e_list.php files * * @return array * */ function load_elist() { $listArray = ''; //require is needed here instead of require_once, since both the menu and the page could be visible at the same time if (is_array($this->content_types) && in_array($this->settings['section'], $this->content_types)) { $file = $this->content_name; if (is_readable(e_PLUGIN . $file . "/e_list.php")) { $this->mode_content = $this->settings['section']; //echo "require: ".e_PLUGIN.$file."/e_list.php<br />"; require_once e_PLUGIN . $file . "/e_list.php"; $listArray = $this->load_data($file); } } else { $file = $this->settings['section']; if (in_array($file, $this->defaultArray)) { //echo "require: ".$this->plugin_dir."section/list_".$file.".php<br />"; require_once $this->plugin_dir . "section/list_" . $file . ".php"; $listArray = $this->load_data($file); } else { if (plugInstalled($file)) { if (is_readable(e_PLUGIN . $file . "/e_list.php")) { //echo "require: ".e_PLUGIN.$file."/e_list.php<br />"; require_once e_PLUGIN . $file . "/e_list.php"; $listArray = $this->load_data($file); } } } } return $listArray; }
* * 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) * * Plugin administration - newsfeeds * * $Source: /cvs_backup/e107_0.8/e107_plugins/trackback/modtrackback.php,v $ * $Revision$ * $Date$ * $Author$ * */ $eplug_admin = true; require_once "../../class2.php"; if (!getperms("P") || !plugInstalled('trackback') || !$pref['trackbackEnabled']) { header("location:" . e_BASE . "index.php"); exit; } require_once e_ADMIN . "auth.php"; if (isset($_POST['moderate'])) { $temp = array(); if (is_array($_POST['trackback_delete'])) { while (list($key, $cid) = each($_POST['trackback_delete'])) { $cid = intval($cid); if ($cid > 0) { $sql->db_Delete("trackback", "trackback_id=" . $cid); $temp[] = $cid; } } if (count($temp)) {
* 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) * * Featurebox administration * * $Source: /cvs_backup/e107_0.8/e107_plugins/featurebox/admin_config.php,v $ * $Revision$ * $Date$ * $Author$ * */ require_once "../../class2.php"; if (!getperms("P") || !plugInstalled('featurebox')) { header("location:" . e_BASE . "index.php"); exit; } e107::includeLan(e_PLUGIN . 'featurebox/languages/' . e_LANGUAGE . '_admin_featurebox.php'); class fb_admin extends e_admin_dispatcher { protected $modes = array('main' => array('controller' => 'fb_main_ui', 'path' => null, 'ui' => 'fb_admin_form_ui', 'uipath' => null), 'category' => array('controller' => 'fb_category_ui', 'path' => null, 'ui' => 'fb_cat_form_ui', 'uipath' => null)); protected $adminMenu = array('main/list' => array('caption' => 'Featurebox List', 'perm' => 'P'), 'main/create' => array('caption' => 'Create Featurebox Entry', 'perm' => 'P'), 'category/list' => array('caption' => 'Categories', 'perm' => 'P'), 'category/create' => array('caption' => "Create Category", 'perm' => 'P')); protected $adminMenuAliases = array('main/edit' => 'main/list', 'category/edit' => 'category/list'); protected $menuTitle = 'featurebox'; } class fb_category_ui extends e_admin_ui { protected $pluginTitle = 'Feature Box'; protected $pluginName = 'featurebox';
/* * 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) * * * * $Source: /cvs_backup/e107_0.8/e107_plugins/links_page/links.php,v $ * $Revision$ * $Date$ * $Author$ */ require_once '../../class2.php'; if (!plugInstalled('links_page')) { header("location:" . e_BASE . "index.php"); exit; } require_once e_HANDLER . "rate_class.php"; $rater = new rater(); require_once e_PLUGIN . 'links_page/link_shortcodes.php'; require_once e_PLUGIN . 'links_page/link_defines.php'; require_once e_HANDLER . "userclass_class.php"; e107_require_once(e_HANDLER . 'arraystorage_class.php'); $eArrayStorage = new ArrayData(); require_once e_HANDLER . "form_handler.php"; $rs = new form(); require_once e_HANDLER . "file_class.php"; $fl = new e_file(); require_once e_HANDLER . "comment_class.php";
function sc_privmessage() { if (plugInstalled('pm') && $this->postInfo['post_user'] > 0) { return $this->e107->tp->parseTemplate("{SENDPM={$this->postInfo['post_user']}}"); } }
* * 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) * * * * $Source: /cvs_backup/e107_0.8/e107_plugins/download/admin_download.php,v $ * $Revision$ * $Date$ * $Author$ */ $eplug_admin = true; define('DOWNLOAD_DEBUG', FALSE); require_once "../../class2.php"; if (!getperms("P") || !plugInstalled('download')) { header("location:" . e_BASE . "index.php"); exit; } include_lan(e_PLUGIN . 'download/languages/' . e_LANGUAGE . '/download.php'); include_lan(e_PLUGIN . 'download/languages/' . e_LANGUAGE . '/admin_download.php'); // require_once(e_PLUGIN.'download/handlers/adminDownload_class.php'); require_once e_PLUGIN . 'download/handlers/download_class.php'; require_once e_HANDLER . 'upload_handler.php'; require_once e_HANDLER . 'xml_class.php'; require_once e_HANDLER . "form_handler.php"; require_once e_HANDLER . "ren_help.php"; //require_once(e_HANDLER."calendar/calendar_class.ph_"); //$cal = new DHTML_Calendar(true); //$gen = new convert(); $e_sub_cat = 'download';
* * 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) * * * * $Source: /cvs_backup/e107_0.8/e107_plugins/rss_menu/rss_menu.php,v $ * $Revision$ * $Date$ * $Author$ */ if (!defined('e107_INIT')) { exit; } if (!plugInstalled('rss_menu')) { return ''; } $FILES_DIRECTORY = e107::getInstance()->getFolder('files'); $sql = e107::getDb(); $path = e_PLUGIN_ABS . "rss_menu/"; include_lan(e_PLUGIN . "rss_menu/languages/" . e_LANGUAGE . "_admin_rss_menu.php"); $des = ""; $topic = ""; if (strstr(e_SELF, "comment.php") && $sql->db_Select("rss", "rss_path", " rss_path = 'comments' LIMIT 1")) { $type = 5; $des = RSS_MENU_L4; } if (strstr(e_SELF, "/forum") && $sql->db_Select("rss", "rss_path", " rss_path = 'forum|name' LIMIT 1")) { $type = 6; $des = RSS_MENU_L5;
* 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) * * * * $Source: /cvs_backup/e107_0.8/e107_plugins/poll/admin_config.php,v $ * $Revision$ * $Date$ * $Author$ */ require_once "../../class2.php"; if (!is_object($tp)) { $tp = new e_parse(); } if (!getperms("P") || !plugInstalled('poll')) { header("location:" . e_BASE . "index.php"); exit; } $e_sub_cat = 'poll'; include_lan(e_PLUGIN . 'poll/languages/' . e_LANGUAGE . '_admin_poll.php'); require_once e_ADMIN . "auth.php"; require_once e_PLUGIN . "poll/poll_class.php"; require_once e_HANDLER . "form_handler.php"; require_once e_HANDLER . "userclass_class.php"; if (isset($_POST)) { $_POST = strip_if_magic($_POST); } $rs = new form(); $poll = new poll(); if (isset($_POST['reset'])) {
* * $Source: /cvs_backup/e107_0.8/e107_plugins/chatbox_menu/chatbox_menu.php,v $ * $Revision$ * $Date$ * $Author$ */ /** * e107 Chatbox plugin * * @package e107_plugins * @subpackage chatbox * @version $Id$; */ error_reporting(0); global $tp, $e107cache, $e_event, $e107, $pref; if (!plugInstalled('chatbox_menu')) { return ''; } if ($pref['cb_layer'] == 2 || isset($_POST['chatbox_ajax'])) { if (isset($_POST['chat_submit'])) { include_once '../../class2.php'; //Normally the menu.sc file will auto-load the language file, this is needed in case //ajax is turned on and the menu is not loaded from the menu.sc include_lan(e_PLUGIN . 'chatbox_menu/languages/' . e_LANGUAGE . '/' . e_LANGUAGE . '.php'); } } if (!defined('e_HANDLER')) { exit; } require_once e_HANDLER . 'emote.php'; $emessage = '';
function show_prefs() { global $fPref, $ns, $sql; $e107 = e107::getInstance(); $emessage = eMessage::getInstance(); $poll_installed = plugInstalled('poll'); if (!$poll_installed) { if ($fPref->get('poll') == 1) { $fPref['forum_poll'] = e_UC_NOBODY; $fPref->save(false, true); } } $text = "<div style='text-align:center'>\n\t\t<form method='post' action='" . e_SELF . "?" . e_QUERY . "'>\n\n\t\t<table style='" . ADMIN_WIDTH . "' class='fborder'>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_44 . "<br /><span class='smalltext'>" . FORLAN_45 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' >" . ($fPref->get('enclose') ? "<input type='checkbox' name='forum_enclose' value='1' checked='checked' />" : "<input type='checkbox' name='forum_enclose' value='1' />") . "</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_65 . "<br /><span class='smalltext'>" . FORLAN_46 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_title' size='15' value='" . $fPref->get('title') . "' maxlength='100' /></td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_47 . "<br /><span class='smalltext'>" . FORLAN_48 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' >" . ($fPref->get('notify') ? "<input type='checkbox' name='email_notify' value='1' checked='checked' />" : "<input type='checkbox' name='email_notify' value='1' />") . "</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_177 . "<br /><span class='smalltext'>" . FORLAN_178 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' >" . ($fPref->get('notify_on') ? "<input type='checkbox' name='email_notify_on' value='1' checked='checked' />" : "<input type='checkbox' name='email_notify_on' value='1' />") . "</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_49 . "<br /><span class='smalltext'>" . FORLAN_50 . "</span></td>"; if ($poll_installed) { // <td class='forumheader'>".$e107->user_class->uc_dropdown("mods[{$f['forum_id']}]", $f['forum_moderators'], 'admin,classes')."</td> $text .= "<td style='width:25%;text-align:center' class='forumheader3' >" . $e107->user_class->uc_dropdown('forum_poll', $fPref->get('poll'), 'admin,classes') . '</td>'; } else { $text .= "<td style='width:25%;text-align:center' class='forumheader3' >" . FORLAN_66 . "</td>"; } $text .= "\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_70 . "<br /><span class='smalltext'>" . FORLAN_71 . " <a href='" . e_ADMIN . "upload.php'>" . FORLAN_130 . "</a> " . FORLAN_131 . "</span>"; if (!$pref['image_post']) { $text .= "<br /><b>" . FORLAN_139 . "</b>"; } if (!is_writable(e_PLUGIN . 'forum/attachments')) { $text .= "<br /><b>Attachment dir (" . e_PLUGIN_ABS . 'forum/attachments' . ") is not writable!</b>"; } $text .= "</td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' >" . ($fPref->get('attach') ? "<input type='checkbox' name='forum_attach' value='1' checked='checked' />" : "<input type='checkbox' name='forum_attach' value='1' />") . "</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_134 . "<br /><span class='smalltext'>" . FORLAN_135 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' size='3' maxlength='5' name='forum_maxwidth' value='" . $fPref->get('maxwidth') . "' /></td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_136 . "<br /><span class='smalltext'>" . FORLAN_137 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' >" . ($fPref->get('linkimg') ? "<input type='checkbox' name='forum_linkimg' value='1' checked='checked' />" : "<input type='checkbox' name='forum_linkimg' value='1' />") . "</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_51 . "<br /><span class='smalltext'>" . FORLAN_52 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' >" . ($fPref->get('track') ? "<input type='checkbox' name='forum_track' value='1' checked='checked' />" : "<input type='checkbox' name='forum_track' value='1' />") . "</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_112 . "<br /><span class='smalltext'>" . FORLAN_113 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' >" . ($fPref->get('redirect') ? "<input type='checkbox' name='forum_redirect' value='1' checked='checked' />" : "<input type='checkbox' name='forum_redirect' value='1' />") . "</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_116 . "<br /><span class='smalltext'>" . FORLAN_122 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' >" . ($fPref->get('reported_post_email') ? "<input type='checkbox' name='reported_post_email' value='1' checked='checked' />" : "<input type='checkbox' name='reported_post_email' value='1' />") . "</td>\n\t\t</tr>\n\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_126 . "<br /><span class='smalltext'>" . FORLAN_127 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' >" . ($fPref->get('forum_tooltip') ? "<input type='checkbox' name='forum_tooltip' value='1' checked='checked' />" : "<input type='checkbox' name='forum_tooltip' value='1' />") . "</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_128 . "<br /><span class='smalltext'>" . FORLAN_129 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_tiplength' size='15' value='" . $fPref->get('tiplength') . "' maxlength='20' /></td>\n\t\t</tr>\n\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_53 . "<br /><span class='smalltext'>" . FORLAN_54 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_eprefix' size='15' value='" . $fPref->get('eprefix') . "' maxlength='20' /></td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_55 . "<br /><span class='smalltext'>" . FORLAN_56 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_popular' size='3' value='" . $fPref->get('popular') . "' maxlength='3' /></td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_57 . "<br /><span class='smalltext'>" . FORLAN_58 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_postspage' size='3' value='" . $fPref->get('postspage') . "' maxlength='3' /></td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_186 . "<br /><span class='smalltext'>" . FORLAN_187 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_threadspage' size='3' value='" . $fPref->get('threadspage') . "' maxlength='3' /></td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td style='width:75%' class='forumheader3'>" . FORLAN_132 . "<br /><span class='smalltext'>" . FORLAN_133 . "</span></td>\n\t\t<td style='width:25%;text-align:center' class='forumheader3' >" . ($fPref->get('hilightsticky') ? "<input type='checkbox' name='forum_hilightsticky' value='1' checked='checked' />" : "<input type='checkbox' name='forum_hilightsticky' value='1' />") . "</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t<td colspan='2' style='text-align:center' class='forumheader'>\n\t\t<input class='button' type='submit' name='updateoptions' value='" . FORLAN_61 . "' />\n\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t</form>\n\t\t</div>"; $ns->tablerender(FORLAN_62, $emessage->render() . $text); }
exit; } if (isset($_GET['f'])) { $ret = $thread->processFunction(); if ($ret) { require_once HEADERF; echo $ret; require_once FOOTERF; exit; } if ($_GET['f'] != 'last') { $thread->init(); } } e107::getScBatch('view', 'forum')->setScVar('thread', $thread); $pm_installed = plugInstalled('pm'); //Only increment thread views if not being viewed by thread starter if (USER && (USERID != $thread->threadInfo['thread_user'] || $thread->threadInfo['thread_total_replies'] > 0) || !$thread->noInc) { $forum->threadIncview($thread->threadInfo['thread_id']); } define('e_PAGETITLE', strip_tags($tp->toHTML($thread->threadInfo['thread_name'], true, 'no_hook, emotes_off')) . ' / ' . $e107->tp->toHTML($thread->threadInfo['forum_name'], true, 'no_hook, emotes_off') . ' / ' . LAN_01); $forum->modArray = $forum->forumGetMods($thread->threadInfo['forum_moderators']); define('MODERATOR', USER && $forum->isModerator(USERID)); e107::getScBatch('view', 'forum')->setScVar('forum', $forum); //var_dump(e107::getScBatch('forum', 'forum')); if (MODERATOR && isset($_POST['mod'])) { require_once e_PLUGIN . 'forum/forum_mod.php'; $thread->message = forum_thread_moderate($_POST); $thread->threadInfo = $forum->threadGet($thread->threadId); } $num = $thread->page ? $thread->page - 1 : 0;
* $Id: cron.php 12492 2011-12-30 16:09:10Z e107steved $ * */ /** * * @package e107 * @subpackage frontend * @version $Id: cron.php 12492 2011-12-30 16:09:10Z e107steved $ * Ultra-simple Image-Gallery */ /* * THIS SCRIPT IS HIGHLY EXPERIMENTAL. USE AT OWN RISK. * */ require_once "../../class2.php"; if (!plugInstalled('gallery')) { header('location:' . e_BASE . 'index.php'); exit; } require_once HEADERF; class gallery { private $catList = array(); function __construct() { $this->catList = e107::getMedia()->getCategories('gallery'); if ($_GET['cat'] && isset($this->catList[$_GET['cat']])) { $this->showImages($_GET['cat']); } else { $this->listCategories(); }
* 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) * * Plugin configuration module - gsitemap * * $Source: /cvs_backup/e107_0.8/e107_plugins/gsitemap/e_module.php,v $ * $Revision$ * $Date$ * $Author$ * */ if (!defined('e107_INIT')) { exit; } if (!plugInstalled('gsitemap')) { return ''; } global $e_event, $e107cache, $ns; // $e_event->register("newspost", "pingit"); // $e_event->register("newsupd", "pingit"); // Disable these for now, until admin functions written function pingit($vals) { global $admin_log; require e_PLUGIN . "gsitemap/weblog_pinger.php"; $pinger = new Weblog_Pinger(); // $pinger->ping_ping_o_matic("Ekzemplo", "http://www.ekzemplo.com/"); $xml_rpc_server = "blogsearch.google.com"; $xml_rpc_port = 80; $xml_rpc_path = "/ping/RPC2"; $xml_rpc_method = "weblogUpdates.extendedPing";
* * $Source: /cvs_backup/e107_0.8/e107_plugins/list_new/admin_list_config.php,v $ * $Revision$ * $Date$ * $Author$ * */ /** * Admin for list_new plugin admin * * @package e107_plugins * @subpackage list_new */ //include and require several classes require_once "../../class2.php"; if (!getperms("1") || !plugInstalled('list_new')) { header("location:" . e_BASE . "index.php"); exit; } require_once e_ADMIN . "auth.php"; require_once e_HANDLER . "form_handler.php"; $rs = new form(); $fl = e107::getFile(); require_once e_PLUGIN . "list_new/list_class.php"; $rc = new listclass('admin'); //get all sections to use (and reload if new e_list.php files are added) $rc->getSections(); $mes = e107::getMessage(); //update preferences in database if (isset($_POST['update_menu'])) { $message = $rc->admin->db_update_menu();