Permalink
Browse files

module api24: Upstream VARLIB_PATH and VARLOG_PATH inclusions added

  • Loading branch information...
apmuthu committed Feb 18, 2018
1 parent f1200c9 commit e69b1f571ed110b4a66eb7838a1ec14f22119574
View
@@ -1,3 +1,4 @@
2018-02-18 Ap.Muthu module api24: VARLIB_PATH and VARLOG_PATH changes included
2018-02-18 Braathwaate en_US ANSI core language files updated
2018-02-10 Ap.Muthu South African 4 digit Chart of Accounts added based on en_US-new.sql
2018-02-01 Ap.Muthu de_DE language translations updated and charset as iso-8859-1
@@ -1,3 +1,4 @@
2018-02-18 Ap.Muthu Upstream VARLIB_PATH and VARLOG_PATH inclusions added
2017-11-28 Ap.Muthu All define() statements consolidated into api_config.php.
2017-11-27 Ap.Muthu POST / PUT consistency ensured. Associative array elements only.
2017-11-24 Ap.Muthu Added Sepcific taxType endpoint. Fixed typos.
@@ -77,7 +77,7 @@ if ($SysPrefs->error_logfile != '') {
to avoid unexpeced session timeouts.
Make sure this directory exists and is writable!
*/
// ini_set('session.save_path', dirname(__FILE__).'/../tmp/');
// ini_set('session.save_path', VARLIB_PATH.'/');
ini_set('session.gc_maxlifetime', 36000); // 10hrs
@@ -88,8 +88,8 @@ header("Cache-control: private");
get_text_init();
if ($SysPrefs->login_delay > 0)
@include_once($path_to_root . "/tmp/faillog.php");
if ($SysPrefs->login_delay > 0 && file_exists(VARLIB_PATH."/faillog.php"))
@include_once(VARLIB_PATH."/faillog.php");
// Page Initialisation
if (!isset($_SESSION['wa_current_user']) || !$_SESSION['wa_current_user']->logged_in()
@@ -9,6 +9,8 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
define('VARLIB_PATH', $path_to_root.'/tmp');
define('VARLOG_PATH', $path_to_root.'/tmp');
class SessionManager
{
@@ -227,9 +229,9 @@ function write_login_filelog($login, $result)
$msg .= "*/\n";
$msg .= "\$login_faillog = " .var_export($login_faillog, true). ";\n";
$filename = $path_to_root."/tmp/faillog.php";
$filename = VARLIB_PATH."faillog.php";
if ((!file_exists($filename) && is_writable($path_to_root.'/tmp')) || is_writable($filename))
if ((!file_exists($filename) && is_writable(VARLIB_PATH)) || is_writable($filename))
{
file_put_contents($filename, $msg);
cache_invalidate($filename);

0 comments on commit e69b1f5

Please sign in to comment.