mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 00:41:52 +02:00
And more notice removals.
Also some plugin GUI clean-up (rss, tagwords, trackback)
This commit is contained in:
@@ -27,7 +27,7 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
|
||||
|
||||
require_once(HEADERF);
|
||||
|
||||
if (!$CONTACT_FORM) {
|
||||
if (!vartrue($CONTACT_FORM)) {
|
||||
if (file_exists(THEME."contact_template.php")) {
|
||||
require_once(THEME."contact_template.php");
|
||||
}
|
||||
@@ -158,7 +158,7 @@ if(isset($_POST['send-contactus']))
|
||||
|
||||
if(SITECONTACTINFO && $CONTACT_INFO)
|
||||
{
|
||||
$text = $tp->parseTemplate($CONTACT_INFO, TRUE, $contact_shortcodes);
|
||||
$text = $tp->parseTemplate($CONTACT_INFO, TRUE, vartrue($contact_shortcodes));
|
||||
$ns -> tablerender(LANCONTACT_01, $text,"contact");
|
||||
}
|
||||
|
||||
|
@@ -135,7 +135,7 @@ class comments_admin_form_ui extends e_admin_form_ui
|
||||
$id = $row['comment_type'];
|
||||
$list[$id] = e107::getComment()->getTable($id);
|
||||
}
|
||||
return $list;
|
||||
return vartrue($list);
|
||||
}
|
||||
|
||||
if($mode == 'batch')
|
||||
|
@@ -44,7 +44,7 @@ require_once(e_ADMIN."auth.php");
|
||||
<p>
|
||||
Cameron Hanly, Miroslav Yovchev, Steven Davies,<br />
|
||||
Henk Jongedijk, James Currie, Martin Nicholls,<br />
|
||||
Steven Davies, Thom Michelbrink
|
||||
Steven Davies, Thom Michelbrink, Tijn Kuyper
|
||||
</p>
|
||||
<h1>3rd Parties</h1>
|
||||
<p>
|
||||
|
@@ -74,7 +74,7 @@ $text_h = '';
|
||||
foreach ($helplist as $key => $helpdata)
|
||||
{
|
||||
$filename = $doc_fpath.$helpdata['fname'];
|
||||
$filename_alt = $doc_fpath_alt.$$helpdata['fname'];
|
||||
$filename_alt = $doc_fpath_alt.vartrue($$helpdata['fname']);
|
||||
|
||||
if(is_readable($filename))
|
||||
$tmp = file_get_contents($filename);
|
||||
|
@@ -40,7 +40,7 @@ if(isset($_POST['submit_cancel_show']))
|
||||
|
||||
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
|
||||
|
||||
if($_GET['action'] == 'nav' && e_AJAX_REQUEST) //XXX Doesn't work correctly inside the class for some reason
|
||||
if(vartrue($_GET['action']) == 'nav' && e_AJAX_REQUEST) //XXX Doesn't work correctly inside the class for some reason
|
||||
{
|
||||
define("e_IFRAME",true);
|
||||
// require_once(e_ADMIN."auth.php");
|
||||
@@ -518,13 +518,13 @@ class media_form_ui extends e_admin_form_ui
|
||||
return;
|
||||
}
|
||||
|
||||
$tagid = $_GET['tagid'];
|
||||
$tagid = vartrue($_GET['tagid']);
|
||||
$path = $this->getController()->getListModel()->get('media_url');
|
||||
$title = $this->getController()->getListModel()->get('media_name');
|
||||
$id = $this->getController()->getListModel()->get('media_id');
|
||||
$preview = basename($path);
|
||||
|
||||
$bbcode = ($_GET['bbcode']=='file') ? "file" : "";
|
||||
$bbcode = (vartrue($_GET['bbcode']) == 'file') ? "file" : "";
|
||||
// $save = ($_GET['bbcode']!='file') ? "e-dialog-save" : "";
|
||||
// e-dialog-close
|
||||
$text = $this->renderValue('options',$value,'',$id);
|
||||
|
@@ -116,7 +116,7 @@ if($_POST)
|
||||
|
||||
|
||||
|
||||
if ($message != "")
|
||||
if (vartrue($message) != "")
|
||||
{
|
||||
echo $ns -> tablerender('Updated', "<div style='text-align:center'><b>".$message."</b></div><br /><br />");
|
||||
}
|
||||
@@ -126,7 +126,7 @@ if($_POST)
|
||||
if (!isset($_GET['configure']))
|
||||
{
|
||||
$men->menuScanMenus();
|
||||
$text .= $men->menuRenderMessage();
|
||||
$text = $men->menuRenderMessage();
|
||||
$text .= $men->menuSelectLayout();
|
||||
$text .= $men->menuVisibilityOptions();
|
||||
$text .= $men->menuInstanceParameters();
|
||||
|
@@ -861,14 +861,14 @@ class pluginManager{
|
||||
$text = "
|
||||
<form action='".e_SELF."?".e_QUERY."' id='core-plugin-list-form' method='post'>
|
||||
<fieldset id='core-plugin-list'>
|
||||
<legend class='e-hideme'>".$caption."</legend>
|
||||
<legend class='e-hideme'>".vartrue($caption)."</legend>
|
||||
<table class='table adminlist'>
|
||||
".$frm->colGroup($this->fields,$this->fieldpref).
|
||||
$frm->thead($this->fields,$this->fieldpref)."
|
||||
<tbody>
|
||||
";
|
||||
|
||||
if($pluginRenderPlugin)
|
||||
if(vartrue($pluginRenderPlugin))
|
||||
{
|
||||
$text .= $pluginRenderPlugin;
|
||||
}
|
||||
|
@@ -103,17 +103,17 @@ else {
|
||||
|
||||
$mode = (e_QUERY) ? e_QUERY :"main" ;
|
||||
|
||||
if($_POST['selectadmin'])
|
||||
if(vartrue($_POST['selectadmin']))
|
||||
{
|
||||
$mode = "admin";
|
||||
}
|
||||
|
||||
if($_POST['upload'])
|
||||
if(vartrue($_POST['upload']))
|
||||
{
|
||||
$mode = "choose";
|
||||
}
|
||||
|
||||
if($_POST['selectmain'] || varset($_POST['setUploadTheme']))
|
||||
if(vartrue($_POST['selectmain']) || varset($_POST['setUploadTheme']))
|
||||
{
|
||||
$mode = "main";
|
||||
}
|
||||
|
@@ -20,7 +20,7 @@
|
||||
/**
|
||||
* @package e107
|
||||
* @subpackage admin
|
||||
* @version $Id$;
|
||||
* @version $Id$;
|
||||
*
|
||||
* Update routines from older e107 versions to current.
|
||||
*
|
||||
@@ -306,8 +306,8 @@ function update_706_to_800($type='')
|
||||
// List of DB tables newly required (defined in core_sql.php) (The existing dblog table gets renamed)
|
||||
// No Longer required. - automatically checked against core_sql.php.
|
||||
// $new_tables = array('audit_log', 'dblog', 'news_rewrite', 'core_media', 'core_media_cat','cron', 'mail_recipients', 'mail_content');
|
||||
|
||||
// List of core prefs that need to be converted from serialized to e107ArrayStorage.
|
||||
|
||||
// List of core prefs that need to be converted from serialized to e107ArrayStorage.
|
||||
$serialized_prefs = array("'emote'", "'menu_pref'", "'search_prefs'", "'emote_default'");
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@ function update_706_to_800($type='')
|
||||
// List of changed DB tables (defined in core_sql.php)
|
||||
// No Longer required. - automatically checked against core_sql.php.
|
||||
// (primarily those which have changed significantly; for the odd field write some explicit code - it'll run faster)
|
||||
// $changed_tables = array('user', 'dblog', 'admin_log', 'userclass_classes', 'banlist', 'menus',
|
||||
// $changed_tables = array('user', 'dblog', 'admin_log', 'userclass_classes', 'banlist', 'menus',
|
||||
// 'plugin', 'news', 'news_category', 'online', 'page', 'links', 'comments');
|
||||
|
||||
|
||||
@@ -332,7 +332,7 @@ function update_706_to_800($type='')
|
||||
// key = plugin directory name. Data = comma-separated list of tables to check
|
||||
// (primarily those which have changed significantly; for the odd field write some explicit code - it'll run faster)
|
||||
// No Longer required. - automatically checked by db-verify
|
||||
/* $pluginChangedTables = array('linkwords' => 'linkwords',
|
||||
/* $pluginChangedTables = array('linkwords' => 'linkwords',
|
||||
'featurebox' => 'featurebox',
|
||||
'links_page' => 'links_page',
|
||||
'poll' => 'polls',
|
||||
@@ -340,7 +340,7 @@ function update_706_to_800($type='')
|
||||
);
|
||||
|
||||
*/
|
||||
/*
|
||||
/*
|
||||
$setCorePrefs = array( //modified prefs during upgrade.
|
||||
'adminstyle' => 'infopanel',
|
||||
'admintheme' => 'bootstrap',
|
||||
@@ -357,16 +357,16 @@ function update_706_to_800($type='')
|
||||
|
||||
|
||||
$do_save = TRUE;
|
||||
|
||||
|
||||
// List of changed menu locations.
|
||||
|
||||
|
||||
// List of changed menu locations.
|
||||
$changeMenuPaths = array(
|
||||
array('oldpath' => 'siteinfo_menu', 'newpath' => 'siteinfo', 'menu' => 'sitebutton_menu'),
|
||||
array('oldpath' => 'siteinfo_menu', 'newpath' => 'siteinfo', 'menu' => 'compliance_menu'),
|
||||
array('oldpath' => 'siteinfo_menu', 'newpath' => 'siteinfo', 'menu' => 'powered_by_menu'),
|
||||
array('oldpath' => 'siteinfo_menu', 'newpath' => 'siteinfo', 'menu' => 'sitebutton_menu'),
|
||||
array('oldpath' => 'siteinfo_menu', 'newpath' => 'siteinfo', 'menu' => 'counter_menu'),
|
||||
array('oldpath' => 'siteinfo_menu', 'newpath' => 'siteinfo', 'menu' => 'latestnews_menu'),
|
||||
array('oldpath' => 'siteinfo_menu', 'newpath' => 'siteinfo', 'menu' => 'latestnews_menu'),
|
||||
array('oldpath' => 'compliance_menu', 'newpath' => 'siteinfo', 'menu' => 'compliance_menu'),
|
||||
array('oldpath' => 'powered_by_menu', 'newpath' => 'siteinfo', 'menu' => 'powered_by_menu'),
|
||||
array('oldpath' => 'sitebutton_menu', 'newpath' => 'siteinfo', 'menu' => 'sitebutton_menu'),
|
||||
@@ -377,7 +377,7 @@ function update_706_to_800($type='')
|
||||
array('oldpath' => 'other_news_menu', 'newpath' => 'news', 'menu' => 'other_news_menu'),
|
||||
array('oldpath' => 'other_news_menu', 'newpath' => 'news', 'menu' => 'other_news2_menu')
|
||||
|
||||
);
|
||||
);
|
||||
|
||||
|
||||
// List of DB tables (key) and field (value) which need changing to accommodate IPV6 addresses
|
||||
@@ -395,7 +395,7 @@ function update_706_to_800($type='')
|
||||
|
||||
if (!$just_check)
|
||||
{
|
||||
foreach($setCorePrefs as $k=>$v)
|
||||
foreach(vartrue($setCorePrefs) as $k=>$v)
|
||||
{
|
||||
$pref[$k] = $v;
|
||||
}
|
||||
@@ -615,32 +615,32 @@ function update_706_to_800($type='')
|
||||
|
||||
// Add index to download history
|
||||
// Deprecated by db-verify-class
|
||||
// if (FALSE !== ($temp = addIndexToTable('download_requests', 'download_request_datestamp', $just_check, $updateMessages)))
|
||||
// {
|
||||
// if ($just_check)
|
||||
// {
|
||||
// return update_needed($temp);
|
||||
// }
|
||||
// if (FALSE !== ($temp = addIndexToTable('download_requests', 'download_request_datestamp', $just_check, $updateMessages)))
|
||||
// {
|
||||
// if ($just_check)
|
||||
// {
|
||||
// return update_needed($temp);
|
||||
// }
|
||||
// }
|
||||
|
||||
// Extra index to tmp table
|
||||
// Deprecated by db-verify-class
|
||||
// if (FALSE !== ($temp = addIndexToTable('tmp', 'tmp_time', $just_check, $updateMessages)))
|
||||
// {
|
||||
// if ($just_check)
|
||||
// {
|
||||
// return update_needed($temp);
|
||||
// }
|
||||
// if (FALSE !== ($temp = addIndexToTable('tmp', 'tmp_time', $just_check, $updateMessages)))
|
||||
// {
|
||||
// if ($just_check)
|
||||
// {
|
||||
// return update_needed($temp);
|
||||
// }
|
||||
// }
|
||||
|
||||
// Extra index to rss table (if used)
|
||||
// Deprecated by db-verify-class
|
||||
// if (FALSE !== ($temp = addIndexToTable('rss', 'rss_name', $just_check, $updateMessages, TRUE)))
|
||||
// {
|
||||
// if ($just_check)
|
||||
// {
|
||||
// return update_needed($temp);
|
||||
// }
|
||||
// if (FALSE !== ($temp = addIndexToTable('rss', 'rss_name', $just_check, $updateMessages, TRUE)))
|
||||
// {
|
||||
// if ($just_check)
|
||||
// {
|
||||
// return update_needed($temp);
|
||||
// }
|
||||
// }
|
||||
|
||||
// Front page prefs (logic has changed)
|
||||
@@ -1070,8 +1070,8 @@ function update_706_to_800($type='')
|
||||
// $_pdateMessages[] = LAN_UPDATE_XX24;
|
||||
// catch_error($sql);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-- Media-manger import --------------------------------------------------
|
||||
|
||||
|
||||
@@ -1196,11 +1196,11 @@ function update_706_to_800($type='')
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$count = $sql->db_Select_gen("SELECT * FROM `#core_media_cat` WHERE `media_cat_owner` = '_common' LIMIT 1 ");
|
||||
|
||||
if($count != 1)
|
||||
|
||||
if($count != 1)
|
||||
{
|
||||
if ($just_check) return update_needed('Add Media-Manager Categories and Import existing images.');
|
||||
|
||||
@@ -1220,9 +1220,9 @@ function update_706_to_800($type='')
|
||||
mysql_query("INSERT INTO `".MPREFIX."core_media_cat` VALUES(0, 'news', 'news_thumb', 'News Thumbnails (Legacy)', 'Legacy news thumbnails. ', 253, '', 1);");
|
||||
|
||||
$med->import('news_thumb', e_IMAGE.'newspost_images',"^thumb_");
|
||||
$med->import('news',e_IMAGE.'newspost_images');
|
||||
$med->import('page',e_IMAGE.'custom');
|
||||
|
||||
$med->import('news',e_IMAGE.'newspost_images');
|
||||
$med->import('page',e_IMAGE.'custom');
|
||||
|
||||
}
|
||||
|
||||
// Check for Legacy Download Images.
|
||||
@@ -1267,35 +1267,35 @@ function update_706_to_800($type='')
|
||||
|
||||
|
||||
|
||||
|
||||
$count = $sql->db_Select_gen("SELECT * FROM `#core_media_cat` WHERE media_cat_owner='_icon' ");
|
||||
|
||||
$count = $sql->db_Select_gen("SELECT * FROM `#core_media_cat` WHERE media_cat_owner='_icon' ");
|
||||
|
||||
if(!$count)
|
||||
{
|
||||
if ($just_check) return update_needed('Add icons to media-manager');
|
||||
if(!$count)
|
||||
{
|
||||
if ($just_check) return update_needed('Add icons to media-manager');
|
||||
|
||||
$query = "INSERT INTO `".MPREFIX."core_media_cat` (`media_cat_id`, `media_cat_owner`, `media_cat_category`, `media_cat_title`, `media_cat_diz`, `media_cat_class`, `media_cat_image`, `media_cat_order`) VALUES
|
||||
(0, '_icon', '_icon_16', 'Icons 16px', 'Available where icons are used in admin. ', 253, '', 0),
|
||||
(0, '_icon', '_icon_32', 'Icons 32px', 'Available where icons are used in admin. ', 253, '', 0),
|
||||
(0, '_icon', '_icon_48', 'Icons 48px', 'Available where icons are used in admin. ', 253, '', 0),
|
||||
(0, '_icon', '_icon_64', 'Icons 64px', 'Available where icons are used in admin. ', 253, '', 0);
|
||||
";
|
||||
";
|
||||
|
||||
if(!mysql_query($query))
|
||||
{
|
||||
// echo "mysyql error";
|
||||
// error or already exists.
|
||||
}
|
||||
if(!mysql_query($query))
|
||||
{
|
||||
// echo "mysyql error";
|
||||
// error or already exists.
|
||||
}
|
||||
|
||||
$med->importIcons(e_PLUGIN);
|
||||
$med->importIcons(e_PLUGIN);
|
||||
$med->importIcons(e_IMAGE."icons/");
|
||||
$med->importIcons(e_THEME.$pref['sitetheme']."/images/");
|
||||
e107::getMessage()->addDebug("Icon category added");
|
||||
}
|
||||
|
||||
|
||||
// Any other images should be imported manually via Media Manager batch-import.
|
||||
|
||||
$med->importIcons(e_THEME.$pref['sitetheme']."/images/");
|
||||
e107::getMessage()->addDebug("Icon category added");
|
||||
}
|
||||
|
||||
|
||||
// Any other images should be imported manually via Media Manager batch-import.
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -1561,7 +1561,7 @@ function catch_error(&$target)
|
||||
|
||||
function get_default_prefs()
|
||||
{
|
||||
$xmlArray = e107::getSingleton('xmlClass')->loadXMLfile(e_CORE."xml/default_install.xml",'advanced');
|
||||
$xmlArray = e107::getSingleton('xmlClass')->loadXMLfile(e_CORE."xml/default_install.xml",'advanced');
|
||||
$pref = e107::getSingleton('xmlClass')->e107ImportPrefs($xmlArray,'core');
|
||||
return $pref;
|
||||
}
|
||||
|
@@ -172,7 +172,7 @@ function nextprev_shortcode($parm = '')
|
||||
$e_vars->caption = sprintf(defset($e_vars->caption, $e_vars->caption), $current_page, $total_pages);
|
||||
|
||||
// urldecoded by parse_str()
|
||||
$pagetitle = explode('|',$parm['pagetitle']);
|
||||
$pagetitle = explode('|', vartrue($parm['pagetitle']));
|
||||
|
||||
// new - bullet support
|
||||
$bullet = vartrue($parm['bullet'], '');
|
||||
|
@@ -4251,7 +4251,7 @@ class e_admin_ui extends e_admin_controller_ui
|
||||
}
|
||||
if(vartrue($att['validate']))
|
||||
{
|
||||
$this->validationRules[$key] = array((true === $att['validate'] ? 'required' : $att['validate']), varset($att['rule']), $att['title'], varset($att['error'], $att['help']));
|
||||
$this->validationRules[$key] = array((true === $att['validate'] ? 'required' : $att['validate']), varset($att['rule']), $att['title'], varset($att['error'], vartrue($att['help'])));
|
||||
}
|
||||
/*elseif(vartrue($att['check'])) could go?
|
||||
{
|
||||
|
@@ -68,7 +68,7 @@ class comment
|
||||
{
|
||||
require_once(e107::coreTemplatePath('comment'));
|
||||
}
|
||||
elseif(!$COMMENT_TEMPLATE) // BC template.
|
||||
elseif(!vartrue($COMMENT_TEMPLATE)) // BC template.
|
||||
{
|
||||
global $sc_style;
|
||||
/*
|
||||
|
@@ -1738,7 +1738,7 @@ class e_form
|
||||
{
|
||||
case 'options':
|
||||
|
||||
if($attributes['type']=='method') // Allow override with 'options' function.
|
||||
if($attributes['type'] == "method") // Allow override with 'options' function.
|
||||
{
|
||||
$attributes['mode'] = "read";
|
||||
if(isset($attributes['method']) && $attributes['method'] && method_exists($this, $attributes['method']))
|
||||
@@ -1865,7 +1865,7 @@ class e_form
|
||||
$opts = $wparms['__options'];
|
||||
unset($wparms['__options']);
|
||||
|
||||
if(vartrue($opts['multiple']) || $attributes['data']=='comma')
|
||||
if(vartrue($opts['multiple']) || vartrue($attributes['data']) == 'comma')
|
||||
{
|
||||
$ret = array();
|
||||
$value = is_array($value) ? $value : explode(',', $value);
|
||||
|
@@ -68,7 +68,7 @@ class e_menuManager {
|
||||
|
||||
$this->dbLayout = ($this->curLayout != $pref['sitetheme_deflayout']) ? $this->curLayout : ""; //menu_layout is left blank when it's default.
|
||||
|
||||
if(isset($_POST['menu_id']) || $_GET['id'])
|
||||
if(isset($_POST['menu_id']) || vartrue($_GET['id']))
|
||||
{
|
||||
$this->menuId = (isset($_POST['menu_id'])) ? intval($_POST['menu_id']) : intval($_GET['id']);
|
||||
}
|
||||
@@ -82,7 +82,7 @@ class e_menuManager {
|
||||
$this->menuSaveParameters();
|
||||
}
|
||||
|
||||
if ($_GET['mode'] == "deac")
|
||||
if (vartrue($_GET['mode']) == "deac")
|
||||
{
|
||||
$this->menuDeactivate();
|
||||
}
|
||||
@@ -112,7 +112,7 @@ class e_menuManager {
|
||||
|
||||
$this->menuModify();
|
||||
|
||||
if($_POST['menuActivate'])
|
||||
if(vartrue($_POST['menuActivate']))
|
||||
{
|
||||
$this->menuActivateLoc = key($_POST['menuActivate']);
|
||||
$this->menuActivateIds = $_POST['menuselect'];
|
||||
@@ -120,7 +120,7 @@ class e_menuManager {
|
||||
|
||||
}
|
||||
|
||||
if($_POST['menuSetCustomPages'])
|
||||
if(vartrue($_POST['menuSetCustomPages']))
|
||||
{
|
||||
$this->menuSetCustomPages($_POST['custompages']);
|
||||
}
|
||||
@@ -147,7 +147,7 @@ class e_menuManager {
|
||||
|
||||
$cnt = $sql->db_Select("menus", "*", "menu_location > 0 AND menu_layout = '$curLayout' ORDER BY menu_name "); // calculate height to remove vertical scroll-bar.
|
||||
|
||||
$text .= "<object type='text/html' id='menu_iframe' data='".$url."' width='100%' style='overflow:auto;width: 100%; height: ".(($cnt*90)+600)."px; border: 0px' ></object>";
|
||||
$text = "<object type='text/html' id='menu_iframe' data='".$url."' width='100%' style='overflow:auto;width: 100%; height: ".(($cnt*90)+600)."px; border: 0px' ></object>";
|
||||
|
||||
return $text;
|
||||
}
|
||||
@@ -427,7 +427,7 @@ class e_menuManager {
|
||||
}
|
||||
}
|
||||
|
||||
$this->menuAddMessage($message, E_MESSAGE_INFO);
|
||||
$this->menuAddMessage(vartrue($message), E_MESSAGE_INFO);
|
||||
|
||||
}
|
||||
|
||||
@@ -454,7 +454,7 @@ class e_menuManager {
|
||||
*/
|
||||
function menuInstanceParameters()
|
||||
{
|
||||
if(!$_GET['parmsId']) return;
|
||||
if(!vartrue($_GET['parmsId'])) return;
|
||||
$id = intval($_GET['parmsId']);
|
||||
$frm = e107::getForm();
|
||||
$sql = e107::getDb();
|
||||
@@ -494,7 +494,7 @@ class e_menuManager {
|
||||
|
||||
function menuVisibilityOptions()
|
||||
{
|
||||
if(!$_GET['vis']) return;
|
||||
if(!vartrue($_GET['vis'])) return;
|
||||
|
||||
global $sql,$ns,$frm;
|
||||
require_once(e_HANDLER."userclass_class.php");
|
||||
@@ -899,11 +899,12 @@ class e_menuManager {
|
||||
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
|
||||
function menuSelectLayout()
|
||||
{
|
||||
global $rs, $pref;
|
||||
global $rs;
|
||||
$pref = e107::getPref();
|
||||
|
||||
// onchange=\"urljump(this.options[selectedIndex].value);\"
|
||||
|
||||
$text .= "<form method='post' action='".e_SELF."?configure=".$this->curLayout."'>";
|
||||
$text = "<form method='post' action='".e_SELF."?configure=".$this->curLayout."'>";
|
||||
$text .= "<div class='buttons-bar center'>".MENLAN_30." ";
|
||||
$text .= "<select name='custom_select' id='menuManagerSelect' >\n"; // window.frames['menu_iframe'].location=this.options[selectedIndex].value ???
|
||||
|
||||
@@ -1364,7 +1365,7 @@ class e_menuManager {
|
||||
}
|
||||
}
|
||||
|
||||
$pref['menuconfig_list'] = $tmp;
|
||||
$pref['menuconfig_list'] = vartrue($tmp);
|
||||
save_prefs();
|
||||
}
|
||||
} // end of Class.
|
@@ -650,7 +650,7 @@ class themeHandler
|
||||
$var = call_user_func(array(&$this->themeConfigObj, 'config'));
|
||||
foreach ($var as $val)
|
||||
{
|
||||
$text .= "<tr><td><b>".$val['caption']."</b>:</td><td colspan='2'>".$val['html']."</td></tr>";
|
||||
$text = "<tr><td><b>".$val['caption']."</b>:</td><td colspan='2'>".$val['html']."</td></tr>";
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
@@ -44,7 +44,7 @@ else
|
||||
|
||||
$frm = e107::getForm();
|
||||
|
||||
$text .= "
|
||||
$text = "
|
||||
You can arrange where and in which order your menu items are from here.
|
||||
Use the dropdown menu to move the menus up and down until you are satisfied with their positioning.
|
||||
<br />
|
||||
|
@@ -44,14 +44,14 @@ if (!$FAQ_VIEW_TEMPLATE)
|
||||
$rs = new form;
|
||||
$cobj = new comment;
|
||||
|
||||
if (!$_GET['elan'])
|
||||
if (!vartrue($_GET['elan']))
|
||||
{
|
||||
$qs = explode(".", e_QUERY);
|
||||
$action = $qs[0];
|
||||
$id = $qs[1];
|
||||
$idx = $qs[2];
|
||||
}
|
||||
$from = ($from ? $from : 0);
|
||||
$from = (vartrue($from) ? $from : 0);
|
||||
$amount = 50;
|
||||
|
||||
if (isset($_POST['faq_submit']))
|
||||
@@ -215,7 +215,7 @@ class faq
|
||||
|
||||
$ret['title'] = FAQLAN_FAQ;
|
||||
$ret['text'] = $text;
|
||||
$ret['caption'] = $caption;
|
||||
$ret['caption'] = vartrue($caption);
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
@@ -191,7 +191,7 @@ else
|
||||
}
|
||||
}
|
||||
|
||||
if (USER && $allread != TRUE && $total_new_threads && $total_new_threads >= $total_read_threads)
|
||||
if (USER && vartrue($allread) != TRUE && $total_new_threads && $total_new_threads >= $total_read_threads)
|
||||
{
|
||||
$fVars->INFO .= "<br /><a href='".e_SELF."?mark.all.as.read'>".LAN_199.'</a>'.(e_QUERY != 'new' ? ", <a href='".e_SELF."?new'>".LAN_421."</a>" : '');
|
||||
}
|
||||
@@ -275,7 +275,7 @@ function parse_parent($parent)
|
||||
{
|
||||
$status = '( '.LAN_405.' )';
|
||||
}
|
||||
return $status;
|
||||
return vartrue($status);
|
||||
}
|
||||
|
||||
function parse_forum($f, $restricted_string = '')
|
||||
|
@@ -43,7 +43,7 @@ class gallery
|
||||
{
|
||||
$this->catList = e107::getMedia()->getCategories('gallery');
|
||||
|
||||
if(($_GET['cat']) && isset($this->catList[$_GET['cat']]))
|
||||
if((vartrue($_GET['cat'])) && isset($this->catList[$_GET['cat']]))
|
||||
{
|
||||
$this->showImages($_GET['cat']);
|
||||
}
|
||||
|
@@ -87,7 +87,7 @@ class gsitemap
|
||||
{
|
||||
$this -> instructions();
|
||||
}
|
||||
else if(!$_POST['edit'])
|
||||
else if(!vartrue($_POST['edit']))
|
||||
{
|
||||
$this -> showList();
|
||||
}
|
||||
@@ -107,7 +107,7 @@ class gsitemap
|
||||
|
||||
if (!$count)
|
||||
{
|
||||
$text .= "
|
||||
$text = "
|
||||
<form action='".e_SELF."?import' id='import' method='post'>
|
||||
".GSLAN_39."<br /><br />"
|
||||
.$frm->admin_button('import',LAN_YES,'submit')."
|
||||
@@ -151,7 +151,7 @@ class gsitemap
|
||||
foreach($glArray as $row2)
|
||||
{
|
||||
$datestamp = $gen->convert_date($row2['gsitemap_lastmod'], "short");
|
||||
$rowStyle = ($rowStyle == "odd") ? "even" : "odd";
|
||||
$rowStyle = (vartrue($rowStyle) == "odd") ? "even" : "odd";
|
||||
|
||||
$text .= "<tr class='{$rowStyle}'>
|
||||
<td style='; text-align: center;'>".$row2['gsitemap_id'] ."</td>
|
||||
@@ -457,7 +457,7 @@ class gsitemap
|
||||
|
||||
for ($i=0.1; $i<1.0; $i=$i+0.1)
|
||||
{
|
||||
$sel = ($editArray['gsitemap_priority'] == number_format($i,1))? "selected='selected'" : "";
|
||||
$sel = (vartrue($editArray['gsitemap_priority']) == number_format($i,1))? "selected='selected'" : "";
|
||||
$text .= "<option value='".number_format($i,1)."' $sel>".number_format($i,1)."</option>\n";
|
||||
};
|
||||
|
||||
@@ -467,7 +467,7 @@ class gsitemap
|
||||
<select class='tbox' name='import_freq' >\n";
|
||||
foreach($this->freq_list as $k=>$fq)
|
||||
{
|
||||
$sel = ($editArray['gsitemap_freq'] == $k)? "selected='selected'" : "";
|
||||
$sel = (vartrue($editArray['gsitemap_freq']) == $k)? "selected='selected'" : "";
|
||||
$text .= "<option value='{$k}' {$sel}>{$fq}</option>\n";
|
||||
}
|
||||
|
||||
|
@@ -286,7 +286,7 @@ function data_type_select($name,$value)
|
||||
switch ($action)
|
||||
{
|
||||
case 'config' :
|
||||
$text = "<div style='text-align:center'>
|
||||
$text = "
|
||||
<form method='post' action='".e_SELF."'>
|
||||
<table class='table adminform'>
|
||||
<colgroup>
|
||||
@@ -296,7 +296,7 @@ switch ($action)
|
||||
|
||||
<tr>
|
||||
<td>".ADSTAT_L4."</td>
|
||||
<td style='text-align: right;'>
|
||||
<td>
|
||||
<input type='radio' name='statActivate' value='1'".($pref['statActivate'] ? " checked='checked'" : "")." /> ".ADSTAT_ON."
|
||||
<input type='radio' name='statActivate' value='0'".(!$pref['statActivate'] ? " checked='checked'" : "")." /> ".ADSTAT_OFF."
|
||||
</td>
|
||||
@@ -304,12 +304,12 @@ switch ($action)
|
||||
|
||||
<tr>
|
||||
<td>".ADSTAT_L18."</td>
|
||||
<td style='text-align: right;'>".r_userclass("statUserclass", $pref['statUserclass'],'off','public, member, admin, classes')."</td>
|
||||
<td>".r_userclass("statUserclass", $pref['statUserclass'],'off','public, member, admin, classes')."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>".ADSTAT_L20."</td>
|
||||
<td style='text-align: right;'>
|
||||
<td>
|
||||
<input type='radio' name='statCountAdmin' value='1'".($pref['statCountAdmin'] ? " checked='checked'" : "")." /> ".ADSTAT_ON."
|
||||
<input type='radio' name='statCountAdmin' value='0'".(!$pref['statCountAdmin'] ? " checked='checked'" : "")." /> ".ADSTAT_OFF."
|
||||
</td>
|
||||
@@ -317,14 +317,14 @@ switch ($action)
|
||||
|
||||
<tr>
|
||||
<td>".ADSTAT_L21."</td>
|
||||
<td style='text-align: right;'>
|
||||
<td>
|
||||
<input class='tbox' type='text' name='statDisplayNumber' size='8' value='".$pref['statDisplayNumber']."' maxlength='3' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>".ADSTAT_L5."</td>
|
||||
<td style='text-align: right'>
|
||||
<td>
|
||||
".gen_select(ADSTAT_L6, 'statBrowser',$pref['statBrowser'])
|
||||
.gen_select(ADSTAT_L7, 'statOs',$pref['statOs'])
|
||||
.gen_select(ADSTAT_L8, 'statScreen',$pref['statScreen'])
|
||||
@@ -340,13 +340,13 @@ switch ($action)
|
||||
|
||||
<tr>
|
||||
<td>".ADSTAT_L78."<br /><span class='smalltext'>".ADSTAT_L79."</span></td>
|
||||
<td style='text-align: right;'>
|
||||
<td>
|
||||
<input type='checkbox' name='statPrevMonth' value='1'".(varset($pref['statPrevMonth'],0) ? " checked='checked'" : "")." />
|
||||
</td></tr>
|
||||
|
||||
<tr>
|
||||
<td>".ADSTAT_L12."<br /><span class='smalltext'>".ADSTAT_L13."</span></td>
|
||||
<td style='text-align: right;'>
|
||||
<td>
|
||||
".ADSTAT_L14."<input type='checkbox' name='wipe[statWipePage]' value='1' /><br />
|
||||
".ADSTAT_L6."<input type='checkbox' name='wipe[statWipeBrowser]' value='1' /><br />
|
||||
".ADSTAT_L7." <input type='checkbox' name='wipe[statWipeOs]' value='1' /><br />
|
||||
@@ -360,7 +360,7 @@ switch ($action)
|
||||
|
||||
<tr>
|
||||
<td>".ADSTAT_L26."<br /><span class='smalltext'>".ADSTAT_L27."</span></td>
|
||||
<td style='text-align: right;'><input class='button' type='submit' name='openRemPageD' value='".ADSTAT_L28."' />
|
||||
<td><input class='button' type='submit' name='openRemPageD' value='".ADSTAT_L28."' />
|
||||
</td>
|
||||
</tr>
|
||||
";
|
||||
@@ -369,10 +369,9 @@ switch ($action)
|
||||
</tr>
|
||||
</table>
|
||||
<div class='buttons-bar center'>
|
||||
".$frm->admin_button('updatesettings', LAN_UPDATE, 'update')."
|
||||
".$frm->admin_button('updatesettings', LAN_UPDATE, 'update')."
|
||||
</div>
|
||||
</form>
|
||||
</div>";
|
||||
</form>";
|
||||
|
||||
$ns->tablerender(ADSTAT_L16, $text);
|
||||
break; // case config
|
||||
|
@@ -938,20 +938,20 @@ class siteStats
|
||||
require($logfile);
|
||||
}
|
||||
|
||||
$this -> filesiteTotal = $siteTotal;
|
||||
$this -> filesiteUnique = $siteUnique;
|
||||
$this -> filesiteTotal = vartrue($siteTotal);
|
||||
$this -> filesiteUnique = vartrue($siteUnique);
|
||||
|
||||
/* set order var */
|
||||
$this -> order = $order;
|
||||
|
||||
$this -> fileInfo = $pageInfo;
|
||||
$this -> fileBrowserInfo = $browserInfo;
|
||||
$this -> fileOsInfo = $osInfo;
|
||||
$this -> fileScreenInfo = $screenInfo;
|
||||
$this -> fileDomainInfo = $domainInfo;
|
||||
$this -> fileReferInfo = $refInfo;
|
||||
$this -> fileQueryInfo = $searchInfo;
|
||||
$this -> fileRecent = $visitInfo;
|
||||
$this -> fileInfo = vartrue($pageInfo);
|
||||
$this -> fileBrowserInfo = vartrue($browserInfo);
|
||||
$this -> fileOsInfo = vartrue($osInfo);
|
||||
$this -> fileScreenInfo = vartrue($screenInfo);
|
||||
$this -> fileDomainInfo = vartrue($domainInfo);
|
||||
$this -> fileReferInfo = vartrue($refInfo);
|
||||
$this -> fileQueryInfo = vartrue($searchInfo);
|
||||
$this -> fileRecent = vartrue($visitInfo);
|
||||
|
||||
/* get main stat info from database */
|
||||
if($sql -> db_Select('logstats', 'log_data', "log_id='pageTotal'"))
|
||||
|
@@ -26,67 +26,67 @@ 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();
|
||||
|
||||
if(isset($_POST['updatesettings']))
|
||||
{
|
||||
$pref['nfp_display'] = $_POST['nfp_display'];
|
||||
$pref['nfp_caption'] = $_POST['nfp_caption'];
|
||||
$pref['nfp_amount'] = $_POST['nfp_amount'];
|
||||
$pref['nfp_layer'] = $_POST['nfp_layer'];
|
||||
$pref['nfp_posts'] = $_POST['nfp_posts'];
|
||||
$pref['nfp_layer'] = vartrue($_POST['nfp_layer']);
|
||||
$pref['nfp_posts'] = vartrue($_POST['nfp_posts']);
|
||||
$pref['nfp_layer_height'] = ($_POST['nfp_layer_height'] ? $_POST['nfp_layer_height'] : 200);
|
||||
save_prefs();
|
||||
$message = "".NFPM_L14."";
|
||||
$message = "".NFPM_L13."";
|
||||
}
|
||||
|
||||
if($message)
|
||||
if(vartrue($message))
|
||||
{
|
||||
$ns->tablerender("", "<div style='text-align:center'><b>$message</b></div>");
|
||||
}
|
||||
|
||||
|
||||
$text = "<div style='text-align:center'>
|
||||
$text = "
|
||||
<form method='post' action='".e_SELF."?".e_QUERY."' id='menu_conf_form'>
|
||||
<table style='width:85%' class='fborder'>
|
||||
<table class='table adminform'>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".NFPM_L4."</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td>".NFPM_L4."</td>
|
||||
<td>
|
||||
<select class='tbox' name='nfp_display'>".($pref['nfp_display'] == "0" ? "<option value='0' selected='selected'>".NFPM_L5."</option>" : "<option value='0'>".NFPM_L5."</option>").($pref['nfp_display'] == "1" ? "<option value='1' selected='selected'>".NFPM_L6."</option>" : "<option value='1'>".NFPM_L6."</option>").($pref['nfp_display'] == "2" ? "<option value='2' selected='selected'>".NFPM_L7."</option>" : "<option value='2'>".NFPM_L7."</option>")."</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".NFPM_L8.": </td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td>".NFPM_L8.": </td>
|
||||
<td>
|
||||
<input class='tbox' type='text' name='nfp_caption' size='20' value='".$pref['nfp_caption']."' maxlength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".NFPM_L9.": </td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td>".NFPM_L9.": </td>
|
||||
<td>
|
||||
<input class='tbox' type='text' name='nfp_amount' size='6' value='".$pref['nfp_amount']."' maxlength='3' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:40%'>".NFPM_L15." </td>
|
||||
<td class='forumheader3' style='width:60%'>".($pref['nfp_posts'] ? "<input type='checkbox' name='nfp_posts' value='1' checked='checked' />" : "<input type='checkbox' name='nfp_posts' value='1' />")."
|
||||
<td>".NFPM_L14."</td>
|
||||
<td>".(vartrue($pref['nfp_posts']) ? "<input type='checkbox' name='nfp_posts' value='1' checked='checked' />" : "<input type='checkbox' name='nfp_posts' value='1' />")."<span class='field-help'>".NFPM_L15."</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:40%'>".NFPM_L10.": </td>
|
||||
<td class='forumheader3' style='width:60%'>".($pref['nfp_layer'] ? "<input type='checkbox' name='nfp_layer' value='1' checked='checked' />" : "<input type='checkbox' name='nfp_layer' value='1' />")." ".NFPM_L11.": <input class='tbox' type='text' name='nfp_layer_height' size='8' value='".$pref['nfp_layer_height']."' maxlength='3' />
|
||||
<td>".NFPM_L10.": </td>
|
||||
<td>".(vartrue($pref['nfp_layer']) ? "<input type='checkbox' name='nfp_layer' value='1' checked='checked' />" : "<input type='checkbox' name='nfp_layer' value='1' />")." ".NFPM_L11.": <input class='tbox' type='text' name='nfp_layer_height' size='8' value='".vartrue($pref['nfp_layer_height'])."' maxlength='3' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' class='forumheader' style='text-align:center'><input class='button' type='submit' name='updatesettings' value='".NFPM_L13."' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
<div class='buttons-bar center'>
|
||||
".$frm->admin_button('updatesettings', LAN_UPDATE, 'update')."
|
||||
</div>
|
||||
</form> ";
|
||||
$ns->tablerender(NFPM_L12, $text);
|
||||
|
||||
require_once (e_ADMIN."footer.php");
|
||||
|
@@ -20,9 +20,9 @@ define("NFPM_L9", "Number of new posts to display?");
|
||||
define("NFPM_L10", "Display inside scrolling layer?");
|
||||
define("NFPM_L11", "Layer height");
|
||||
define("NFPM_L12", "New Forum Posts Configuration");
|
||||
define("NFPM_L13", "Update New Forum Posts Settings");
|
||||
define("NFPM_L14", "New Forum Posts settings updated.");
|
||||
define("NFPM_L15", "Check to display latest forum posts.<br />Default is latest topics.");
|
||||
define("NFPM_L13", "New Forum Posts settings updated.");
|
||||
define("NFPM_L14", "Check to display latest forum posts.");
|
||||
define("NFPM_L15", "Default is latest topics.");
|
||||
define('NFPM_L16', '[user deleted]');
|
||||
define('NFPM_L17', 'New Posts on Popular Thread');
|
||||
define('NFPM_L18', 'New Posts');
|
||||
|
@@ -80,7 +80,8 @@ function getDefaultPDFPrefs()
|
||||
|
||||
function getPDFPrefs()
|
||||
{
|
||||
global $sql, $eArrayStorage;
|
||||
global $eArrayStorage;
|
||||
$sql = e107::getDb();
|
||||
|
||||
if(!is_object($sql)){ $sql = new db; }
|
||||
$num_rows = $sql -> db_Select("core", "*", "e107_name='pdf' ");
|
||||
@@ -184,27 +185,26 @@ foreach ($fontList as $font => $info)
|
||||
|
||||
|
||||
$text = "
|
||||
<div style='text-align:center'>
|
||||
".$rs -> form_open("post", e_SELF, "pdfform", "", "enctype='multipart/form-data'")."
|
||||
<table class='fborder' style='".ADMIN_WIDTH."'>
|
||||
<table class='table adminform'>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_5."</td>
|
||||
<td class='forumheader3' style='width:70%;'>".$rs -> form_text("pdf_margin_left", 10, $pdfpref['pdf_margin_left'], 10)."</td>
|
||||
<td>".PDF_LAN_5."</td>
|
||||
<td>".$rs -> form_text("pdf_margin_left", 10, $pdfpref['pdf_margin_left'], 10)."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_6."</td>
|
||||
<td class='forumheader3' style='width:70%;'>".$rs -> form_text("pdf_margin_right", 10, $pdfpref['pdf_margin_right'], 10)."</td>
|
||||
<td>".PDF_LAN_6."</td>
|
||||
<td>".$rs -> form_text("pdf_margin_right", 10, $pdfpref['pdf_margin_right'], 10)."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_7."</td>
|
||||
<td class='forumheader3' style='width:70%;'>".$rs -> form_text("pdf_margin_top", 10, $pdfpref['pdf_margin_top'], 10)."</td>
|
||||
<td>".PDF_LAN_7."</td>
|
||||
<td>".$rs -> form_text("pdf_margin_top", 10, $pdfpref['pdf_margin_top'], 10)."</td>
|
||||
</tr>";
|
||||
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_8."</td>
|
||||
<td class='forumheader3' style='width:70%;'>
|
||||
<td>".PDF_LAN_8."</td>
|
||||
<td>
|
||||
".$rs -> form_select_open("pdf_font_family");
|
||||
foreach($coreList as $font => $info)
|
||||
{
|
||||
@@ -215,70 +215,68 @@ $text .= "
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_9."</td>
|
||||
<td class='forumheader3' style='width:70%;'>".$rs -> form_text("pdf_font_size", 10, $pdfpref['pdf_font_size'], 10)."</td>
|
||||
<td>".PDF_LAN_9."</td>
|
||||
<td>".$rs -> form_text("pdf_font_size", 10, $pdfpref['pdf_font_size'], 10)."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_10."</td>
|
||||
<td class='forumheader3' style='width:70%;'>".$rs -> form_text("pdf_font_size_sitename", 10, $pdfpref['pdf_font_size_sitename'], 10)."</td>
|
||||
<td>".PDF_LAN_10."</td>
|
||||
<td>".$rs -> form_text("pdf_font_size_sitename", 10, $pdfpref['pdf_font_size_sitename'], 10)."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_11."</td>
|
||||
<td class='forumheader3' style='width:70%;'>".$rs -> form_text("pdf_font_size_page_url", 10, $pdfpref['pdf_font_size_page_url'], 10)."</td>
|
||||
<td>".PDF_LAN_11."</td>
|
||||
<td>".$rs -> form_text("pdf_font_size_page_url", 10, $pdfpref['pdf_font_size_page_url'], 10)."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_12."</td>
|
||||
<td class='forumheader3' style='width:70%;'>".$rs -> form_text("pdf_font_size_page_number", 10, $pdfpref['pdf_font_size_page_number'], 10)."</td>
|
||||
<td>".PDF_LAN_12."</td>
|
||||
<td>".$rs -> form_text("pdf_font_size_page_number", 10, $pdfpref['pdf_font_size_page_number'], 10)."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_13."</td>
|
||||
<td class='forumheader3' style='width:70%;'>
|
||||
<td>".PDF_LAN_13."</td>
|
||||
<td>
|
||||
".$rs -> form_radio("pdf_show_logo", "1", ($pdfpref['pdf_show_logo'] ? "1" : "0"), "", "").PDF_LAN_3."
|
||||
".$rs -> form_radio("pdf_show_logo", "0", ($pdfpref['pdf_show_logo'] ? "0" : "1"), "", "").PDF_LAN_4."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_14."</td>
|
||||
<td class='forumheader3' style='width:70%;'>
|
||||
<td>".PDF_LAN_14."</td>
|
||||
<td>
|
||||
".$rs -> form_radio("pdf_show_sitename", "1", ($pdfpref['pdf_show_sitename'] ? "1" : "0"), "", "").PDF_LAN_3."
|
||||
".$rs -> form_radio("pdf_show_sitename", "0", ($pdfpref['pdf_show_sitename'] ? "0" : "1"), "", "").PDF_LAN_4."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_15."</td>
|
||||
<td class='forumheader3' style='width:70%;'>
|
||||
<td>".PDF_LAN_15."</td>
|
||||
<td>
|
||||
".$rs -> form_radio("pdf_show_page_url", "1", ($pdfpref['pdf_show_page_url'] ? "1" : "0"), "", "").PDF_LAN_3."
|
||||
".$rs -> form_radio("pdf_show_page_url", "0", ($pdfpref['pdf_show_page_url'] ? "0" : "1"), "", "").PDF_LAN_4."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_16."</td>
|
||||
<td class='forumheader3' style='width:70%;'>
|
||||
<td>".PDF_LAN_16."</td>
|
||||
<td>
|
||||
".$rs -> form_radio("pdf_show_page_number", "1", ($pdfpref['pdf_show_page_number'] ? "1" : "0"), "", "").PDF_LAN_3."
|
||||
".$rs -> form_radio("pdf_show_page_number", "0", ($pdfpref['pdf_show_page_number'] ? "0" : "1"), "", "").PDF_LAN_4."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; white-space:nowrap;'>".PDF_LAN_20."</td>
|
||||
<td class='forumheader3' style='width:70%;'>
|
||||
<td>".PDF_LAN_20."</td>
|
||||
<td>
|
||||
".$rs -> form_radio("pdf_error_reporting", "1", ($pdfpref['pdf_error_reporting'] ? "1" : "0"), "", "").PDF_LAN_3."
|
||||
".$rs -> form_radio("pdf_error_reporting", "0", ($pdfpref['pdf_error_reporting'] ? "0" : "1"), "", "").PDF_LAN_4."
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='text-align:center' class='forumheader' colspan='2'>".$rs -> form_button("submit", "update_pdf", PDF_LAN_17)."</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<div class='buttons-bar center'>
|
||||
".$rs -> form_button("submit", "update_pdf", PDF_LAN_17)."
|
||||
</div>
|
||||
".$rs -> form_close()."
|
||||
</div>";
|
||||
";
|
||||
|
||||
$ns -> tablerender(PDF_LAN_2, $text);
|
||||
|
||||
|
||||
$text = "<div style='text-align:center;>\n
|
||||
<table cellpadding='0' cellspacing='0' class='adminform'>
|
||||
$text = "
|
||||
<table class='table adminform'>
|
||||
<tr><th>".PDF_LAN_21."</th><th>".PDF_LAN_22."</th><th>".PDF_LAN_23."</th>
|
||||
<th>".PDF_LAN_24."</th><th title='".PDF_LAN_25."'>".PDF_LAN_26."</th></tr>\n";
|
||||
|
||||
@@ -292,7 +290,7 @@ foreach ($fontList as $font => $info)
|
||||
$text .= "<tr><td>{$font}</td><td>{$info['info']['type']}</td><td>{$variants}</td><td>{$info['info']['weight']}</td><td>{$info['info']['codes']}</td></tr>\n";
|
||||
}
|
||||
|
||||
$text .= "</table></div>";
|
||||
$text .= "</table>";
|
||||
$ns->tablerender(PDF_LAN_31, $text);
|
||||
|
||||
|
||||
|
@@ -312,7 +312,6 @@ if(!isset($RSS_ADMIN_LIST_FOOTER))
|
||||
if(!isset($RSS_ADMIN_CREATE_TABLE))
|
||||
{
|
||||
$RSS_ADMIN_CREATE_TABLE = "
|
||||
<div style='text-align:center;'>
|
||||
<form action='".e_SELF.(e_QUERY ? "?".e_QUERY : "")."' id='dataform' method='post' >
|
||||
<table class='table adminform'>
|
||||
<tr>
|
||||
@@ -345,7 +344,7 @@ if(!isset($RSS_ADMIN_CREATE_TABLE))
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader' colspan='2' style='text-align:center;'>{RSS_ADMIN_FORM_CREATEBUTTON}</td>
|
||||
<td colspan='2' style='text-align:center;'>{RSS_ADMIN_FORM_CREATEBUTTON}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
@@ -356,49 +355,39 @@ if(!isset($RSS_ADMIN_CREATE_TABLE))
|
||||
if(!isset($RSS_ADMIN_OPTIONS_TABLE))
|
||||
{
|
||||
$RSS_ADMIN_OPTIONS_TABLE = "
|
||||
<div style='text-align:center;'>
|
||||
<form action='".e_SELF.(e_QUERY ? "?".e_QUERY : "")."' id='dataform' method='post' >
|
||||
<table class='table adminlist'>
|
||||
<tr>
|
||||
<td class='fcaption'>".LAN_OPTIONS."</td>
|
||||
<td class='fcaption'>".RSS_LAN_ADMIN_14."</td>
|
||||
</tr>
|
||||
<table class='table adminform'>
|
||||
<tr>
|
||||
<td>".RSS_LAN_ADMIN_13."</td>
|
||||
<td>
|
||||
<input type='checkbox' name='rss_othernews' value='1' ".($pref['rss_othernews'] == 1 ? " checked='checked' " : "")." />
|
||||
<input type='checkbox' name='rss_othernews' value='1' ".(vartrue($pref['rss_othernews']) == 1 ? " checked='checked' " : "")." />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>".RSS_LAN_ADMIN_19."</td>
|
||||
<td>
|
||||
<input type='checkbox' name='rss_summarydiz' value='1' ".($pref['rss_summarydiz'] == 1 ? " checked='checked' " : "")." />
|
||||
<input type='checkbox' name='rss_summarydiz' value='1' ".(vartrue($pref['rss_summarydiz']) == 1 ? " checked='checked' " : "")." />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>".RSS_LAN_ADMIN_33."</td>
|
||||
<td>
|
||||
<input type='checkbox' name='rss_shownewsimage' value='1' ".($pref['rss_shownewsimage'] == 1 ? " checked='checked' " : "")." />
|
||||
<input type='checkbox' name='rss_shownewsimage' value='1' ".(vartrue($pref['rss_shownewsimage']) == 1 ? " checked='checked' " : "")." />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style='vertical-align:top'>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<div class='buttons-bar center'>
|
||||
".$frm->admin_button('updatesettings',LAN_SAVE,'update')."
|
||||
".$frm->admin_button('updatesettings', LAN_UPDATE, 'update')."
|
||||
</div>
|
||||
</form>
|
||||
</div>";
|
||||
</form>";
|
||||
}
|
||||
|
||||
// Admin : rss import
|
||||
if(!isset($RSS_ADMIN_IMPORT_HEADER))
|
||||
{
|
||||
$RSS_ADMIN_IMPORT_HEADER = "
|
||||
<div style='text-align:center;'>
|
||||
<form action='".e_SELF."' id='imlistform' method='post' >
|
||||
<table class='table adminlist'>
|
||||
<table class='table adminform'>
|
||||
<tr>
|
||||
<th>".RSS_LAN_ADMIN_16."</td>
|
||||
<th>".RSS_LAN_ADMIN_3."</td>
|
||||
@@ -424,10 +413,10 @@ if(!isset($RSS_ADMIN_IMPORT_FOOTER))
|
||||
$RSS_ADMIN_IMPORT_FOOTER = "
|
||||
</table>
|
||||
<div class='buttons-bar center'>
|
||||
".$frm->admin_button('import_rss',RSS_LAN_ADMIN_17,'submit')."
|
||||
".$frm->admin_button('import_rss',RSS_LAN_ADMIN_17,'submit')."
|
||||
</div>
|
||||
</form>
|
||||
</div>";
|
||||
";
|
||||
}
|
||||
|
||||
// Listing
|
||||
|
@@ -120,13 +120,14 @@ $TEMPLATE_TAGWORDS['menu_cloud'] = "
|
||||
|
||||
$TEMPLATE_TAGWORDS['admin_options'] = "
|
||||
<form method='post' action='".e_SELF.(e_QUERY ? "?".e_QUERY : "")."'>
|
||||
<table cellpadding='0' cellspacing='0' class='adminform'>
|
||||
<table class='table adminform'>
|
||||
<colgroup span='2'>
|
||||
<col class='col-label' />
|
||||
<col class='col-control' />
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td class='fcaption' colspan='2'>".LAN_TAG_OPT_25."</td>
|
||||
<td colspan='2'>".LAN_TAG_OPT_25."</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>".LAN_TAG_OPT_2."</td>
|
||||
@@ -137,7 +138,7 @@ $TEMPLATE_TAGWORDS['admin_options'] = "
|
||||
<td>{TAG_OPT_CLASS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='fcaption' colspan='2'>".LAN_TAG_OPT_16."</td>
|
||||
<td colspan='2'>".LAN_TAG_OPT_16."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>".LAN_TAG_OPT_4."</td>
|
||||
@@ -158,7 +159,7 @@ $TEMPLATE_TAGWORDS['admin_options'] = "
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='fcaption' colspan='2'>".LAN_TAG_OPT_17."</td>
|
||||
<td colspan='2'>".LAN_TAG_OPT_17."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>".LAN_TAG_OPT_18."</td>
|
||||
@@ -180,21 +181,21 @@ $TEMPLATE_TAGWORDS['admin_options'] = "
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='fcaption' colspan='2'>".LAN_TAG_OPT_21."</td>
|
||||
<td colspan='2'>".LAN_TAG_OPT_21."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>".LAN_TAG_OPT_22."</td>
|
||||
<td>{TAG_OPT_SEPERATOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='fcaption' colspan='2'>".LAN_TAG_OPT_23."</td>
|
||||
<td colspan='2'>".LAN_TAG_OPT_23."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>".LAN_TAG_OPT_24."</td>
|
||||
<td>{TAG_OPT_ACTIVEAREAS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader' colspan='2' style='text-align:center'>{TAG_OPT_BUTTON}</td>
|
||||
<td colspan='2' style='text-align:center'>{TAG_OPT_BUTTON}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>";
|
||||
|
@@ -24,6 +24,8 @@ if (!getperms("P") || !plugInstalled('trackback'))
|
||||
include_lan(e_PLUGIN."trackback/languages/".e_LANGUAGE."_admin_trackback.php");
|
||||
|
||||
require_once(e_ADMIN."auth.php");
|
||||
|
||||
$frm = e107::getForm();
|
||||
|
||||
if (isset($_POST['updatesettings']))
|
||||
{
|
||||
@@ -53,30 +55,23 @@ if (isset($message))
|
||||
|
||||
|
||||
$text = "
|
||||
<div style='text-align:center'>
|
||||
<form method='post' action='".e_SELF."'>
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<table class='table adminform'>
|
||||
<tr>
|
||||
<td style='width:50%' class='forumheader3'>".TRACKBACK_L7."</td>
|
||||
<td style='width:50%; text-align:right' class='forumheader3'>
|
||||
<input type='radio' name='trackbackEnabled' value='1'".($pref['trackbackEnabled'] ? " checked='checked'" : "")." /> ".TRACKBACK_L5."
|
||||
<input type='radio' name='trackbackEnabled' value='0'".(!$pref['trackbackEnabled'] ? " checked='checked'" : "")." /> ".TRACKBACK_L6."
|
||||
</td>
|
||||
<td>".TRACKBACK_L7."</td>
|
||||
<td>
|
||||
<input type='radio' name='trackbackEnabled' value='1'".($pref['trackbackEnabled'] ? " checked='checked'" : "")." /> ".TRACKBACK_L5."
|
||||
<input type='radio' name='trackbackEnabled' value='0'".(!$pref['trackbackEnabled'] ? " checked='checked'" : "")." /> ".TRACKBACK_L6."
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:50%' class='forumheader3'>".TRACKBACK_L8."</td>
|
||||
<td style='width:50%; text-align:right' class='forumheader3'>
|
||||
<input size='50' class='tbox' type='text' name='trackbackString' value='".$pref['trackbackString']."' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<td colspan='2' style='text-align:center' class='forumheader'>
|
||||
<input class='button' type='submit' name='updatesettings' value='".TRACKBACK_L9."' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<td>".TRACKBACK_L8."</td>
|
||||
<td><input size='50' class='tbox' type='text' name='trackbackString' value='".$pref['trackbackString']."' /> </td>
|
||||
</table>
|
||||
<div class='buttons-bar center'>
|
||||
".$frm->admin_button('updatesettings', LAN_UPDATE, 'update')."
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
";
|
||||
|
@@ -23,7 +23,7 @@ define("TRACKBACK_L5", "On");
|
||||
define("TRACKBACK_L6", "Off");
|
||||
define("TRACKBACK_L7", "Activate trackback");
|
||||
define("TRACKBACK_L8", "Trackback URL text");
|
||||
define("TRACKBACK_L9", "Save Settings");
|
||||
//define("TRACKBACK_L9", "Save Settings");
|
||||
define("TRACKBACK_L10", "Trackback Settings");
|
||||
define("TRACKBACK_L11", "Trackback address for this post:");
|
||||
|
||||
|
Reference in New Issue
Block a user