mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
file/form handlers minor update
This commit is contained in:
@@ -9,9 +9,9 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/file_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/file_class.php,v $
|
||||||
* $Revision: 1.8 $
|
* $Revision: 1.9 $
|
||||||
* $Date: 2009-12-13 21:52:31 $
|
* $Date: 2010-01-16 14:17:10 $
|
||||||
* $Author: e107steved $
|
* $Author: secretr $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
@@ -57,7 +57,7 @@ class e_file
|
|||||||
var $finfo = 'default';
|
var $finfo = 'default';
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
function e_file()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->setDefaults();
|
$this->setDefaults();
|
||||||
}
|
}
|
||||||
@@ -75,11 +75,12 @@ class e_file
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Read files from given path
|
||||||
*
|
*
|
||||||
* @param object $path
|
* @param string $path
|
||||||
* @param object $fmask [optional]
|
* @param string $fmask [optional]
|
||||||
* @param object $omit [optional]
|
* @param string $omit [optional]
|
||||||
* @param object $recurse_level [optional]
|
* @param integer $recurse_level [optional]
|
||||||
* @return array of file names/paths
|
* @return array of file names/paths
|
||||||
*/
|
*/
|
||||||
function get_files($path, $fmask = '', $omit='standard', $recurse_level = 0)
|
function get_files($path, $fmask = '', $omit='standard', $recurse_level = 0)
|
||||||
@@ -279,4 +280,3 @@ class e_file
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@@ -9,9 +9,9 @@
|
|||||||
* Form Handler
|
* Form Handler
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
|
||||||
* $Revision: 1.113 $
|
* $Revision: 1.114 $
|
||||||
* $Date: 2010-01-12 17:25:20 $
|
* $Date: 2010-01-16 14:17:10 $
|
||||||
* $Author: e107coders $
|
* $Author: secretr $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -445,10 +445,10 @@ class e_form
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param object $name
|
* @param string $name
|
||||||
* @param array $option_array
|
* @param array $option_array
|
||||||
* @param object $selected [optional]
|
* @param boolean $selected [optional]
|
||||||
* @param object $options [optional]
|
* @param string|array $options [optional]
|
||||||
* @param boolean $defaultBlank [optional] set to TRUE if the first entry should be blank
|
* @param boolean $defaultBlank [optional] set to TRUE if the first entry should be blank
|
||||||
* @return string HTML text for display
|
* @return string HTML text for display
|
||||||
*/
|
*/
|
||||||
@@ -1524,6 +1524,7 @@ class e_form
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'upload': //TODO - from method
|
case 'upload': //TODO - from method
|
||||||
|
// TODO uploadfile SC is now processing uploads as well (add it to admin UI), write/readParms have to be added (see uploadfile.php parms)
|
||||||
return $tp->parseTemplate("{UPLOADFILE=".e_UPLOAD."}");
|
return $tp->parseTemplate("{UPLOADFILE=".e_UPLOAD."}");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user