Skip to content

Commit

Permalink
Ajustes nos códigos para PHP 7.2. #61
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusandrade committed Jan 30, 2019
1 parent 37e0a7f commit bda0bad
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
5 changes: 4 additions & 1 deletion config.php
Expand Up @@ -71,7 +71,10 @@ function addslashes_array($a){

$lang = "";
$tag = "1.3.3";


// Turn off all error reporting
error_reporting(0);

// define constants
define("VERSION", $tag);
define("USE_SERVER_PATH", false);
Expand Down
2 changes: 1 addition & 1 deletion searchHistory.php
Expand Up @@ -4,7 +4,7 @@
$translation = parse_ini_file("languages/$lang/texts.ini");

$action = $_POST['action'];
$term = stripslashes($_POST['term']);
$term = (isset($_POST['term']) ? stripslashes($_POST['term']) : null);

session_start();
if( !isset($_SESSION["searchHistory"])){
Expand Down
16 changes: 8 additions & 8 deletions templates/result.tpl
@@ -1,5 +1,5 @@
{include file="top-searchbar.tpl"}

{if $result eq ''}
<div class="noResults">
{$texts.COLLECTION_UNAVAILABLE}
Expand Down Expand Up @@ -130,7 +130,7 @@
<input type="button" value="{$texts.UNSELECT_PAGE}" onclick="unmarkAll();showhideLayers('clearAll');showhideLayers('selectAll')" />
</div>
<div class="orderBy">

<select name="sortBy" class="inputText" onchange="javascript:changeOrderBy(this);">
<option value="">{$texts.SORT_OPTIONS}</option>
{foreach from=$colectionData->sort_list->sort item=sortItem}
Expand All @@ -150,9 +150,9 @@

{if $colectionData->format_list->format|@count > 0}
<div class="format">

<select name="fmt" class="inputText" onchange="javascript:changeDisplayFormat(this);">
<option value="">{$texts.FORMAT_OPTIONS}</option>
<option value="">{$texts.FORMAT_OPTIONS}</option>
{foreach from=$colectionData->format_list->format item=formatItem}
{assign var=formatName value=$formatItem->name|strip}
{assign var=textsDisplay value=$texts.DISPLAY}
Expand Down Expand Up @@ -181,7 +181,7 @@
<div class="identificationBar">
{$texts.SEND_RESULT_TO}: <span onclick="showhideLayers('megaBox')">X</span>
</div>

<div class="optionEmail" id="option1" style="display:block;">
<ul class="menu">
<li class="active"><a href="#" onclick="showLayer('option1');hideLayer('option2');hideLayer('option3');">{$texts.SEND_BY_EMAIL}</a></li>
Expand All @@ -200,7 +200,7 @@
{assign var=fvalue value=$filterValue|replace:"\\\"":"&quot;"}
<input type="hidden" name="filter_chain[]" value="{$fvalue}">
{/foreach}

<div class="radioOptions">
<input class="" type="radio" name="option" value="from_to" checked="true"> {$texts.THIS_PAGE}
<input class="" type="radio" name="option" value="selected"> {$texts.YOUR_SELECTION}
Expand Down Expand Up @@ -262,7 +262,7 @@
<li><a href="#" onclick="hideLayer('option1');showLayer('option2');hideLayer('option3');">{$texts.PRINT}</a></li>
<li class="active"><a href="#" onclick="hideLayer('option1');hideLayer('option2');showLayer('option3');">{$texts.EXPORT}</a></li>
</ul>
<form method="post" action="export.php" name="export">
<input type="hidden" name="lang" value="{$lang}"/>
<input type="hidden" name="from" value="{$from}"/>
Expand Down Expand Up @@ -290,7 +290,7 @@
<div class="actions">
<input type="button" class="submit" onclick="showhideLayers('megaBox')" value="{$texts.CANCEL}" name="cancel"/>
<input type="submit" class="submit" value="{$texts.SEND}" name="export"/>
<input type="submit" class="submit" value="{$texts.SEND}" name="export"/>
</div>
</form>
</div>
Expand Down
3 changes: 1 addition & 2 deletions templates/top.tpl
@@ -1,6 +1,5 @@
{include file="top-header.tpl"}
<div class="container">

{include file="top-banner.tpl"}
{include file="top-breadcrumb.tpl"}

0 comments on commit bda0bad

Please sign in to comment.