From: <ex...@us...> - 2013-05-02 09:33:09
|
Revision: 5883 http://sourceforge.net/p/web-erp/reponame/5883 Author: exsonqu Date: 2013-05-02 09:33:06 +0000 (Thu, 02 May 2013) Log Message: ----------- 2/5/2013 Exson: Make correction for removing those functions not related with webERP committed last time in MiscFunctions.php. Modified Paths: -------------- trunk/includes/MiscFunctions.php Modified: trunk/includes/MiscFunctions.php =================================================================== --- trunk/includes/MiscFunctions.php 2013-05-02 06:42:57 UTC (rev 5882) +++ trunk/includes/MiscFunctions.php 2013-05-02 09:33:06 UTC (rev 5883) @@ -11,12 +11,7 @@ echo getMsg($Msg, $Type, $Prefix); }//prnMsg -function prnMsg1($Msg,$Type='info', $Prefix=''){ - return getMsg($Msg, $Type, $Prefix); - -}//prnMsg - function reverse_escape($str) { $search=array("\\\\","\\0","\\n","\\r","\Z","\'",'\"'); $replace=array("\\","\0","\n","\r","\x1a","'",'"'); @@ -115,11 +110,12 @@ function ContainsIllegalCharacters ($CheckVariable) { if (mb_strstr($CheckVariable,"'") - // OR mb_strstr($CheckVariable,'+') + OR mb_strstr($CheckVariable,'+') OR mb_strstr($CheckVariable,'?') + OR mb_strstr($CheckVariable,'.') OR mb_strstr($CheckVariable,"\"") OR mb_strstr($CheckVariable,'&') - // OR mb_strstr($CheckVariable,"\\") + OR mb_strstr($CheckVariable,"\\") OR mb_strstr($CheckVariable,'"') OR mb_strstr($CheckVariable,'>') OR mb_strstr($CheckVariable,'<')){ @@ -137,14 +133,8 @@ echo '</pre></div>'; } -function json_result($result,$msg){ - $MES[$result] = $msg; - echo json_encode($MES); - -} - class XmlElement { var $name; var $attributes; @@ -411,7 +401,6 @@ return $IntegerNumber. $DecimalValue; } } - function SendMailBySmtp(&$mail,$To) { if(strpos('@',$_SESSION['SMTPSettings']['username'])){//user has set the fully mail address as user name @@ -430,6 +419,4 @@ } - - ?> |