diff --git a/contact.php b/contact.php index a3437b9e8..ca4c57dd6 100644 --- a/contact.php +++ b/contact.php @@ -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"); } diff --git a/e107_admin/comment.php b/e107_admin/comment.php index 3425c0c2d..af0dd6cee 100644 --- a/e107_admin/comment.php +++ b/e107_admin/comment.php @@ -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') diff --git a/e107_admin/credits.php b/e107_admin/credits.php index e70823845..311c57562 100644 --- a/e107_admin/credits.php +++ b/e107_admin/credits.php @@ -44,7 +44,7 @@ require_once(e_ADMIN."auth.php");
Cameron Hanly, Miroslav Yovchev, Steven Davies,
Henk Jongedijk, James Currie, Martin Nicholls,
- Steven Davies, Thom Michelbrink
+ Steven Davies, Thom Michelbrink, Tijn Kuyper
diff --git a/e107_admin/docs.php b/e107_admin/docs.php index 8982b3b8f..9bf80ccd1 100644 --- a/e107_admin/docs.php +++ b/e107_admin/docs.php @@ -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); diff --git a/e107_admin/image.php b/e107_admin/image.php index 2e745f9b3..3d997711a 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -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); diff --git a/e107_admin/menus.php b/e107_admin/menus.php index 3a7ff87e1..c4055324d 100644 --- a/e107_admin/menus.php +++ b/e107_admin/menus.php @@ -116,7 +116,7 @@ if($_POST) - if ($message != "") + if (vartrue($message) != "") { echo $ns -> tablerender('Updated', "