mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Remove debug code, redundant parameter
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
* Text processing and parsing functions
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $
|
||||
* $Revision: 1.86 $
|
||||
* $Date: 2009-11-19 13:46:24 $
|
||||
* $Author: e107coders $
|
||||
* $Revision: 1.87 $
|
||||
* $Date: 2009-12-07 20:48:04 $
|
||||
* $Author: e107steved $
|
||||
*
|
||||
*/
|
||||
if (!defined('e107_INIT')) { exit(); }
|
||||
@@ -1100,11 +1100,6 @@ class e_parse
|
||||
switch ($matches[2])
|
||||
{
|
||||
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
|
||||
$proc_funcs = TRUE;
|
||||
|
||||
@@ -1119,10 +1114,6 @@ class e_parse
|
||||
{
|
||||
$bbcode = html_entity_decode($matches[4], ENT_QUOTES, 'UTF-8');
|
||||
}
|
||||
if (DB_INF_SHOW)
|
||||
{
|
||||
echo "PHP after decode: ".htmlentities($bbcode)."<br /><br />";
|
||||
}
|
||||
break;
|
||||
|
||||
case 'html' :
|
||||
|
@@ -9,9 +9,9 @@
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/ren_help.php,v $
|
||||
* $Revision: 1.15 $
|
||||
* $Date: 2009-11-18 01:04:43 $
|
||||
* $Author: e107coders $
|
||||
* $Revision: 1.16 $
|
||||
* $Date: 2009-12-07 20:48:04 $
|
||||
* $Author: e107steved $
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
@@ -225,32 +225,37 @@ function PreImage_Select($formid) {
|
||||
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");
|
||||
global $IMAGES_DIRECTORY, $fl, $sql;
|
||||
// $rejecthumb = array('$.','$..','/','CVS','thumbs.db','*._$', 'index', 'null*');
|
||||
|
||||
$filelist = array();
|
||||
$downloadList = array();
|
||||
$filelist = array();
|
||||
$downloadList = array();
|
||||
|
||||
$sql->db_Select("download", "*", "download_class != ".e_UC_NOBODY);
|
||||
while ($row = $sql->db_Fetch()) {
|
||||
extract($row);
|
||||
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)
|
||||
$sql->db_Select('download', '*', 'download_class != '.e_UC_NOBODY);
|
||||
while ($row = $sql->db_Fetch()) {
|
||||
extract($row);
|
||||
if($download_url)
|
||||
{
|
||||
if(!in_array($value['fname'], $downloadList))
|
||||
{
|
||||
$filelist[] = array("id" => 0, "name" => $value['fname'], "url" => $value['fname']);
|
||||
}
|
||||
$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' => 0, 'name' => $value['fname'], 'url' => $value['fname']);
|
||||
}
|
||||
}
|
||||
|
||||
$text ="<!-- Start of PreFile selector -->
|
||||
<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'>";
|
||||
|
Reference in New Issue
Block a user