1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

file/form handlers minor update

This commit is contained in:
secretr
2010-01-16 14:17:10 +00:00
parent 3bcad4475e
commit e9c6e7a5c4
2 changed files with 61 additions and 60 deletions

View File

@@ -9,9 +9,9 @@
*
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/file_class.php,v $
* $Revision: 1.8 $
* $Date: 2009-12-13 21:52:31 $
* $Author: e107steved $
* $Revision: 1.9 $
* $Date: 2010-01-16 14:17:10 $
* $Author: secretr $
*/
if (!defined('e107_INIT')) { exit; }
@@ -57,7 +57,7 @@ class e_file
var $finfo = 'default';
// Constructor
function e_file()
function __construct()
{
$this->setDefaults();
}
@@ -75,11 +75,12 @@ class e_file
}
/**
* Read files from given path
*
* @param object $path
* @param object $fmask [optional]
* @param object $omit [optional]
* @param object $recurse_level [optional]
* @param string $path
* @param string $fmask [optional]
* @param string $omit [optional]
* @param integer $recurse_level [optional]
* @return array of file names/paths
*/
function get_files($path, $fmask = '', $omit='standard', $recurse_level = 0)
@@ -279,4 +280,3 @@ class e_file
}
}
?>

View File

@@ -9,9 +9,9 @@
* Form Handler
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
* $Revision: 1.113 $
* $Date: 2010-01-12 17:25:20 $
* $Author: e107coders $
* $Revision: 1.114 $
* $Date: 2010-01-16 14:17:10 $
* $Author: secretr $
*
*/
@@ -445,10 +445,10 @@ class e_form
/**
*
* @param object $name
* @param string $name
* @param array $option_array
* @param object $selected [optional]
* @param object $options [optional]
* @param boolean $selected [optional]
* @param string|array $options [optional]
* @param boolean $defaultBlank [optional] set to TRUE if the first entry should be blank
* @return string HTML text for display
*/
@@ -1524,6 +1524,7 @@ class e_form
break;
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."}");
break;