function __construct() { include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/lan_notify.php'); if (empty($this->notify_prefs)) { $this->notify_prefs = e107::getConfig('notify')->getPref(); } }
/** * 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"); }
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; }
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; }
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); }
function __construct() { if (E107_DEBUG_LEVEL > 0) { $this->logging = true; } include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_image.php'); }
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; }
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); }
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); }
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); }
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'); }
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); }
/* * 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();
*/ /** * @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', ''); }
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>"; */ }
<?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']); } }
* 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/blogcalendar_menu/archive.php,v $ * $Revision$ * $Date$ * $Author$ */ /* | Based on code by: Thomas Bouve (crahan@gmx.net) */ require_once "../../class2.php"; require_once e_HANDLER . "userclass_class.php"; include_lan(e_PLUGIN . "blogcalendar_menu/languages/" . e_LANGUAGE . ".php"); require_once "calendar.php"; require_once "functions.php"; require_once HEADERF; // --------------------- // initialize some cruft // --------------------- $bcSql = new db(); $prefix = e_PLUGIN_ABS . "blogcalendar_menu"; $marray = e107::getDate()->terms('month'); // if nr of rows per month is not set, default to 3 $months_per_row = !empty($pref['blogcal_mpr']) ? $pref['blogcal_mpr'] : "3"; $pref['blogcal_ws'] = "monday"; // ------------------------------------- // what year are we supposed to display? // -------------------------------------
//define('CSV_DEBUG', TRUE); require_once '../../class2.php'; if (!getperms('P')) { header('Location: ' . e_BASE . 'index.php'); exit; } if (e_QUERY) { $sl_qs = explode('.', e_QUERY); } $action = varset($sl_qs[0], 'config'); $params = varset($sl_qs[1], ''); if ($action != 'export' || $params) { header('Location: ' . e_BASE . 'index.php'); exit; } include_lan(e_PLUGIN . 'log/languages/' . e_LANGUAGE . '_admin_log.php'); // LANs may be needed for error messages // List of the non-page-based info which is gathered - historically only 'all-time' stats, now we support monthly as well. (Here, only keys are used for validation) $stats_list = array('statBrowser' => ADSTAT_L6, 'statOs' => ADSTAT_L7, 'statScreen' => ADSTAT_L8, 'statDomain' => ADSTAT_L9, 'statReferer' => ADSTAT_L10, 'statQuery' => ADSTAT_L11); $separator_char = array(1 => ',', 2 => '|'); $quote_char = array(1 => '', 2 => "'", 3 => '"'); //--------------------------------------------- // Export data file //--------------------------------------------- $export_filter = ''; // can be 'LIKE', 'REGEX', or simple equality $export_type = $tp->toDB(varset($_POST['export_type'], 'page')); // Page data or one of the other bits of info $export_date = intval(varset($_POST['export_date'], 1)); $export2_date = intval(varset($_POST['export2_date'], 3)); $export_year = intval(varset($_POST['export_year'], date('Y')));
/* * e107 website system * * Copyright (C) 2008-2013 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * */ require_once '../../class2.php'; if (!getperms('1')) { header('location:' . e_BASE . 'index.php'); exit; } require_once e_HANDLER . 'userclass_class.php'; include_lan(e_PLUGIN . 'newforumposts_main/languages/' . e_LANGUAGE . '.php'); require_once e_ADMIN . 'auth.php'; $frm = e107::getForm(); $mes = e107::getMessage(); if (isset($_POST['updatesettings'])) { $pref['nfp_display'] = intval($_POST['nfp_display']); $pref['nfp_caption'] = $tp->toDB($_POST['nfp_caption']); $pref['nfp_amount'] = intval($_POST['nfp_amount']); $pref['nfp_layer'] = intval(vartrue($_POST['nfp_layer'])); $pref['nfp_posts'] = intval(vartrue($_POST['nfp_posts'])); $pref['nfp_layer_height'] = intval($_POST['nfp_layer_height'] ? $_POST['nfp_layer_height'] : 200); save_prefs(); } $ns->tablerender($caption, $mes->render() . $text); $text = "\n\t<form method='post' action='" . e_SELF . "?" . e_QUERY . "' id='menu_conf_form'>\n\t<table class='table adminform'>\t \n\t<colgroup span='2'>\n\t\t<col class='col-label' />\n\t\t<col class='col-control' />\n\t</colgroup>\n\t<tr>\n\t\t<td>" . NFPM_L4 . "</td>\n\t\t<td>" . $frm->select('nfp_display', array(0 => NFPM_L5, 1 => NFPM_L6, 2 => NFPM_L7), $pref['nfp_display']) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td>" . NFPM_L8 . ":</td>\n\t\t<td>" . $frm->text('nfp_caption', $pref['nfp_caption'], '100', array('class' => 'tbox input-text span3')) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td>" . NFPM_L9 . ": </td>\n\t\t<td>" . $frm->text('nfp_amount', $pref['nfp_amount'], '3') . "</td>\n\t</tr>\t \n\t<tr>\n\t\t<td>" . NFPM_L14 . "</td>\n\t\t<td>" . $frm->radio_switch('nfp_posts', $pref['nfp_posts'], LAN_YES, LAN_NO) . "<span class='field-help'>" . NFPM_L15 . "</span></td>\n\t</tr>\t \n\t<tr>\n\t\t<td>" . NFPM_L10 . "</td>\n\t\t<td>" . $frm->radio_switch('nfp_layer', $pref['nfp_layer'], LAN_YES, LAN_NO) . "<br />\n\t\t" . NFPM_L11 . ": " . $frm->text('nfp_layer_height', $pref['nfp_layer_height'], '3') . "</td>\n\t</tr>\n\t</table>\n\t<div class='buttons-bar center'>\n\t\t" . $frm->admin_button('updatesettings', LAN_UPDATE, 'update') . "\n\t</div>\n\t</form>"; $ns->tablerender(NFPM_L12, $text);
1. Look at using disc cache 2. More detailed check on image paths */ // Debug option - adds entries to rolling log (only works in 0.8) //define ('PDF_DEBUG', TRUE); define('PDF_DEBUG', FALSE); define('K_PATH_MAIN', ''); define('K_PATH_URL', SITEURL); // Used with forms (TODO: check validity) /* The full tcpdf distribution includes a utility to generate new fonts, as well as lots of other fonts. It can be downloaded from: http://sourceforge.net/projects/tcpdf/ */ require_once e_PLUGIN . 'pdf/tcpdf.php'; //require the ufpdf class include_lan(e_PLUGIN . 'pdf/languages/' . e_LANGUAGE . '_admin_pdf.php'); //extend tcpdf class from package with custom functions class e107PDF extends TCPDF { protected $pdfPrefs = array(); // Prefs - loaded before creating a pdf /** * Constructor * @param string $orientation page orientation. Possible values are (case insensitive):<ul><li>P or Portrait (default)</li><li>L or Landscape</li></ul> * @param string $unit User measure unit. Possible values are:<ul><li>pt: point</li><li>mm: millimeter (default)</li><li>cm: centimeter</li><li>in: inch</li></ul><br />A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit. * @param mixed $format The format used for pages. It can be either one of the following values (case insensitive) or a custom format in the form of a two-element array containing the width and the height (expressed in the unit given by unit).<ul><li>4A0</li><li>2A0</li><li>A0</li><li>A1</li><li>A2</li><li>A3</li><li>A4 (default)</li><li>A5</li><li>A6</li><li>A7</li><li>A8</li><li>A9</li><li>A10</li><li>B0</li><li>B1</li><li>B2</li><li>B3</li><li>B4</li><li>B5</li><li>B6</li><li>B7</li><li>B8</li><li>B9</li><li>B10</li><li>C0</li><li>C1</li><li>C2</li><li>C3</li><li>C4</li><li>C5</li><li>C6</li><li>C7</li><li>C8</li><li>C9</li><li>C10</li><li>RA0</li><li>RA1</li><li>RA2</li><li>RA3</li><li>RA4</li><li>SRA0</li><li>SRA1</li><li>SRA2</li><li>SRA3</li><li>SRA4</li><li>LETTER</li><li>LEGAL</li><li>EXECUTIVE</li><li>FOLIO</li></ul> * @param boolean $unicode TRUE means that the input text is unicode (default = true) * @param boolean $diskcache if TRUE reduce the RAM memory usage by caching temporary data on filesystem (slower). * @param String $encoding charset encoding; default is UTF-8 */ public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = true, $encoding = 'UTF-8', $diskcache = false)
* @subpackage user * @version $Id$; * * News front page display */ require_once "class2.php"; include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/lan_' . e_PAGE); require_once e_HANDLER . "news_class.php"; //require_once(e_HANDLER."comment_class.php"); //$cobj = new comment; if (isset($NEWSHEADER)) { require_once HEADERF; require_once FOOTERF; exit; } include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/lan_news.php'); // Temporary $cacheString = 'news.php_default_'; $action = ''; $sub_action = ''; $order = 'news_datestamp'; $newsfrom = 0; if (!defined('ITEMVIEW')) { define('ITEMVIEW', varset($pref['newsposts'], 15)); } // ?all and ?cat.x and ?tag are the same listing functions - just filtered differently. // NEWSLIST_LIMIT is suitable for all if (!defined("NEWSLIST_LIMIT")) { define("NEWSLIST_LIMIT", varset($pref['news_list_limit'], 15)); } $defTemplate = e107::getPref('news_default_template');
| EasyShop - an easy e107 web shop | adapted by nlstart | formerly known as | jbShop - by Jesse Burns aka jburns131 aka Jakle | Plugin Support Site: e107.webstartinternet.com | | For the e107 website system visit http://e107.org | | Released under the terms and conditions of the | GNU General Public License (http://gnu.org). +------------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } // Get language file (assume that the English language file is always present) include_lan(e_PLUGIN . 'easyshop/languages/' . e_LANGUAGE . '.php'); $helptitle = EASYSHOP_ADMIN_HELP_00; $helpcapt[] = EASYSHOP_ADMIN_HELP_01; $helptext[] = EASYSHOP_ADMIN_HELP_02; $helpcapt[] = EASYSHOP_ADMIN_HELP_03; $helptext[] = EASYSHOP_ADMIN_HELP_04; $helpcapt[] = EASYSHOP_ADMIN_HELP_05; $helptext[] = EASYSHOP_ADMIN_HELP_06; $helpcapt[] = EASYSHOP_ADMIN_HELP_07; $helptext[] = EASYSHOP_ADMIN_HELP_08; $helpcapt[] = EASYSHOP_ADMIN_HELP_97; $helptext[] = EASYSHOP_ADMIN_HELP_98; $helpcapt[] = EASYSHOP_ADMIN_HELP_99A; $helptext[] = "<a href='http://shop.webstartinternet.com/e107_plugins/easyshop/easyshop.php?prod.3' alt='' title=''>" . EASYSHOP_ADMIN_HELP_99B . "</a>"; $text2 = ""; for ($i = 0; $i < count($helpcapt); $i++) {
* 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) * * Administration - DB Verify Class * * $URL: /cvs_backup/e107_0.8/e107_admin/db_verify.php,v $ * $Revision: 12255 $ * $Id: 2011-06-07 17:16:42 -0700 (Tue, 07 Jun 2011) $ * $Author: e107coders $ * */ if (!defined('e107_INIT')) { exit; } include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_db_verify.php'); class db_verify { var $backUrl = ""; var $tables = array(); var $sqlTables = array(); var $sqlLanguageTables = array(); var $results = array(); var $indices = array(); // array(0) - Issue? var $fixList = array(); var $fieldTypes = array('time', 'timestamp', 'datetime', 'year', 'tinyblob', 'blob', 'mediumblob', 'longblob', 'tinytext', 'mediumtext', 'longtext', 'text', 'date'); var $fieldTypeNum = array('bit', 'tinyint', 'smallint', 'mediumint', 'integer', 'int', 'bigint', 'real', 'double', 'float', 'decimal', 'numeric', 'varchar', 'char ', 'binary', 'varbinary', 'enum', 'set'); // space after 'char' required. var $modes = array('missing_table' => 'create', 'mismatch' => 'alter', 'missing_field' => 'insert', 'missing_index' => 'index', 'mismatch_index' => ''); var $errors = array();
'resend' - resend failures on a specific list 'debug' - not currently used; may be useful to list other info Valid subparameters (where required): $_GET['m'] - id of mail info in db $_GET['t'] - id of target info in db */ // header('Content-Encoding: none'); // turn off gzip. require_once '../class2.php'; if (!getperms('W')) { header('location:' . e_BASE . 'index.php'); exit; } include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_users.php'); include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_mailout.php'); // e107::lan('core','signup'); require_once e_HANDLER . 'ren_help.php'; require_once e_HANDLER . 'userclass_class.php'; require_once e_HANDLER . 'mailout_class.php'; // Class handler for core mailout functions require_once e_HANDLER . 'mailout_admin_class.php'; // Admin tasks handler require_once e_HANDLER . 'mail_manager_class.php'; // Mail DB API /** * Display Progress-bar of real-time mail-out. * @return */ function sendProgress($id) {
/** * * @package e107 * @subpackage admin * @version $Revision$ * @author $Author$ * Admin-related functions for custom page and menu creation */ require_once '../class2.php'; if (!getperms("5|J")) { header('location:' . e_ADMIN . 'admin.php'); exit; } e107::css('inline', "\n\n.e-wysiwyg { height: 400px }\n"); include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE); $e_sub_cat = 'custom'; require_once e_HANDLER . 'userclass_class.php'; require_once e_HANDLER . 'message_handler.php'; require_once e_HANDLER . 'form_handler.php'; $frm = new e_form(true); $emessage = eMessage::getInstance(); // $page = new page; /* if (e_QUERY) { $tmp = explode(".", e_QUERY); $action = $tmp[0]; $sub_action = varset($tmp[1]); $id = intval(varset($tmp[2], 0)); $from = intval(varset($tmp[3], 0));
* e107 website system * * Copyright (C) 2008-2009 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://gnu.org). * * $Source: /cvs_backup/e107_0.8/e107_handlers/date_handler.php,v $ * $Revision$ * $Date$ * $Author$ * */ if (!defined('e107_INIT')) { exit; } include_lan(e_LANGUAGEDIR . e_LANGUAGE . "/lan_date.php"); class convert { function __construct() { } /** * Build the datetimepicker() locale, since it must match strftime() values for accurate conversion. */ function buildDateLocale() { $text = ' (function($){ $.fn.datetimepicker.dates["' . e_LAN . '"] = {'; $dates = array();
*/ /* Notes: - array_flip method deprecated for delete item detection. - using form handler is deprecated and present only for backwards compatibility. - using generic terms like EDIT and DELETE in Language file is deprecated, use LAN_EDIT etc. instead. - using terms like created, update, options etc..deprecated should use built in terms. - generic admin icons used. ADMIN_ICON_EDIT etc. - using $caption = "whatever", is unneccessary. */ require_once "../../class2.php"; if (!getperms("P") || !e107::isInstalled('rss_menu')) { header("location:" . e_BASE . "index.php"); exit; } include_lan(e_PLUGIN . "rss_menu/languages/" . e_LANGUAGE . "_admin_rss_menu.php"); // XXX THIS IS SET UP FOR LATER USE. class rss_admin extends e_admin_dispatcher { protected $modes = array('main' => array('controller' => 'rss_ui', 'path' => null, 'ui' => 'rss_form_ui', 'uipath' => null)); protected $adminMenu = array('main/list' => array('caption' => LAN_MANAGE, 'perm' => 'P'), 'main/import' => array('caption' => "Add New Feed", 'perm' => 'P'), 'main/prefs' => array('caption' => LAN_PREFS, 'perm' => 'P')); protected $adminMenuAliases = array('main/edit' => 'main/list'); protected $menuTitle = 'RSS'; function init() { if (E107_DEBUG_LEVEL > 0) { $this->adminMenu['main/create'] = array('caption' => "Add Custom Feed", 'perm' => 'P'); } } } //TODO - Use this .. .
| $Author: e107coders $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } if (!isset($pref['plug_installed']['content'])) { header('location:' . e_BASE . 'index.php'); exit; } $plugindir = e_PLUGIN . "content/"; $plugintable = "pcontent"; //name of the table used in this plugin (never remove this, as it's being used throughout the plugin !!) $datequery = " AND content_datestamp < " . time() . " AND (content_enddate=0 || content_enddate>" . time() . ") "; include_lan(e_PLUGIN . "content/languages/" . e_LANGUAGE . "/lan_content.php"); include_lan(e_PLUGIN . "content/languages/" . e_LANGUAGE . "/lan_content_admin.php"); require_once $plugindir . "handlers/content_class.php"; $aa = new content(); class content_convert { //update content_author function upgrade_1_2() { global $sql; $text = ""; $field1 = $sql->db_Field("pcontent", 19); $field2 = $sql->db_Field("pcontent", 20); $field3 = $sql->db_Field("pcontent", 21); if ($field1 != "content_score" && $field2 != "content_meta" && $field3 != "content_layout") { mysql_query("ALTER TABLE " . MPREFIX . "pcontent ADD content_score TINYINT ( 3 ) UNSIGNED NOT NULL DEFAULT '0';"); mysql_query("ALTER TABLE " . MPREFIX . "pcontent ADD content_meta TEXT NOT NULL;");
<?php /* +---------------------------------------------------------------+ | e107 website system | Easy Admin Page by Cameron. (www.e107coders.org) | a part of Your_plugin v3.0 | Released under the terms and conditions of the | GNU General Public License (http://gnu.org). | Suitable only for e107 v0.7 +---------------------------------------------------------------+ */ require_once "../../class2.php"; if (!getperms("P")) { header("location:" . e_BASE . "index.php"); exit; } include_lan(e_PLUGIN . "metaweblog/languages/" . e_LANGUAGE . ".php"); require_once e_ADMIN . "auth.php"; $text .= XMLRPC_HELP_011; $ns->tablerender(XMLRPC_CONFIG_001, $text); require_once e_ADMIN . "footer.php";
$ns = e107::getRender(); if (!$e107->isInstalled('forum')) { header('Location: ' . e_BASE . 'index.php'); exit; } if (isset($_POST['fjsubmit'])) { header('location:' . $e107->url->create('forum/forum/view', array('id' => (int) $_POST['forumjump']), 'full=1&encode=0')); exit; } $highlight_search = isset($_POST['highlight_search']); if (!e_QUERY) { //No parameters given, redirect to forum home header('Location:' . $e107->url->create('forum/forum/main', array(), 'full=1&encode=0')); exit; } include_lan(e_PLUGIN . 'forum/languages/' . e_LANGUAGE . '/lan_forum_viewtopic.php'); include_once e_PLUGIN . 'forum/forum_class.php'; include_once e_PLUGIN . 'forum/templates/forum_icons_template.php'; $forum = new e107forum(); $thread = new e107ForumThread(); if (isset($_GET['last'])) { $_GET['f'] = 'last'; } if (isset($_GET['f']) && $_GET['f'] == 'post') { $thread->processFunction(); } $thread->init(); if (isset($_POST['track_toggle'])) { $thread->toggle_track(); exit; }