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

We need to fix this

This commit is contained in:
marj
2009-11-17 09:17:08 +00:00
parent 629ebe31f5
commit 07b233ea05
6 changed files with 32 additions and 21 deletions

View File

@@ -9,9 +9,9 @@
* Image Administration Area * Image Administration Area
* *
* $Source: /cvs_backup/e107_0.8/e107_admin/image.php,v $ * $Source: /cvs_backup/e107_0.8/e107_admin/image.php,v $
* $Revision: 1.30 $ * $Revision: 1.31 $
* $Date: 2009-11-15 20:24:55 $ * $Date: 2009-11-17 09:17:08 $
* $Author: secretr $ * $Author: marj_nl_fr $
* *
*/ */
require_once("../class2.php"); require_once("../class2.php");
@@ -182,6 +182,7 @@ class media_admin_ui extends e_admin_ui
{ {
$pref['upload_storagetype'] = "1"; $pref['upload_storagetype'] = "1";
require_once(e_HANDLER."upload_handler.php"); //TODO - still not a class! require_once(e_HANDLER."upload_handler.php"); //TODO - still not a class!
//FIXME need another name
$uploaded = process_uploaded_files(e_MEDIA.'temp/'); $uploaded = process_uploaded_files(e_MEDIA.'temp/');
foreach($uploaded as $upload) foreach($uploaded as $upload)
@@ -193,6 +194,7 @@ class media_admin_ui extends e_admin_ui
'media_type' => $upload['type'], 'media_type' => $upload['type'],
'media_name' => $upload['name'], 'media_name' => $upload['name'],
'media_datestamp' => time(), 'media_datestamp' => time(),
//FIXME need another name
'media_url' => "{e_MEDIA}".$newpath, 'media_url' => "{e_MEDIA}".$newpath,
'media_size' => $upload['size'], 'media_size' => $upload['size'],
'media_author' => USERID 'media_author' => USERID
@@ -278,9 +280,10 @@ class media_admin_ui extends e_admin_ui
{ {
list($pmime,$tmp) = explode('/',$type); list($pmime,$tmp) = explode('/',$type);
$dir = $this->mimePaths[$pmime]."/".date("Y-m"); $dir = $this->mimePaths[$pmime]."/".date("Y-m");
//FIXME need another name
if(!is_dir(e_MEDIA.$dir)) if(!is_dir(e_MEDIA.$dir))
{ {
mkdir(e_MEDIA.$dir,0755); mkdir(e_MEDIA.$dir, 0755);
} }
return $dir; return $dir;
} }

View File

@@ -9,8 +9,8 @@
* e107 Main * e107 Main
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $
* $Revision: 1.70 $ * $Revision: 1.71 $
* $Date: 2009-11-17 09:11:05 $ * $Date: 2009-11-17 09:17:08 $
* $Author: marj_nl_fr $ * $Author: marj_nl_fr $
*/ */
@@ -1212,6 +1212,7 @@ class e107
define("e_HANDLER", e_BASE.$HANDLERS_DIRECTORY); define("e_HANDLER", e_BASE.$HANDLERS_DIRECTORY);
define("e_LANGUAGEDIR", e_BASE.$LANGUAGES_DIRECTORY); define("e_LANGUAGEDIR", e_BASE.$LANGUAGES_DIRECTORY);
define("e_DOCS", e_BASE.$HELP_DIRECTORY); define("e_DOCS", e_BASE.$HELP_DIRECTORY);
//FIXME need another name
define("e_MEDIA", e_BASE.$MEDIA_DIRECTORY); define("e_MEDIA", e_BASE.$MEDIA_DIRECTORY);
// //
// HTTP absolute paths // HTTP absolute paths
@@ -1243,6 +1244,7 @@ class e107
} }
else else
{ {
//FIXME need another name
define("e_CACHE", e_MEDIA."cache/"); define("e_CACHE", e_MEDIA."cache/");
} }
/* /*

View File

@@ -9,9 +9,9 @@
* *
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/phpmailer/mailout_process.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/phpmailer/mailout_process.php,v $
* $Revision: 1.11 $ * $Revision: 1.12 $
* $Date: 2009-11-17 08:16:33 $ * $Date: 2009-11-17 09:17:08 $
* $Author: e107coders $ * $Author: marj_nl_fr $
| |
| Modifications in hand to work with most recent mailout.php | Modifications in hand to work with most recent mailout.php
@@ -30,6 +30,7 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE."/admin/lan_mailout.php");
// Directory for log (if enabled) // Directory for log (if enabled)
//FIXME need another name
define('MAIL_LOG_PATH',e_MEDIA."logs/"); define('MAIL_LOG_PATH',e_MEDIA."logs/");
$HEADER = ""; $HEADER = "";

View File

@@ -9,9 +9,9 @@
* File Upload Handler * File Upload Handler
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/upload_handler.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/upload_handler.php,v $
* $Revision: 1.24 $ * $Revision: 1.25 $
* $Date: 2009-11-14 04:13:11 $ * $Date: 2009-11-17 09:17:08 $
* $Author: e107coders $ * $Author: marj_nl_fr $
*/ */
if (!defined('e107_INIT')) if (!defined('e107_INIT'))
@@ -24,6 +24,7 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE."/lan_upload_handler.php");
//define("UH_DEBUG",TRUE); //define("UH_DEBUG",TRUE);
define("UH_DEBUG", FALSE); define("UH_DEBUG", FALSE);
//FIXME need another name
define('e_UPLOAD_TEMP_DIR', e_MEDIA.'temp/'); // Temporary directory define('e_UPLOAD_TEMP_DIR', e_MEDIA.'temp/'); // Temporary directory
define('e_READ_FILETYPES', 'filetypes.xml'); // Upload permissions define('e_READ_FILETYPES', 'filetypes.xml'); // Upload permissions
define('e_SAVE_FILETYPES', 'filetypes_.xml'); define('e_SAVE_FILETYPES', 'filetypes_.xml');

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/subs_menu.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/subs_menu.php,v $
| $Revision: 1.6 $ | $Revision: 1.7 $
| $Date: 2009-11-17 07:40:43 $ | $Date: 2009-11-17 09:17:08 $
| $Author: e107coders $ | $Author: marj_nl_fr $
| |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -83,6 +83,7 @@ function subs_log_a_line($log_text,$close_after = FALSE, $log_always = FALSE)
if ($ec_run_from_menu && ($log_always == FALSE)) return; if ($ec_run_from_menu && ($log_always == FALSE)) return;
// echo "Logging: ".$log_text."<br />"; // echo "Logging: ".$log_text."<br />";
static $handle = NULL; static $handle = NULL;
//FIXME need another name
$log_filename = e_MEDIA."logs/calendar_mail.txt"; $log_filename = e_MEDIA."logs/calendar_mail.txt";
if ($handle == NULL) if ($handle == NULL)
{ {

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_themes/templates/footer_default.php,v $ | $Source: /cvs_backup/e107_0.8/e107_themes/templates/footer_default.php,v $
| $Revision: 1.19 $ | $Revision: 1.20 $
| $Date: 2009-11-17 07:40:51 $ | $Date: 2009-11-17 09:17:08 $
| $Author: e107coders $ | $Author: marj_nl_fr $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
if (!defined('e107_INIT')) if (!defined('e107_INIT'))
@@ -126,7 +126,10 @@ if (varset($e107_popup) != 1)
} }
if ($pref['log_page_accesses']) if ($pref['log_page_accesses'])
{ // Need to log the page info to a text file as CSV data {
// Need to log the page info to a text file as CSV data
//FIXME need another name
$logname = e_MEDIA."logs/logd_".date("z.Y", time()).".csv"; $logname = e_MEDIA."logs/logd_".date("z.Y", time()).".csv";
$logfp = fopen($logname, 'a+'); $logfp = fopen($logname, 'a+');
fwrite($logfp, $logLine."\n"); fwrite($logfp, $logLine."\n");