+ add session.save_path check.

* adjust align of checking title.
This commit is contained in:
zhujinyong
2012-11-20 08:49:28 +00:00
parent 0264aff0d2
commit ed2ad7306d
5 changed files with 59 additions and 4 deletions
+26
View File
@@ -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
*