mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Remove debug code, redundant parameter
This commit is contained in:
@@ -9,9 +9,9 @@
|
|||||||
* Text processing and parsing functions
|
* Text processing and parsing functions
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $
|
||||||
* $Revision: 1.86 $
|
* $Revision: 1.87 $
|
||||||
* $Date: 2009-11-19 13:46:24 $
|
* $Date: 2009-12-07 20:48:04 $
|
||||||
* $Author: e107coders $
|
* $Author: e107steved $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if (!defined('e107_INIT')) { exit(); }
|
if (!defined('e107_INIT')) { exit(); }
|
||||||
@@ -1100,11 +1100,6 @@ class e_parse
|
|||||||
switch ($matches[2])
|
switch ($matches[2])
|
||||||
{
|
{
|
||||||
case 'php' :
|
case 'php' :
|
||||||
if (DB_INF_SHOW)
|
|
||||||
{
|
|
||||||
echo "PHP decode: ".htmlentities($matches[4])."<br /><br />";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Probably run the output through the normal processing functions - but put here so the PHP code can disable if desired
|
// Probably run the output through the normal processing functions - but put here so the PHP code can disable if desired
|
||||||
$proc_funcs = TRUE;
|
$proc_funcs = TRUE;
|
||||||
|
|
||||||
@@ -1119,10 +1114,6 @@ class e_parse
|
|||||||
{
|
{
|
||||||
$bbcode = html_entity_decode($matches[4], ENT_QUOTES, 'UTF-8');
|
$bbcode = html_entity_decode($matches[4], ENT_QUOTES, 'UTF-8');
|
||||||
}
|
}
|
||||||
if (DB_INF_SHOW)
|
|
||||||
{
|
|
||||||
echo "PHP after decode: ".htmlentities($bbcode)."<br /><br />";
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'html' :
|
case 'html' :
|
||||||
|
@@ -9,9 +9,9 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/ren_help.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/ren_help.php,v $
|
||||||
* $Revision: 1.15 $
|
* $Revision: 1.16 $
|
||||||
* $Date: 2009-11-18 01:04:43 $
|
* $Date: 2009-12-07 20:48:04 $
|
||||||
* $Author: e107coders $
|
* $Author: e107steved $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
@@ -225,32 +225,37 @@ function PreImage_Select($formid) {
|
|||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
function PreFile_Select($formid='prefile_selector',$bbcode_filedir) {
|
|
||||||
|
|
||||||
|
|
||||||
|
// Parameter '$bbcode_filedir' removed - not used in code.
|
||||||
|
function PreFile_Select($formid='prefile_selector')
|
||||||
|
{
|
||||||
require_once(e_HANDLER."userclass_class.php");
|
require_once(e_HANDLER."userclass_class.php");
|
||||||
global $IMAGES_DIRECTORY, $fl, $sql;
|
global $IMAGES_DIRECTORY, $fl, $sql;
|
||||||
// $rejecthumb = array('$.','$..','/','CVS','thumbs.db','*._$', 'index', 'null*');
|
|
||||||
|
|
||||||
$filelist = array();
|
$filelist = array();
|
||||||
$downloadList = array();
|
$downloadList = array();
|
||||||
|
|
||||||
$sql->db_Select("download", "*", "download_class != ".e_UC_NOBODY);
|
$sql->db_Select('download', '*', 'download_class != '.e_UC_NOBODY);
|
||||||
while ($row = $sql->db_Fetch()) {
|
while ($row = $sql->db_Fetch()) {
|
||||||
extract($row);
|
extract($row);
|
||||||
if($download_url)
|
if($download_url)
|
||||||
{
|
|
||||||
$filelist[] = array("id" => $download_id, "name" => $download_name, "url" => $download_url, "class" => $download_class);
|
|
||||||
$downloadList[] = $download_url;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$tmp = $fl->get_files(e_FILE."downloads/");
|
|
||||||
foreach($tmp as $value)
|
|
||||||
{
|
{
|
||||||
if(!in_array($value['fname'], $downloadList))
|
$filelist[] = array('id' => $download_id, 'name' => $download_name, 'url' => $download_url, 'class' => $download_class);
|
||||||
{
|
$downloadList[] = $download_url;
|
||||||
$filelist[] = array("id" => 0, "name" => $value['fname'], "url" => $value['fname']);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$tmp = $fl->get_files(e_FILE.'downloads/');
|
||||||
|
foreach($tmp as $value)
|
||||||
|
{
|
||||||
|
if(!in_array($value['fname'], $downloadList))
|
||||||
|
{
|
||||||
|
$filelist[] = array('id' => 0, 'name' => $value['fname'], 'url' => $value['fname']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$text ="<!-- Start of PreFile selector -->
|
$text ="<!-- Start of PreFile selector -->
|
||||||
<div style='margin-left:0px;margin-right:0px; position:relative;z-index:1000;float:right;display:none' id='{$formid}'>";
|
<div style='margin-left:0px;margin-right:0px; position:relative;z-index:1000;float:right;display:none' id='{$formid}'>";
|
||||||
$text .="<div style='position:absolute; bottom:30px; right:75px'>";
|
$text .="<div style='position:absolute; bottom:30px; right:75px'>";
|
||||||
|
Reference in New Issue
Block a user