1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-13 17:09:46 +01:00

Path fixes - e_LOG

This commit is contained in:
CaMer0n 2009-12-27 11:25:19 +00:00
parent e07843c238
commit d450b9dd7d
6 changed files with 22 additions and 22 deletions

View File

@ -9,8 +9,8 @@
* Administration - Site Preferences
*
* $Source: /cvs_backup/e107_0.8/e107_admin/prefs.php,v $
* $Revision: 1.40 $
* $Date: 2009-12-23 10:04:38 $
* $Revision: 1.41 $
* $Date: 2009-12-27 11:25:17 $
* $Author: e107coders $
*
*/
@ -1109,7 +1109,7 @@ $text .= "
<td class='label'>".PRFLAN_196."</td>
<td class='control'>
".$frm->radio_switch('log_page_accesses', $pref['log_page_accesses'])."
<div class='field-help'>".PRFLAN_196a." <strong>".e_FILE_ABS."logs/</strong></div>
<div class='field-help'>".PRFLAN_196a." <strong>".e_LOG_ABS."</strong></div>
</td>
</tr>
<tr>

View File

@ -9,8 +9,8 @@
* e107 Main
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $
* $Revision: 1.96 $
* $Date: 2009-12-15 11:05:17 $
* $Revision: 1.97 $
* $Date: 2009-12-27 11:25:18 $
* $Author: e107coders $
*/
@ -1713,7 +1713,7 @@ class e107
define("e_MEDIA", e_BASE.$this->e107_dirs['MEDIA_DIRECTORY']);
define("e_CACHE", e_BASE.$this->e107_dirs['CACHE_DIRECTORY']);
define("e_LOGS", e_BASE,$this->e107_dirs['LOGS_DIRECTORY']);
define("e_LOG", e_BASE.$this->e107_dirs['LOGS_DIRECTORY']);
//
// HTTP absolute paths
@ -1726,6 +1726,7 @@ class e107
define("e_HANDLER_ABS", e_HTTP.$this->e107_dirs['HANDLERS_DIRECTORY']);
define("e_LANGUAGEDIR_ABS", e_HTTP.$this->e107_dirs['LANGUAGES_DIRECTORY']);
define("e_MEDIA_ABS", e_HTTP.$this->e107_dirs['MEDIA_DIRECTORY']);
define("e_LOG_ABS", e_HTTP.$this->e107_dirs['LOGS_DIRECTORY']);
if(isset($_SERVER['DOCUMENT_ROOT']))
{

View File

@ -9,9 +9,9 @@
* e107 Main
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/mail.php,v $
* $Revision: 1.20 $
* $Date: 2009-11-20 22:23:02 $
* $Author: e107steved $
* $Revision: 1.21 $
* $Date: 2009-12-27 11:25:18 $
* $Author: e107coders $
*/
/*
@ -123,7 +123,7 @@ if (!defined('e107_INIT')) { exit; }
require_once(e_HANDLER.'phpmailer/class.phpmailer.php');
// Directory for log (if enabled)
define('MAIL_LOG_PATH',e_FILE.'logs/');
define('MAIL_LOG_PATH',e_LOG);
class e107Email extends PHPMailer
{

View File

@ -9,8 +9,8 @@
*
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/phpmailer/mailout_process.php,v $
* $Revision: 1.13 $
* $Date: 2009-11-18 01:05:12 $
* $Revision: 1.14 $
* $Date: 2009-12-27 11:25:18 $
* $Author: e107coders $
|
| Modifications in hand to work with most recent mailout.php
@ -31,7 +31,7 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE."/admin/lan_mailout.php");
// Directory for log (if enabled)
//FIXME need another name
define('MAIL_LOG_PATH',e_MEDIA."logs/");
define('MAIL_LOG_PATH',e_LOG);
$HEADER = "";
$FOOTER = "";

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_themes/templates/footer_default.php,v $
| $Revision: 1.21 $
| $Date: 2009-11-18 01:06:08 $
| $Revision: 1.22 $
| $Date: 2009-12-27 11:25:18 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@ -129,8 +129,7 @@ if (varset($e107_popup) != 1)
{
// 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_LOG."logd_".date("z.Y", time()).".csv";
$logfp = fopen($logname, 'a+');
fwrite($logfp, $logLine."\n");
fclose($logfp);

View File

@ -9,9 +9,9 @@
* Installation file
*
* $Source: /cvs_backup/e107_0.8/install_.php,v $
* $Revision: 1.56 $
* $Date: 2009-12-02 16:51:04 $
* $Author: secretr $
* $Revision: 1.57 $
* $Date: 2009-12-27 11:25:19 $
* $Author: e107coders $
*
*/
@ -36,7 +36,7 @@ $HANDLERS_DIRECTORY = "e107_handlers/";
$LANGUAGES_DIRECTORY = "e107_languages/";
$HELP_DIRECTORY = "e107_docs/help/";
$CACHE_DIRECTORY = "e107_media/cache/";
$DOWNLOADS_DIRECTORY = "e107_media/downloads/";
$DOWNLOADS_DIRECTORY = "e107_media/files/";
$UPLOADS_DIRECTORY = "e107_media/public/";
/* End configurable variables */
@ -1183,7 +1183,7 @@ class e_install
function check_writable_perms($list = 'must_write')
{
$bad_files = array();
$data['must_write'] = 'e107_config.php|{$FILES_DIRECTORY}temp/|{$FILES_DIRECTORY}logs/';
$data['must_write'] = 'e107_config.php|{$MEDIA_DIRECTORY}temp/|{$MEDIA_DIRECTORY}logs/|{$MEDIA_DIRECTORY}images/';
$data['can_write'] = '{$CACHE_DIRECTORY}|{$UPLOADS_DIRECTORY}|{$FILES_DIRECTORY}public/avatars/|{$PLUGINS_DIRECTORY}|{$THEMES_DIRECTORY}';
if (!isset($data[$list])) return $bad_files;
foreach ($this->e107->e107_dirs as $dir_name => $value)