mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
commit
de0c54ff37
12 changed files with 24 additions and 20 deletions
|
|
@ -200,9 +200,13 @@ class Context
|
|||
*/
|
||||
public function init()
|
||||
{
|
||||
// fix missing HTTP_RAW_POST_DATA in PHP 5.6 and above
|
||||
if(!isset($GLOBALS['HTTP_RAW_POST_DATA']) && version_compare(PHP_VERSION, '5.6.0', '>=') === true) {
|
||||
if(simplexml_load_string(file_get_contents("php://input")) !== false) $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
|
||||
if(strpos($_SERVER['CONTENT_TYPE'], 'json') || strpos($_SERVER['HTTP_CONTENT_TYPE'], 'json')) $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
|
||||
$GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
|
||||
if(!preg_match('/^[<\{\[]/', $GLOBALS['HTTP_RAW_POST_DATA']))
|
||||
{
|
||||
unset($GLOBALS['HTTP_RAW_POST_DATA']);
|
||||
}
|
||||
}
|
||||
|
||||
// set context variables in $GLOBALS (to use in display handler)
|
||||
|
|
|
|||
|
|
@ -1089,7 +1089,7 @@ class DB
|
|||
* this method is protected
|
||||
* @return boolean
|
||||
*/
|
||||
function _begin()
|
||||
function _begin($transactionLevel = 0)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
|
@ -1117,7 +1117,7 @@ class DB
|
|||
* this method is protected
|
||||
* @return boolean
|
||||
*/
|
||||
function _rollback()
|
||||
function _rollback($transactionLevel = 0)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ class DBCubrid extends DB
|
|||
* this method is private
|
||||
* @return boolean
|
||||
*/
|
||||
function _begin($transactionLevel)
|
||||
function _begin($transactionLevel = 0)
|
||||
{
|
||||
if(__CUBRID_VERSION__ >= '8.4.0')
|
||||
{
|
||||
|
|
@ -167,7 +167,7 @@ class DBCubrid extends DB
|
|||
* this method is private
|
||||
* @return boolean
|
||||
*/
|
||||
function _rollback($transactionLevel)
|
||||
function _rollback($transactionLevel = 0)
|
||||
{
|
||||
$connection = $this->_getConnection('master');
|
||||
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ class DBMssql extends DB
|
|||
* this method is private
|
||||
* @return boolean
|
||||
*/
|
||||
function _begin($transactionLevel)
|
||||
function _begin($transactionLevel = 0)
|
||||
{
|
||||
$connection = $this->_getConnection('master');
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ class DBMssql extends DB
|
|||
* this method is private
|
||||
* @return boolean
|
||||
*/
|
||||
function _rollback($transactionLevel)
|
||||
function _rollback($transactionLevel = 0)
|
||||
{
|
||||
$connection = $this->_getConnection('master');
|
||||
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ class DBMysql extends DB
|
|||
* this method is private
|
||||
* @return boolean
|
||||
*/
|
||||
function _begin()
|
||||
function _begin($transactionLevel = 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
@ -157,7 +157,7 @@ class DBMysql extends DB
|
|||
* this method is private
|
||||
* @return boolean
|
||||
*/
|
||||
function _rollback()
|
||||
function _rollback($transactionLevel = 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class DBMysql_innodb extends DBMysql
|
|||
* this method is private
|
||||
* @return boolean
|
||||
*/
|
||||
function _begin($transactionLevel)
|
||||
function _begin($transactionLevel = 0)
|
||||
{
|
||||
$connection = $this->_getConnection('master');
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ class DBMysql_innodb extends DBMysql
|
|||
* this method is private
|
||||
* @return boolean
|
||||
*/
|
||||
function _rollback($transactionLevel)
|
||||
function _rollback($transactionLevel = 0)
|
||||
{
|
||||
$connection = $this->_getConnection('master');
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class DBMysqli_innodb extends DBMysql
|
|||
* this method is private
|
||||
* @return boolean
|
||||
*/
|
||||
function _begin($transactionLevel)
|
||||
function _begin($transactionLevel = 0)
|
||||
{
|
||||
$connection = $this->_getConnection('master');
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ class DBMysqli_innodb extends DBMysql
|
|||
* this method is private
|
||||
* @return boolean
|
||||
*/
|
||||
function _rollback($transactionLevel)
|
||||
function _rollback($transactionLevel = 0)
|
||||
{
|
||||
$connection = $this->_getConnection('master');
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ class ModuleObject extends Object
|
|||
* @param string $type type of message (error, info, update)
|
||||
* @return void
|
||||
* */
|
||||
function setMessage($message, $type = NULL)
|
||||
function setMessage($message = 'success', $type = NULL)
|
||||
{
|
||||
parent::setMessage($message);
|
||||
$this->setMessageType($type);
|
||||
|
|
@ -370,7 +370,7 @@ class ModuleObject extends Object
|
|||
* set the directory path of the layout directory
|
||||
* @return string
|
||||
* */
|
||||
function getLayoutPath()
|
||||
function getLayoutPath($layout_name = "", $layout_type = "P")
|
||||
{
|
||||
return $this->layout_path;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class Object
|
|||
* @param string $message Error message
|
||||
* @return bool Alaways returns true.
|
||||
*/
|
||||
function setMessage($message = 'success')
|
||||
function setMessage($message = 'success', $type = NULL)
|
||||
{
|
||||
if($str = Context::getLang($message))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue