+ add session.save_path check.
* adjust align of checking title.
This commit is contained in:
@@ -125,6 +125,32 @@ class installModel extends model
|
||||
return $result = (is_dir($tmpRoot) and is_writable($tmpRoot)) ? 'ok' : 'fail';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get session save path.
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getSessionSavePath()
|
||||
{
|
||||
$result['path'] = session_save_path();
|
||||
$result['exists'] = is_dir($result['path']);
|
||||
$result['writable'] = is_writable($result['path']);
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check session save path.
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function checkSessionSavePath()
|
||||
{
|
||||
$sessionSavePath = session_save_path();
|
||||
return $result = (is_dir($sessionSavePath) and is_writable($sessionSavePath)) ? 'ok' : 'fail';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get data root
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user